Skip to main content
POST
/
v1
/
companies
/
{id}
/
agents
/
{agentId}
/
messages
Persist agent message
curl --request POST \
  --url https://api.usenaive.ai/v1/companies/{id}/agents/{agentId}/messages \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "role": "<string>",
  "text": "<string>",
  "run_id": "<string>"
}
'
{
  "id": "<string>"
}

Authorizations

Authorization
string
header
required

Workspace API key. Create one via the dashboard or POST /v1/auth/keys.

Path Parameters

id
string
required
agentId
string
required

Body

application/json
role
string
required
text
string
required
run_id
string

Response

Created.

id
string