Get the completion of each field
Say, for one template, how many records fill in each of its fields.
A record counts once per field, however many values it holds there. A field added in a later version is counted against the records on the versions that have it.
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 id of the vault.
contacts for people, or the id of an entity type, as GET /entity-types gives it.
The id of the template, as the statistics give it.
One version number. Leave it out to count every version.
lowest puts the least filled fields of each section first, form keeps the order of the form.
Returns
The completion of each field. A vault, an entity type or a template of another account, and a template of another kind, answer 404.
The completion of each field.
Always field_completion.
The figures.
The id of the template counted.
The version counted. Null for every version.
How many records follow it, partial contacts left out.
The sections of the template, each with its fields. Empty when no record follows it.
One section.
What the section is called.
Its fields, in the order asked for.
One field.
The key of the field.
What it is called.
How many records hold at least one value in it. A value set aside does not count.
How many records are on a version that has the field.
filled out of offered_to, rounded. Null when offered_to is 0.
The first version with the field, when some versions counted lack it. Null when every version has it.
How many sensitive fields are left out, because the key does not hold the sensitive fields scope.
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.