API Documentation
Prospects
Agents
VoiceModels
Hive
HiveAgentLink
Actions
ActionAgentLink
Products
Conversations
ConversationProspectLink
ActionAgentLink
List All Actions Linked to a Specific Agent
List All Actions Linked to a Specific Agent
GET
/
v1
/
ai-agents
/
{agent_id}
/
actions
Copy
curl --request GET \
--url https://api.trata.ai/v1/ai-agents/{agent_id}/actions \
--header 'Authorization: Bearer <token>'
Copy
[
{
"id": "act.1234567890",
"orgId": "org.1234567890",
"name": "Webhook on call completion.",
"description": "This action will be invoked when a call is completed. It will send a webhook to the specified url.",
"parameters": {},
"endpoint": {
"url": "https://webhook-endpoint.com",
"method": "POST"
},
"invocationTrigger": "webhook.conversation_en",
"userWaitingText": "Please wait...",
"userSuccessText": "Action completed successfully",
"userErrorText": "An error occurred",
"createdBy": "usr.1234567890",
"createdAt": "2024-12-06T19:23:38.616711",
"updatedBy": "usr.1234567890",
"updatedAt": "2024-12-06T19:23:38.616714"
}
]
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
ID of the agent
Response
200
application/json
List of actions retrieved successfully
The response is of type Action · object[]
.
Copy
curl --request GET \
--url https://api.trata.ai/v1/ai-agents/{agent_id}/actions \
--header 'Authorization: Bearer <token>'
Copy
[
{
"id": "act.1234567890",
"orgId": "org.1234567890",
"name": "Webhook on call completion.",
"description": "This action will be invoked when a call is completed. It will send a webhook to the specified url.",
"parameters": {},
"endpoint": {
"url": "https://webhook-endpoint.com",
"method": "POST"
},
"invocationTrigger": "webhook.conversation_en",
"userWaitingText": "Please wait...",
"userSuccessText": "Action completed successfully",
"userErrorText": "An error occurred",
"createdBy": "usr.1234567890",
"createdAt": "2024-12-06T19:23:38.616711",
"updatedBy": "usr.1234567890",
"updatedAt": "2024-12-06T19:23:38.616714"
}
]
Assistant
Responses are generated using AI and may contain mistakes.