Listar contactos
curl --request GET \
--url https://api.wegluu.com/v1/contacts \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.wegluu.com/v1/contacts', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.wegluu.com/v1/contacts"
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"
}
],
"paging": {
"next": "<string>"
}
}{
"code": "unauthorized",
"message": "La clave de API no existe o fue revocada.",
"request_id": "0193a1c9-51de-7d02-8a44-6f0e2b7c9d31"
}{
"code": "invalid_cursor",
"message": "El cursor de `after` no es válido. Usa el `paging.next` de la página anterior.",
"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
Listar contactos
Todos los contactos del workspace, también los que no tienen chats de WhatsApp, del modificado más recientemente al más viejo. Los filtros se combinan.
GET
/
contacts
Listar contactos
curl --request GET \
--url https://api.wegluu.com/v1/contacts \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.wegluu.com/v1/contacts', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.wegluu.com/v1/contacts"
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"
}
],
"paging": {
"next": "<string>"
}
}{
"code": "unauthorized",
"message": "La clave de API no existe o fue revocada.",
"request_id": "0193a1c9-51de-7d02-8a44-6f0e2b7c9d31"
}{
"code": "invalid_cursor",
"message": "El cursor de `after` no es válido. Usa el `paging.next` de la página anterior.",
"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"
}