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>"
}
}
}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>"
}
}
}Autenticação por chave de API.
ID do recurso
Mensagem adicionada