GET
List contact groups
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.
Parameters
Query parameters
cursor
stringoptionalPagination cursor returned by the previous response. Omit to start from the first page.
limit
integeroptional= 50Maximum number of items to return
Request
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())Responses
Response
json
{
"items": [
{
"id": "507f1f77bcf86cd799439011",
"name": "string",
"description": "string",
"color": "string"
}
],
"cursor": "string",
"has_more": false
}Success responses
200List of contact groupsapplication/jsonobject
items[]object[]required
idstringrequired
Unique identifier
namestringrequired
Group name
descriptionstringrequired
Group description
colorstringrequired
Group color
cursorstring | nulloptional
has_morebooleanrequired
Error responses
401Invalid or missing API keyapplication/json403Insufficient permissionsapplication/json429Rate limit exceededapplication/json