Criar conversa
curl --request POST \
--url https://api.jurichat.com/conversation/ \
--header 'Content-Type: application/json' \
--header 'x-jurichat-api-key: <api-key>' \
--data '
{
"personId": "<string>",
"inboxId": "<string>",
"integrationId": "<string>"
}
'{
"conversation": {
"id": "<string>"
},
"person": {
"id": "<string>",
"name": "<string>"
}
}Conversations
Criar conversa
Cria uma conversa individual com o contato informado. Se já existir uma conversa ativa, retorna a existente.
POST
/
conversation
/
Criar conversa
curl --request POST \
--url https://api.jurichat.com/conversation/ \
--header 'Content-Type: application/json' \
--header 'x-jurichat-api-key: <api-key>' \
--data '
{
"personId": "<string>",
"inboxId": "<string>",
"integrationId": "<string>"
}
'{
"conversation": {
"id": "<string>"
},
"person": {
"id": "<string>",
"name": "<string>"
}
}Authorizations
Chave de API do escritório (criada no painel). Envie o valor no header x-jurichat-api-key.
Body
application/json
ID do contato vinculado à conversa.
Pattern:
^[cC][^\s-]{8,}$ID da inbox onde a conversa será criada.
Pattern:
^[cC][^\s-]{8,}$ID do canal de integração (WhatsApp, web chat etc.).
Pattern:
^[cC][^\s-]{8,}$Prioridade inicial da conversa. Opcional.
Available options:
LOW, MEDIUM, HIGH ⌘I