Skip to main content
POST
/
agent
/
{id}
/
add-message
Adicionar mensagem manualmente
curl --request POST \
  --url https://juiywycqytekaffjcbfa.supabase.co/functions/v1/api-v1/agent/{id}/add-message \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "content": "<string>",
  "role": "ai",
  "conversation_id": "<string>"
}
'
{
  "success": true,
  "data": {
    "message": {
      "id": "<string>",
      "content": "<string>",
      "sender_type": "customer",
      "message_type": "<string>",
      "created_at": "<string>"
    }
  }
}

Authorizations

x-api-key
string
header
required

Autenticação por chave de API.

Path Parameters

id
string
required

ID do recurso

Body

application/json
content
string
role
enum<string>
Available options:
ai,
customer
conversation_id
string

Response

201 - application/json

Mensagem adicionada

success
boolean
data
object