Get all agents

View as Markdown
Agents are the main entities in the system. Agents are used to create conversations. You can create workflow for an agent and configure it for different use cases. You can also create custom workflows for an agent. This API will give you the list of agents created by organization you are a part of.

Authentication

AuthorizationBearer

API key from the console ApiKey collection, sent as Bearer token. Also accepts session cookies for browser-based auth.

Query parameters

pageintegerOptionalDefaults to 1
offsetintegerOptionalDefaults to 10
searchstringOptional
typeenumOptional
Filter agents by workflow type
Allowed values:
sortFieldenumOptionalDefaults to createdAt
Field to sort results by
Allowed values:
sortOrderenumOptionalDefaults to desc
Sort direction
Allowed values:
archivedbooleanOptionalDefaults to false
When true, returns only archived agents. Omit or set to false to return active agents.

Response

Successful response
statusboolean
dataobject

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
500
Internal Server Error