Prerequisites
- A Drata Admin account. Only Admins can open Settings → API Keys.
- Your Drata region: US (
app.drata.com), EU (app.eu.drata.com), or APAC (app.apac.drata.com). - A Drata admin has accepted Drata’s terms for your account. Drata refuses API requests until they do.
- Edit permission on connections in your CloudThinker workspace.
Setup
Create an API key in Drata
- Name:
cloudthinker. You can’t change the name later. - Expiration date: 12 months (the default), a custom date, or Never.
- Allowed IP addresses: add CloudThinker’s egress IPs, or leave the field empty. A key limited to other addresses fails the connection test. These docs don’t publish CloudThinker’s egress IP list: ask your CloudThinker contact, or contact us.
- Access: All read to investigate only, or All read and write to let agents make approved changes.
Open Drata in CloudThinker
Enter the key and region
- API key: the key you copied.
- Region: pick the region of your Drata account from the dropdown.
Drata connection verified (<your company>, <REGION>).Connection details
Required permissions
Agent capabilities
Verify the connection
Start a chat, type# and pick Drata, then ask:
Example prompts
Write access
A key with All read and write lets agents change:- Evidence and policies
- Controls and control owners
- Personnel
- Vendors and risks
- Tasks, notes, and custom data
- Reads run without approval.
- Before it asks, the agent reads the current record and tells you what will change.
- It warns you when the change can’t be undone, such as deletes, background checks, retests, personnel and policy actions, and imports.
- After the change, it reads the record back and reports whether the change is confirmed.
Troubleshooting
Accordion titles written as full sentences that end in a period are the exact messages CloudThinker shows when the connection test fails.Drata rejected the API key. Check that it was copied whole, that it has not expired or been revoked in Settings > API Keys, and that the region matches your Drata tenant.
Drata rejected the API key. Check that it was copied whole, that it has not expired or been revoked in Settings > API Keys, and that the region matches your Drata tenant.
Drata accepted the key but refused the request. Check the key's scopes and its IP allowlist in Settings > API Keys.
Drata accepted the key but refused the request. Check the key's scopes and its IP allowlist in Settings > API Keys.
Drata refused the request because the tenant has not accepted Drata's terms. A Drata admin must sign in and accept them, then test again.
Drata refused the request because the tenant has not accepted Drata's terms. A Drata admin must sign in and accept them, then test again.
Drata rate-limited the test. The limit is 500 requests per minute per source IP, so wait a minute and test again.
Drata rate-limited the test. The limit is 500 requests per minute per source IP, so wait a minute and test again.
Could not reach the Drata API. Check network access.
Could not reach the Drata API. Check network access.
Drata answered, but did not name the company for this API key. Create a new key in Settings > API Keys, then test again.
Drata answered, but did not name the company for this API key. Create a new key in Settings > API Keys, then test again.
Choose a Drata region: us, eu, or apac.
Choose a Drata region: us, eu, or apac.
An agent says a Drata section is not on this plan
An agent says a Drata section is not on this plan
Security
- Least privilege — grant only the permissions the agents need for your use case; start read-only and widen later.
- Read-only by default — use read-only credentials unless you want agents to make changes through this connection.
- Rotate credentials — rotate keys and tokens on your normal schedule; CloudThinker picks up the new value when you update the connection.
- Revoke on offboarding — remove the credential at the provider when you delete a connection or a teammate leaves.
- Use a dedicated key. Name it
cloudthinker, so you can see its last use in Settings → API Keys and revoke it without affecting other tools. - Rotate before expiry. Keys expire after 12 months by default. Create a new key and update the connection before then.