Teams
List all teams the authenticated user belongs to.
Changed onReturns a paginated list of all teams the authenticated user is a member of.
get/api/v1/teams
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 teams the authenticated user belongs to
Example response
{
"status": "success",
"data": {
"current_page": 1,
"data": [
{
"id": 1,
"owner_id": 1,
"name": "My Team",
"created_at": "2023-04-30 16:43:53",
"updated_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