Saltar al contingut principal
GET

Llistat de grups de contactes

Scope:contacts:contacts.read
https://api.holded.com/api/v2/contact-groups

Returns 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

cursorstringopcional

Cursor opac per a la paginació. Utilitza el valor retornat a la resposta anterior

limitintegeropcional= 50

Nombre 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/json
object
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/json
403Permisos insuficientsapplication/json
429Límit de sol·licituds exceditapplication/json