Agents

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
200

Successfully retrieved the agent.

application/json
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
200

Successfully retrieved the agent statistic.

application/json
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