Drata API (V1)

Download OpenAPI specification:Download

REST API powering partners and friends 🏄

When importing into Postman, the folders will be organized by Postman’s default hierarchy of Paths. This will appear mismatched with Drata’s developer documentation here. In order for it to match our docs, please change the folder organization to Tags in the Import Settings. See below:

1. Open Postman
2. Click on Import in the top left hand corner
3. Select the swagger file to import but don’t import just yet
4. Once selected, click on View Import Settings
5. Scroll down to Folder organization: it's defaulted to Paths; change this to Tags
6. Click the back arrow to go back to the import screen and click Import
7. Done!

Autopilot

Run an autopilot test by test id

Run an autopilot test

đź”’ Requires Monitoring: Trigger Monitor Test permission.

Securitybearer
Request
path Parameters
testId
required
number
workspaceId
required
number

The Workspace ID associated to the Account

Responses
201

Created

400

Malformed data and/or validation errors

401

Invalid Authorization

402

You must upgrade your plan to use this feature

403

You are not allowed to perform this action

404

Not Found

409

There is a conflict in the business rules with this request

412

You must accept the Drata terms and conditions to use the API

500

Internal server error

post/workspaces/{workspaceId}/autopilot/{testId}/retest
Request samples
Response samples
application/json
{
  • "statusCode": 0,
  • "message": "string",
  • "code": 0,
  • "debugInfo": {
    • "name": "string",
    • "message": "string",
    • "stack": "string"
    }
}