Hasp entities support 12 field types. Each field has aDocumentation Index
Fetch the complete documentation index at: https://docs.usehasp.com/llms.txt
Use this file to discover all available pages before exploring further.
key (slug), name (display label), type, and optional validation rules.
Summary
| Type | Stored As | Use For |
|---|---|---|
text | string | Short labels, names (max 255 chars) |
textarea | string | Long descriptions, notes (max 5000 chars) |
number | number | Quantities, prices, scores |
boolean | boolean | Yes/no toggles |
select | string | Status, priority (single choice from options) |
multi_select | string[] | Tags, categories (multiple choices) |
date | YYYY-MM-DD | Calendar dates |
datetime | ISO 8601 | Timestamps with time |
email | string | Email addresses (validated format) |
url | string | Web URLs (validated format) |
file | string (fileId) | File attachments |
relation | string (ULID) | Cross-entity reference (record ID) |
select and multi_select must define an options array.
text
Single-line plain text. Max 255 characters.textarea
Multi-line plain text. Max 5000 characters.number
Numeric value — integer or decimal. Optional constraints:min, max, decimal_places (configured in the Schema Builder).
boolean
True/false toggle.select
Single choice from a predefined list. The stored value must exactly match one of the defined options.multi_select
Multiple choices from a predefined list. Stored as an array of strings.date
Calendar date without time. Format:YYYY-MM-DD.
datetime
Date and time with timezone. Format: ISO 8601 (YYYY-MM-DDTHH:mm:ssZ).
url
Web URL. Validated as a properly-formatted URL.file
File attachment. The value stored in the record is afileId ULID returned from the file upload flow. See File Uploads & Downloads.
relation
A reference to a record in another entity within the same app. The stored value is the ULID of the target record.id string. To load the referenced record’s data, call sdk.getRecord(relatedEntityKey, value).
System Fields
Every record automatically includes these read-only fields — never include them in create/update payloads:| Field | Type | Description |
|---|---|---|
id | string (ULID) | Unique record ID |
created_by | string (ULID) | User who created the record |
updated_by | string (ULID) | User who last updated the record |
created_at | datetime | Creation timestamp |
updated_at | datetime | Last update timestamp |
Naming Conventions
- Field keys:
snake_case, lowercase —due_date,is_complete,contact_email - Field names: Title Case — “Due Date”, “Completed”, “Contact Email”
- Entity keys:
snake_case, plural —tasks,contacts,inventory_items - Entity names: Title Case, plural — “Tasks”, “Contacts”