curl --request POST \
--url https://juiywycqytekaffjcbfa.supabase.co/functions/v1/api-v1/conversations \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"channel": "whatsapp",
"customer_name": "<string>",
"customer_phone": "<string>",
"customer_email": "<string>",
"agent_id": "<string>"
}
'{
"success": true,
"data": {
"conversation": {
"id": "<string>",
"customer_name": "<string>",
"customer_phone": "<string>",
"customer_email": "<string>",
"channel": "<string>",
"status": "<string>",
"ai_mode": "<string>",
"agent_id": "<string>",
"created_at": "<string>",
"updated_at": "<string>"
}
}
}curl --request POST \
--url https://juiywycqytekaffjcbfa.supabase.co/functions/v1/api-v1/conversations \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"channel": "whatsapp",
"customer_name": "<string>",
"customer_phone": "<string>",
"customer_email": "<string>",
"agent_id": "<string>"
}
'{
"success": true,
"data": {
"conversation": {
"id": "<string>",
"customer_name": "<string>",
"customer_phone": "<string>",
"customer_email": "<string>",
"channel": "<string>",
"status": "<string>",
"ai_mode": "<string>",
"agent_id": "<string>",
"created_at": "<string>",
"updated_at": "<string>"
}
}
}Autenticação por chave de API.
Conversa criada
Show child attributes
Show child attributes