Developers

The Drel API & MCP server.

A small, read-only API and an MCP server that expose each AI security review's security approval, required controls, findings, and sign-off state to your dashboards, CI checks, and coding agents.

OpenAPI specification

Full machine-readable schema for the REST API and the MCP JSON-RPC endpoint — endpoints, parameters, response shapes, error codes.

View /openapi.json

MCP server

Streamable HTTP MCP server exposing the security approval status of each sealed review as resources, so coding agents can ask for it. Connect Claude Code, Cursor, or Windsurf directly.

Connect a client

API keys

Generate and rotate your Drel API key — the same key authenticates both the REST API and the MCP server. An API key acts as you: it returns the sealed reviews in the organizations you belong to whose plan includes API keys (Professional, Team, Enterprise) and in your personal account. A review marked restricted is included only if you created it, are an admin of its organization, or are listed on it. Lists leave out reviews archived in Drel; reading one by its id still works.

Manage API keys

llms.txt

A structured index of every public Drel page, written for language models rather than search crawlers.

View llms.txt

Authentication

How to authenticate: an unscoped API key, sent as a bearer token. OAuth 2.0 is not yet available.

View /auth.md

API catalog

RFC 9727 machine-readable catalog of Drel's APIs (REST + MCP), for tooling that discovers APIs by crawling /.well-known/.

View /.well-known/api-catalog

MCP Server Card

Structured MCP server metadata (SEP-1649) — serverInfo, transport, capabilities — for clients that discover MCP servers this way.

View server-card.json

Agent Skills

How an agent should use Drel to check or request an AI Security Review — when to reach for it, the read path, and what not to infer.

View skills index
Quickstart

Four steps, about ten minutes.

1. Generate an API key

In your workspace, open Settings → API key and generate a key. It's shown once: save it. The same key works for the REST API, the CI gate and the MCP server. API keys come with the Professional, Team and Enterprise plans; if your organization lets only admins use keys, an admin generates it. For a CI gate on a repository with restricted reviews, use an admin's key: a review the key can't open fails the gate.

2. Call the REST API

Your sealed reviews, newest first:

curl https://app.drel.ai/api/public/v1/cases \
  -H "Authorization: Bearer drel_pk_..."

3. Gate a deploy in CI

In Drel, link the repository to its review (Link the repository under a control's automatic check, or Link a repository in a sealed review's header). The CI gate answers pass, neutral or fail for the reviews linked to it:

curl -G https://app.drel.ai/api/public/v1/ci-gate \
  --data-urlencode "repository=acme/payments" \
  -H "Authorization: Bearer drel_pk_..."

In GitHub Actions, store the key as a secret named DREL_API_KEY and put this step in the deploy job, before the deploy. It fails the job while the review is on hold, declined, expired, blocked or waiting on a re-review, and when Drel can't answer. It prints only the outcome, so it is safe in a public repository's log. Add --data-urlencode "strict=true" to fail until the review is cleared, onNoLinkedReview=fail to fail a repository with no linked review, or allow=pilot for a pilot deploy.

jobs:
  deploy:
    runs-on: ubuntu-latest
    steps:
      - name: Drel review gate
        env:
          DREL_API_KEY: ${{ secrets.DREL_API_KEY }}
        run: |
          verdict="$(curl -sS --fail-with-body -G https://app.drel.ai/api/public/v1/ci-gate \
            --data-urlencode "repositoryId=${{ github.repository_id }}" \
            --data-urlencode "repository=${{ github.repository }}" \
            -H "Authorization: Bearer $DREL_API_KEY")"
          echo "Drel review: $(jq -r '.outcome + " (" + .state + ")"' <<< "$verdict")"
          test "$(jq -r .outcome <<< "$verdict")" != fail
      - run: ./deploy.sh

4. Connect an MCP client

Claude Code:

claude mcp add --transport http drel https://app.drel.ai/api/mcp --header "Authorization: Bearer drel_pk_..."

Or add this to a project's .mcp.json (Claude Code), .cursor/mcp.json or .windsurf/mcp.json: Streamable HTTP, no local process to run.

{
  "mcpServers": {
    "drel": {
      "type": "http",
      "url": "https://app.drel.ai/api/mcp",
      "headers": {
        "Authorization": "Bearer drel_pk_..."
      }
    }
  }
}

To check the key and the server first, ask for one review's approval (its id is in GET /api/public/v1/cases):

curl https://app.drel.ai/api/mcp \
  -H "Authorization: Bearer drel_pk_..." \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_clearance","arguments":{"caseId":"<case id>"}}}'

MCP protocol versions: 2025-11-25, 2025-06-18 and 2025-03-26. Your client picks one; there is nothing to set.

Endpoints

GET/api/public/v1/casesList your sealed AI Security Reviews, 200 per page: pass nextCursor back as ?cursor= until it is absent. 60 req/min.
GET/api/public/v1/cases/{id}/findingsFindings (threats) for one case. With ?format=defectdojo, the latest sealed version's findings as a DefectDojo Generic Findings Import file, to re-upload from your pipeline (where your organization has it; not for a restricted review). 60 req/min.
GET/api/public/v1/cases/{id}/sign-offsCurrent sign-off status for one case, one entry per role. 60 req/min.
GET/api/public/v1/cases/{id}/dismissed-suggestionsThe AI-suggested threats a reviewer dismissed in the sealed review, with who, when and why. 60 req/min.
GET/api/public/v1/ci-gateCI gate: pass, fail or neutral for the reviews linked to a GitHub repository (?repositoryId= and/or ?repository=owner/name) or one review (?caseId=). What the Drel GitHub Action reads. 60 req/min.
POST/api/mcpJSON-RPC 2.0 / MCP 2025-11-25, 2025-06-18 and 2025-03-26: initialize and ping (no key, 30 req/min/IP each), resources/list, resources/read, and the read-only tools get_clearance and list_open_conditions via tools/list and tools/call (60 req/min/key).

Full parameter, response, and error schemas: /openapi.json. Every response carries RateLimit-* headers so you can self-throttle; see Errors below and Versioning & deprecation.

Examples

One request per operation. Replace drel_pk_... with your key, <case id> with an id from the list, and <nextCursor> with the previous page's nextCursor.

List your sealed reviews

curl https://app.drel.ai/api/public/v1/cases \
  -H "Authorization: Bearer drel_pk_..."

The next page (pass nextCursor back until it is absent)

curl -G https://app.drel.ai/api/public/v1/cases \
  --data-urlencode "cursor=<nextCursor>" \
  -H "Authorization: Bearer drel_pk_..."

A review's findings

curl https://app.drel.ai/api/public/v1/cases/<case id>/findings \
  -H "Authorization: Bearer drel_pk_..."

A review's sign-offs

curl https://app.drel.ai/api/public/v1/cases/<case id>/sign-offs \
  -H "Authorization: Bearer drel_pk_..."

A review's dismissed AI suggestions

curl https://app.drel.ai/api/public/v1/cases/<case id>/dismissed-suggestions \
  -H "Authorization: Bearer drel_pk_..."

The CI gate for a repository

curl -G https://app.drel.ai/api/public/v1/ci-gate \
  --data-urlencode "repository=acme/payments" \
  -H "Authorization: Bearer drel_pk_..."

MCP: handshake (no key needed)

curl https://app.drel.ai/api/mcp \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-03-26","capabilities":{},"clientInfo":{"name":"curl","version":"1"}}}'

MCP: liveness (no key needed)

curl https://app.drel.ai/api/mcp \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"ping"}'

MCP: list reviews

curl https://app.drel.ai/api/mcp \
  -H "Authorization: Bearer drel_pk_..." \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"resources/list","params":{}}'

MCP: read one review

curl https://app.drel.ai/api/mcp \
  -H "Authorization: Bearer drel_pk_..." \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"resources/read","params":{"uri":"drel://case/<case id>"}}'

MCP: list the tools

curl https://app.drel.ai/api/mcp \
  -H "Authorization: Bearer drel_pk_..." \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list","params":{}}'

MCP: is a review cleared?

curl https://app.drel.ai/api/mcp \
  -H "Authorization: Bearer drel_pk_..." \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_clearance","arguments":{"caseId":"<case id>"}}}'

MCP: what is still open?

curl https://app.drel.ai/api/mcp \
  -H "Authorization: Bearer drel_pk_..." \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"list_open_conditions","arguments":{"caseId":"<case id>"}}}'

Errors

Every 4xx/5xx response is RFC 9457 (application/problem+json): type, title, status, detail, plus two Drel extensions — code (branch on this, not on detail text) and hint (how to recover). The full schema is Problem in /openapi.json, referenced by every error response — never inlined.

400invalid_requestA query parameter the endpoint can't use, such as a cursor it didn't issue.
401unauthorizedMissing or invalid credentials (API key or OAuth access token).
403insufficient_scopeValid OAuth access token, but missing the required scope. Doesn't apply to API keys, which are unscoped.
403api_key_not_allowedA valid API key that a rule of one of its owner's organizations refuses today (only admins may use keys, or the key is older than the organization's limit). The detail names the rule; the key isn't deleted.
403api_key_plan_requiredA valid API key none of whose owner's plans includes API keys (Professional, Team and Enterprise do): not in any of their organizations, nor their own. An organization whose plan doesn't is only left out of what the key reads. The key isn't deleted and works again once a plan includes them.
404not_foundThe resource (or endpoint) doesn't exist, or isn't visible to your credential.
405method_not_allowedWrong HTTP method for this endpoint — see the Allow header.
409version_without_snapshot`format=defectdojo` only: the review's latest version was stored without its sealed record, so there is no file to give (the JSON findings still answer).
413export_too_large`format=defectdojo` only: the file would be larger than DefectDojo advises for one import (1 MB). Nothing is cut.
429rate_limitedBudget exceeded — check RateLimit-Reset or Retry-After before retrying.
503service_unavailableDrel can't read what the answer depends on right now (a server-side issue, such as your organization's API key rules): retry later. Never read it as "no reviews".
500internal_errorUnexpected server error — retry, then contact hello@drel.ai.

API changes

2026-11-05

One addition. Nothing under /v1 was removed or renamed.

  1. GET /api/public/v1/cases/{id}/findings takes format=defectdojo: the latest sealed version's findings as a DefectDojo Generic Findings Import file, to re-upload onto the review's DefectDojo test from your own pipeline, with X-Drel-Version, X-Drel-Organization, X-Drel-Test-Title and X-Drel-Test-Tag. Where the review's organization has it turned on; never for a restricted review. Two new error codes go with it: version_without_snapshot (409) and export_too_large (413).

2026-10-25

Additions to the MCP server, and one correction: a request with id: null is now refused, as MCP requires. Nothing in its resources or tools was removed or renamed.

  1. The MCP server also speaks versions 2025-11-25 and 2025-06-18, as well as 2025-03-26.
  2. Tool results also come as structuredContent, described by each tool's outputSchema.
  3. From 2025-11-25, a tool call with bad arguments is an isError result that says how to fix it.
  4. id: null is refused (-32600).
  5. Batches are not part of MCP since 2025-06-18; they stay refused on 2025-03-26.

2026-10-25

One addition. Nothing under /v1 was removed or renamed.

  1. Every link to a review in a response or a webhook (url on GET /api/public/v1/ci-gate, caseUrl in webhook and event payloads, the GitHub check run's details link) now ends in ?org=<organization id>, the review's organization, like the MCP server's workspaceUrl (none for a personal review). Opened under another organization the reader belongs to, the review page offers to switch to it. The parameter grants nothing: the page reads the review under the active organization. Read a review's id from caseId (or the response's id field), not from the URL.

2026-10-25

Additions to the MCP server, and three corrected error codes. Nothing under /v1 or in the MCP resources was removed or renamed.

  1. Each review names its organization: organization ({ id, name }, null for a review in your personal account) on resources/read, get_clearance and list_open_conditions, and in resources/list metadata. One API key reads every organization you belong to whose plan includes API keys; check organization before acting on a review. The resources/list description names it too, and now leads with the review's status in get_clearance's words, then Drel's recommendation (left out when it repeats the status).
  2. workspaceUrl and reviewUrl add ?org= with the review's organization (none for a personal review).
  3. On resources/read and both tools, each required control and each gap or condition can carry tracking (owner, ticketUrl, dueDate, as recorded in Drel) and sinceSealing (what was recorded after the version was sealed: a control's status in the Controls tab's words once it is in place since sealing, or closedOnRecord with closedAt, closedBy, selfAttested and evidence), and the result one sinceSealingSummary line. Counts, status and decision are still the sealed version's and change only when a new version is sealed. When these can't be read, the result says trackingUnavailable: true and is otherwise unchanged.
  4. Error codes: a body that is JSON but not a JSON-RPC request is now -32600 (was -32700); a review or help article that isn't there, or that you may not open, is now -32002 Resource not found with data: { uri } (was -32602). The tools still answer it as a result with isError.
  5. Batches (a JSON array of requests) are not supported: the whole array is refused with -32600 and data.reason batch_not_supported, and nothing in it runs. This is a known difference from MCP 2025-03-26; send one request per HTTP request.

2026-10-20

One addition to MCP resources/read. Nothing under /v1 or in resources/read was removed or renamed.

  1. Each control in requiredControls (beforePilot, beforeProduction, ongoing) now has entryGate: the gate Drel's evidence pack, decision memo, threat model and Sign off list it under. It is before_pilot for a control that is one of a restricted pilot's entry conditions, even when the control sits in beforeProduction (it is needed before the pilot and before production), and otherwise the group it is in (also when the sealed version's analysis can't be read). The groups themselves are unchanged.

2026-10-20

Two additions. Nothing under /v1 was removed or renamed.

  1. GET /api/public/v1/cases and the MCP tool get_clearance: each review has a new provisional boolean. It is true when the questions that decide the review were still open when its version was sealed: Drel holds it, and the workspace, the evidence pack and the share link read "On hold · Provisional". A provisional review is never a clearance. On get_clearance, recommendation then reads "Drel's recommendation: On hold · Provisional".
  2. An API key is checked against the key rules of every organization its owner belongs to on each request, not only when it is created. A key that breaks one today is refused with 403 api_key_not_allowed, whose detail names the rule: only admins may use API keys in that organization, or the key is older than its "API keys expire after" limit. The key isn't deleted: its owner sees why in Settings › API key and can revoke or rotate it. OAuth access tokens are not affected. The MCP server answers the same with HTTP 403 and JSON-RPC error -32001, whose data carries status 403 and code api_key_not_allowed.
  3. An API key reads only the organizations whose plan includes API keys (Professional, Team, Enterprise; an evaluation while it runs): reviews in the others are left out of every answer, and a review linked to a repository from one of them fails the CI gate as unreadable. When no plan of the owner's includes them, not in any organization nor their own, creating a key and using one are refused with 403 api_key_plan_required. The key isn't deleted: it works again once a plan includes API keys. The MCP server answers the same with HTTP 403 and JSON-RPC error -32001, whose data carries status 403 and code api_key_plan_required.

2026-10-19

One addition. Nothing under /v1 was removed or renamed.

  1. New GET /api/public/v1/ci-gate: whether a CI pipeline should stop because of the review linked to a GitHub repository (?repositoryId= and/or ?repository=owner/name) or of one review (?caseId=). outcome is pass only when the review can go to production (signed with nothing blocking it, or Conditional with no production blocker open); fail while a linked review is on hold, declined, its sign-off rejected, a re-review was raised and not done, its clearance expired, it has production blockers open, it is a restricted pilot (unless allow=pilot), or your key can't read it; neutral while it is not decided yet or when no review is linked. The Drel GitHub Action reads it. A cleared review is never reported as a verdict on the deploy itself.

2026-10-18

Two additions to the MCP server and one correction to the status on every machine reader. Nothing under /v1 or in resources/read was removed or renamed.

  1. The MCP server now offers two read-only tools (tools/list, tools/call), with the same credential and the same reviews as resources/read. get_clearance takes a review's caseId and answers its status in the workspace's words (status, statusLabel), Drel's recommendation, the sign-off line, the sealed version and sealedAt, validUntil and validity, openProductionBlockers and reviewUrl. It never returns the raw decision.
  2. list_open_conditions takes a caseId and lists the open evidenceGaps and answerConditions of the review, each with blocksProduction, and every other item that blocks production in otherProductionBlockers. Its blockingProduction is always get_clearance's openProductionBlockers. Re-assessment triggers are not included. Neither tool answers for a review archived in Drel, and neither changes anything.
  3. A tool call that ran and failed (a review not found, archived or unavailable) returns a result with isError: true and the reason as text, such as Case not found: {id}. An unknown tool or invalid arguments is JSON-RPC error -32602.
  4. reviewStatus and validity in GET /api/public/v1/cases and MCP resources/read, and the status in MCP resources/list descriptions, now count what blocks production as the share link does: a version that kept its analysis also counts the conditions the analysis still sets, so such a review signed as proceed reads in_review (Approval recommended), not approved.

2026-10-16

One change of wording. Nothing under /v1 was removed or renamed, and reviewStatus keeps its values.

  1. reviewStatusLabel reads Sign-off rejected where it read Sign-off declined: an approver signs, requests changes or rejects, and Declined is only Drel's decision word. The stored sign-off status stays declined.

2026-10-14

One change to a count, one addition and one change of wording. Nothing under /v1 was removed or renamed, and reviewStatus keeps its values.

  1. evidenceGaps in GET /api/public/v1/cases no longer counts a condition raised by a reviewer's answer (a control the answer says is missing, or an answer the architecture contradicts). The review counts it once, as a condition or production blocker, as the workspace now does on every screen.
  2. MCP resources/read lists those conditions in a new answerConditions array, apart from evidenceGaps, with the same fields.
  3. reviewStatusLabel reads Sign-off declined, On hold or Declined where it read Blocked.

2026-10-13

Two additions. Nothing under /v1 was removed or renamed.

  1. New fields validUntil and validity on each review in GET /api/public/v1/cases: how long the clearance stays valid under your organization's review policy (Settings, Review policy). validity is valid, due (re-assessment due within 30 days, 14 for a restricted pilot) or overdue. Both are null when the review is not a clearance or is archived. They never change decision or reviewStatus.
  2. MCP resources/read carries the same validUntil and validity.

2026-10-12

Two additions, one change of ids, one change to the review list and two corrections. Nothing under /v1 was removed or renamed.

  1. GET /api/public/v1/cases and MCP resources/list no longer list reviews that were archived in Drel, as the workspace doesn't. Each review in GET /api/public/v1/cases carries archived; add ?includeArchived=true to list archived reviews too. Findings, sign-offs and MCP resources/read still answer for an archived review.
  2. affectedComponents in GET /api/public/v1/cases/{id}/findings holds component names, as this documentation says. It returned internal component ids for reviews Drel analyzed.
  3. GET /api/public/v1/cases pages beyond 200 reviews. The response carries nextCursor when more reviews follow: pass it back as ?cursor= until it is absent, and treat it as opaque. A page holds up to 200 reviews (fewer when it includes reviews your key cannot open). A cursor the endpoint did not issue answers 400 invalid_request.
  4. Required control and evidence gap ids in MCP resources/read are stable. A required control's id is the id of the review's control record, and an evidence gap's id is derived from the review and the gap, so both stay the same on every read and published version. Ids saved before this date that were not already UUIDs (such as ctrl-… or gap-…) change once, to these ids, as finding ids did on 2026-10-11; ids that were already UUIDs are unchanged.
  5. A review marked restricted that you were given access to is now included, as in the workspace. Before, your API key and the MCP server left it out unless you created it or are an admin of its organization.

2026-10-11

These are corrections: each value now means what this documentation already said. Nothing under /v1 was removed or renamed.

  1. evidenceGaps in GET /api/public/v1/cases counts open evidence gaps only. Gaps marked accepted are no longer counted, so the number matches the review in the workspace.
  2. pendingSignOffs counts sign-offs that were requested and not yet answered. A role nobody has been asked to sign is no longer counted as pending.
  3. New field reviewStatus on each review in GET /api/public/v1/cases and in MCP resources/read: the status the workspace shows. It is approved only when the decision is proceed and every sign-off is approved. Until then a proceed decision is a recommendation and reads in_review.
  4. Finding ids are stable. A finding has the same id in GET /api/public/v1/cases/{id}/findings and in the MCP keyThreats list, and keeps it across published versions of the review. MCP keyThreats ids saved before this date change once, to the ids the findings endpoint returns.
  5. Findings and sign-offs recorded by other members of your organization are included. On a review your credential can read, GET /api/public/v1/cases/{id}/findings, GET /api/public/v1/cases/{id}/sign-offs and MCP resources/read left out what another member recorded. They now return every member's, so the sign-off list and reviewStatus match the workspace.
  6. MCP resources/list no longer skips reviews between pages: up to 50 published reviews per page (a page can hold fewer when it includes reviews your key cannot open). Keep paging until nextCursor is absent, and treat it as opaque. Cursors issued before this date still work.
  7. Your API key reads every published review in the organizations you belong to and in your personal account, as this documentation describes. A review marked restricted is included only if you created it or are an admin of its organization.

Versioning & deprecation

The API is versioned in the URL path (/api/public/v1/*). A breaking change ships as /api/public/v2/* alongside the existing /v1 — never as an in-place change to a version already shipped.

Before any version is removed, we publish at least 90 days' notice and add Deprecation and Sunset response headers (RFC 8594) to every response on that version, in addition to updating this page and /openapi.json.

Nothing under /v1 is currently deprecated.

Try it on a real case first.

Request a demo and we'll walk through the API and MCP server against a live workspace.