The Control Library is a catalog of pre-built Control Templates that can be provisioned into a Workspace. Each item carries default mappings to Tests, Policies, Evidence, and Framework Requirements.
Returns a paginated list of Control Templates with optional field and relational filters.
🔒 Requires Controls: List Controls permission.
💎 Requires your account have the Custom Frameworks 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": [
- {
- "id": 1042,
- "code": "DCF-42",
- "controlNumber": 42,
- "name": "Access Control Policy",
- "description": "Documented policy describing access controls...",
- "question": "Does the company enforce documented access controls?",
- "activity": "Review and approve access requests at least quarterly.",
- "domain": "DATA_AND_PRIVACY",
- "category": "CUSTOMER_DATA_POLICIES",
- "inUse": true
}
], - "pagination": {
- "cursor": "string",
- "totalCount": 0
}
}Returns a single Control Template by id with optional expand-gated relations.
🔒 Requires Controls: List Controls permission.
💎 Requires your account have the Custom Frameworks 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
{- "id": 1042,
- "code": "DCF-42",
- "controlNumber": 42,
- "name": "Access Control Policy",
- "description": "Documented policy describing access controls...",
- "question": "Does the company enforce documented access controls?",
- "activity": "Review and approve access requests at least quarterly.",
- "domain": "DATA_AND_PRIVACY",
- "category": "CUSTOMER_DATA_POLICIES",
- "inUse": true,
- "testTemplates": [
- {
- "id": 305,
- "name": "MFA Enabled Across Workforce",
- "description": "Verifies multi-factor authentication is enabled for all workforce identities.",
- "rating": "RECOMMENDED",
- "source": "DRATA"
}
], - "policyTemplates": [
- {
- "id": 201,
- "name": "Access Control Policy",
- "description": "Documents the company approach to provisioning, reviewing, and revoking access..."
}
], - "evidenceTemplates": [
- {
- "id": 412,
- "evidenceTemplateCode": "DEC-12",
- "name": "Quarterly Access Review",
- "requestDescription": "Upload a signed copy of the most recent quarterly access review.",
- "implementationGuidance": "Export the access list from your IdP and have a Control owner sign-off."
}
], - "requirementTemplates": [
- {
- "id": 501,
- "name": "CC6.1",
- "description": "The entity implements logical access security software, infrastructure, and architectures...",
- "longDescription": "Extended narrative covering scope and exceptions...",
- "additionalInfo": "Additional context for auditors.",
- "additionalInfo2": "string",
- "additionalInfo3": "string",
- "framework": {
- "slug": "soc2",
- "name": "SOC 2"
}
}
], - "controlsUsingTemplate": [
- {
- "controlId": 8801,
- "code": "DCF-042",
- "workspaceId": 100,
- "workspaceName": "Production"
}
]
}Provisions one or more tenant Controls from Control Library templates. All-or-nothing semantics: any invalid spec rejects the whole request with no writes. Each provisioned Control includes the template default mappings (tests, policies, evidence, requirements).
🔒 Requires Controls: Create Control permission.
💎 Requires your account have the Custom Frameworks feature. Contact your CSM for help upgrading.
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
You must accept the Drata terms and conditions to use the API
Internal server error
{- "data": [
- {
- "workspaceId": 100,
- "templateId": 1042,
- "name": "Quarterly User Access Reviews",
- "description": "Access to critical systems is reviewed on a quarterly basis to ensure that only authorized users retain access.",
- "question": "Is the access review performed on a quarterly basis?",
- "activity": "On a quarterly schedule, generate access reports from identity providers.",
- "customFields": [
- {
- "id": 1,
- "name": "Compliance Status",
- "value": "Security & IT"
}
]
}
], - "allowDuplicates": false
}{- "data": [
- {
- "inputIndex": 0,
- "templateIdentifier": 0,
- "workspaceId": 0,
- "controlId": 0,
- "code": "DCF-042",
- "status": "created",
- "failureReason": "string",
- "associations": {
- "tests": {
- "created": [
- 0
], - "mapped": [
- 0
], - "failures": [
- {
- "identifier": 0,
- "reason": "string"
}
]
}, - "policies": {
- "created": [
- 0
], - "mapped": [
- 0
], - "failures": [
- {
- "identifier": 0,
- "reason": "string"
}
]
}, - "evidence": {
- "created": [
- 0
], - "mapped": [
- 0
], - "failures": [
- {
- "identifier": 0,
- "reason": "string"
}
]
}, - "requirements": {
- "created": [
- 0
], - "mapped": [
- 0
], - "failures": [
- {
- "identifier": 0,
- "reason": "string"
}
]
}
}, - "customFields": [
- {
- "customFieldId": 1,
- "name": "Stakeholders",
- "value": "Security & IT"
}
]
}
]
}