Skip to main content
POST
/
v1
/
contacts
Criar contato
curl --request POST \
  --url https://api.notifique.dev/v1/contacts \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "phone": "<string>",
  "email": "<string>",
  "name": "<string>",
  "url": "<string>",
  "tagIds": [
    "<string>"
  ]
}
'
{
  "success": true,
  "data": {
    "id": "<string>",
    "name": "<string>",
    "phone": "<string>",
    "email": "<string>",
    "url": "<string>",
    "createdAt": "2023-11-07T05:31:56Z",
    "updatedAt": "2023-11-07T05:31:56Z",
    "tags": [
      {
        "id": "<string>",
        "name": "<string>"
      }
    ]
  }
}

Authorizations

Authorization
string
header
required

Authorization: Bearer sk_live_xxxxx

Body

application/json

Pelo menos um de phone ou email obrigatório.

phone
string | null

Telefone (único por workspace)

email
string | null

E-mail (único por workspace)

name
string | null
url
string | null
tagIds
string[]

IDs das tags a vincular

Response

Contato criado.

success
boolean
Example:

true

data
object

Contato do workspace (phone e/ou email; tags).