Skip to main content
POST
/
conversations
Criar conversa
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>"
    }
  }
}

Authorizations

x-api-key
string
header
required

Autenticação por chave de API.

Body

application/json
channel
enum<string>
required
Available options:
whatsapp,
telegram,
email,
website
customer_name
string
customer_phone
string
customer_email
string
agent_id
string

Response

201 - application/json

Conversa criada

success
boolean
data
object