Prerequisites
- A Drata Admin account. Only Admins can open Settings → API Keys.
- Your Drata region: North America, Europe, or Asia-Pacific.
- A Drata admin who has accepted Drata’s terms for your account. Drata refuses API requests until they do.
Setup
Create an API key in Drata
- Name:
cloudthinker. You cannot change the name later. - Expiration date: 12 months (the default), a custom date, or Never.
- Allowed IP addresses: leave empty. A key limited to other addresses fails the connection test.
- Access: All read to investigate only, or All read and write to let agents make approved changes.
Add the connection in CloudThinker
- API key: the key you copied
- Region: the region of your Drata account
Connection details
Required permissions
Agent capabilities
Verify the connection
Example prompts
Write access
A key with All read and write lets agents change evidence, policies, controls and control owners, personnel, vendors, risks, tasks, notes, and custom data. Reads run without approval. Every change waits for your approval. Before it asks, CloudThinker reads the current record and tells you what will change. It warns you when the change cannot be undone, such as deletes, background checks, retests, personnel and policy actions, and imports. After the change, CloudThinker reads the record back to confirm it. Agents make one change per approval, and do not retry a change that times out. Agents cannot upload files, or change your AWS, Azure, GCP, or GitLab connections in Drata. Make those changes in the Drata app.Troubleshooting
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.