Delete a contact
DELETE
/api/v1/contacts/{id}Deletes the contact.
A contact with an active subscription or a contract in force cannot be deleted: the response is 409.
The API key needs the scopeDelete contacts
contacts.deleteParameters
| Name | In | Description |
|---|---|---|
idrequiredstring (uuid) | path | Contact id. |
Responses
204Done. The response has no body.
No body.
401Missing or invalid credentials. The response is the same for a key that does not exist and for a wrong secret; without the X-API-KEY header, it comes with no body.
application/json
{
"error": "unauthorized",
"message": "Credenciais de API inválidas."
}403The key authenticated, but it lacks the scope the route requires, or the plan does not include the feature.
application/json
{
"error": "forbidden",
"message": "A chave de API não tem acesso a esta rota: falta o escopo exigido, ou a rota não aceita chave de API."
}404The record does not exist in this company.
application/json
{
"error": "not_found",
"message": "Registro não encontrado."
}409The current state of the record or of the channel prevents the operation. The error field carries the exact reason.
application/json
{
"error": "conflict",
"message": "A operação entra em conflito com o estado atual do registro."
}429The requests-per-minute limit was reached. Wait for the time given in the Retry-After header.
application/json
{
"error": "too_many_requests",
"message": "Muitas requisições com esta chave de API. Aguarde o fim da janela e tente novamente."
}