Get the pages of a contact
Retrieve what is written on a contact, organised as their page shows it: every page of their template, its sections, and each field with its value.
Each field gives its value twice. value is the wording the contact page shows. input is the same value in the shape Save a section of a contact takes, so what you read can be changed and sent back: input.value goes in fields, input.label_id in labels, input.label_wording in label_wordings, and input.year_is_unknown and input.month_is_unknown under the same keys, each keyed by the id of the field. A field left empty is listed with all three null, so you know it can be filled.
What input.value holds depends on the type of the field. A text, a long text, an url, an email and a phone give a string. A number gives a number, and a duration a number of minutes. A yes or no gives true or false. A date gives YYYY-MM-DD: when year_is_unknown is true, the year is a placeholder and only the day and the month are known. A single choice gives the id of the item picked, and a multiple choice an array of ids. An address gives an object of po_box, extended, street, city, region, postal_code and country, where country is the two letter code, or an empty country and a country_name for a place that is not on the list. A relation gives the id of the contact or the entity it names.
A repeating field, such as phone numbers, gives its rows in the order they are stored, each with its id and the fields of the row shaped like any other field. Send them back in the same order, each with its id, to keep them as they are. A file, an image or an avatar gives the file it holds in file, and no input, since a file cannot be sent through the API.
To draw a field without reading its wording, a field also gives what its type needs: choices for a multiple choice, address_lines for an address, reminder for a date a reminder follows, record for a relation, and for a file its mime_type, size and content, the address Read the content of a contact's file answers at. A divider, a heading and a help text are listed in their place with stores_value set to false: they hold no value, and a client that only shows values can skip them.
Values of fields marked sensitive are withheld unless the token presented carries the sensitive fields scope: the field is listed with is_hidden set to true, and value, input, choices, address_lines, reminder, record, file and rows set to null.
Reading the pages is not written to your account log, and it does not count as somebody having consulted the record.
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.
Path 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.
The contact, named either by the readable name it reports as slug or by its id. Both answer. A readable name is rebuilt whenever the record is renamed, and the previous one stops answering, so a client that stores a reference stores the id. A name a record has released is never given to another. The contact has to be in the vault the path names: a contact of yours addressed through the wrong vault answers 404, the same as one that never existed. A contact absorbed by a merge answers 404 here, and the merge endpoints say what became of them.
Returns
The pages of the contact. A contact belonging to somebody else answers 404, and so does one of your own addressed through the wrong vault.
The pages of the contact.
Always contact_pages. It names the kind of record, so a caller holding several kinds can tell them apart without looking at where they came from.
The id of this record, as a string even when it reads as a number. It is what every endpoint naming this record takes.
Everything the record holds.
The template version the pages come from, the one the contact renders from.
The pages of the template, in the order the contact page shows them as tabs. The Overview and Relationships tabs are not pages of a template and are not here.
One page.
The id of the page in the template version.
The key of the page, which the address of its tab carries.
What the tab is called.
Where the page sits, counting from 1.
Its sections, in the order the page shows them. Empty when the page holds none.
One section.
The id of the section, the one Save a section of a contact takes.
What the section is called on this template, which may be a name given to it for this template only.
Where the section sits on its page.
Its fields, in order. A divider, a heading and a help text are listed in their place too: they hold no value, and stores_value says so.
One field.
The id of the field, the key a value is sent under when the section is saved.
The key of the field inside its section.
What the field is called.
The kind of field: text, textarea, number, boolean, url, email, phone, select, multiselect, radio, date, recurring_date, duration, relation, file, image, avatar, address, repeater, divider, heading or help.
Whether the field has to hold a value.
Whether the field is marked sensitive.
True when the field is sensitive and the token presented does not carry the sensitive fields scope. Its value, value_label, unlabelled_value, input, choices, address_lines, reminder, record, file and rows are then null.
False for a divider, a heading and a help text, which only shape the page: their value, value_label, unlabelled_value, input, choices, address_lines, reminder, record, file and rows are null, and Save a section of a contact ignores them.
The help written for the field on the template, or null. For a help text, the words it shows.
The value as the contact page shows it, in the formats of the person asking, or null when the field holds nothing.
For an email, a phone or an address, its label: the wording typed, else the item picked in its list. It is the text value shows in brackets. Null for any other field, and when the value has no label.
For an email, a phone or an address, the value as the contact page shows it without its label: the address on one line, a phone grouped. Null for any other field, and when the field holds nothing.
The value as Save a section of a contact takes it back, or null when the field holds nothing, holds a file or is a repeating field. It holds value (sent in fields), label_id and label_wording (sent in labels and label_wordings, set for an email, a phone or an address only), and year_is_unknown and month_is_unknown (sent under the same keys). What value holds depends on the type of the field, as described above.
For a multiple choice, the labels of the items picked, in the order of their list. Null for any other field, and when nothing is picked.
For an address, its lines in the layout of its country, as the contact page draws them. Null for any other field, and when the address is empty.
For a date or a yearly date at the top of a section, what the active reminder that follows it does, in the words the contact page shows. Null when no active reminder follows it, and for any other field.
For a relation, who or what it points to: type (contact or entity), id, name, and for a contact its initials, avatar_colour and is_partial, for an entity the name of its entity_type. The keys that do not apply are null. Null for any other field, and when the relation points to nothing.
For a file, an image or an avatar, the file it holds: its id, its name, the url the application shows it at, its mime_type, its size in bytes, and content, the address Read the content of a contact's file answers at with a key. Null otherwise.
For a repeating field, its rows in the order they are stored, each with its id, its position and fields, the fields of the row shaped like this one. Null for any other field.
Where to find this record.
The absolute address this record is read from.
The page of the contact in the application, which opens for somebody signed in rather than for a key. It is the link to give a person.
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.