The Records API is schema-driven. Record types and their fields can vary by tenant, so integrations should discover the available types and retrieve the schema for each type before reading records.
| Name | Type | Format | Nullable | Description | Example |
|---|---|---|---|---|---|
id | integer | — | Yes | Custom record-type identifier. | 42 |
name | string | — | No | Stable name used in API paths. | "vendor" |
displayName | string | — | No | Human-readable type name. | "Vendor" |
description | string | — | Yes | Type description. | "External vendors and suppliers" |
isCustom | boolean | — | No | Whether the tenant defined this type. | true |
active | boolean | — | Yes | Whether the type is active. | true |
fields | array | FieldDefinition | Yes | Field schema for the type. | — |
recordsUrl | string | URI path | Yes | Endpoint for records of this type. | "/api/v1/records/vendor" |
schemaUrl | string | URI path | No | Endpoint for the type's field schema. | "/api/v1/records/schema/vendor" |
The schema endpoint is authoritative. A field definition can include the following properties in addition to type-specific validation properties.
| Name | Type | Format | Nullable | Description | Example |
|---|---|---|---|---|---|
name | string | — | No | Stable field name used in record payloads. | "legalName" |
displayName | string | — | Yes | Human-readable field name. | "Legal name" |
type | string | — | No | Field data type. | "string" |
required | boolean | — | No | Whether callers must provide the field. | true |
nullable | boolean | — | Yes | Whether the field accepts null. | false |
description | string | — | Yes | Field description or usage hint. | "Registered legal name" |
example | string | — | Yes | Example field value. | "Acme Supplies LLC" |
enumValues | array | string | Yes | Allowed values for an enum field. | ["ACTIVE", "INACTIVE"] |
foreignKey | object | — | Yes | Referenced record type and field. | {"recordType":"Client","field":"id"} |
Record fields are returned according to the selected type's schema. Use the type's schemaUrl; there is no single static field list shared by all custom record types.