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.jsonMCP 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 clientAPI 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 keysllms.txt
A structured index of every public Drel page, written for language models rather than search crawlers.
View llms.txtAuthentication
How to authenticate: an unscoped API key, sent as a bearer token. OAuth 2.0 is not yet available.
View /auth.mdAPI 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-catalogMCP Server Card
Structured MCP server metadata (SEP-1649) — serverInfo, transport, capabilities — for clients that discover MCP servers this way.
View server-card.jsonAgent 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 indexFour 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.sh4. 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
/api/public/v1/casesList your sealed AI Security Reviews, 200 per page: pass nextCursor back as ?cursor= until it is absent. 60 req/min./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./api/public/v1/cases/{id}/sign-offsCurrent sign-off status for one case, one entry per role. 60 req/min./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./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./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.
invalid_requestA query parameter the endpoint can't use, such as a cursor it didn't issue.insufficient_scopeValid OAuth access token, but missing the required scope. Doesn't apply to API keys, which are unscoped.api_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.api_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.not_foundThe resource (or endpoint) doesn't exist, or isn't visible to your credential.method_not_allowedWrong HTTP method for this endpoint — see the Allow header.version_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).export_too_large`format=defectdojo` only: the file would be larger than DefectDojo advises for one import (1 MB). Nothing is cut.rate_limitedBudget exceeded — check RateLimit-Reset or Retry-After before retrying.internal_errorUnexpected server error — retry, then contact hello@drel.ai.API changes
2026-11-05
One addition. Nothing under /v1 was removed or renamed.
- 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, withX-Drel-Version,X-Drel-Organization,X-Drel-Test-TitleandX-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) andexport_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.
- The MCP server also speaks versions 2025-11-25 and 2025-06-18, as well as 2025-03-26.
- Tool results also come as
structuredContent, described by each tool'soutputSchema. - From 2025-11-25, a tool call with bad arguments is an
isErrorresult that says how to fix it. id: nullis refused (-32600).- 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.
- Every link to a review in a response or a webhook (
urlon GET /api/public/v1/ci-gate,caseUrlin 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'sworkspaceUrl(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 fromcaseId(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.
- Each review names its organization:
organization({ id, name }, null for a review in your personal account) onresources/read,get_clearanceandlist_open_conditions, and inresources/listmetadata. One API key reads every organization you belong to whose plan includes API keys; checkorganizationbefore acting on a review. Theresources/listdescription names it too, and now leads with the review's status inget_clearance's words, then Drel's recommendation (left out when it repeats the status). workspaceUrlandreviewUrladd?org=with the review's organization (none for a personal review).- On
resources/readand both tools, each required control and each gap or condition can carrytracking(owner,ticketUrl,dueDate, as recorded in Drel) andsinceSealing(what was recorded after the version was sealed: a control'sstatusin the Controls tab's words once it is in place since sealing, orclosedOnRecordwithclosedAt,closedBy,selfAttestedandevidence), and the result onesinceSealingSummaryline. 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 saystrackingUnavailable: trueand is otherwise unchanged. - 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-32002Resource not found withdata: { uri }(was-32602). The tools still answer it as a result withisError. - Batches (a JSON array of requests) are not supported: the whole array is refused with
-32600anddata.reasonbatch_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.
- Each control in
requiredControls(beforePilot,beforeProduction,ongoing) now hasentryGate: the gate Drel's evidence pack, decision memo, threat model and Sign off list it under. It isbefore_pilotfor a control that is one of a restricted pilot's entry conditions, even when the control sits inbeforeProduction(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.
- GET /api/public/v1/cases and the MCP tool
get_clearance: each review has a newprovisionalboolean. 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. Onget_clearance,recommendationthen reads "Drel's recommendation: On hold · Provisional". - 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, whosedetailnames 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, whosedatacarriesstatus403 andcodeapi_key_not_allowed. - 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, whosedatacarriesstatus403 andcodeapi_key_plan_required.
2026-10-19
One addition. Nothing under /v1 was removed or renamed.
- 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=).outcomeispassonly when the review can go to production (signed with nothing blocking it, or Conditional with no production blocker open);failwhile 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 (unlessallow=pilot), or your key can't read it;neutralwhile 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.
- 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_clearancetakes a review'scaseIdand answers its status in the workspace's words (status,statusLabel), Drel's recommendation, the sign-off line, the sealedversionandsealedAt,validUntilandvalidity,openProductionBlockersandreviewUrl. It never returns the raw decision. list_open_conditionstakes acaseIdand lists the openevidenceGapsandanswerConditionsof the review, each withblocksProduction, and every other item that blocks production inotherProductionBlockers. ItsblockingProductionis alwaysget_clearance'sopenProductionBlockers. Re-assessment triggers are not included. Neither tool answers for a review archived in Drel, and neither changes anything.- A tool call that ran and failed (a review not found, archived or unavailable) returns a result with
isError: trueand the reason as text, such asCase not found: {id}. An unknown tool or invalid arguments is JSON-RPC error -32602. reviewStatusandvalidityin 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 readsin_review(Approval recommended), notapproved.
2026-10-16
One change of wording. Nothing under /v1 was removed or renamed, and reviewStatus keeps its values.
reviewStatusLabelreads 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 staysdeclined.
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.
evidenceGapsin 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.- MCP resources/read lists those conditions in a new
answerConditionsarray, apart fromevidenceGaps, with the same fields. reviewStatusLabelreads Sign-off declined, On hold or Declined where it read Blocked.
2026-10-13
Two additions. Nothing under /v1 was removed or renamed.
- New fields
validUntilandvalidityon each review in GET /api/public/v1/cases: how long the clearance stays valid under your organization's review policy (Settings, Review policy).validityisvalid,due(re-assessment due within 30 days, 14 for a restricted pilot) oroverdue. Both are null when the review is not a clearance or is archived. They never changedecisionorreviewStatus. - MCP resources/read carries the same
validUntilandvalidity.
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.
- 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=trueto list archived reviews too. Findings, sign-offs and MCP resources/read still answer for an archived review. affectedComponentsin GET /api/public/v1/cases/{id}/findings holds component names, as this documentation says. It returned internal component ids for reviews Drel analyzed.- GET /api/public/v1/cases pages beyond 200 reviews. The response carries
nextCursorwhen 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 400invalid_request. - Required control and evidence gap ids in MCP resources/read are stable. A required control's
idis the id of the review's control record, and an evidence gap'sidis 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 asctrl-…orgap-…) change once, to these ids, as finding ids did on 2026-10-11; ids that were already UUIDs are unchanged. - 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.
evidenceGapsin 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.pendingSignOffscounts sign-offs that were requested and not yet answered. A role nobody has been asked to sign is no longer counted as pending.- New field
reviewStatuson each review in GET /api/public/v1/cases and in MCP resources/read: the status the workspace shows. It isapprovedonly when the decision is proceed and every sign-off is approved. Until then a proceed decision is a recommendation and readsin_review. - Finding ids are stable. A finding has the same
idin GET /api/public/v1/cases/{id}/findings and in the MCPkeyThreatslist, and keeps it across published versions of the review. MCPkeyThreatsids saved before this date change once, to the ids the findings endpoint returns. - 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
reviewStatusmatch the workspace. - 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
nextCursoris absent, and treat it as opaque. Cursors issued before this date still work. - 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.