Criar Contato

POST /public/api/v1/inboxes/{inbox_identifier}/contacts

Exemplo fetch

fetch("https://<host>/public/api/v1/inboxes/INBOX_ID/contacts", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    name: "João",
    identifier: "user-123",
    email: "joao@example.com"
  })
})

JSON de envio

{
  "name": "João",
  "identifier": "user-123",
  "email": "joao@example.com"
}

Resposta esperada

{
  "id": 12345,
  "name": "João",
  "identifier": "user-123",
  "email": "joao@example.com",
  "contactable": true
}