Consultar un contacto
curl --request GET \
--url https://api.wegluu.com/v1/contacts/{id} \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.wegluu.com/v1/contacts/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.wegluu.com/v1/contacts/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"email": "<string>",
"phone_number": "<string>",
"whatsapp": [
{
"channel_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"profile_name": "<string>",
"phone_number": "<string>",
"business_scoped_user_id": "<string>",
"parent_business_scoped_user_id": "<string>",
"username": "<string>"
}
],
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
}{
"code": "unauthorized",
"message": "La clave de API no existe o fue revocada.",
"request_id": "0193a1c9-51de-7d02-8a44-6f0e2b7c9d31"
}{
"code": "contact_not_found",
"message": "No hay un contacto con ese id en este workspace.",
"request_id": "0193a1c9-51de-7d02-8a44-6f0e2b7c9d31"
}{
"code": "rate_limited",
"message": "Superaste el límite de 120 llamadas por minuto con esta clave.",
"request_id": "0193a1c9-51de-7d02-8a44-6f0e2b7c9d31"
}Contactos
Consultar un contacto
GET
/
contacts
/
{id}
Consultar un contacto
curl --request GET \
--url https://api.wegluu.com/v1/contacts/{id} \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.wegluu.com/v1/contacts/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.wegluu.com/v1/contacts/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"email": "<string>",
"phone_number": "<string>",
"whatsapp": [
{
"channel_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"profile_name": "<string>",
"phone_number": "<string>",
"business_scoped_user_id": "<string>",
"parent_business_scoped_user_id": "<string>",
"username": "<string>"
}
],
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
}{
"code": "unauthorized",
"message": "La clave de API no existe o fue revocada.",
"request_id": "0193a1c9-51de-7d02-8a44-6f0e2b7c9d31"
}{
"code": "contact_not_found",
"message": "No hay un contacto con ese id en este workspace.",
"request_id": "0193a1c9-51de-7d02-8a44-6f0e2b7c9d31"
}{
"code": "rate_limited",
"message": "Superaste el límite de 120 llamadas por minuto con esta clave.",
"request_id": "0193a1c9-51de-7d02-8a44-6f0e2b7c9d31"
}