Count contacts
Count the people list_contacts returns for the same filters (q, channelType, agentId, handling, lastContactedAfter), up to 10,000: capped then says at least that many match. Use it to answer how many people match instead of paging through the list.
- Scopes: any one of
raiz:contacts:read,raiz:contacts:write - Credentials: an API key, a client-credentials token or a person's access token
- Effect: read-only; safe to retry
- Limits: response up to 1 MB
- CLI:
arbol raiz contacts count· MCP tool:raiz_contacts_count
GET
https://api.getarbol.com/v1/raiz/contacts/countAuthorization
Query parameters
- qoptionalstring
Search by name (words in any order, ignoring accents and case), channel profile name, username, phone, email, identity document or contact id. Phone and document formatting is ignored; partial numbers match, including a phone without its country prefix. Searches saved identities, not people merely mentioned in messages.
maxLength: 200 · minLength: 1
Returns
200
Successful operation.
502
OUTCOME_UNKNOWN: The operation may have been applied; check its result before repeating it.
503
UPSTREAM_UNAVAILABLE: The upstream service could not complete the request.INTEGRATIONS_UNAVAILABLE: The organization's integrations cannot be read right now. Try again shortly.