API Documentation
Prospects
Agents
VoiceModels
Hive
HiveAgentLink
Actions
ActionAgentLink
Products
Conversations
ConversationProspectLink
Data Plane
Create Connection
Create a new connection for an AI Agent to start a voice conversation
POST
/
v1
/
connections
Copy
curl --request POST \
--url https://api.trata.ai/v1/connections \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"sourceName": "TWILIO",
"sourceId": "id_123",
"sourceProps": "Browser"
}'
Copy
{
"id": "<string>",
"orgId": "<string>",
"sourceName": "<string>",
"sourceId": "<string>",
"sourceProps": {},
"agentId": "<string>",
"prospectId": "<string>",
"createdBy": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedBy": "<string>",
"updatedAt": "2023-11-07T05:31:56Z"
}
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
application/json
Response
200
application/json
Successful Response
This represents the connection between the user and the assistant
Copy
curl --request POST \
--url https://api.trata.ai/v1/connections \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"sourceName": "TWILIO",
"sourceId": "id_123",
"sourceProps": "Browser"
}'
Copy
{
"id": "<string>",
"orgId": "<string>",
"sourceName": "<string>",
"sourceId": "<string>",
"sourceProps": {},
"agentId": "<string>",
"prospectId": "<string>",
"createdBy": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedBy": "<string>",
"updatedAt": "2023-11-07T05:31:56Z"
}
Assistant
Responses are generated using AI and may contain mistakes.