Team Invitations
List pending invitations.
Changed onReturns a paginated list of all pending invitations for the specified team.
get/api/v1/teams/invitations
Request
- Base URLhttps://app.customgpt.ai
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
pageinteger
Page number to retrieve. Page numbering starts at 1.
Increment until the response's last_page value is reached to paginate through all results. Default: 1.
limitinteger
Limit the number of results to return. Defaults to 20.
Response
List of pending invitations for the team
Example response
{
"status": "success",
"data": {
"current_page": 1,
"data": [
{
"id": 1,
"email": "user@example.com",
"role_id": 2,
"team_id": 1,
"created_at": "2023-04-30 16:43:53"
}
],
"first_page_url": "https://app.customgpt.ai/api/v1/users?page=1",
"from": 1,
"last_page": 1,
"last_page_url": "https://app.customgpt.ai/api/v1/users?page=1",
"next_page_url": "https://app.customgpt.ai/api/v1/users?page=1",
"path": "https://app.customgpt.ai/api/v1/users?page=1",
"per_page": 10,
"prev_page_url": "https://app.customgpt.ai/api/v1/users?page=1",
"to": 1,
"total": 1
}
}Changes
- info
endpoint added
- info