Drata Assets API

Assets let you build an inventory of policies, personnel and computer infrastructure. The [help docs](https://help.drata.com/en/collections/10485424) have more information.

Operations 5

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 /assets List assets · List Assets #
Ask an LLM
“Which assets are assigned to a given user?”
“Can I filter the asset inventory by type or provider?”
Tell an agent
List assets of type {assetType}.
List assets associated with user {userId}.
POST /assets Add an asset manually · Create Asset #
Ask an LLM
“How do I manually add an asset to the inventory?”
“What fields are required when adding an asset by hand?”
Tell an agent
Add asset {name} of type {assetType}, classes {assetClassTypes}, owned by {ownerId}: {description}.
Register a virtual asset {name} with external ID {externalId}, type {assetType}, classes {assetClassTypes}, owner {ownerId}: {description}.
GET /assets/{assetId} Get an asset · Get Asset #
Ask an LLM
“What do we know about one specific asset?”
“Can I look up a single asset by its ID?”
Tell an agent
Get asset {assetId}.
Show asset {assetId} with {expand} expanded.
PUT /assets/{assetId} Update an asset · Update Asset #
Ask an LLM
“How do I reassign an asset to a new owner?”
“Can I edit an asset's notes or description later?”
Tell an agent
Reassign asset {assetId} to owner {ownerId}.
Update the notes on asset {assetId} to {notes}.
DELETE /assets/{assetId} Remove an asset · Remove Asset #
Ask an LLM
“Can removing a manually-added asset be undone?”
“Which assets am I allowed to delete, virtual or manual ones?”
Tell an agent destructive · confirm first
Remove asset {assetId}.
Delete the manually added asset {assetId} from inventory.

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-assets-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-assets-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Drata Assets 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 (62 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/drata/refs/heads/main/openapi/drata-assets-api-openapi.yml