Skip to main content

Agents API

Run Autessa agents

  • Base URL: https://api.autessa.com
  • Auth: your API key in the Authorization header, with no Bearer prefix.
  • Guide: Agents
  • Status: all 9 operations are live.

Conversation​

POST/clients/agents/conversation

Parameters

NameInTypeRequiredDescription
resourceIdquerystringYesThe agent id the key is granted. A body agentId must match it (filled from it when omitted).

Request body

FieldTypeRequiredDescription
agentIdstringID id.
conversationIdstring

Response

FieldTypeRequiredDescription
conversationAgentConversationDto
curl -X POST "https://api.autessa.com/clients/agents/conversation?resourceId=V1StGXR8Z5" \
-H "Authorization: $AUTESSA_API_KEY" \
-H "Content-Type: application/json" \
-d '{"agentId":"V1StGXR8Z5"}'

A conversation's status​

POST/clients/agents/conversation-status

Needs ?resourceId=<agent id>; a body agentId must match it (filled from it when omitted).

Parameters

NameInTypeRequiredDescription
resourceIdquerystringYesThe agent id the key is granted. A body agentId must match it (filled from it when omitted).

Request body

FieldTypeRequiredDescription
agentIdstringID id.
conversationIdstringYes

Response

FieldTypeRequiredDescription
conversationIdstring
statusIN_PROGRESS | CLOSED | NOT_FOUND
curl -X POST "https://api.autessa.com/clients/agents/conversation-status?resourceId=V1StGXR8Z5" \
-H "Authorization: $AUTESSA_API_KEY" \
-H "Content-Type: application/json" \
-d '{"conversationId":"conversation-id"}'

Send a turn and get the reply​

POST/clients/agents/execute

Needs ?resourceId=<agent id>; a body agentId must match it (filled from it when omitted). Rate limited per key.

Parameters

NameInTypeRequiredDescription
resourceIdquerystringYesThe agent id the key is granted. A body agentId must match it (filled from it when omitted).

Request body

FieldTypeRequiredDescription
actingIdentityActingIdentity
agentIdstringID id.
callerCanAnswerboolean
combinedInputAsOnearray of MultimodalInput
conversationIdstringYes
conversationLanguagestring
environmentVariablesobject
executionOutputModeTEXT | AUDIO
inputarray of MultimodalInputYes
messageTypeVOICE | MULTIMODAL | PLAYBACK_COMPLETE
promptTemplateVariablesobject
simulationboolean
trustedEnvironmentVariablesobject
versionCustomVersion
curl -X POST "https://api.autessa.com/clients/agents/execute?resourceId=V1StGXR8Z5" \
-H "Authorization: $AUTESSA_API_KEY" \
-H "Content-Type: application/json" \
-d '{"conversationId":"conversation-id","input":[{"inputType":"TEXT"}]}'

Close a conversation​

POST/clients/agents/execute-close

Needs ?resourceId=<agent id>; a body agentId must match it (filled from it when omitted).

Parameters

NameInTypeRequiredDescription
resourceIdquerystringYesThe agent id the key is granted. A body agentId must match it (filled from it when omitted).

Request body

FieldTypeRequiredDescription
agentIdstringID id.
conversationIdstringYes
curl -X POST "https://api.autessa.com/clients/agents/execute-close?resourceId=V1StGXR8Z5" \
-H "Authorization: $AUTESSA_API_KEY" \
-H "Content-Type: application/json" \
-d '{"conversationId":"conversation-id"}'

Start a conversation​

POST/clients/agents/execute-create

Needs ?resourceId=<agent id>; a body agentId must match it (filled from it when omitted).

Parameters

NameInTypeRequiredDescription
resourceIdquerystringYesThe agent id the key is granted. A body agentId must match it (filled from it when omitted).

Request body

FieldTypeRequiredDescription
actingCustomAppIdinteger
actingCustomAppRowIdinteger
actingIdentityActingIdentity
actingUserTypestring
agentIdstringID id.
apiKeyIdstring
businessNumberstring
channelstring
clientModeboolean
companyIdinteger
otherNumberstring
userIdinteger
versionCustomVersion
visitorSessionRefstring

Response

FieldTypeRequiredDescription
conversationIdstring
curl -X POST "https://api.autessa.com/clients/agents/execute-create?resourceId=V1StGXR8Z5" \
-H "Authorization: $AUTESSA_API_KEY" \
-H "Content-Type: application/json" \
-d '{"actingCustomAppId":1}'

POST/clients/agents/generate-audio-upload-link

Parameters

NameInTypeRequiredDescription
resourceIdquerystringYesThe agent id the key is granted. A body agentId must match it (filled from it when omitted).

Response

FieldTypeRequiredDescription
expiresInSecondsinteger
s3Uristring
uploadUrlstring
curl -X POST "https://api.autessa.com/clients/agents/generate-audio-upload-link?resourceId=V1StGXR8Z5" \
-H "Authorization: $AUTESSA_API_KEY" \
-H "Content-Type: application/json" \
-d '"string"'

POST/clients/agents/generate-file-upload-link

Parameters

NameInTypeRequiredDescription
resourceIdquerystringYesThe agent id the key is granted. A body agentId must match it (filled from it when omitted).

Request body

FieldTypeRequiredDescription
fileExtensionstring

Response

FieldTypeRequiredDescription
expiresInSecondsinteger
mimeTypestring
s3Uristring
uploadUrlstring
curl -X POST "https://api.autessa.com/clients/agents/generate-file-upload-link?resourceId=V1StGXR8Z5" \
-H "Authorization: $AUTESSA_API_KEY" \
-H "Content-Type: application/json" \
-d '{"fileExtension":"string"}'

POST/clients/agents/generate-image-upload-link

Parameters

NameInTypeRequiredDescription
resourceIdquerystringYesThe agent id the key is granted. A body agentId must match it (filled from it when omitted).

Request body

FieldTypeRequiredDescription
fileExtensionstring

Response

FieldTypeRequiredDescription
expiresInSecondsinteger
mimeTypestring
s3Uristring
uploadUrlstring
curl -X POST "https://api.autessa.com/clients/agents/generate-image-upload-link?resourceId=V1StGXR8Z5" \
-H "Authorization: $AUTESSA_API_KEY" \
-H "Content-Type: application/json" \
-d '{"fileExtension":"string"}'

Revive conversation​

POST/clients/agents/revive-conversation

Parameters

NameInTypeRequiredDescription
resourceIdquerystringYesThe agent id the key is granted. A body agentId must match it (filled from it when omitted).

Request body

FieldTypeRequiredDescription
agentIdstringID id.
conversationIdstring

Response

FieldTypeRequiredDescription
conversationIdstring
statusstring
curl -X POST "https://api.autessa.com/clients/agents/revive-conversation?resourceId=V1StGXR8Z5" \
-H "Authorization: $AUTESSA_API_KEY" \
-H "Content-Type: application/json" \
-d '{"agentId":"V1StGXR8Z5"}'