Kayak CybeAssist
Home / API
CybeAssist API

Security assessments your systems can call

The CybeAssist API is the core of the product. Your applications, pipelines and client portals can register assets, record authority, upload evidence, run assessments and collect findings and reports through the same versioned /v1 API the web app uses.

Why integrate

Make security review part of how you ship

A review that runs only when someone remembers is a review that drifts. Through the API, every release, every client onboarding or every month can produce the same documented assessment, with the same evidence trail.

In your pipeline

Upload a repository snapshot or OpenAPI file from CI and start a review on every release.

In your product

Offer reviews to your own customers with embedded, origin-bound forms.

In your records

Pull JSON, CSV or SARIF into your tracker, data warehouse or code-scanning tool.

Under control

Every call is scoped, every run needs a recorded authority, and everything is audited.

API workflow

From your request to a finding, step by step

Each stage is shown with its real status in the current platform. Select a stage for details, or play the request through.

No separate gateway product. The API application itself authenticates, rate-limits and checks every request behind an HTTPS front door.
  1. Any HTTPS client. The Python and TypeScript SDKs add idempotency keys, pagination, long-polling and hash checks for you.
  2. An API key, or a short-lived embed token from a browser page. Keys are checked against a keyed hash, expiry and revocation.
  3. HTTPS termination with automatic certificates, request ids on every response, upload size limits and strict security headers. Each key has a per-minute request limit set by its plan; every response carries X-RateLimit-* headers, and going over returns 429 with Retry-After. Plan quotas apply on top.
  4. The key must hold the needed scope and reach the asset's workspace. The authority must be active, unexpired and cover the requested test families. The asset's workspace must match the uploads.
  5. The planner fixes the checks to run and records missing evidence as blocked or skipped. Tasks are queued with leases and fencing tokens and dispatched fairly across tenants.
  6. Only the families listed in the authority run. Engines read evidence offline in a restricted child process. No network access, no subprocesses, no code execution.
  7. Results are accepted only from the current lease holder. Each check's outcome and coverage is recorded and published as an event.
  8. Findings are stored with severity, confidence, observed value, location, fix, fix group and evidence hash, and the run receives its coverage statement.
  9. On request, technical or executive reports render with an integrity manifest and signed, expiring download links.
  10. Poll or stream /events, open the run in the client portal, or receive a signed scan.completed and report.ready webhook.
Getting access

How clients obtain API access

API access is set up with you, not self-service, while CybeAssist is in its demonstration phase. This keeps every organisation, workspace and key deliberate.

  1. Request access

    Tell us your use case through the access form.

  2. Onboarding call

    We agree the tools, workspaces and evidence you will use.

  3. Organisation set up

    Kayak Innovations creates your tenant and client workspaces.

  4. Key issued

    You receive a scoped API key, shown once. Store it in your secret manager.

  5. First call

    Call GET /v1/workspaces to confirm the key and its reach.

Planned: self-service sign-up, customer user accounts and key management in the client portal. Until then the buttons on this site say "Request API access", not "Get API access".

Authentication

Keys, scopes and tokens

Send the key as a bearer token on every request. Keys look like ca_<prefix>_<secret>; CybeAssist stores only a keyed hash of the secret.

Scopes

API key scopes
ScopeAllows
assets:readRead assets
assets:writeCreate assets, ownership challenges and authority records
scans:readRead runs, stages, events, findings and reports
scans:writeUpload evidence, start, cancel and retest runs, schedules, embed tokens
reports:readRead and download reports
reports:writeRequest reports
webhooks:writeRegister webhooks, read deliveries, redeliver
imports:writeSpecialist handoffs and imports
audit:readRead and export the audit log
adminAll of the above, key rotation, legal holds, privacy requests

Key lifecycle

  • Reach: a key reaches one workspace or the whole tenant. Context always comes from the key, never from the request body.
  • Expiry: keys expire after 90 days by default.
  • Rotation: POST /v1/api-keys/{prefix}/rotate returns a new key with the same reach; the old one keeps working for 24 hours. A key can never rotate a key with more reach than itself.
  • Revocation: POST /v1/api-keys/{prefix}/revoke stops a key at once, with no overlap; it cannot be undone. GET /v1/api-keys lists the keys you can manage, never their secrets. Both need the admin scope.

Embed tokens for browser pages

Never put an API key in browser code. Your backend calls POST /v1/embed-tokens and hands the page a token that lasts at most 15 minutes, works only from one website origin, can start only one tool and never has more scopes than the issuing key.

Request an embed token
POST /v1/embed-tokens
Authorization: Bearer $CYBEASSIST_API_KEY
Content-Type: application/json

{"audience": "https://portal.example.com", "workspace_id": "…", "tool": "surface", "ttl_seconds": 600}
Quickstart

An authorised API review, end to end

These are real requests and responses from a CybeAssist run on the synthetic fixtures in the codebase. Ids, keys and hashes are replaced with placeholders; nothing else is edited.

Register what you want reviewed: a hostname, repository or api, in one of your workspaces.

Real request and response (ids replaced)
POST /v1/assets
Authorization: Bearer $CYBEASSIST_API_KEY

{
  "workspace_id": "00000000-0000-4000-8000-000000000001",
  "kind": "api",
  "name": "billing-api"
}

# 201 response
{
  "id": "00000000-0000-4000-8000-000000000002",
  "workspace_id": "00000000-0000-4000-8000-000000000001",
  "kind": "api",
  "name": "billing-api",
  "control_status": "not_required",
  "ownership_assertion": null,
  "created_at": "2026-11-20T11:23:57.204943Z"
}

Record who authorised the review, their role, the purpose, which test families are allowed and for how long. The authority is checked again before every task.

Real request and response (ids replaced)
POST /v1/authorizations
Authorization: Bearer $CYBEASSIST_API_KEY

{
  "asset_id": "00000000-0000-4000-8000-000000000002",
  "authoriser": "A. Example",
  "authoriser_role": "CTO",
  "purpose": "Quarterly API contract review",
  "families": [
    "T25",
    "T26",
    "T27",
    "T28",
    "T01"
  ],
  "valid_from": "2026-11-20T11:18:57+00:00",
  "valid_until": "2026-11-27T11:23:57+00:00"
}

# 201 response
{
  "id": "00000000-0000-4000-8000-000000000003",
  "asset_id": "00000000-0000-4000-8000-000000000002",
  "workspace_id": "00000000-0000-4000-8000-000000000001",
  "authoriser": "A. Example",
  "authoriser_role": "CTO",
  "purpose": "Quarterly API contract review",
  "families": [
    "T01",
    "T25",
    "T26",
    "… 2 more"
  ],
  "valid_from": "2026-11-20T11:18:57Z",
  "valid_until": "2026-11-27T11:23:57Z",
  "status": "active",
  "revoked_at": null
}

Upload each evidence file with its role and capture date. The X-Authorised-By header records who supplied it.

Real request and response (ids replaced)
PUT /v1/uploads?workspace_id=00000000-0000-4000-8000-000000000001&role=openapi&filename=openapi.yaml&captured_at=2026-11-20T09:23:57+00:00&asset_id=00000000-0000-4000-8000-000000000002
Authorization: Bearer $CYBEASSIST_API_KEY
X-Authorised-By: A. Example (CTO)
Content-Type: application/yaml

<contents of openapi.yaml>

# 201 response
{
  "id": "00000000-0000-4000-8000-000000000004",
  "role": "openapi",
  "filename": "openapi.yaml",
  "sha256": "347cc5128d02…",
  "size_bytes": 793,
  "captured_at": "2026-11-20T09:23:57Z"
}

Start the run with an Idempotency-Key. Sending the same request again returns the same run instead of starting a second one.

Real request and response (ids replaced)
POST /v1/scans
Authorization: Bearer $CYBEASSIST_API_KEY
Idempotency-Key: 00000000-0000-4000-8000-000000000005
Content-Type: application/json

{
  "tool": "api",
  "asset_id": "00000000-0000-4000-8000-000000000002",
  "authorization_id": "00000000-0000-4000-8000-000000000003",
  "upload_ids": [
    "00000000-0000-4000-8000-000000000004"
  ]
}

# 202 response
Location: /v1/scans/00000000-0000-4000-8000-000000000006
{
  "id": "00000000-0000-4000-8000-000000000006",
  "workspace_id": "00000000-0000-4000-8000-000000000001",
  "asset_id": "00000000-0000-4000-8000-000000000002",
  "tool": "api",
  "profile": "api-baseline",
  "plan_version": "plan-a56ccb78b425",
  "status": "queued",
  "authorization_id": "00000000-0000-4000-8000-000000000003",
  "parent_scan_id": null,
  "created_at": "2026-11-20T11:23:57.233694Z",
  "started_at": null,
  "finished_at": null,
  "limitations": [
    "Offline review of customer-supplied material. No live target was contacted."
  ]
}
Real request and response (ids replaced)
POST /v1/scans
Authorization: Bearer $CYBEASSIST_API_KEY
Idempotency-Key: 00000000-0000-4000-8000-000000000005

{
  "tool": "api",
  "asset_id": "00000000-0000-4000-8000-000000000002",
  "authorization_id": "00000000-0000-4000-8000-000000000003",
  "upload_ids": [
    "00000000-0000-4000-8000-000000000004"
  ]
}

# 202 response · The same Idempotency-Key returns the original run.
Location: /v1/scans/00000000-0000-4000-8000-000000000006
Idempotent-Replayed: true
{
  "id": "00000000-0000-4000-8000-000000000006",
  "workspace_id": "00000000-0000-4000-8000-000000000001",
  "asset_id": "00000000-0000-4000-8000-000000000002",
  "tool": "api",
  "profile": "api-baseline",
  "plan_version": "plan-a56ccb78b425",
  "status": "queued",
  "authorization_id": "00000000-0000-4000-8000-000000000003",
  "parent_scan_id": null,
  "created_at": "2026-11-20T11:23:57.233694Z",
  "started_at": null,
  "finished_at": null,
  "limitations": [
    "Offline review of customer-supplied material. No live target was contacted."
  ]
}

Follow progress by polling /v1/scans/{id}, long-polling /events?after=N&wait=25, or streaming with Accept: text/event-stream.

Real request and response (ids replaced)
GET /v1/scans/00000000-0000-4000-8000-000000000006/events?after=0
Authorization: Bearer $CYBEASSIST_API_KEY

# 200 response
{
  "events": [
    {
      "seq": 1,
      "type": "scan.queued",
      "data": {
        "checks": 5,
        "pending": 3,
        "plan_version": "plan-a56ccb78b425"
      },
      "at": "2026-11-20T11:23:57.233694Z"
    },
    {
      "seq": 2,
      "type": "check.started",
      "data": {
        "family": "T27",
        "attempt": 1,
        "check_id": "api.limits"
      },
      "at": "2026-11-20T11:23:57.289927Z"
    },
    {
      "seq": 3,
      "type": "check.finished",
      "data": {
        "outcome": "failed",
        "check_id": "api.limits",
        "coverage": {
          "operations": 3,
          "openapi_version": "3.0.3"
        },
        "observations": 2
      },
      "at": "2026-11-20T11:23:57.404513Z"
    },
    "… 5 more"
  ],
  "next_cursor": 8
}
Real request and response (ids replaced)
GET /v1/scans/00000000-0000-4000-8000-000000000006
Authorization: Bearer $CYBEASSIST_API_KEY

# 200 response
{
  "id": "00000000-0000-4000-8000-000000000006",
  "workspace_id": "00000000-0000-4000-8000-000000000001",
  "asset_id": "00000000-0000-4000-8000-000000000002",
  "tool": "api",
  "profile": "api-baseline",
  "plan_version": "plan-a56ccb78b425",
  "status": "completed",
  "authorization_id": "00000000-0000-4000-8000-000000000003",
  "parent_scan_id": null,
  "created_at": "2026-11-20T11:23:57.233694Z",
  "started_at": "2026-11-20T11:23:57.286948Z",
  "finished_at": "2026-11-20T11:23:57.457457Z",
  "limitations": [
    "Offline review of customer-supplied material. No live target was contacted."
  ],
  "coverage": {
    "planned": 5,
    "counts": {
      "failed": 2,
      "passed": 1,
      "skipped": 2
    },
    "complete": true,
    "incomplete_checks": [],
    "ledger": [
      {
        "check_id": "api.authn",
        "family": "T26",
        "engine": "keelmark-contract",
        "engine_version": "0.1.0",
        "status": "done",
        "outcome": "failed",
        "reason": "Runtime authentication was not tested; import independent evidence for runtime conclusions."
      },
      {
        "check_id": "api.contract",
        "family": "T25",
        "engine": "keelmark-contract",
        "engine_version": "0.1.0",
        "status": "done",
        "outcome": "passed",
        "reason": null
      },
      {
        "check_id": "api.inventory",
        "family": "T28",
        "engine": "keelmark-contract",
        "engine_version": "0.1.0",
        "status": "skipped",
        "outcome": "skipped",
        "reason": "optional evidence not supplied: inventory"
      },
      "… 2 more"
    ]
  }
}

Page through findings with limit and cursor, optionally filtered by severity.

Real request and response (ids replaced)
GET /v1/scans/00000000-0000-4000-8000-000000000006/findings?limit=2
Authorization: Bearer $CYBEASSIST_API_KEY

# 200 response
{
  "data": [
    {
      "id": "00000000-0000-4000-8000-000000000007",
      "scan_id": "00000000-0000-4000-8000-000000000006",
      "check_id": "api.authn",
      "family": "T26",
      "rule_id": "KSA-101",
      "title": "Operation createInvoice has no security declaration",
      "severity": "high",
      "confidence": "high",
      "validation_status": "automated",
      "kind": "contract_issue",
      "location": "operationId=createInvoice",
      "observed_value": "no operation-level or global security",
      "evidence": {
        "note": "Contract issue: the specification does not declare authentication. Runtime enforcement was not tested."
      },
      "evidence_sha256": "3aa6b83db39f…",
      "fix": "Declare a security requirement for this operation (or globally) that references a defined scheme.",
      "fix_group": "Declare API authentication",
      "cvss_vector": null,
      "cvss_version": null,
      "advisory_ids": [],
      "engine": "keelmark-contract",
      "engine_version": "0.1.0",
      "ruleset_version": "keelmark-contract-2026.11.0",
      "advisory_snapshot": null,
      "source": "cybeassist",
      "observed_at": "2026-11-20T11:23:57.457457Z"
    },
    {
      "id": "00000000-0000-4000-8000-000000000008",
      "scan_id": "00000000-0000-4000-8000-000000000006",
      "check_id": "api.limits",
      "family": "T27",
      "rule_id": "KSA-201",
      "title": "createInvoice declares no rate limit",
      "severity": "low",
      "confidence": "medium",
      "validation_status": "automated",
      "kind": "contract_issue",
      "location": "operationId=createInvoice",
      "observed_value": "",
      "evidence": {},
      "evidence_sha256": "44136fa355b3…",
      "fix": "Document limits (x-ratelimit-*) and a 429 response.",
      "fix_group": "Declare API limits",
      "cvss_vector": null,
      "cvss_version": null,
      "advisory_ids": [],
      "engine": "keelmark-contract",
      "engine_version": "0.1.0",
      "ruleset_version": "keelmark-contract-2026.11.0",
      "advisory_snapshot": null,
      "source": "cybeassist",
      "observed_at": "2026-11-20T11:23:57.404513Z"
    }
  ],
  "next_cursor": "M3xiMTY5NDVhZi0xMDYwLTQwYjItYjRlMi02MDZhMjUwMmJhYTE="
}

Request a report, then fetch it. Each format carries its SHA-256 hash and a signed, expiring download link.

Real request and response (ids replaced)
POST /v1/scans/00000000-0000-4000-8000-000000000006/reports
Authorization: Bearer $CYBEASSIST_API_KEY

{}

# 202 response
{
  "id": "00000000-0000-4000-8000-000000000009",
  "scan_id": "00000000-0000-4000-8000-000000000006",
  "version": 1,
  "kind": "technical",
  "status": "pending",
  "formats": {},
  "requested": [
    "pdf",
    "html",
    "json",
    "… 2 more"
  ],
  "attempts": 0,
  "last_error": null,
  "created_at": "2026-11-20T11:23:58.104024Z",
  "manifest": null
}
Real request and response (ids replaced)
GET /v1/reports/00000000-0000-4000-8000-000000000009
Authorization: Bearer $CYBEASSIST_API_KEY

# 200 response
{
  "id": "00000000-0000-4000-8000-000000000009",
  "scan_id": "00000000-0000-4000-8000-000000000006",
  "version": 1,
  "kind": "technical",
  "status": "ready",
  "formats": {
    "csv": {
      "sha256": "f7becea7f97b…",
      "size": 1415
    },
    "pdf": {
      "sha256": "2a9bdb562920…",
      "size": 2606
    },
    "html": {
      "sha256": "e6d8bfde3f5b…",
      "size": 418112
    },
    "json": {
      "sha256": "1bc0a8b35679…",
      "size": 7698
    },
    "sarif": {
      "sha256": "ed96cf3de6ba…",
      "size": 3478
    }
  },
  "requested": [
    "pdf",
    "html",
    "json",
    "… 2 more"
  ],
  "attempts": 1,
  "last_error": null,
  "created_at": "2026-11-20T11:23:58.104024Z",
  "manifest": {
    "scan_id": "00000000-0000-4000-8000-000000000006",
    "version": 1,
    "findings": 3,
    "artefacts": {
      "csv": {
        "size": 1415,
        "sha256": "f7becea7f97b…"
      },
      "pdf": {
        "size": 2606,
        "sha256": "2a9bdb562920…"
      },
      "html": {
        "size": 418112,
        "sha256": "e6d8bfde3f5b…"
      },
      "json": {
        "size": 7698,
        "sha256": "1bc0a8b35679…"
      },
      "sarif": {
        "size": 3478,
        "sha256": "ed96cf3de6ba…"
      }
    },
    "report_id": "00000000-0000-4000-8000-000000000009",
    "generated_at": "2026-11-20T11:23:58.344699Z",
    "input_hashes": [
      "347cc5128d02…"
    ],
    "planned_checks": 5,
    "evidence_hashes": [
      "3aa6b83db39f…",
      "44136fa355b3…",
      "44136fa355b3…"
    ],
    "incomplete_checks": 0,
    "manifest_hmac_sha256": "d1ba7d5f12ee…"
  },
  "links": {
    "csv": "/v1/reports/00000000-0000-4000-8000-000000000009/download/csv?exp=1795174138&sig=0e8f8e3d942e…",
    "pdf": "/v1/reports/00000000-0000-4000-8000-000000000009/download/pdf?exp=1795174138&sig=d330b6d2993d…",
    "html": "/v1/reports/00000000-0000-4000-8000-000000000009/download/html?exp=1795174138&sig=ea81c16c6eb4…",
    "json": "/v1/reports/00000000-0000-4000-8000-000000000009/download/json?exp=1795174138&sig=b366de65fbb3…",
    "sarif": "/v1/reports/00000000-0000-4000-8000-000000000009/download/sarif?exp=1795174138&sig=3c12c953d2c5…"
  }
}
API reference

Endpoints by category

Base URL https://cybeassist.com/v1. Every operation in the OpenAPI document is listed here with the scope it needs; the website build fails if the two disagree.

Discovery

Discovery endpoints
MethodPathWhat it doesScope
GET/v1/healthService health and version.none
GET/v1/test-catalogThe 50 test families with their actual status and limitations.any key
GET/v1/profilesTool profiles, their checks and accepted inputs, and your plan's entitlements.any key
GET/v1/workspacesWorkspaces this key can reach.any key
GET/v1/usagePlan limits, assessments used this month and this key's per-minute request window.any key

Assets and authority

Assets and authority endpoints
MethodPathWhat it doesScope
POST/v1/assetsRegister a hostname, repository or API in a workspace.assets:write
GET/v1/assetsList assets.assets:read or scans:read
GET/v1/assets/{asset_id}One asset with its ownership status.assets:read or scans:read
POST/v1/assets/{asset_id}/verification-challengesCreate a DNS TXT ownership challenge for a hostname.assets:write
POST/v1/assets/{asset_id}/verifyVerify the challenge from a proof export you uploaded.assets:write
POST/v1/authorizationsRecord who authorised the review, their role, purpose, families and validity window.assets:write
POST/v1/authorizations/{authz_id}/revokeRevoke an authority; running and scheduled work stops.assets:write

Evidence

Evidence endpoints
MethodPathWhat it doesScope
PUT/v1/uploadsUpload one evidence file (up to 50 MiB) with its role and capture date.scans:write
POST/v1/uploads/{upload_id}/legal-holdPlace or release a legal hold on an upload.admin

Assessments

Assessments endpoints
MethodPathWhat it doesScope
POST/v1/scansStart an assessment. Requires an Idempotency-Key header.scans:write
GET/v1/scansRecent assessments.scans:read
GET/v1/scans/{scan_id}Status, plan version and coverage statement.scans:read
GET/v1/scans/{scan_id}/stagesStages and every check with its state and reason.scans:read
GET/v1/scans/{scan_id}/eventsOrdered events: poll, long-poll with wait, or stream with Accept: text/event-stream.scans:read
POST/v1/scans/{scan_id}/cancelCancel a run; collected evidence is kept.scans:write
POST/v1/scans/{scan_id}/retestsStart a linked retest under current authority.scans:write
GET/v1/scans/{scan_id}/comparisonCompare a retest with the run it retests.scans:read
POST/v1/scans/{scan_id}/legal-holdPlace or release a legal hold on a run.admin

Findings and reports

Findings and reports endpoints
MethodPathWhat it doesScope
GET/v1/scans/{scan_id}/findingsFindings by cursor, optionally filtered by severity.scans:read
POST/v1/scans/{scan_id}/reportsRequest a technical or executive report in chosen formats.reports:write or scans:write
GET/v1/reports/{report_id}Report status, formats with hashes, and signed download links.reports:read or scans:read
GET/v1/reports/{report_id}/download/{fmt}Download PDF, HTML, JSON, CSV or SARIF.reports:read or scans:read

Schedules

Schedules endpoints
MethodPathWhat it doesScope
POST/v1/schedulesCreate a daily, weekly or monthly re-assessment.scans:write
GET/v1/schedulesList schedules.scans:read
GET/v1/schedules/{schedule_id}One schedule with its next occurrence.scans:read
POST/v1/schedules/{schedule_id}/pausePause a schedule.scans:write
POST/v1/schedules/{schedule_id}/resumeResume a schedule while its authority is valid.scans:write

Specialists

Specialists endpoints
MethodPathWhat it doesScope
POST/v1/scans/{scan_id}/handoffsIssue a signed, scoped package for a qualified specialist.imports:write
POST/v1/scans/{scan_id}/handoffs/{handoff_id}/revokeWithdraw a handoff before it expires.imports:write
POST/v1/scans/{scan_id}/importsImport a specialist's findings; they stay labelled as theirs.imports:write

Integrations

Integrations endpoints
MethodPathWhat it doesScope
POST/v1/webhooksRegister a webhook; the signing secret is shown once.webhooks:write
GET/v1/webhooks/{webhook_id}/deliveriesDelivery attempts and their outcomes.webhooks:write
POST/v1/webhook-deliveries/{delivery_id}/redeliverSend a delivery again.webhooks:write
POST/v1/embed-tokensShort-lived, origin-bound token for a review form on your website.scans:write
POST/v1/api-keys/{prefix}/rotateRotate a key; the old one stays valid for 24 hours.admin
GET/v1/api-keysKeys this credential may manage, with scopes and state; secrets are never returned.admin
POST/v1/api-keys/{prefix}/revokeRevoke a key immediately and permanently, with no overlap.admin

Governance

Governance endpoints
MethodPathWhat it doesScope
GET/v1/auditAudit records by cursor.audit:read
GET/v1/audit/exportNDJSON audit export with a hash chain head.audit:read
GET/v1/retentionRetention periods for your plan.any key
POST/v1/privacy/consentsRecord a consent decision.admin (tenant-wide)
POST/v1/privacy/consents/lookupConsent history for one person.admin (tenant-wide)
POST/v1/privacy/requestsOpen an access, export, correction, erasure, grievance or nomination request.admin (tenant-wide)
GET/v1/privacy/requestsList privacy requests.admin (tenant-wide)
GET/v1/privacy/requests/{request_id}One privacy request.admin (tenant-wide)
POST/v1/privacy/requests/{request_id}/fulfilFulfil a privacy request.admin (tenant-wide)
GET/v1/privacy/requests/{request_id}/exportDownload the export for an access request.admin (tenant-wide)
Error handling

One error shape, specific codes

Errors return a JSON body with a stable code, a readable message and the request_id also sent in the X-Request-Id header. Quote it when you contact support.

Common error codes
StatusTypical codesWhat to do
400invalid_request, idempotency_key_required, invalid_cursorFix the request.
401unauthenticated, credential_expired, audience_mismatchCheck or rotate the key; embed tokens must come from their origin.
402quota_exceeded, entitlement_requiredPlan limit reached. Completed work is kept.
403insufficient_scope, authorisation_required, authorisation_inactiveUse a key with the scope; record or renew the authority.
404not_foundAlso returned for records outside the key's reach.
409idempotency_conflict, conflict, not_finishedUse a new key for a different body; wait for the run.
413too_largeUploads are limited to 50 MiB.
422invalid_role, scope_mismatch, excluded_family, upload_expiredThe evidence or families do not fit the tool or authority.
429rate_limitedOver the key's per-minute request limit (wait for Retry-After seconds), or too many ownership-verification attempts.
503kill_switchThe operator has paused new work. Try again later.
Real request and response (ids replaced)
GET /v1/scans
Authorization: Bearer $CYBEASSIST_API_KEY

# 401 response
{
  "error": {
    "code": "unauthenticated",
    "message": "send Authorization: Bearer <api key or embed token>",
    "request_id": "0f28ff2e4b66756d"
  }
}
Real request and response (ids replaced)
POST /v1/scans
Authorization: Bearer $CYBEASSIST_API_KEY

# 403 response · This key only holds scans:read.
{
  "error": {
    "code": "insufficient_scope",
    "message": "requires one of: scans:write",
    "request_id": "8e2cf380013dfb17"
  }
}
Real request and response (ids replaced)
POST /v1/scans
Authorization: Bearer $CYBEASSIST_API_KEY

# 400 response · No Idempotency-Key header was sent.
{
  "error": {
    "code": "idempotency_key_required",
    "message": "send an Idempotency-Key header (1-200 characters)",
    "request_id": "e19a8c1e25b46d3d"
  }
}
Rate limits and usage

How API usage is managed

Usage is managed through per-key request limits and per-tenant plan quotas, both enforced by the platform. Here is what applies today.

Enforced

Plan quotas

Each tenant's plan sets the number of hostnames, assessments per tool per month, report formats and history period. The free plan allows one hostname, five assessments per tool per month, PDF and JSON reports and 30 days of history. GET /v1/usage shows what you have used this month and when it resets.

Enforced

Request limits

Uploads up to 50 MiB. Findings pages up to 200 records. Event long-polls up to 25 seconds; event streams up to 5 minutes. Embed tokens up to 15 minutes.

Enforced

Per-key rate limits

Each API key or embed token may make 60 requests a minute on the free plan (600 on the evaluation plan). Responses carry X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset; over the limit you get 429 rate_limited with Retry-After. Commercial plans and pricing are not yet published.

Webhooks

Signed notifications when work finishes

Register an HTTPS endpoint for any of eight events: scan.queued, scan.completed, scan.partially_completed, scan.failed, scan.cancelled, scan.cancellation_requested, scan.expired and report.ready. The signing secret is shown once.

  • Each delivery is a JSON body {"id", "type", "created_at", "data"} with X-CybeAssist-Event-Id, X-CybeAssist-Timestamp and X-CybeAssist-Signature headers.
  • The signature is v1= plus HMAC-SHA256 of "{timestamp}." + raw body. Reject anything older than five minutes.
  • Any 2xx response counts as delivered; redirects are never followed. Failures retry with backoff for up to six attempts, then move to dead-letter. You can redeliver.
  • Destinations must be on the operator's allow-list and must not resolve to private addresses. The connection is pinned to the checked address.
  • The operator kill switch pauses deliveries; queued deliveries wait.
Register a webhook (response shape from the code)
POST /v1/webhooks
Authorization: Bearer $CYBEASSIST_API_KEY
Content-Type: application/json

{"workspace_id": "…", "url": "https://hooks.example.com/cybeassist",
 "events": ["scan.completed", "scan.partially_completed", "report.ready"]}

# 201 response
{"id": "…", "url": "https://hooks.example.com/cybeassist",
 "events": ["report.ready", "scan.completed", "scan.partially_completed"],
 "secret": "whsec_…shown once…",
 "note": "Store the secret now; it is not shown again. Verify X-CybeAssist-Signature on every delivery."}
Verify a delivery (Python, standard library)
import hmac, hashlib, time

def verify(secret: str, signature: str, timestamp: str, raw_body: bytes) -> bool:
    if abs(time.time() - int(timestamp)) > 300:
        return False
    mac = hmac.new(secret.encode(), f"{timestamp}.".encode() + raw_body, hashlib.sha256)
    return hmac.compare_digest("v1=" + mac.hexdigest(), signature)

The SDKs include verify_webhook (Python) and verifyWebhook (TypeScript).

Sandbox

Trying the API safely

cybeassist.com is itself a demonstration environment. Onboarded evaluators receive a key for a test tenant and use synthetic or non-sensitive evidence. There is no separate public sandbox yet.

  • The codebase ships synthetic fixtures for every tool (an expired certificate chain, weak headers, a vulnerable repository snapshot, a risky Terraform plan, an OpenAPI file) so you can see real findings without exposing your own systems.
  • Engines never contact anything, so a test run cannot affect a real system.
Planned

A public sandbox

A self-service sandbox with sample evidence and test keys is planned once customer sign-up exists. Ask for evaluation access through the access form in the meantime.

Data separation and permissions

How client data is kept apart

At the database

Every tenant table uses forced PostgreSQL row-level security. The application connects as a role that does not own the tables and cannot bypass the policies. Tenant and workspace context is set per transaction from the credential.

In storage

Evidence and reports live under a per-tenant prefix, and cross-tenant keys are refused. Identical files are never shared between tenants.

At the API

Records outside a key's workspaces return 404, so their existence is not revealed. Scopes are checked on every operation, and embed tokens are bound to one origin and tool.

These controls have automated tests in the codebase. They have not yet been independently tested; a CERT-In-empanelled penetration test is an open release gate. See assurance status.

SDKs and tools

Python, TypeScript, Postman and OpenAPI

Both SDKs cover every /v1 operation, send idempotency keys, follow cursors, long-poll events, verify report hashes on download, verify webhooks and audit exports, and never follow redirects with your key. They have no third-party runtime dependencies.

Shared on onboarding Public package distribution waits for Kayak Innovations' licence decision.

Python 3.10+
from cybeassist_sdk import Client

c = Client(api_key, base_url="https://cybeassist.com")
scan = c.create_scan(tool="api", asset_id=asset, authorization_id=authz, upload_ids=[upload])
done = c.wait_for_scan(scan["id"])
for f in c.iter_findings(done["id"]):
    print(f["severity"], f["title"])

Build CybeAssist into your product

Tell us what you want to automate. We will set up an evaluation tenant and walk your developers through the first integration.