Value Types
Public API v2 reads are self-describing. Attribute values are returned in a value envelope:value_type tells clients how to render, edit, filter, and validate the value.
Common value types
| Value type | Used for |
|---|---|
string, long_text, rich_text | Text values |
number, percent, currency | Numeric values |
boolean | True or false values |
timestamp, date, time | Date and time values |
email, phone_number, url, uuid | Formatted scalar values |
select, contact_stage, account_stage, opportunity_stage | Select options and stages |
record_reference | References to other records |
contact_email, contact_phone_number, address, account_domain | Compound values |
Reading values
Reads always includevalue_type and value.
Writing values
Writes usually send raw values insideattributes.
Filtering values
Filtering depends on the value type. For example:- Text-like values use
contains,starts_with, andends_with. - Numeric and time values use
gt,gte,lt,lte, andbetween. - References and select-like values commonly use
eq,ne,in, andnot_in.
GET /api/v2/_schema/{record_type} to discover field-level filterability and sortability.