Agents

Get agent users by agent ID and Organization API key

get

Fetches agent users by agent ID and Organization API key. The response includes the agent users details.

Authorizations
Organization-Secret-KeystringRequired

Custom authentication header

Path parameters
idstringRequired

Unique identifier of the agent.

Example: 5f7b1b3b-3b3b-4b3b-3b3b-3b3b3b3b3b3b
Query parameters
pagenumberOptional

Page number

pageSizenumberOptional

Page size

orderBystring · enumOptional

Order by

Possible values:
orderDirectionstring · enumOptional

Order direction

Possible values:
Responses
chevron-right
200

Successfully retrieved agent users.

application/json
currentPagenumberRequired

Current page

pageSizenumberRequired

Page size

totalItemsnumberRequired

Total items

totalPagesnumberRequired

Total pages

hasNextPagebooleanRequired

Has next page

hasPreviousPagebooleanRequired

Has previous page

get
/external/agents/{id}/users

Get agent users by Agent API key

get

Fetches agent users by Agent API key. The response includes the agent users details.

Authorizations
Agent-Secret-KeystringRequired

Custom authentication header

Query parameters
pagenumberOptional

Page number

pageSizenumberOptional

Page size

orderBystring · enumOptional

Order by

Possible values:
orderDirectionstring · enumOptional

Order direction

Possible values:
Responses
chevron-right
200

Successfully retrieved agent users.

application/json
organizationIdstring · uuidRequired

Unique identifier for the organization.

Example: 123e4567-e89b-12d3-a456-426614174000
organizationNamestringRequired

Name of the organization.

idstring · uuidRequired

Unique identifier for the agent.

Example: 123e4567-e89b-12d3-a456-426614174000
namestringRequired

Name of the agent.

publicNamestringRequired

Public name of the agent.

rolestringRequired

Role of the agent.

descriptionstringOptional

Description of the agent.

vectorStoreIdstringRequired

OpenAI vector store ID.

Example: vs_1234567890
avatarUrlstringOptional

Avatar URL of the agent.

Example: https://example.com/avatar.jpg
statusstring · enumRequired

Status of the agent.

Possible values:
tagsstring[] · nullableOptional

Agent tags.

get
/external/agents/users

Get agent by API key

get

Fetches an agent by API key. The response includes the agent details.

Authorizations
Agent-Secret-KeystringRequired

Custom authentication header

Responses
chevron-right
200

Successfully retrieved the agent.

application/json
organizationIdstring · uuidRequired

Unique identifier for the organization.

Example: 123e4567-e89b-12d3-a456-426614174000
organizationNamestringRequired

Name of the organization.

idstring · uuidRequired

Unique identifier for the agent.

Example: 123e4567-e89b-12d3-a456-426614174000
namestringRequired

Name of the agent.

publicNamestringRequired

Public name of the agent.

rolestringRequired

Role of the agent.

descriptionstringOptional

Description of the agent.

vectorStoreIdstringRequired

OpenAI vector store ID.

Example: vs_1234567890
avatarUrlstringOptional

Avatar URL of the agent.

Example: https://example.com/avatar.jpg
statusstring · enumRequired

Status of the agent.

Possible values:
tagsstring[] · nullableOptional

Agent tags.

get
/external/agents/by-api-key

Get agent statistic by API key

get

Fetches an agent statistic by API key. The response includes the agent statistic.

Authorizations
Agent-Secret-KeystringRequired

Custom authentication header

Query parameters
startDatestring · date-timeOptional

Start date of statistics calculation.

Example: 2024-03-20T12:00:00Z
endDatestring · date-timeOptional

End date of statistics calculation.

Example: 2024-03-20T12:00:00Z
Responses
chevron-right
200

Successfully retrieved the agent statistic.

application/json
tokensUsednumberRequired

Total number of tokens used by the agent in the given period.

tokensPerConversationnumberRequired

Number of tokens per conversations by the agent in the given period.

vapiSecondsUsednumberRequired

Total number of vapi seconds used by the agent in the given period.

averageCallDurationnumberRequired

Number of vapi seconds per conversations by the agent in the given period.

smsUsednumberRequired

Total number of sms used by the agent in the given period.

smsPerConversationnumberRequired

Number of sms per conversations by the agent in the given period.

emailsUsednumberRequired

Total number of emails used by the agent in the given period.

emailsPerConversationnumberRequired

Number of emails per conversations by the agent in the given period.

get
/external/agents/statistic

Create agent webhook

post

Creates a new webhook for the agent identified by the API key.

Authorizations
Agent-Secret-KeystringRequired

Custom authentication header

Body
titlestringRequired

Title of the webhook

Example: My Webhook
descriptionstringRequired

Description of the webhook

Example: This webhook is triggered when a message is received
urlstringRequired

URL where the webhook will be sent

Example: https://api.example.com/webhook
triggerConditionstring · enumRequired

Condition that triggers the webhook

Example: each_messagePossible values:
headersobjectOptional

Optional headers to be sent with the webhook

Example: {"Authorization":"Bearer token"}
Responses
post
/external/agents/webhooks

Last updated