Consultar contato
curl --request GET \
--url https://api.ararahq.com/v1/contacts/{phone} \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.ararahq.com/v1/contacts/{phone}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.ararahq.com/v1/contacts/{phone}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.ararahq.com/v1/contacts/{phone}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}{
"id": "1f2e3d4c-5b6a-7890-abcd-ef1234567890",
"name": "João Silva",
"phone": "+5511999999999",
"email": "joao@exemplo.com",
"attributes": {
"plano": "pro"
},
"tags": [
"vip"
],
"createdAt": "2026-09-01T14:30:00Z",
"lifecycle": "ENGAGED",
"source": "API",
"outboundCount": 12,
"inboundCount": 3,
"firstSeenAt": "2026-09-01T14:30:00Z",
"lastOutboundAt": "2026-09-14T10:00:00Z",
"lastInboundAt": "2026-09-14T10:05:00Z",
"lastMessageAt": "2026-09-14T10:05:00Z",
"optOutAt": null,
"lastTemplateName": "pedido_confirmado"
}Contatos
Consultar contato
Telefone E.164 com +. Contato inexistente responde hoje 422
UNPROCESSABLE_ENTITY, não 404. Permissão: ADMIN.
GET
/
v1
/
contacts
/
{phone}
Consultar contato
curl --request GET \
--url https://api.ararahq.com/v1/contacts/{phone} \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.ararahq.com/v1/contacts/{phone}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.ararahq.com/v1/contacts/{phone}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.ararahq.com/v1/contacts/{phone}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}{
"id": "1f2e3d4c-5b6a-7890-abcd-ef1234567890",
"name": "João Silva",
"phone": "+5511999999999",
"email": "joao@exemplo.com",
"attributes": {
"plano": "pro"
},
"tags": [
"vip"
],
"createdAt": "2026-09-01T14:30:00Z",
"lifecycle": "ENGAGED",
"source": "API",
"outboundCount": 12,
"inboundCount": 3,
"firstSeenAt": "2026-09-01T14:30:00Z",
"lastOutboundAt": "2026-09-14T10:00:00Z",
"lastInboundAt": "2026-09-14T10:05:00Z",
"lastMessageAt": "2026-09-14T10:05:00Z",
"optOutAt": null,
"lastTemplateName": "pedido_confirmado"
}Authorizations
Chave de API da Arara (ara_live_...), enviada no header Authorization: Bearer ara_live_.... Crie e gerencie as chaves no painel: https://app.ararahq.com/dashboard/apikeys. O valor completo aparece uma única vez, na criação.
Path Parameters
Telefone E.164 com + (ex. +5511999999999).
Pattern:
^\+[1-9]\d{6,14}$Response
Contato
Estágio do contato: NEW, ENGAGED, SILENT, DORMANT ou OPTED_OUT.
De onde o contato veio (ex. API).
Quando o contato pediu para não receber.
Último template enviado ao contato.