Custom Data Records are JSON evidence records pushed to a Custom Connection resource. Use the session management endpoints to batch upload records and track the status of bulk operations. You can create monitors on this data to provide continuous compliance. The help docs have more information.
List Custom Data Records matching the provided filters.
🔒 Requires Custom Connections Management: List Custom Connections permission.
💎 Requires your account have the Custom Connections and Tests 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
Not Found
You must accept the Drata terms and conditions to use the API
Internal server error
{- "data": [
- {
- "id": "employee-001",
- "attributes": {
- "id": "employee-001",
- "name": "John Doe",
- "department": "Engineering",
- "status": "Active"
}, - "sessionId": "session-abc-123",
- "createdAt": "2025-07-01T16:45:55.246Z",
- "updatedAt": "2025-07-01T16:45:55.246Z"
}
], - "pagination": {
- "cursor": "string",
- "totalCount": 0
}
}Create or update Custom Data records for a Custom Connection.
🔒 Requires Custom Connections Data: Create Custom Connection Data permission.
💎 Requires your account have the Custom Connections and Tests feature. Contact your CSM for help upgrading.
required | Array of objects or object The Custom Data record(s) to be created or updated. Can be a single object or an array of objects for bulk upload. Records with matching IDs will be updated; new records will be created. Records will be added grouped under ACTIVE session if one exists. |
Successful
Created
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
Internal server error
{- "data": [
- {
- "id": "employee-001",
- "name": "John",
- "last_name": "Doe",
- "department": "Engineering",
- "status": "Active"
}, - {
- "id": "employee-002",
- "name": "Jane",
- "last_name": "Smith",
- "department": "Sales",
- "status": "Active"
}
]
}{- "id": "fd52f04f-a030-44ea-a5af-40919194ab7e",
- "createdAt": "2020-07-06 12:00:00.000000",
- "updatedAt": "2020-07-06 13:00:00.000000",
- "statusCode": 200,
- "data": {
- "YOUR": "DATA",
- "PROPERTIES": {
- "WILL": "BE_HERE"
}
}
}List Custom Data Sessions matching the provided filters.
🔒 Requires Custom Connections Management: List Custom Connections permission.
💎 Requires your account have the Custom Connections and Tests 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
Not Found
You must accept the Drata terms and conditions to use the API
Internal server error
{- "data": [
- {
- "id": 1,
- "sessionId": "session-abc-123",
- "status": "ACTIVE",
- "createdAt": "2025-07-01T16:45:55.246Z",
- "updatedAt": "2025-07-01T16:45:55.246Z",
- "activatedAt": "2025-07-01T16:45:55.246Z",
- "canceledAt": "2025-07-01T16:45:55.246Z"
}
], - "pagination": {
- "cursor": "string",
- "totalCount": 0
}
}Insert or update Custom Data records in batches using Session Management.
🔒 Requires Custom Connections Data: Create Custom Connection Data permission.
💎 Requires your account have the Custom Connections and Tests feature. Contact your CSM for help upgrading.
required | Array of objects or object The Custom Data record(s) to be created or updated within a session. Can be a single object or an array of objects for bulk upload. Records remain inactive until the session is completed via the session action endpoint. |
Successful
Created
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
Internal server error
{- "data": [
- {
- "id": "employee-001",
- "name": "John",
- "last_name": "Doe",
- "department": "Engineering",
- "status": "Active"
}, - {
- "id": "employee-002",
- "name": "Jane",
- "last_name": "Smith",
- "department": "Sales",
- "status": "Active"
}
]
}{- "id": "fd52f04f-a030-44ea-a5af-40919194ab7e",
- "createdAt": "2020-07-06 12:00:00.000000",
- "updatedAt": "2020-07-06 13:00:00.000000",
- "statusCode": 200,
- "data": {
- "YOUR": "DATA",
- "PROPERTIES": {
- "WILL": "BE_HERE"
}
}
}Perform an action on a Custom Data record Session
🔒 Requires Custom Connections Data: Create Custom Connection Data permission.
💎 Requires your account have the Custom Connections and Tests 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
Not Found
You must accept the Drata terms and conditions to use the API
Unprocessable Entity
Internal server error
{- "action": "complete"
}{- "sessionId": "upload-2024-03-13",
- "status": "ACTIVE",
- "action": "complete",
- "connectionId": 123,
- "resourceId": 456
}Update an existing Custom Data record by ID.
🔒 Requires Custom Connections Data: Create and Update Custom Connection Data permission.
💎 Requires your account have the Custom Connections and Tests 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
Not Found
You must accept the Drata terms and conditions to use the API
The file was too large to upload
Internal server error
{- "data": {
- "employeeId": "EMP-001",
- "name": "Jane Smith",
- "department": "Engineering",
- "startDate": "2024-01-15T00:00:00Z",
- "isActive": true,
- "accessLevel": 3,
- "tags": [
- "engineer",
- "remote"
], - "metadata": {
- "lastReview": "2025-03-01T00:00:00Z"
}
}
}{- "id": "employee-001",
- "attributes": {
- "id": "employee-001",
- "name": "John Doe",
- "department": "Engineering",
- "status": "Active"
}, - "sessionId": "session-abc-123",
- "createdAt": "2025-07-01T16:45:55.246Z",
- "updatedAt": "2025-07-01T16:45:55.246Z"
}Delete a Custom Data Record by ID.
🔒 Requires Custom Connections Data: Delete Custom Connection Data permission.
💎 Requires your account have the Custom Connections and Tests feature. Contact your CSM for help upgrading.
No Content
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
Internal server error
{- "statusCode": 0,
- "message": "string",
- "code": 0,
- "debugInfo": {
- "name": "string",
- "message": "string",
- "stack": "string"
}
}