Skip to main content

Documentation Index

Fetch the complete documentation index at: https://developer.vanta.com/llms.txt

Use this file to discover all available pages before exploring further.

The Build Integrations API is for applications that send data into Vanta on behalf of a customer. It powers Vanta’s marketplace integrations and any private connector you build for your own tenant. Use it to ingest user accounts, devices, vulnerabilities, training records, background checks, and arbitrary custom resources.

Who is this API for?

This API is the only Vanta API available to partners and is the right choice for any app that ships data into Vanta.
You are…Use this API to…
A partner / ISV building a marketplace integrationPush your product’s data (user accounts, devices, vulnerabilities, etc.) into your customers’ Vanta tenants. This is the only API partners can use — partners cannot access the Manage Vanta API.
A Vanta customer building a private integrationConnect a homegrown app, on-prem system, or unsupported SaaS tool to your own Vanta tenant.
A Vanta customer syncing data Vanta doesn’t natively coverDefine a custom resource and feed it into Vanta to layer Custom Tests on top.
Automating workflows inside your own Vanta tenant — assigning control owners, querying tests, managing vendors and personnel? Use the Manage Vanta API instead. (Note: the Manage Vanta API is not available to partners.)

When to use this API

Reach for Build Integrations endpoints when you want to:
  • Publish a public integration to the Vanta marketplace so any Vanta customer can connect your tool.
  • Build a private integration for a homegrown app, on-prem system, or unsupported SaaS tool inside your own tenant.
  • Sync resources Vanta doesn’t natively support via custom resources, then layer Custom Tests on top.
  • Upload file-based evidence on a customer’s behalf to satisfy evidence requests.
New here? Walk through the Build a Private Integration quickstart to get OAuth-authorized and push your first resource end to end.

Authentication

All Build Integrations apps authenticate with OAuth 2.0 at the same token endpoint. The grant type depends on how your app is distributed:
  • Private integration — single-tenant, used only inside your own Vanta account. Uses client_credentials. Start here if you’re building for your own tenant.
  • Public integration — listed in the Vanta marketplace, installable by any customer. Uses authorization_code with refresh tokens, one set per customer authorization.
EndpointPOST /oauth/token
Base URLhttps://api.vanta.com  ·  https://api.vanta-gov.com
Content-Typeapplication/json

Private integrations

Grant Type: client_credentials Your server holds the client_id / client_secret and exchanges them directly for an access_token scoped to your own Vanta tenant. Request body
FieldTypeRequiredDescription
client_idstringyesOAuth client ID from your Build Integrations app.
client_secretstringyesOAuth client secret from your app.
scopestringyesSpace-separated list of Build Integrations scopes.
grant_typestringyesclient_credentials
curl --request POST 'https://api.vanta.com/oauth/token' \
  --header 'Content-Type: application/json' \
  --data '{
    "client_id": "vci_your_client_id",
    "client_secret": "vcs_your_client_secret",
    "scope": "connectors.self:write-resource connectors.self:read-resource",
    "grant_type": "client_credentials"
  }'
Response
{
  "access_token": "vat_...",
  "expires_in": 3600,
  "token_type": "Bearer"
}
No refresh_token is issued. Requesting a new token with the same client_id / client_secret immediately revokes the previous one — re-mint just before each sync run. To revoke access, rotate the client_secret in the Developer Console (this invalidates active tokens immediately) or delete the application. For the full step-by-step setup, see the Build a Private Integration quickstart.

Public integrations

Grant Type: authorization_code A customer authorizes your app in the browser at https://app.vanta.com/oauth/authorize, and Vanta redirects back to your redirect_uri with a short-lived code (valid for 30 seconds). Your server then exchanges the code for a per-customer access_token + refresh_token pair.
The authorize redirect is the only flow that touches app.vanta.com — all token exchanges and API calls go to api.vanta.com. For Vanta Gov, use app.vanta-gov.com and api.vanta-gov.com. For the full authorize-redirect flow (including state validation and source_id semantics), see the Build a Public Integration quickstart.
Request body
FieldTypeRequiredDescription
client_idstringyesOAuth client ID from your public app.
client_secretstringyesOAuth client secret from your application.
codestringyesAuthorization code from the redirect callback. Expires 30 seconds after issuance.
source_idstringyesMust match the source_id you sent on the initial authorize redirect — your internal account identifier for the user.
redirect_uristringyesMust exactly match the redirect_uri you sent on the initial authorize redirect, and must be registered in the Developer Console.
grant_typestringyesauthorization_code
curl --request POST 'https://api.vanta.com/oauth/token' \
  --header 'Content-Type: application/json' \
  --data '{
    "client_id": "vci_your_client_id",
    "client_secret": "vcs_your_client_secret",
    "code": "vac_authorization_code_from_callback",
    "source_id": "acct1234",
    "redirect_uri": "https://partner-app.com/oauth/callback",
    "grant_type": "authorization_code"
  }'
Response
{
  "access_token": "...",
  "refresh_token": "...",
  "expires_in": 3600,
  "token_type": "Bearer"
}
Store both tokens encrypted at rest, keyed on your internal customer identifier (the same value you used as source_id). Each customer authorization is independent — re-running the flow for the same source_id revokes that customer’s previous tokens, but different customers get separate, isolated token pairs.

Refreshing the token

When the access token expires (1 hour), exchange the refresh_token for a new pair. Every refresh rotates the refresh_token; the previous one stays valid for 3 hours to tolerate transient failures — persist the new one immediately.
FieldTypeRequiredDescription
client_idstringyesOAuth client ID.
client_secretstringyesOAuth client secret.
refresh_tokenstringyesThe current refresh token for this customer.
grant_typestringyesrefresh_token
cURL
curl --request POST 'https://api.vanta.com/oauth/token' \
  --header 'Content-Type: application/json' \
  --data '{
    "client_id": "vci_your_client_id",
    "client_secret": "vcs_your_client_secret",
    "refresh_token": "your_refresh_token",
    "grant_type": "refresh_token"
  }'
Returns the same 200 OK response shape as the initial exchange (new access_token + new refresh_token).
Configure automatic retries on 5xx responses and network errors during refresh. If your refresh handler crashes after issuing the request but before saving the new refresh_token, the old one still works for up to 3 hours — but only if you actually retry.

Revoking access

When a customer disconnects your integration on your side, call the Suspend API so Vanta cleans up its side and revokes the tokens.
EndpointPOST /v1/oauth/token/suspend
Base URLhttps://api.vanta.com  ·  https://api.vanta-gov.com
Content-Typeapplication/json
FieldTypeRequiredDescription
tokenstringyesThe access or refresh token to revoke.
client_idstringyesOAuth client ID. Must match the application that minted the token.
client_secretstringyesOAuth client secret.
cURL
curl --request POST 'https://api.vanta.com/v1/oauth/token/suspend' \
  --header 'Content-Type: application/json' \
  --data '{
    "token": "access_or_refresh_token_to_revoke",
    "client_id": "vci_your_client_id",
    "client_secret": "vcs_your_client_secret"
  }'
Returns 200 OK with an empty body {}. Idempotent — calling it on an already-revoked token still returns 200. Returns 401 if the token doesn’t belong to this client_id. For grant-type tradeoffs, credential hygiene, and the rest of the foot-guns, see Authentication concepts.

Scopes

ScopeGrants
connectors.self:write-resourcePush resources into customer Vanta accounts.
connectors.self:read-resourceRead resources you previously pushed (useful for debugging).
self:write-documentUpload file-based evidence on a customer’s behalf.
self:read-documentQuery evidence requests you previously responded to.
Most integrations request the first two. Add the document scopes only if your integration uploads evidence files.

Base URL

Use https://api.vanta.com, or https://api.vanta-gov.com if you’re on Vanta Gov. See Base URLs for details.

Resource model

Build Integrations endpoints follow a resource_type pattern:
MethodEndpointUse
PUT/v1/resources/<type>Idempotent upsert by uniqueId. Push the full set of resources you own on a periodic schedule (typically hourly).
GET/v1/resources/<type>Read back resources you previously pushed. See Pagination for response shape.
PUT is a “state of the world” sync — any resource you previously pushed but omit from a later PUT is treated as deleted. There is no separate DELETE endpoint. PUT is safe to retry on network errors; to sync a large dataset, batch resources into multiple PUT calls. See the resource endpoints in the sidebar for the full list of supported types and their schemas. For anything not natively supported, use the custom resource type.

Pagination

Build Integrations GET /v1/resources/<type> endpoints are not paginated. Each request returns the full list of resources for the given type in a single resources array:
{
  "resources": [ /* ... */ ]
}
There are no pageSize, pageCursor, or pageInfo fields. To sync a large dataset, use the corresponding PUT /v1/resources/<type> endpoint to push resources to Vanta in batches.

Rate limits

Endpoint groupLimit
Build Integrations endpoints20 / minute per access token
OAuth (/oauth/token)5 / minute
Exceeding a limit returns 429 Too Many Requests. Back off and retry after a short delay.

Common workflows

Build a private integration

Single-tenant integration for your own Vanta account, end to end.

Build a public integration

Partner flow: register, OAuth, push resources, list in the marketplace.

Resources

Deep dive on the resource lifecycle, idempotency model, and custom resources.

OpenAPI specification

Download the Build Integrations OpenAPI spec

Generate clients, import into your favorite tool, or browse the schema offline.

Tools

Postman Collection

Import the collection to explore endpoints quickly.

AI Skills

Add skills that give Cursor, Claude Code, and other AI agents Vanta-specific context.