v1
Contacts

Update a contact

PUT/api/v1/contacts/{id}

Changes the fields you send and keeps the others.

A missing or null field stays as it is: send only what changed.

The API key needs the scopeEdit contactscontacts.edit

Parameters

NameInDescription
idrequiredstring (uuid)pathContact id.

Request body

FieldDescription
namestringThe contact's full name.
emailstringThe contact's email.
pipelineStageIdstring (uuid)Pipeline stage the contact moves to.
ownerIdstring (uuid)User who owns the contact.
statusstringThe contact's status in the pipeline.NewContactedQualifiedConvertedLost
phoneNumberstringPhone with country and area code, digits only.
firstNamestringFirst name, used in message greetings.
documentNumberstringThe contact's CPF or CNPJ (Brazilian tax ids), digits only.
addressZipcodestringPostal code, digits only.
addressStreetstringStreet.
addressNumberstringStreet number.
addressComplementstringAddress line 2.
addressNeighborhoodstringNeighborhood.
addressCitystringCity.
addressStatestringState, as its abbreviation.
addressCountrystringCountry.

Responses

200The contact after the change.
application/json
{
  "id": "af147888-ebb0-4ec9-92e5-da66cd561461",
  "businessId": "2ea7ad0d-8e13-4008-9fd8-7c92fe8677f2",
  "name": "Fulano de Tal",
  "firstName": "Fulano",
  "phoneNumber": "5511988887777",
  "instagramUsername": null,
  "tikTokUsername": null,
  "telegramUsername": null,
  "email": "[email protected]",
  "emailBouncedAt": null,
  "messagingOptedOutAt": null,
  "emailOptedOutAt": null,
  "tags": null,
  "customFields": null,
  "profileImageUrl": null,
  "pipelineStageId": "14592c48-f334-4d8c-b318-8d95b6bc1831",
  "ownerId": "5a3dc17c-3dc5-4770-bb35-0bff55f3151b",
  "teamId": null,
  "source": "SiteForm",
  "score": 72,
  "status": "Qualified",
  "convertedAt": null,
  "lossReason": null,
  "lossReasonId": null,
  "stageEnteredAt": "2026-11-23T00:58:52.335976Z",
  "lastActivityAt": "2026-11-23T11:44:19.871857Z",
  "lastInboundMessageAt": null,
  "lastOutboundMessageAt": null,
  "firstTouchAt": null,
  "firstContactAt": null,
  "documentNumber": null,
  "addressZipcode": null,
  "addressStreet": null,
  "addressNumber": null,
  "addressComplement": null,
  "addressNeighborhood": null,
  "addressCity": "São Paulo",
  "addressState": "SP",
  "addressCountry": "BR",
  "createdAt": "2026-11-23T00:58:52.335976Z",
  "updatedAt": "2026-11-23T11:44:19.888105Z"
}
400Invalid request: a body that is not JSON, a missing required field or a value in the wrong format.
application/json
{
  "error": "validation_failed",
  "message": "O campo name é obrigatório."
}
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."
}
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."
}
curl -X PUT "https://api.guria.io/api/v1/contacts/{id}" \
  -H "X-API-KEY: $GURIA_API_KEY" \
  -H "X-API-SECRET: $GURIA_API_SECRET" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Fulano de Tal",
    "email": "[email protected]",
    "status": "Qualified",
    "phoneNumber": "5511988887777",
    "firstName": "Fulano",
    "documentNumber": "12345678909",
    "addressZipcode": "01310100",
    "addressStreet": "Avenida Paulista",
    "addressNumber": "1000",
    "addressComplement": "Conjunto 42",
    "addressNeighborhood": "Bela Vista",
    "addressCity": "São Paulo",
    "addressState": "SP",
    "addressCountry": "BR"
  }'
Response · 200
{
  "id": "af147888-ebb0-4ec9-92e5-da66cd561461",
  "businessId": "2ea7ad0d-8e13-4008-9fd8-7c92fe8677f2",
  "name": "Fulano de Tal",
  "firstName": "Fulano",
  "phoneNumber": "5511988887777",
  "instagramUsername": null,
  "tikTokUsername": null,
  "telegramUsername": null,
  "email": "[email protected]",
  "emailBouncedAt": null,
  "messagingOptedOutAt": null,
  "emailOptedOutAt": null,
  "tags": null,
  "customFields": null,
  "profileImageUrl": null,
  "pipelineStageId": "14592c48-f334-4d8c-b318-8d95b6bc1831",
  "ownerId": "5a3dc17c-3dc5-4770-bb35-0bff55f3151b",
  "teamId": null,
  "source": "SiteForm",
  "score": 72,
  "status": "Qualified",
  "convertedAt": null,
  "lossReason": null,
  "lossReasonId": null,
  "stageEnteredAt": "2026-11-23T00:58:52.335976Z",
  "lastActivityAt": "2026-11-23T11:44:19.871857Z",
  "lastInboundMessageAt": null,
  "lastOutboundMessageAt": null,
  "firstTouchAt": null,
  "firstContactAt": null,
  "documentNumber": null,
  "addressZipcode": null,
  "addressStreet": null,
  "addressNumber": null,
  "addressComplement": null,
  "addressNeighborhood": null,
  "addressCity": "São Paulo",
  "addressState": "SP",
  "addressCountry": "BR",
  "createdAt": "2026-11-23T00:58:52.335976Z",
  "updatedAt": "2026-11-23T11:44:19.888105Z"
}