Record types: Get
Description
A record type defines the schema for a set of records — the fields to store and how they behave. See Records in the Tines docs to learn more.
Fetch a single record type and its custom fields by numeric ID. To discover record type IDs, use the List record types API.
Request
HTTP Method: GET
| Path parameter | Description |
|---|---|
| id | The ID of the record type to retrieve. |
curl -X GET \
https://<tenant-domain>/api/v2/record_types/<<record_type_id>> \
-H 'content-type: application/json' \
-H 'Authorization: Bearer <<CREDENTIAL.tines_api_key>>'
Response
A successful request returns a JSON object with a data object representing the specified record type.
Field description
The data object contains:
| Field | Description |
|---|---|
| id | Integer ID of the record type. |
| name | The record type name. |
| slug | URL-safe record type identifier. |
| description | The record type description, or null if not set. |
| editable | Whether records of this type can be edited after creation. |
| ttl_days | Number of days after a record's retention_column_name timestamp before the record is deleted, or null when retention is off. |
| retention_column_name | Timestamp used to age records for retention expiry: CREATED_AT or UPDATED_AT. Only meaningful when ttl_days is set. |
| on_limit_reached | Behavior when the record limit is reached: REJECT blocks new records, EVICT_OLDEST deletes the oldest to make room. |
| custom_records_limit | The custom per-type record limit, or null when no per-type limit is set — the tenant-wide ceiling then applies and is reflected in effective_max_records. |
| effective_max_records | The record limit actually enforced: the custom limit clamped to the tenant ceiling, or the tenant ceiling when no custom limit is set. null when the tenant sets no ceiling and no custom limit applies. |
| has_custom_limit | Whether a custom limit below the tenant ceiling is in force for this type. |
| relationships | Object with a team relationship: { "id": <team_id> }, the ID of the team that owns the record type. |
| created_at | ISO 8601 creation timestamp (UTC). |
| updated_at | ISO 8601 last-updated timestamp (UTC). |
| fields | Array of the custom fields defined on this record type, ordered by ID (see below). |
Each object in fields contains:
| Field | Description |
|---|---|
| id | Integer ID of the field. Stable across renames — use it in filters and sorts. |
| name | The field name. |
| slug | URL-safe field identifier. |
| result_type | Field type: TEXT, TEXT_ENUM, TEXT_REGEX, EMAIL, URL, IP_ADDRESS, NUMBER, BOOLEAN, TIMESTAMP, JSON, or ARTIFACT. |
| fixed_values | Allowed values for a TEXT_ENUM field; empty otherwise. |
| description | The field description, or null if not set. |
| config | Field configuration, including regex for TEXT_REGEX or disable_hyperlink for URL; an empty object when the field has no configuration. |
Sample response
{
"data": {
"id": 42,
"name": "Alerts",
"slug": "alerts",
"description": "Firewall alerts",
"editable": false,
"ttl_days": 30.0,
"retention_column_name": "CREATED_AT",
"on_limit_reached": "REJECT",
"custom_records_limit": 100000,
"effective_max_records": 100000,
"has_custom_limit": true,
"relationships": {
"team": {
"id": 7
}
},
"created_at": "2026-07-02T00:00:00Z",
"updated_at": "2026-07-02T00:00:00Z",
"fields": [
{
"id": 101,
"name": "Severity",
"slug": "severity",
"result_type": "TEXT_ENUM",
"fixed_values": ["low", "high"],
"description": "Alert severity",
"config": {}
}
]
}
}
Errors
| Status | Meaning |
|---|---|
| 400 | Invalid request — unknown query parameter. |
| 403 | The tenant does not have access to records. |
| 404 | Record type not found. |
Errors are returned as { "error": { "type", "message", "field"?, "hint"? } }.