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

# List invitations

GET https://api.modex.com/v1/clients/{client_id}/invitations

Outstanding (not accepted or revoked) invitations for a client you own, newest first. Cursor-paginated.

**Response fields** (`data[]`): `id` (UUID), `email` (string), `created_at` (timestamp).

Saves the first invitation's ID to `client_user_invitation_id`.

Reference: https://docs.modex.com/api-reference/account/client-seats/list-client-invitations

## Authentication

- `Authorization` header (bearer token, required) — Bearer authentication of the form `Bearer <token>`, where token is your auth token.

## Request

### Path parameters

- `client_id` (string, required)

### Query parameters

- `limit` (integer, optional) — Page size. Defaults to 25. Maximum is 100.
- `cursor` (string, optional) — Cursor from pagination.next_cursor on the previous page. Leave disabled for the first page.

## Response

### 200

OK

- `data` (list of V1ClientsClientIdInvitationsGetResponsesContentApplicationJsonSchemaDataItems, optional) — The records on this page.
- `pagination` (V1ClientsClientIdInvitationsGetResponsesContentApplicationJsonSchemaPagination, optional) — Cursor details for the next and previous pages. See Pagination in Getting started.

## Types

### V1ClientsClientIdInvitationsGetResponsesContentApplicationJsonSchemaDataItems

- `id` (string, optional) — Invitation ID
- `email` (string, optional) — Invited email address
- `created_at` (datetime, optional) — When the invitation was sent

### V1ClientsClientIdInvitationsGetResponsesContentApplicationJsonSchemaPagination

Cursor details for the next and previous pages. See Pagination in Getting started.

- `per_page` (integer, optional) — Page size used for this response.
- `next_cursor` (any, optional) — Pass as `cursor` to get the next page. `null` on the last page.
- `next_page_url` (any, optional) — Full URL of the next page. `null` on the last page.
- `prev_cursor` (any, optional) — Pass as `cursor` to get the previous page. `null` on the first page.
- `prev_page_url` (any, optional) — Full URL of the previous page. `null` on the first page.

## Examples

**Response**

```json
{
  "data": [
    {
      "id": "9e8d7c6b-5a4f-4e3d-8c2b-1a0f9e8d7c6b",
      "email": "taylor.brooks@example.com",
      "created_at": "2026-10-26T16:20:00+00:00"
    }
  ],
  "pagination": {
    "per_page": 25
  }
}
```

**SDK Code**

```python Invitations
import requests

url = "https://api.modex.com/v1/clients/client_id/invitations"

querystring = {"cursor":"{{cursor}}","limit":"25"}

headers = {"Authorization": "Bearer <token>"}

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

print(response.json())
```

```javascript Invitations
const url = 'https://api.modex.com/v1/clients/client_id/invitations?cursor=%7B%7Bcursor%7D%7D&limit=25';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

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

```go Invitations
package main

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

func main() {

	url := "https://api.modex.com/v1/clients/client_id/invitations?cursor=%7B%7Bcursor%7D%7D&limit=25"

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

	req.Header.Add("Authorization", "Bearer <token>")

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

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

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

}
```

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

url = URI("https://api.modex.com/v1/clients/client_id/invitations?cursor=%7B%7Bcursor%7D%7D&limit=25")

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

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'

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

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

HttpResponse<String> response = Unirest.get("https://api.modex.com/v1/clients/client_id/invitations?cursor=%7B%7Bcursor%7D%7D&limit=25")
  .header("Authorization", "Bearer <token>")
  .asString();
```

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

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.modex.com/v1/clients/client_id/invitations?cursor=%7B%7Bcursor%7D%7D&limit=25', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
  ],
]);

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

```csharp Invitations
using RestSharp;

var client = new RestClient("https://api.modex.com/v1/clients/client_id/invitations?cursor=%7B%7Bcursor%7D%7D&limit=25");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift Invitations
import Foundation

let headers = ["Authorization": "Bearer <token>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.modex.com/v1/clients/client_id/invitations?cursor=%7B%7Bcursor%7D%7D&limit=25")! 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()
```