Endpoint
Authentication
This endpoint requires authentication via API key. Include your API key in theX-API-Key header:
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
include_attributes | boolean | No | When true, the response also includes the attributes array of mapped fields available for uploads. Defaults to false |
Request Example
Response
Success Response
Status Code:200 OK
Response Fields
| Field | Type | Description |
|---|---|---|
org_fields | array | List of org fields configured for your organization. Each entry is an Org Field Object |
attributes | array or null | List of mapped attributes available for uploads. Present only when include_attributes=true; otherwise null. Each entry is an Attribute Object |
Org Field Object
Each object in theorg_fields array contains:
| Field | Type | Description |
|---|---|---|
org_field_id | integer | Unique identifier of the org field |
name | string | Human-readable name of the field |
field_value_type | string | Type of the field value. One of text, enum, number, boolean, date, clause |
field_scope | string | Scope the field applies to within your organization |
description | string or null | Optional description of the field |
enum_values | array or null | Allowed values when field_value_type is enum; otherwise null |
document_types | array or null | Names of the document types this field applies to, if restricted; otherwise null |
Attribute Object
Each object in theattributes array contains:
| Field | Type | Description |
|---|---|---|
name | string | Name of the mapped attribute |
field_type | string | Type of the attribute. One of text, number, boolean, date, link |
Error Responses
401 Unauthorized
Returned when authentication fails. See the authentication errors section for details.500 Internal Server Error
Returned when the org fields could not be retrieved due to a server error.Notes
Use Cases
This endpoint is useful for:- Field discovery - Look up the org fields configured for your organization and their value types
- Override mapping - Retrieve valid
org_field_idvalues before settingfield_overrideson an upload - Attribute mapping - Discover the mapped attributes available to attach to documents