Retrieve a paginated list of all pending invites for the workspace.

Query Parameters

limit
number
default:"20"

Number of invites to return (1-100)

offset
number
default:"0"

Pagination offset

Response

items
array

List of invites

pagination
object

Pagination metadata

Example Request

curl -X GET 'https://api.caret.so/v1/workspace/invites?limit=10&offset=0' \
  -H 'Authorization: Bearer {api_key}'

Example Response

{
  "items": [
    {
      "id": "01887270-45ab-7da0-c95d-9a9e9ebc5e89",
      "email": "jane@acme.com",
      "code": "ab3d5f8g",
      "role": "member",
      "expiresAt": "2023-09-15T00:00:00Z",
      "createdAt": "2023-08-15T08:30:00Z",
      "isUrlInvite": false,
      "groups": [
        {
          "id": "01887270-56cd-7da0-c95d-9a9e9ebc6f90",
          "name": "Engineering"
        }
      ]
    }
  ],
  "pagination": {
    "limit": 10,
    "nextOffset": 10,
    "isLast": true
  }
}