List all agents.
Returns a list of your agents (formerly known as projects). The agents are returned sorted by creation date, with the most recent agents appearing first. It is a paginated API and you can use the page parameter to fetch the next page of agents. The default page size is 10.
Here is an example to list agents: using API and using our python SDK.
Query parameters
Page number to return
The duration of the agents to list.
The order of the agents to list. Defaults to desc.
The orderBy to sort the results by given field
The width of the embed code. Defaults to 100%.
The height of the embed code. Defaults to 100%.
Filter the results by agent name
Response
Successfully retrieved list of agents that belong to the user.
Example response
{
"status": "success",
"data": {
"current_page": 1,
"data": [
{
"id": 1,
"project_name": "My Agent",
"sitemap_path": "https://www.example.com/sitemap.xml",
"is_chat_active": true,
"user_id": 1,
"team_id": 1,
"created_at": "2021-01-01 00:00:00",
"updated_at": "2021-01-01 00:00:00",
"deleted_at": "2021-01-01 00:00:00",
"type": "SITEMAP",
"is_shared": true,
"shareable_slug": "1234567890abcdef1234567890abcdef",
"are_licenses_allowed": true
}
],
"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
Changed in 4 of the 9 revisions of this API.2610
- ○
api tag
Agentsaddedapi-tag-added
- ○
api tag
Projectsremovedapi-tag-removed
- ○
added the new optional
queryrequest parameternamenew-optional-request-parameter
- ○
added the new optional
queryrequest parameterorderBynew-optional-request-parameter
- ○
added the optional property
///to the response with the statusresponse-optional-property-added
- ○
added the optional property
///to the response with the statusresponse-optional-property-added
- ○
added the optional property
///to the response with the statusresponse-optional-property-added
This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○
- ▲
for the
queryrequest parameterduration, default value90was removedrequest-parameter-default-value-removed
- ▲
- ●
removed the optional property
/from the response with the statusresponse-optional-property-removed
- ●
- ▲
for the
queryrequest parameterduration, default value90was addedrequest-parameter-default-value-added
- ●
deleted the
queryrequest parameternamerequest-parameter-removed
- ●
deleted the
queryrequest parameterorderByrequest-parameter-removed
- ●
removed the optional property
///from the response with the statusresponse-optional-property-removed
- ●
removed the optional property
///from the response with the statusresponse-optional-property-removed
- ●
removed the optional property
///from the response with the statusresponse-optional-property-removed
- ○
api tag
Projectsaddedapi-tag-added
- ○
api tag
Agentsremovedapi-tag-removed
- ○
added the optional property
/to the response with the statusresponse-optional-property-added
This revision also has 11 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲