> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.houseofapps.ai/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.houseofapps.ai/_mcp/server.

# List invitations

GET https://api-dev.houseofapps.ai/v1/integrations/invites

List organization invitations with pagination.

Reference: https://docs.houseofapps.ai/api-reference/overview/platform/invites/external-get-organization-invitations-v-1-integrations-invites-get

## Request

### Query parameters

- `page` (integer, optional, default: 1) — The page number for pagination
- `page_size` (integer, optional, default: 20) — The number of items per page
- `status` (enum, optional, nullable) — The status of the invitations
  - Allowed values: `pending`, `accepted`

### Headers

- `licenseKey` (string, required)
- `appSecret` (string, required)

## Response

### 200

OK

- `data` (list of InviteListItem, required) — List of invitations if successful
- `total_count` (integer, required) — Total number of invitations

## Errors

### 400 Bad Request Error

Bad Request

- `status` (string, required) — Response status
- `message` (string, required) — Human-readable error message
- `statusCode` (integer, required) — HTTP status code
- `code` (string, required) — Custom application status code
- `messageKey` (string, optional) — i18n key for the message
- `errors` (list of map from string to any, optional) — Optional field-level validation errors

### 401 Unauthorized Error

Unauthorized

- `status` (string, required) — Response status
- `message` (string, required) — Human-readable error message
- `statusCode` (integer, required) — HTTP status code
- `code` (string, required) — Custom application status code
- `messageKey` (string, optional) — i18n key for the message
- `errors` (list of map from string to any, optional) — Optional field-level validation errors

### 403 Forbidden Error

Forbidden

- `status` (string, required) — Response status
- `message` (string, required) — Human-readable error message
- `statusCode` (integer, required) — HTTP status code
- `code` (string, required) — Custom application status code
- `messageKey` (string, optional) — i18n key for the message
- `errors` (list of map from string to any, optional) — Optional field-level validation errors

### 404 Not Found Error

Not Found

- `status` (string, required) — Response status
- `message` (string, required) — Human-readable error message
- `statusCode` (integer, required) — HTTP status code
- `code` (string, required) — Custom application status code
- `messageKey` (string, optional) — i18n key for the message
- `errors` (list of map from string to any, optional) — Optional field-level validation errors

### 409 Conflict Error

Conflict

- `status` (string, required) — Response status
- `message` (string, required) — Human-readable error message
- `statusCode` (integer, required) — HTTP status code
- `code` (string, required) — Custom application status code
- `messageKey` (string, optional) — i18n key for the message
- `errors` (list of map from string to any, optional) — Optional field-level validation errors

### 422 Unprocessable Entity Error

Unprocessable Entity

- `status` (string, required) — Response status
- `message` (string, required) — Human-readable error message
- `statusCode` (integer, required) — HTTP status code
- `code` (string, required) — Custom application status code
- `messageKey` (string, optional) — i18n key for the message
- `errors` (list of map from string to any, optional) — Optional field-level validation errors

### 429 Too Many Requests Error

Too Many Requests

- `status` (string, required) — Response status
- `message` (string, required) — Human-readable error message
- `statusCode` (integer, required) — HTTP status code
- `code` (string, required) — Custom application status code
- `messageKey` (string, optional) — i18n key for the message
- `errors` (list of map from string to any, optional) — Optional field-level validation errors

### 500 Internal Server Error

Internal Server Error

- `status` (string, required) — Response status
- `message` (string, required) — Human-readable error message
- `statusCode` (integer, required) — HTTP status code
- `code` (string, required) — Custom application status code
- `messageKey` (string, optional) — i18n key for the message
- `errors` (list of map from string to any, optional) — Optional field-level validation errors

### 503 Service Unavailable Error

Service Unavailable

- `status` (string, required) — Response status
- `message` (string, required) — Human-readable error message
- `statusCode` (integer, required) — HTTP status code
- `code` (string, required) — Custom application status code
- `messageKey` (string, optional) — i18n key for the message
- `errors` (list of map from string to any, optional) — Optional field-level validation errors

## Types

### InviteListItem

Model for invitation list item

- `invite_id` (string, required) — Unique identifier for the invitation
- `email` (string, required) — Email address of the invitee
- `role_id` (string, required) — Role assigned to the invitee
- `status` (enum, required) — Current status of the invitation
  - Allowed values: `pending`, `accepted`
- `invited_by` (string, required) — User ID who sent the invitation
- `expires_at` (string, required) — ISO timestamp when invitation expires
- `created_at` (string, required) — ISO timestamp when invitation was created
- `updated_at` (string, required) — ISO timestamp when invitation was last updated
- `salutation` (enum, optional, nullable) — Salutation for the user
  - Allowed values: `Mr.`, `Mrs.`, `Ms.`, `Dr.`, `Prof.`, `Adv.`
- `first_name` (string, optional, nullable)
- `last_name` (string, optional, nullable)
- `phone` (string, optional, nullable)
- `custom_fields` (list of map from string to any, optional) — Admin pre-filled user custom fields stored on the invitation.

## Examples

**Response**

```json
{
  "data": [
    {
      "invite_id": "6ba7b810-9dad-11d1-80b4-00c04fd430c8",
      "email": "newuser@example.com",
      "role_id": "550e8400-e29b-41d4-a716-446655440000",
      "status": "pending",
      "invited_by": "550e8400-e29b-41d4-a716-446655440000",
      "expires_at": "2024-12-26T10:00:00Z",
      "created_at": "2024-12-19T10:00:00Z",
      "updated_at": "2024-12-19T10:00:00Z"
    }
  ],
  "total_count": 5,
  "message": "Retrieved 5 invitations",
  "page": 1,
  "page_size": 20
}
```

**SDK Code**

```python
import requests

url = "https://api-dev.houseofapps.ai/v1/integrations/invites"

headers = {
    "appSecret": "appSecret",
    "licenseKey": "licenseKey"
}

response = requests.get(url, headers=headers)

print(response.json())
```

```javascript
const url = 'https://api-dev.houseofapps.ai/v1/integrations/invites';
const options = {method: 'GET', headers: {appSecret: 'appSecret', licenseKey: 'licenseKey'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api-dev.houseofapps.ai/v1/integrations/invites"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("appSecret", "appSecret")
	req.Header.Add("licenseKey", "licenseKey")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://api-dev.houseofapps.ai/v1/integrations/invites")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["appSecret"] = 'appSecret'
request["licenseKey"] = 'licenseKey'

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api-dev.houseofapps.ai/v1/integrations/invites")
  .header("appSecret", "appSecret")
  .header("licenseKey", "licenseKey")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api-dev.houseofapps.ai/v1/integrations/invites', [
  'headers' => [
    'appSecret' => 'appSecret',
    'licenseKey' => 'licenseKey',
  ],
]);

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://api-dev.houseofapps.ai/v1/integrations/invites");
var request = new RestRequest(Method.GET);
request.AddHeader("appSecret", "appSecret");
request.AddHeader("licenseKey", "licenseKey");
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = [
  "appSecret": "appSecret",
  "licenseKey": "licenseKey"
]

let request = NSMutableURLRequest(url: NSURL(string: "https://api-dev.houseofapps.ai/v1/integrations/invites")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```