Drata Tasks API

Tasks are individual units of work that can be assigned to users.

Operations 6

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /workspaces/{workspaceId}/tasks List tasks in a workspace · List Tasks #
Ask an LLM
“Which compliance tasks are assigned to a given person?”
“Can I find tasks due between two dates?”
Tell an agent
List tasks in workspace {workspace}.
Show tasks assigned to {assignee} in workspace {workspace}.
POST /workspaces/{workspaceId}/tasks Create a task · Create Task #
Ask an LLM
“How do I create a follow-up task with a due date?”
“Can a new task be tied to controls, risks or policies?”
Tell an agent
Create task {title} due {due_date} in workspace {workspace}.
Add a task {title} due {due_date} and assign it to {assignee}.
GET /workspaces/{workspaceId}/tasks/{taskId} Get one task · Get Task #
Ask an LLM
“What are the details of a specific task?”
“Can I look up a task by its ID?”
Tell an agent
Get task {task} in workspace {workspace}.
Show me task {task}.
PUT /workspaces/{workspaceId}/tasks/{taskId} Update a task · Update Task #
Ask an LLM
“Can I push back a task's due date?”
“Is it possible to reassign an existing task to someone else?”
Tell an agent
Move the due date of task {task} in workspace {workspace} to {due_date}.
Reassign task {task} to {assignee}.
POST /workspaces/{workspaceId}/tasks/{taskId}/actions Complete or reopen a task · Perform Task Action #
Ask an LLM
“How do I mark a task as done?”
“Can I undo completing a task?”
Tell an agent
Mark task {task} in workspace {workspace} as complete.
Apply action {action} to task {task}.
GET /workspaces/{workspaceId}/upcoming-tasks List upcoming Drata-assigned tasks · List Upcoming Tasks #
Ask an LLM
“What policy renewals and vendor reviews are coming due?”
“Which upcoming tasks has Drata generated for us this quarter?”
Tell an agent
List upcoming tasks for workspace {workspace}.
Show upcoming renewals and reviews in workspace {workspace} due before {to}.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/drata:drata-tasks-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

drata-tasks-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Drata Tasks API
  description: '### What''s New in V2

    - Support for Custom Fields

    - Get and acknowledge user''s assigned policies

    - Payloads are streamlined to include only the essential information. You can expand related objects and collections using the `expand` query parameter.

    - Cursor-based pagination for greater efficiency and stability with large datasets


    ### Getting Started

    Please visit our help article to learn how to create an API key.


    ### Upgrading From Version 1

    API V2 is designed to provide a faster an more flexible way of accessing Drata. There are several differences from V1:

    - The listing endpoints now use **cursor-based pagination**. This provides faster responses and ensures that all records can be retrieved even, if they are changed during the process.


    ```javascript

    async function fetchAll() {

    // The first request doesn''t send a value for the cursor.

    let cursor = undefined;

    do {

    const query = new URLSearchParams({ cursor });

    const resp = await fetch(

    `https://public-api.drata.com/public/v2/users?${query}`,

    {

    method: ''GET'',

    headers: { Authorization: ''Bearer '' }

    }

    );

    const data = await resp.json();

    console.log(data);


    // If there''s a cursor value returned, then there are more results.

    // Pass that back as a query parameter to get the next page of data.

    cursor = data?.pagination?.cursor;

    } while (cursor)

    }

    fetchAll();

    ```

    - You''ll notice smaller responses. Most endpoints accept an `expand` query parameter that let''s you specify which related objects and collections you want to expand.'
  version: V2
  contact: {}
servers:
- url: https://public-api.drata.com/public/v2
- url: https://public-api.eu.drata.com/public/v2
- url: https://public-api.apac.drata.com/public/v2
tags:


# --- truncated at 32 KB (33 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/drata/refs/heads/main/openapi/drata-tasks-api-openapi.yml