List the categories held in a vault
List the categories somebody in a vault holds, with how many people hold each, which is what the people screen offers to narrow its list with.
A category is a choice of your list of contact categories, which every vault of the account shares. Only the categories somebody in the vault holds are listed, in the order of the list, and a category that is no longer offered is still listed while somebody holds it. A person holding a category in two fields counts once.
This endpoint answers GET and QUERY alike, and both return the same answer. GET sends the parameters in the address, QUERY in the request body. How QUERY works.
Parameters
Path parameters go in the address. GET sends the others in the address too, QUERY sends them as JSON in the request body. Anything not listed here is ignored.
The vault the contact lives in, named either by the readable name it reports as slug or by its id. Both answer.
Count only the people of one grouping: all, favourites or names-only.
Returns
Every category held in the vault, with how many people hold it. A vault belonging to somebody else answers 404.
The categories, in the order of the list.
One category.
Always contact_category.
The id of the category, which the list of contacts filters on.
What the category is.
What the category is called.
False when the category is no longer offered. It stays on the people who hold it.
How many people of the vault hold it.
Status codes
Every code the API answers with, and what the body holds when it does.
| Code | When | Body |
|---|---|---|
| 422 Unprocessable Content | With QUERY, a parameter was sent both in the address and in the body. | A message, and an errors object naming each parameter sent twice. |
Rate limit
Sixty requests per minute, per user, shared by every key and device. Every answer carries the budget left in X-RateLimit-Remaining.
Keys act as you, with exactly the access you have. Make one per integration so you can revoke it alone.