Working with records
IDs
Every record ID has one form: <plural slug>:<id>, such as people:abc123, companies:abc123 or jobs:abc123. Anything else gets this answer, before any data is read:
"…" is not a record ID. IDs look like people:abc123.
Record types and fields
list_objects gives the record types the connection can read, with the slug other tools take as object. list_attributes gives one type's fields, the operators each can be filtered with, the values of select fields, and which fields can be written.
Default fields and requested ones
Tools return a short set of fields by default:
| Type | Default fields |
|---|---|
| People | name, status, current_position, current_company, workflow_phase_status, workflow_stage_status, assigned_to, types, updated_at |
| Companies | name, status, workflow_phase_status, workflow_stage_status, assigned_to, active_job_count, types, updated_at, image_url |
| Jobs | name, status, workflow_phase_status, workflow_stage_status, assigned_to, active_candidate_count, types, updated_at, image_url |
| Custom types | name, status, assigned_to, types, updated_at, image_url, plus up to 10 of the type's own fields |
Every record also has its id and url.
fields replaces the default set, with at most 30 fields. Contact and personal details only appear when a request names them. list_attributes marks these as sensitive.
image_url is a link to the record's logo or photo, and it's only there when the record has one. A person's photo only appears when a request names image_url.
Filters
In search_records, filters is a list of groups, and groups combine with AND. Each group has an op (and, or or not) and its clauses. Each clause has a field, an op from that field's filter_ops, and a value, which is left out for exists and not_exists.
Sorting
search_records takes sort with at most one entry: a field and a direction of asc or desc. list_records takes sort_order.
Paging
Lists return 10 items by default and at most 50.
| Field | Meaning |
|---|---|
limit | How many to return, in the request |
offset | How many to skip, in the request |
next_offset | The offset for the next page, when there may be more. A full last page can still have one, and the next page is then empty |
truncated | true when the result was cut to fit the size cap |
count | The total, on tools that know it |
Text and result size
Long text in a record field is cut at 2,000 characters by default, and at 10,000 when a request names its fields. A whole result is capped at 40,000 characters. See Limits.
