Custom Field Definitions describe the schema - name, required, type, options, entity placements, and framework scope - of the Custom Fields configured on your account. Use them to discover the option IDs required to write OPTIONS values via the API.
Returns the Custom Field Definitions configured for this account.
🔒 Requires Custom Field Definitions: Get Custom Field Definitions permission.
💎 Requires your account have the Custom Fields and Formulas feature. Contact your CSM for help upgrading.
Successful
Malformed data and/or validation errors
Invalid Authorization
You must upgrade your plan to use this feature
You are not allowed to perform this action
You must accept the Drata terms and conditions to use the API
Internal server error
{- "data": [
- {
- "customFieldId": 42,
- "name": "Regulatory Owner",
- "description": "Team accountable for the item",
- "type": "OPTIONS",
- "isRequired": true,
- "isHidden": false,
- "readOnly": false,
- "entityTypes": [
- "RISK"
], - "currencyCode": "USD",
- "frameworkScope": {
- "frameworkTags": [
- "CUSTOM"
], - "frameworkIds": [
- 0
]
}, - "options": [
- {
- "customFieldOptionId": 1,
- "value": "Security & IT"
}
]
}
], - "pagination": {
- "cursor": "string"
}
}Returns a single Custom Field Definition. The path parameter accepts either the numeric customFieldId or the field name prefixed with name: (e.g. name:Regulatory%20Owner). For durable integrations, store the numeric customFieldId from a previous response and address by ID — names may change if an admin renames the field. The name: form is a convenience for exploratory use and when you only know the name from the admin UI.
🔒 Requires Custom Field Definitions: Get Custom Field Definitions permission.
💎 Requires your account have the Custom Fields and Formulas feature. Contact your CSM for help upgrading.
required | number or string An integer Custom Field Definition ID or the field name prefixed with |
Successful
Malformed data and/or validation errors
Invalid Authorization
You must upgrade your plan to use this feature
You are not allowed to perform this action
Not Found
You must accept the Drata terms and conditions to use the API
Multiple Custom Field Definitions match the provided name. Use the numeric ID.
Internal server error
{- "customFieldId": 42,
- "name": "Regulatory Owner",
- "description": "Team accountable for the item",
- "type": "OPTIONS",
- "isRequired": true,
- "isHidden": false,
- "readOnly": false,
- "entityTypes": [
- "RISK"
], - "currencyCode": "USD",
- "frameworkScope": {
- "frameworkTags": [
- "CUSTOM"
], - "frameworkIds": [
- 0
]
}, - "options": [
- {
- "customFieldOptionId": 1,
- "value": "Security & IT"
}
]
}