GET
Llistat de grups de contactes
Scope:
contacts:contacts.readhttps://api.holded.com/api/v2/contact-groupsReturns a paginated list of contact groups. Results are cursor-paginated: the response includes a `cursor` value and a `has_more` boolean. Pass the `cursor` to the next request to fetch the following page.
Paràmetres
Paràmetres de consulta
cursor
stringopcionalCursor opac per a la paginació. Utilitza el valor retornat a la resposta anterior
limit
integeropcional= 50Nombre màxim d'elements a retornar
Petició
python
import requests
url = "https://api.holded.com/api/v2/contact-groups?cursor=value&limit=50"
headers = {
"Authorization": "Bearer YOUR_API_KEY",
"Accept": "application/json",
}
response = requests.get(url, headers=headers)
print(response.json())Respostes
Resposta
json
{
"items": [
{
"id": "507f1f77bcf86cd799439011",
"name": "string",
"description": "string",
"color": "string"
}
],
"cursor": "string",
"has_more": false
}Respostes exitoses
200Llistat de grups de contactesapplication/jsonobject
items[]object[]required
idstringrequired
Unique identifier
namestringrequired
Group name
descriptionstringrequired
Group description
colorstringrequired
Group color
cursorstring | nulloptional
has_morebooleanrequired
Respostes d'error
401API key no vàlida o no proporcionadaapplication/json403Permisos insuficientsapplication/json429Límit de sol·licituds exceditapplication/json