Skip to main content
POST
/
v1
/
agents
/
{id}
/
conversation
Create conversation with agent
curl --request POST \
  --url https://api.timelyai.com.br/v1/agents/{id}/conversation \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "message": "<string>",
  "contact_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "metadata": {}
}
'
{
  "data": {
    "conversation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "response": "<string>"
  }
}

Authorizations

x-api-key
string
header
required

API key obtained from the dashboard

Path Parameters

id
string<uuid>
required

Agent ID

Body

application/json
message
string
required

Initial message

contact_id
string<uuid>

Contact ID (optional)

metadata
object

Additional metadata

Response

Conversation created

data
object