API reference · IOC Desk

IOC Desk API reference

Download the complete source-generated API reference. Audit clients must follow has_more and next_after, even when pages contain fewer rows than requested. Manual license refresh can return 409 if another refresh is running.

Authenticate with a team access token. Read workflows, submit review decisions, approve releases, consume feeds, and connect explicitly requested agents.

OpenAPI 3.1 · 49 operations · 41 paths · 46 models

Connect to your team's server

The Enterprise team server exposes the same API used by the desktop and browser workbench. Use your own server origin, such as https://iocdesk.example.com. Local testing defaults to http://127.0.0.1:4783. This documentation page does not connect to a team or collect access tokens.

Create a member credential in Team → People & access in the desktop, or Admin center → People & access in the browser. Use the saved token for that identity. Rotation replaces the token while preserving authorship. Revocation applies to subsequent requests.

A license key and an API token do different jobs.

Your Polar license key activates Enterprise. An individual team access token authenticates API requests. Send the access token in the Authorization header; the server rejects token-bearing query parameters.

Make an authenticated request

These examples use Bash and curl. Replace the example origin with your team's HTTPS address. The prompt keeps the token out of the command you type. Keep credentials private, and avoid command tracing or logging authorization headers.

Bash · API discovery
IOC_SERVER='https://iocdesk.example.com'
read -r -s -p 'Your team access token: ' IOC_TOKEN
printf '\n'

curl --fail-with-body --silent --show-error \
  --header "Authorization: Bearer $IOC_TOKEN" \
  "$IOC_SERVER/api"

GET /api reports server features; it does not grant every feature to your token. GET /api/me returns your current identity and server license status. All documented API routes require a valid token.

On Windows, use the included PowerShell helper

Run from an extracted customer package. The helper reads your saved credential JSON, checks its saved server origin when present, and refuses redirects. Use the real credential path and workflow ID.

PowerShell · saved credential file
.\examples\Call-Api.ps1 `
  -Server "http://127.0.0.1:4783" `
  -CredentialFile "C:\IOCDesk-Credentials\analyst.json" `
  -Path "/api/workflows"

.\examples\Call-Api.ps1 `
  -Server "http://127.0.0.1:4783" `
  -CredentialFile "C:\IOCDesk-Credentials\analyst.json" `
  -Path "/api/workflows/incident-0042/publication-requests" `
  -Method POST -BodyFile ".\publication-request.json"

Choose the right identity

IdentityWhat its token can do
ViewerRead workflows, evidence, graph and audit history; participate in chat, mentions and explicit agent questions. Cannot review or publish.
ReviewerViewer access plus complete snapshot imports, review decisions, renewals and publication requests. Needs Publisher or Administrator approval to make a release live.
PublisherReviewer access plus optional independent verification and publication/approval, including their own reviewed work or own requests.
AdministratorPublisher access plus member management, agent configuration and workflow configuration.
Feed readerOwn identity, discovery/specification and approved feed formats. Cannot browse the workbench.
External agentOwn identity, discovery/specification and its assigned job claim/complete/fail routes. Cannot review, approve, publish or post unsolicited chat.
Managed agentNo interactive access token. The server runs an answer only for an explicitly addressed human request.

Review/publication changes, new messages and agent execution require the server's active Enterprise entitlement. Read access to saved work and administrator credential revocation remain available after expiry. A desktop license does not override the team server's entitlement or roles.

Each server is one shared team. Human workbench members can read its workflows; workflow IDs are not separate customer or tenant security boundaries.

From review to an approved feed

Import complete snapshots and record human decisions in the workbench or the Review API. The sequence below starts with an existing prepared workflow.

Read the workflow and publication checks

Bash · workflows and validation
curl --fail-with-body --silent --show-error \
  --header "Authorization: Bearer $IOC_TOKEN" \
  "$IOC_SERVER/api/workflows"

# Use a real workflow ID from that response.
IOC_WORKFLOW='incident-0042'
curl --fail-with-body --silent --show-error \
  --header "Authorization: Bearer $IOC_TOKEN" \
  "$IOC_SERVER/api/workflows/$IOC_WORKFLOW/validate"

Inspect the returned gate, revision and candidate_digest. New, unprepared workflows return null gates/digests. Fix unfinished review, missing input, expiry or other reported publication blockers before continuing.

As a Reviewer, request publication

Save the following as publication-request.json, replacing 8 with the current returned revision and the digest placeholder with the current candidate_digest. These are illustrative values, not a reusable revision.

publication-request.json
{
  "expected_revision": 8,
  "expected_digest": "COPY_CURRENT_CANDIDATE_DIGEST",
  "note": "Source evidence reviewed; ready for publication approval."
}
Bash · submit for approval
curl --fail-with-body --silent --show-error \
  --header "Authorization: Bearer $IOC_TOKEN" \
  --header 'Content-Type: application/json' \
  --data-binary @publication-request.json \
  "$IOC_SERVER/api/workflows/$IOC_WORKFLOW/publication-requests"

The response is updated workflow detail. Its publication_request records the exact candidate, requester and pending state. Submission advances the revision. The existing feed is unchanged.

As a Publisher, approve that exact candidate

A Publisher or Administrator can approve their own work as well. Read the current workflow with that identity before resolving a request:

Bash · read current approval request
read -r -s -p 'Publisher or Administrator token: ' IOC_PUBLISHER_TOKEN
printf '\n'

curl --fail-with-body --silent --show-error \
  --header "Authorization: Bearer $IOC_PUBLISHER_TOKEN" \
  "$IOC_SERVER/api/workflows/$IOC_WORKFLOW"

# Copy publication_request.id from the returned pending request.
IOC_REQUEST='COPY_RETURNED_REQUEST_ID'

Save publication-approval.json below. Replace 9 with the workflow's current revision, and send publication_request.candidate_digest as expected_digest. Inspect the request and evidence first; do not blindly adopt a newer candidate.

publication-approval.json
{
  "expected_revision": 9,
  "expected_digest": "COPY_PUBLICATION_REQUEST_CANDIDATE_DIGEST",
  "note": "Evidence checked. Approved for the published feed."
}
Bash · approve and publish
curl --fail-with-body --silent --show-error \
  --header "Authorization: Bearer $IOC_PUBLISHER_TOKEN" \
  --header 'Content-Type: application/json' \
  --data-binary @publication-approval.json \
  "$IOC_SERVER/api/workflows/$IOC_WORKFLOW/publication-requests/$IOC_REQUEST/approve"

Approval and publication are atomic, and the response includes the release. A content or configuration change makes the pending request outdated; it cannot approve the changed work. To reject, send expected_revision and a nonblank reason to the same request's /reject route. Rejection keeps the published feed unchanged.

Publish your own work directly as a Publisher

You do not need to create an approval request first. Save publication.json with the current expected_revision, the current candidate_digest as expected_digest, and an optional note. Then call:

Bash · Publisher direct publication
curl --fail-with-body --silent --show-error \
  --header "Authorization: Bearer $IOC_PUBLISHER_TOKEN" \
  --header 'Content-Type: application/json' \
  --data-binary @publication.json \
  "$IOC_SERVER/api/workflows/$IOC_WORKFLOW/publish"

Publisher and Administrator roles can publish their own decisions. Independent per-indicator verification is optional and remains attributed to a different reviewer when used. Reviewers cannot bypass approval through this endpoint.

Consume the approved feed

Bash · download approved indicators
# Use a dedicated Feed reader token for a consuming integration.
read -r -s -p 'Feed reader token: ' IOC_FEED_TOKEN
printf '\n'

curl --fail-with-body --silent --show-error \
  --header "Authorization: Bearer $IOC_FEED_TOKEN" \
  --dump-header feed-headers.txt \
  --output approved-indicators.json \
  "$IOC_SERVER/api/workflows/$IOC_WORKFLOW/feed/json"

Formats are json, csv, txt, stix and delta. No published release returns HTTP 404 with no_published_release. Save the response's ETag and send it later as If-None-Match; a matching feed returns HTTP 304 with no body. Keep your existing output file on 304.

Feeds serve the latest approved immutable release. Draft changes and pending requests do not change them. Feed consumption does not itself install indicators in a SIEM or firewall.

Handle other analysts and retries

Read the current workflow and include expected_revision on configuration, import, decision, renewal, verification and publication changes. Verification/publication also bind a candidate digest. On HTTP 409, reload and inspect what changed before deciding how to proceed.

OperationWhen the response is lost
Publication requestKeep the original actor, expected revision, digest and note together. Replaying that submission returns current state without another request. A changed payload is a new operation.
ApprovalReplaying the successful approval requires the original resolver and matching effective trimmed note; a blank approval note uses the original request note. It returns the original release. A different resolver or changed note conflicts.
RejectionThe original resolver and same reason can replay the existing rejection without another resolution.
Direct publicationRead current state first. Repeating /publish for an already-published candidate returns a conflict; it does not add a release.
ChatUse a fresh UUID for a new client_message_id. Retain the same UUID and entire payload when retrying the same send. Changed content under that UUID conflicts.
Member creation, import, other writesRead state after an uncertain result. Do not assume a failed connection means the server did not commit the operation.

Live collaboration and agents

Use a UUID per connected window for session_id and poll /api/collaboration/sync about every two seconds. Use the returned next_activity and next_message cursors, and reset them to zero when changing rooms. If has_more is true, fetch the next page promptly. The returned user is the current authenticated identity; enterprise is the server's write entitlement.

POST /api/chat/messages accepts same-room reply_to, authoritative mention_user_ids, an optional current workflow indicator_id, and one explicit agent_id. Only a selected agent target queues work. Typing an @name in ordinary text does not start a model. Agents cannot review, approve or publish.

Input and paging limits

  • Workflow preparation: all configured complete snapshots, at most 200 inputs and 20 MiB of combined UTF-8 source content. Each input's name must be its configured source ID. Do not send an invented as_of; the server chooses evaluation time.
  • General HTTP JSON body: at most 32 MiB. Chat, collaboration, agent configuration and job writes: at most 32 KiB.
  • Publication request history: latest 100, newest first, with has_more. Audit endpoints retain request and resolution events.
  • Other limits and cursor names are listed on each operation below. Responses can include truncation metadata; do not silently treat a partial page as a complete collection.

Errors you can act on

Errors have an error.code and readable error.message. A conflict can also include the current revision. Preserve the response when troubleshooting, excluding credentials.

Illustrative error response
{
  "error": {
    "code": "revision_conflict",
    "message": "This workflow changed. Reload and inspect the current revision."
  },
  "revision": 8
}
HTTP statusMeaning
400Malformed request, invalid Host, or credentials supplied in a query parameter.
401Missing, invalid, or revoked bearer token.
403Account kind/role, browser origin, or Enterprise entitlement does not permit this operation.
404Record not found.
405HTTP method is not supported.
409Revision, lease, attempt, or idempotency conflict.
413Request is too large.
415The request requires application/json.
422Request validation failed.
429Rate or queue capacity limit.
500An internal error prevented the operation.
503Service is temporarily busy.

See the Error model for the exact structure. Code/message details vary by the failed check.

Endpoint reference

Generated from the bundled product contract. Expand an operation for its permissions, parameters, body and responses. This reference has no live request console.

Showing all 49 operations.

Identity

GET /api Discover API and authenticated identity

Any valid current access token, including feed and external-agent tokens. This grants no access to other operations. The capability list describes server features, not grants to this token.

Authentication: Authorization: Bearer <access-token>

No request body is defined.

Responses

HTTP 200 — Success

application/json · ApiDiscovery

{
  "$ref": "#/components/schemas/ApiDiscovery"
}

Possible errors: 400, 401, 403, 404, 405, 409, 413, 415, 422, 429, 500, 503. Error meanings.

GET /api/openapi.json Download this OpenAPI contract

Any valid current access token, including feed and external-agent tokens. This grants no access to other operations.

Authentication: Authorization: Bearer <access-token>

No request body is defined.

Responses

HTTP 200 — Success

application/json · object

{
  "type": "object",
  "additionalProperties": true
}

Possible errors: 400, 401, 403, 404, 405, 409, 413, 415, 422, 429, 500, 503. Error meanings.

GET /api/me Read own identity and server license status

Any valid current access token, including feed and external-agent tokens. This grants no access to other operations. The checkout field is public purchase metadata for the matching publisher build, or null.

Authentication: Authorization: Bearer <access-token>

No request body is defined.

Responses

HTTP 200 — Success

application/json · Identity

{
  "$ref": "#/components/schemas/Identity"
}

Possible errors: 400, 401, 403, 404, 405, 409, 413, 415, 422, 429, 500, 503. Error meanings.

Operations

POST /api/license/refresh Refresh the server subscription license

Human administrator. Developer test licenses require a new owner signature instead. One manual refresh runs at a time. An accepted refresh completes after a client disconnects.

Authentication: Authorization: Bearer <access-token>

No request body is defined.

Responses

HTTP 200 — Success

application/json · object

{
  "type": "object",
  "properties": {
    "license": {
      "$ref": "#/components/schemas/LicenseStatus"
    },
    "read_only": {
      "type": "boolean"
    }
  },
  "required": [
    "license",
    "read_only"
  ],
  "additionalProperties": false
}

Possible errors: 400, 401, 403, 404, 405, 409, 413, 415, 422, 429, 500, 503, 502. Error meanings.

Members

GET /api/users List stable team identities

Human viewer, reviewer, publisher, or administrator. Agent and feed credentials are excluded.

Authentication: Authorization: Bearer <access-token>

No request body is defined.

Responses

HTTP 200 — Success

application/json · object

{
  "type": "object",
  "properties": {
    "users": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/User"
      }
    }
  },
  "required": [
    "users"
  ],
  "additionalProperties": false
}

Possible errors: 400, 401, 403, 404, 405, 409, 413, 415, 422, 429, 500, 503. Error meanings.

POST /api/users Create a human member and return its token once

Human administrator; an active Enterprise entitlement is required. Reuse existing identities; duplicate active names are rejected.

Authentication: Authorization: Bearer <access-token>

Request body — required

application/json · CreateUser

FieldPresenceTypeConstraints
nameRequiredstring{"minLength": 1, "description": "1–200 UTF-8 bytes without control characters; active names must be unique."}
roleRequiredstring{"enum": ["viewer", "reviewer", "publisher", "admin", "feed_reader"]}
{
  "$ref": "#/components/schemas/CreateUser"
}

Responses

HTTP 200 — Success

application/json · CredentialResult

{
  "$ref": "#/components/schemas/CredentialResult"
}

Possible errors: 400, 401, 403, 404, 405, 409, 413, 415, 422, 429, 500, 503, 408. Error meanings.

PUT /api/users/{id} Change a human member role

Human administrator; an active Enterprise entitlement is required. Agent accounts must be managed in Agents.

Authentication: Authorization: Bearer <access-token>

Parameters

NameLocationPresenceSchema
idpathRequired{"type": "string", "format": "uuid"}

Request body — required

application/json · object

FieldPresenceTypeConstraints
roleRequiredstring{"enum": ["viewer", "reviewer", "publisher", "admin", "feed_reader"]}
{
  "type": "object",
  "properties": {
    "role": {
      "type": "string",
      "enum": [
        "viewer",
        "reviewer",
        "publisher",
        "admin",
        "feed_reader"
      ]
    }
  },
  "required": [
    "role"
  ],
  "additionalProperties": false
}

Responses

HTTP 200 — Success

application/json · TeamUserResult

{
  "$ref": "#/components/schemas/TeamUserResult"
}

Possible errors: 400, 401, 403, 404, 405, 409, 413, 415, 422, 429, 500, 503, 408. Error meanings.

DELETE /api/users/{id} Revoke a member or agent while retaining attribution

Human administrator; available after license expiry. The last active administrator is protected.

Authentication: Authorization: Bearer <access-token>

Parameters

NameLocationPresenceSchema
idpathRequired{"type": "string", "format": "uuid"}

No request body is defined.

Responses

HTTP 200 — Success

application/json · TeamUserResult

{
  "$ref": "#/components/schemas/TeamUserResult"
}

Possible errors: 400, 401, 403, 404, 405, 409, 413, 415, 422, 429, 500, 503. Error meanings.

POST /api/users/{id}/rotate Replace an existing human or external-agent access token

Human administrator; an active Enterprise entitlement is required. Managed agents have no exported token. Old tokens stop working immediately.

Authentication: Authorization: Bearer <access-token>

Parameters

NameLocationPresenceSchema
idpathRequired{"type": "string", "format": "uuid"}

No request body is defined.

Responses

HTTP 200 — Success

application/json · CredentialResult

{
  "$ref": "#/components/schemas/CredentialResult"
}

Possible errors: 400, 401, 403, 404, 405, 409, 413, 415, 422, 429, 500, 503. Error meanings.

Workflows

GET /api/workflows List workflow names and revisions

Human viewer, reviewer, publisher, or administrator. Agent and feed credentials are excluded. Returns workflow summaries.

Authentication: Authorization: Bearer <access-token>

No request body is defined.

Responses

HTTP 200 — Success

application/json · object

{
  "type": "object",
  "properties": {
    "workflows": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/WorkflowSummary"
      }
    }
  },
  "required": [
    "workflows"
  ],
  "additionalProperties": false
}

Possible errors: 400, 401, 403, 404, 405, 409, 413, 415, 422, 429, 500, 503. Error meanings.

POST /api/workflows Create a reusable shared workflow

Human administrator; an active Enterprise entitlement is required. The URL path segments "." and ".." cannot be workflow IDs.

Authentication: Authorization: Bearer <access-token>

Request body — required

application/json · object

FieldPresenceTypeConstraints
configRequiredWorkflowConfig{}
{
  "type": "object",
  "properties": {
    "config": {
      "$ref": "#/components/schemas/WorkflowConfig"
    }
  },
  "required": [
    "config"
  ],
  "additionalProperties": false
}

Responses

HTTP 200 — Success

application/json · WorkflowDetail

{
  "$ref": "#/components/schemas/WorkflowDetail"
}

Possible errors: 400, 401, 403, 404, 405, 409, 413, 415, 422, 429, 500, 503, 408. Error meanings.

GET /api/workflows/{id} Read workflow, current review, attribution, and gates

Human viewer, reviewer, publisher, or administrator. Agent and feed credentials are excluded.

Authentication: Authorization: Bearer <access-token>

Parameters

NameLocationPresenceSchema
idpathRequired{"type": "string", "description": "Stable workflow identifier; use the value returned by /api/workflows.", "pattern": "^[A-Za-z0-9_.-]{1,128}$", "minLength": 1, "maxLength": 128}

No request body is defined.

Responses

HTTP 200 — Success

application/json · WorkflowDetail

{
  "$ref": "#/components/schemas/WorkflowDetail"
}

Possible errors: 400, 401, 403, 404, 405, 409, 413, 415, 422, 429, 500, 503. Error meanings.

PUT /api/workflows/{id} Update workflow configuration at the expected revision

Human administrator; an active Enterprise entitlement is required. ID is immutable; prepare a new complete snapshot after configuration changes.

Authentication: Authorization: Bearer <access-token>

Parameters

NameLocationPresenceSchema
idpathRequired{"type": "string", "description": "Stable workflow identifier; use the value returned by /api/workflows.", "pattern": "^[A-Za-z0-9_.-]{1,128}$", "minLength": 1, "maxLength": 128}

Request body — required

application/json · object

FieldPresenceTypeConstraints
expected_revisionRequiredinteger{"format": "int64", "minimum": 1}
configRequiredWorkflowConfig{}
{
  "type": "object",
  "properties": {
    "expected_revision": {
      "type": "integer",
      "format": "int64",
      "minimum": 1
    },
    "config": {
      "$ref": "#/components/schemas/WorkflowConfig"
    }
  },
  "required": [
    "expected_revision",
    "config"
  ],
  "additionalProperties": false
}

Responses

HTTP 200 — Success

application/json · WorkflowDetail

{
  "$ref": "#/components/schemas/WorkflowDetail"
}

Possible errors: 400, 401, 403, 404, 405, 409, 413, 415, 422, 429, 500, 503, 408. Error meanings.

Review

POST /api/workflows/{id}/prepare Import complete source snapshots

Human reviewer, publisher, or administrator; active Enterprise required. Supply the current revision to avoid overwriting another analyst. Server time is authoritative; do not supply as_of.

Authentication: Authorization: Bearer <access-token>

Parameters

NameLocationPresenceSchema
idpathRequired{"type": "string", "description": "Stable workflow identifier; use the value returned by /api/workflows.", "pattern": "^[A-Za-z0-9_.-]{1,128}$", "minLength": 1, "maxLength": 128}

Request body — required

application/json · PrepareWorkflow

FieldPresenceTypeConstraints
expected_revisionRequiredinteger{"format": "int64", "minimum": 1}
inputsRequiredArray of object{"minItems": 1, "maxItems": 200}
{
  "$ref": "#/components/schemas/PrepareWorkflow"
}

Responses

HTTP 200 — Success

application/json · WorkflowDetail

{
  "$ref": "#/components/schemas/WorkflowDetail"
}

Possible errors: 400, 401, 403, 404, 405, 409, 413, 415, 422, 429, 500, 503, 408. Error meanings.

POST /api/workflows/{id}/decisions Record human IOC decisions

Human reviewer, publisher, or administrator; active Enterprise required. Supply the current revision to avoid overwriting another analyst.

Authentication: Authorization: Bearer <access-token>

Parameters

NameLocationPresenceSchema
idpathRequired{"type": "string", "description": "Stable workflow identifier; use the value returned by /api/workflows.", "pattern": "^[A-Za-z0-9_.-]{1,128}$", "minLength": 1, "maxLength": 128}

Request body — required

application/json · DecideWorkflow

FieldPresenceTypeConstraints
expected_revisionRequiredinteger{"format": "int64", "minimum": 1}
idsRequiredArray of string{"minItems": 1, "maxItems": 50000, "uniqueItems": true}
stateRequiredstring{"enum": ["keep", "exclude", "needs_review"]}
reasonRequiredstring{}
{
  "$ref": "#/components/schemas/DecideWorkflow"
}

Responses

HTTP 200 — Success

application/json · WorkflowDetail

{
  "$ref": "#/components/schemas/WorkflowDetail"
}

Possible errors: 400, 401, 403, 404, 405, 409, 413, 415, 422, 429, 500, 503, 408. Error meanings.

POST /api/workflows/{id}/renew Renew selected indicator validity

Human reviewer, publisher, or administrator; active Enterprise required. Supply the current revision to avoid overwriting another analyst.

Authentication: Authorization: Bearer <access-token>

Parameters

NameLocationPresenceSchema
idpathRequired{"type": "string", "description": "Stable workflow identifier; use the value returned by /api/workflows.", "pattern": "^[A-Za-z0-9_.-]{1,128}$", "minLength": 1, "maxLength": 128}

Request body — required

application/json · RenewWorkflow

FieldPresenceTypeConstraints
expected_revisionRequiredinteger{"format": "int64", "minimum": 1}
idsRequiredArray of string{"minItems": 1, "maxItems": 50000, "uniqueItems": true}
reasonRequiredstring{}
{
  "$ref": "#/components/schemas/RenewWorkflow"
}

Responses

HTTP 200 — Success

application/json · WorkflowDetail

{
  "$ref": "#/components/schemas/WorkflowDetail"
}

Possible errors: 400, 401, 403, 404, 405, 409, 413, 415, 422, 429, 500, 503, 408. Error meanings.

POST /api/workflows/{id}/verify Independently verify current decisions

Human publisher or administrator; active Enterprise required. A person cannot independently verify their own decision. This optional evidence check is not required for publication.

Authentication: Authorization: Bearer <access-token>

Parameters

NameLocationPresenceSchema
idpathRequired{"type": "string", "description": "Stable workflow identifier; use the value returned by /api/workflows.", "pattern": "^[A-Za-z0-9_.-]{1,128}$", "minLength": 1, "maxLength": 128}

Request body — required

application/json · VerifyWorkflow

FieldPresenceTypeConstraints
expected_revisionRequiredinteger{"format": "int64", "minimum": 1}
expected_digestRequiredstring{}
idsRequiredArray of string{"minItems": 1, "maxItems": 50000, "uniqueItems": true}
noteOptionalstring{"description": "At most 8,000 UTF-8 bytes."}
{
  "$ref": "#/components/schemas/VerifyWorkflow"
}

Responses

HTTP 200 — Success

application/json · WorkflowDetail

{
  "$ref": "#/components/schemas/WorkflowDetail"
}

Possible errors: 400, 401, 403, 404, 405, 409, 413, 415, 422, 429, 500, 503, 408. Error meanings.

GET /api/workflows/{id}/validate Read publication gates, approval status, and current candidate digest

Human viewer, reviewer, publisher, or administrator. Agent and feed credentials are excluded. Gate and digests are null before a review has been prepared.

Authentication: Authorization: Bearer <access-token>

Parameters

NameLocationPresenceSchema
idpathRequired{"type": "string", "description": "Stable workflow identifier; use the value returned by /api/workflows.", "pattern": "^[A-Za-z0-9_.-]{1,128}$", "minLength": 1, "maxLength": 128}

No request body is defined.

Responses

HTTP 200 — Success

application/json · object

{
  "type": "object",
  "properties": {
    "revision": {
      "type": "integer",
      "format": "int64",
      "minimum": 1
    },
    "gate": {
      "anyOf": [
        {
          "type": "object",
          "additionalProperties": true
        },
        {
          "type": "null"
        }
      ]
    },
    "candidate_digest": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "expected_digest": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "publication_request": {
      "anyOf": [
        {
          "$ref": "#/components/schemas/PublicationRequest"
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "revision",
    "gate",
    "candidate_digest",
    "expected_digest",
    "publication_request"
  ],
  "additionalProperties": false
}

Possible errors: 400, 401, 403, 404, 405, 409, 413, 415, 422, 429, 500, 503. Error meanings.

Publication

POST /api/workflows/{id}/publish Publish the exact gated reviewed candidate

Human publisher or administrator; active Enterprise required. Current publication gates must pass. May approve and publish their own reviewed work; independent decision verification is optional.

Authentication: Authorization: Bearer <access-token>

Parameters

NameLocationPresenceSchema
idpathRequired{"type": "string", "description": "Stable workflow identifier; use the value returned by /api/workflows.", "pattern": "^[A-Za-z0-9_.-]{1,128}$", "minLength": 1, "maxLength": 128}

Request body — required

application/json · PublishWorkflow

FieldPresenceTypeConstraints
expected_revisionRequiredinteger{"format": "int64", "minimum": 1}
expected_digestRequiredstring{}
noteOptionalstring{"description": "At most 8,000 UTF-8 bytes."}
{
  "$ref": "#/components/schemas/PublishWorkflow"
}

Responses

HTTP 200 — Success

application/json · WorkflowDetail

{
  "$ref": "#/components/schemas/WorkflowDetail"
}

Possible errors: 400, 401, 403, 404, 405, 409, 413, 415, 422, 429, 500, 503, 408. Error meanings.

GET /api/workflows/{id}/publication-requests Read the latest publication approval requests

Human viewer, reviewer, publisher, or administrator. Agent and feed credentials are excluded. Returns the latest 100 requests, newest first, including resolved requests.

Authentication: Authorization: Bearer <access-token>

Parameters

NameLocationPresenceSchema
idpathRequired{"type": "string", "description": "Stable workflow identifier; use the value returned by /api/workflows.", "pattern": "^[A-Za-z0-9_.-]{1,128}$", "minLength": 1, "maxLength": 128}

No request body is defined.

Responses

HTTP 200 — Success

application/json · object

{
  "type": "object",
  "properties": {
    "requests": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/PublicationRequest"
      },
      "maxItems": 100
    },
    "has_more": {
      "type": "boolean"
    }
  },
  "required": [
    "requests",
    "has_more"
  ],
  "additionalProperties": false
}

Possible errors: 400, 401, 403, 404, 405, 409, 413, 415, 422, 429, 500, 503. Error meanings.

POST /api/workflows/{id}/publication-requests Submit the exact reviewed candidate for Publisher approval

Human reviewer, publisher, or administrator; active Enterprise required. Supply the current revision to avoid overwriting another analyst. Saves an attributed pending request without changing the published feed. A Reviewer cannot approve it. Changes to the candidate make the request outdated.

Authentication: Authorization: Bearer <access-token>

Parameters

NameLocationPresenceSchema
idpathRequired{"type": "string", "description": "Stable workflow identifier; use the value returned by /api/workflows.", "pattern": "^[A-Za-z0-9_.-]{1,128}$", "minLength": 1, "maxLength": 128}

Request body — required

application/json · RequestPublication

FieldPresenceTypeConstraints
expected_revisionRequiredinteger{"format": "int64", "minimum": 1}
expected_digestRequiredstring{}
noteOptionalstring{"description": "Optional submission note, at most 8,000 UTF-8 bytes."}
{
  "$ref": "#/components/schemas/RequestPublication"
}

Responses

HTTP 200 — Success

application/json · WorkflowDetail

{
  "$ref": "#/components/schemas/WorkflowDetail"
}

Possible errors: 400, 401, 403, 404, 405, 409, 413, 415, 422, 429, 500, 503, 408. Error meanings.

POST /api/workflows/{id}/publication-requests/{request_id}/approve Approve a pending request and publish its exact candidate

Human publisher or administrator; active Enterprise required. Current publication gates must pass. May approve and publish their own reviewed work; independent decision verification is optional. Requires the current revision and the pending request candidate digest. Approval and release publication are atomic; the response also includes release. A changed candidate cannot inherit approval of an older request. A lost-response replay requires the original resolver and same effective trimmed note; changed approval payloads return conflict.

Authentication: Authorization: Bearer <access-token>

Parameters

NameLocationPresenceSchema
idpathRequired{"type": "string", "description": "Stable workflow identifier; use the value returned by /api/workflows.", "pattern": "^[A-Za-z0-9_.-]{1,128}$", "minLength": 1, "maxLength": 128}
request_idpathRequired{"type": "string", "format": "uuid"} Publication request ID returned by this workflow.

Request body — required

application/json · ApprovePublication

FieldPresenceTypeConstraints
expected_revisionRequiredinteger{"format": "int64", "minimum": 1}
expected_digestRequiredstring{}
noteOptionalstring{"description": "Optional approval/publication note, at most 8,000 UTF-8 bytes."}
{
  "$ref": "#/components/schemas/ApprovePublication"
}

Responses

HTTP 200 — Success

application/json · WorkflowDetail

{
  "$ref": "#/components/schemas/WorkflowDetail"
}

Possible errors: 400, 401, 403, 404, 405, 409, 413, 415, 422, 429, 500, 503, 408. Error meanings.

POST /api/workflows/{id}/publication-requests/{request_id}/reject Reject a pending publication request with a reason

Human publisher or administrator; active Enterprise required. Requires the current revision and a pending request, but not passing publication gates. Records the resolver and reason. Does not change existing published feeds; the reviewer can prepare and submit a corrected candidate.

Authentication: Authorization: Bearer <access-token>

Parameters

NameLocationPresenceSchema
idpathRequired{"type": "string", "description": "Stable workflow identifier; use the value returned by /api/workflows.", "pattern": "^[A-Za-z0-9_.-]{1,128}$", "minLength": 1, "maxLength": 128}
request_idpathRequired{"type": "string", "format": "uuid"} Publication request ID returned by this workflow.

Request body — required

application/json · RejectPublication

FieldPresenceTypeConstraints
expected_revisionRequiredinteger{"format": "int64", "minimum": 1}
reasonRequiredstring{"minLength": 1, "description": "Required rejection reason after trimming, at most 8,000 UTF-8 bytes."}
{
  "$ref": "#/components/schemas/RejectPublication"
}

Responses

HTTP 200 — Success

application/json · WorkflowDetail

{
  "$ref": "#/components/schemas/WorkflowDetail"
}

Possible errors: 400, 401, 403, 404, 405, 409, 413, 415, 422, 429, 500, 503, 408. Error meanings.

GET /api/workflows/{id}/releases List immutable published releases

Human viewer, reviewer, publisher, or administrator. Agent and feed credentials are excluded.

Authentication: Authorization: Bearer <access-token>

Parameters

NameLocationPresenceSchema
idpathRequired{"type": "string", "description": "Stable workflow identifier; use the value returned by /api/workflows.", "pattern": "^[A-Za-z0-9_.-]{1,128}$", "minLength": 1, "maxLength": 128}

No request body is defined.

Responses

HTTP 200 — Success

application/json · object

{
  "type": "object",
  "properties": {
    "releases": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/ReleaseSummary"
      }
    }
  },
  "required": [
    "releases"
  ],
  "additionalProperties": false
}

Possible errors: 400, 401, 403, 404, 405, 409, 413, 415, 422, 429, 500, 503. Error meanings.

GET /api/workflows/{id}/releases/{release_id} Read an immutable release

Human viewer, reviewer, publisher, or administrator. Agent and feed credentials are excluded.

Authentication: Authorization: Bearer <access-token>

Parameters

NameLocationPresenceSchema
idpathRequired{"type": "string", "description": "Stable workflow identifier; use the value returned by /api/workflows.", "pattern": "^[A-Za-z0-9_.-]{1,128}$", "minLength": 1, "maxLength": 128}
release_idpathRequired{"type": "string"}

No request body is defined.

Responses

HTTP 200 — Success

application/json · object

{
  "type": "object",
  "properties": {
    "release": {
      "$ref": "#/components/schemas/Release"
    },
    "actor_id": {
      "type": "string",
      "format": "uuid"
    },
    "note": {
      "type": "string"
    },
    "revision": {
      "type": "integer",
      "format": "int64",
      "minimum": 1
    }
  },
  "required": [
    "release",
    "actor_id",
    "note",
    "revision"
  ],
  "additionalProperties": false
}

Possible errors: 400, 401, 403, 404, 405, 409, 413, 415, 422, 429, 500, 503. Error meanings.

GET /api/workflows/{id}/releases/{release_id}/bundle Download the frozen release ZIP

Human viewer, reviewer, publisher, or administrator. Agent and feed credentials are excluded.

Authentication: Authorization: Bearer <access-token>

Parameters

NameLocationPresenceSchema
idpathRequired{"type": "string", "description": "Stable workflow identifier; use the value returned by /api/workflows.", "pattern": "^[A-Za-z0-9_.-]{1,128}$", "minLength": 1, "maxLength": 128}
release_idpathRequired{"type": "string"}

No request body is defined.

Responses

HTTP 200 — Success

application/zip · string

{
  "type": "string",
  "format": "binary"
}

Possible errors: 400, 401, 403, 404, 405, 409, 413, 415, 422, 429, 500, 503. Error meanings.

Feeds

GET /api/workflows/{id}/feed/{format} Read the latest approved feed with ETag support

Human or feed-reader token; external-agent tokens excluded. Returns only already-published immutable content; current candidate changes do not alter this feed.

Authentication: Authorization: Bearer <access-token>

Parameters

NameLocationPresenceSchema
idpathRequired{"type": "string", "description": "Stable workflow identifier; use the value returned by /api/workflows.", "pattern": "^[A-Za-z0-9_.-]{1,128}$", "minLength": 1, "maxLength": 128}
formatpathRequired{"type": "string", "enum": ["csv", "txt", "json", "stix", "delta"]}
If-None-MatchheaderOptional{"type": "string"}

No request body is defined.

Responses

HTTP 200 — Success

application/json · object or schema-defined value

{}

text/csv · object or schema-defined value

{}

text/plain · object or schema-defined value

{}

application/stix+json · object or schema-defined value

{}

Possible errors: 400, 401, 403, 404, 405, 409, 413, 415, 422, 429, 500, 503, 304. Error meanings.

Collaboration

GET /api/audit Read persistent audit events

Human viewer, reviewer, publisher, or administrator. Agent and feed credentials are excluded. Use next_after while has_more is true. Pages may stop before the requested count to keep full record details within 8 MiB, with one record guaranteed if events remain.

Authentication: Authorization: Bearer <access-token>

Parameters

NameLocationPresenceSchema
afterqueryOptional{"type": "integer", "minimum": 0, "default": 0}
limitqueryOptional{"type": "integer", "minimum": 1, "maximum": 500, "default": 100}

No request body is defined.

Responses

HTTP 200 — Success

application/json · object

{
  "type": "object",
  "properties": {
    "events": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/AuditEvent"
      }
    },
    "next_after": {
      "type": "integer",
      "format": "int64"
    },
    "has_more": {
      "type": "boolean"
    }
  },
  "required": [
    "events",
    "next_after",
    "has_more"
  ],
  "additionalProperties": false
}

Possible errors: 400, 401, 403, 404, 405, 409, 413, 415, 422, 429, 500, 503. Error meanings.

GET /api/workflows/{id}/audit Read persistent audit events

Human viewer, reviewer, publisher, or administrator. Agent and feed credentials are excluded. Use next_after while has_more is true. Pages may stop before the requested count to keep full record details within 8 MiB, with one record guaranteed if events remain.

Authentication: Authorization: Bearer <access-token>

Parameters

NameLocationPresenceSchema
idpathRequired{"type": "string", "description": "Stable workflow identifier; use the value returned by /api/workflows.", "pattern": "^[A-Za-z0-9_.-]{1,128}$", "minLength": 1, "maxLength": 128}
afterqueryOptional{"type": "integer", "minimum": 0, "default": 0}
limitqueryOptional{"type": "integer", "minimum": 1, "maximum": 500, "default": 100}

No request body is defined.

Responses

HTTP 200 — Success

application/json · object

{
  "type": "object",
  "properties": {
    "events": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/AuditEvent"
      }
    },
    "next_after": {
      "type": "integer",
      "format": "int64"
    },
    "has_more": {
      "type": "boolean"
    }
  },
  "required": [
    "events",
    "next_after",
    "has_more"
  ],
  "additionalProperties": false
}

Possible errors: 400, 401, 403, 404, 405, 409, 413, 415, 422, 429, 500, 503. Error meanings.

POST /api/collaboration/sync Heartbeat, current identity, and bounded live messages/activity/job status

Human viewer, reviewer, publisher, or administrator. Agent and feed credentials are excluded. Poll about every two seconds. user is the current authenticated identity; clients should refresh role controls from it without discarding drafts. Reset cursors when changing rooms. A zero cursor returns the latest100 messages/events; presence expires after30 seconds. Live audit details are bounded to16KiB per event; full audit endpoints retain original details.

Authentication: Authorization: Bearer <access-token>

Request body — required

application/json · SyncRequest

FieldPresenceTypeConstraints
session_idRequiredstring{"format": "uuid"}
workflow_idOptionalobject or schema-defined value{"anyOf": [{"type": "string", "description": "Stable workflow identifier; use the value returned by /api/workflows.", "pattern": "^[A-Za-z0-9_.-]{1,128}$", "minLength": 1, "maxLength": 128}, {"type": "null"}]}
viewRequiredstring{"enum": ["overview", "review", "graph", "chat"]}
selected_iocOptionalobject or schema-defined value{"anyOf": [{"type": "string", "pattern": "^[0-9a-f]{64}$"}, {"type": "null"}]}
after_activityOptionalinteger{"minimum": 0, "default": 0}
after_messageOptionalinteger{"minimum": 0, "default": 0}
typingOptionalboolean{"default": false}
{
  "$ref": "#/components/schemas/SyncRequest"
}

Responses

HTTP 200 — Success

application/json · SyncResult

{
  "$ref": "#/components/schemas/SyncResult"
}

Possible errors: 400, 401, 403, 404, 405, 409, 413, 415, 422, 429, 500, 503, 408. Error meanings.

POST /api/collaboration/leave Remove this identity's specified presence session

Human viewer, reviewer, publisher, or administrator. Agent and feed credentials are excluded.

Authentication: Authorization: Bearer <access-token>

Request body — required

application/json · object

FieldPresenceTypeConstraints
session_idRequiredstring{"format": "uuid"}
{
  "type": "object",
  "properties": {
    "session_id": {
      "type": "string",
      "format": "uuid"
    }
  },
  "required": [
    "session_id"
  ],
  "additionalProperties": false
}

Responses

HTTP 200 — Success

application/json · object

{
  "type": "object",
  "properties": {
    "left": {
      "const": true
    }
  },
  "required": [
    "left"
  ],
  "additionalProperties": false
}

Possible errors: 400, 401, 403, 404, 405, 409, 413, 415, 422, 429, 500, 503, 408. Error meanings.

GET /api/chat/messages Read older messages in one room

Human viewer, reviewer, publisher, or administrator. Agent and feed credentials are excluded. Results are oldest first. Request the next older page with before=next_before.

Authentication: Authorization: Bearer <access-token>

Parameters

NameLocationPresenceSchema
workflow_idqueryOptional{"type": "string", "description": "Stable workflow identifier; use the value returned by /api/workflows.", "pattern": "^[A-Za-z0-9_.-]{1,128}$", "minLength": 1, "maxLength": 128} Omit for the team room or across-team graph; do not send the literal string null.
beforequeryOptional{"type": "integer", "minimum": 1}
limitqueryOptional{"type": "integer", "minimum": 1, "maximum": 100, "default": 100}

No request body is defined.

Responses

HTTP 200 — Success

application/json · object

{
  "type": "object",
  "properties": {
    "messages": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/Message"
      }
    },
    "next_before": {
      "anyOf": [
        {
          "type": "integer",
          "format": "int64"
        },
        {
          "type": "null"
        }
      ]
    },
    "has_more": {
      "type": "boolean"
    }
  },
  "required": [
    "messages",
    "next_before",
    "has_more"
  ],
  "additionalProperties": false
}

Possible errors: 400, 401, 403, 404, 405, 409, 413, 415, 422, 429, 500, 503. Error meanings.

POST /api/chat/messages Send, mention people, reply, or explicitly ask one agent

Human viewer, reviewer, publisher, or administrator. Agent and feed credentials are excluded. New messages require Enterprise. Keep client_message_id and content unchanged on retry. Reply and IOC attachment must belong to the same room. Only explicit agent_id queues one agent response; an @name string alone does not. External agents cannot post unsolicited messages.

Authentication: Authorization: Bearer <access-token>

Request body — required

application/json · SendMessage

FieldPresenceTypeConstraints
client_message_idRequiredstring{"format": "uuid"}
workflow_idOptionalobject or schema-defined value{"anyOf": [{"type": "string", "description": "Stable workflow identifier; use the value returned by /api/workflows.", "pattern": "^[A-Za-z0-9_.-]{1,128}$", "minLength": 1, "maxLength": 128}, {"type": "null"}]}
bodyRequiredstring{"minLength": 1, "maxLength": 4000, "description": "Plain text, at most 16,000 UTF-8 bytes. No unsupported controls."}
indicator_idOptionalobject or schema-defined value{"anyOf": [{"type": "string", "pattern": "^[0-9a-f]{64}$"}, {"type": "null"}]}
reply_toOptionalobject or schema-defined value{"anyOf": [{"type": "integer", "minimum": 1}, {"type": "null"}]}
agent_idOptionalobject or schema-defined value{"anyOf": [{"type": "string", "format": "uuid"}, {"type": "null"}]}
mention_user_idsOptionalArray of string{"maxItems": 20, "uniqueItems": true}
{
  "$ref": "#/components/schemas/SendMessage"
}

Responses

HTTP 200 — Success

application/json · object

{
  "type": "object",
  "properties": {
    "message": {
      "$ref": "#/components/schemas/Message"
    },
    "deduplicated": {
      "type": "boolean"
    },
    "agent_job": {
      "anyOf": [
        {
          "$ref": "#/components/schemas/AgentJob"
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "message",
    "deduplicated",
    "agent_job"
  ],
  "additionalProperties": false
}

Possible errors: 400, 401, 403, 404, 405, 409, 413, 415, 422, 429, 500, 503, 408. Error meanings.

PUT /api/chat/messages/{id} Edit a message authored by the current human member

Only the original human author may edit. Requires an active Enterprise entitlement and a matching edit version. Agent-invoking messages are immutable. Trims whitespace and rejects an empty body, >4,000 characters, >16,000 UTF-8 bytes, and unsupported control characters. Emits a chat edit event and audit entry; does not overwrite earlier published evidence.

Authentication: Authorization: Bearer <access-token>

Parameters

NameLocationPresenceSchema
idpathRequired{"type": "integer", "format": "int64", "minimum": 1} Positive server-assigned message ID.

Request body — required

application/json · object

FieldPresenceTypeConstraints
bodyRequiredstring{"minLength": 1, "maxLength": 4000, "description": "Up to 16,000 UTF-8 bytes; line breaks and tabs allowed."}
expected_edit_versionRequiredinteger{"format": "int64", "minimum": 0, "description": "Version from the previously fetched message."}
{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "body",
    "expected_edit_version"
  ],
  "properties": {
    "body": {
      "type": "string",
      "minLength": 1,
      "maxLength": 4000,
      "description": "Up to 16,000 UTF-8 bytes; line breaks and tabs allowed."
    },
    "expected_edit_version": {
      "type": "integer",
      "format": "int64",
      "minimum": 0,
      "description": "Version from the previously fetched message."
    }
  }
}

Responses

HTTP 200 — Updated message, or unchanged if the body did not change

application/json · object

{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "message",
    "unchanged"
  ],
  "properties": {
    "message": {
      "$ref": "#/components/schemas/Message"
    },
    "unchanged": {
      "type": "boolean"
    }
  }
}

Possible errors: 400, 401, 403, 404, 409, 413, 415, 422, 429, 500, 503. Error meanings.

POST /api/chat/read Advance the current member’s per-room read cursor

Human viewer, reviewer, publisher, or administrator. Without last_read_message_id, the server acknowledges the latest message in this room. Requested cursors are capped to the room latest and never decrease. Does not mark other rooms read.

Authentication: Authorization: Bearer <access-token>

Request body — required

application/json · object

FieldPresenceTypeConstraints
workflow_idOptionalobject or schema-defined value{"anyOf": [{"type": "string", "minLength": 1, "maxLength": 128, "pattern": "^[A-Za-z0-9_.-]{1,128}$"}, {"type": "null"}], "description": "Omit or use null for the shared team room; otherwise use a current workflow ID."}
last_read_message_idOptionalobject or schema-defined value{"anyOf": [{"type": "integer", "format": "int64", "minimum": 0}, {"type": "null"}], "description": "Nonnegative message cursor; omit to acknowledge the latest message."}
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "workflow_id": {
      "anyOf": [
        {
          "type": "string",
          "minLength": 1,
          "maxLength": 128,
          "pattern": "^[A-Za-z0-9_.-]{1,128}$"
        },
        {
          "type": "null"
        }
      ],
      "description": "Omit or use null for the shared team room; otherwise use a current workflow ID."
    },
    "last_read_message_id": {
      "anyOf": [
        {
          "type": "integer",
          "format": "int64",
          "minimum": 0
        },
        {
          "type": "null"
        }
      ],
      "description": "Nonnegative message cursor; omit to acknowledge the latest message."
    }
  }
}

Responses

HTTP 200 — Read cursor and refreshed room/notification state

application/json · object

{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "last_read_id": {
      "type": "integer",
      "format": "int64",
      "minimum": 0
    },
    "rooms": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/ChatRoomSummary"
      }
    },
    "notifications": {
      "type": "array",
      "maxItems": 30,
      "items": {
        "$ref": "#/components/schemas/ChatNotification"
      }
    }
  },
  "required": [
    "last_read_id",
    "rooms",
    "notifications"
  ]
}

Possible errors: 400, 401, 403, 404, 413, 415, 422, 500, 503. Error meanings.

GET /api/chat/rooms List team and workflow chat rooms with per-member unread counters

Human viewer, reviewer, publisher, or administrator. Includes the shared team room and all workflows accessible on this team server; read positions are specific to this member.

Authentication: Authorization: Bearer <access-token>

No request body is defined.

Responses

HTTP 200 — Success

application/json · object

{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "rooms": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/ChatRoomSummary"
      }
    }
  },
  "required": [
    "rooms"
  ]
}

Possible errors: 400, 401, 403, 500, 503. Error meanings.

GET /api/chat/notifications Get recent incoming notifications for one room

Human viewer, reviewer, publisher, or administrator. At most 30 latest incoming messages, mentions, or replies. Omit workflow_id to query the shared team room.

Authentication: Authorization: Bearer <access-token>

Parameters

NameLocationPresenceSchema
workflow_idqueryOptional{"type": "string", "pattern": "^[A-Za-z0-9_.-]{1,128}$", "minLength": 1, "maxLength": 128} Workflow room; omit for shared team room.

No request body is defined.

Responses

HTTP 200 — Success

application/json · object

{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "notifications": {
      "type": "array",
      "maxItems": 30,
      "items": {
        "$ref": "#/components/schemas/ChatNotification"
      }
    }
  },
  "required": [
    "notifications"
  ]
}

Possible errors: 400, 401, 403, 404, 500, 503. Error meanings.

GET /api/graph Read graph relationships, evidence, and human attribution

Human viewer, reviewer, publisher, or administrator. Agent and feed credentials are excluded. Derived URL/email components are labeled. No external lookup occurs. Node/edge/workflow/response-size omissions are disclosed.

Authentication: Authorization: Bearer <access-token>

Parameters

NameLocationPresenceSchema
workflow_idqueryOptional{"type": "string", "description": "Stable workflow identifier; use the value returned by /api/workflows.", "pattern": "^[A-Za-z0-9_.-]{1,128}$", "minLength": 1, "maxLength": 128} Omit for the team room or across-team graph; do not send the literal string null.
qqueryOptional{"type": "string", "maxLength": 256}
limitqueryOptional{"type": "integer", "minimum": 25, "maximum": 500, "default": 250}

No request body is defined.

Responses

HTTP 200 — Success

application/json · Graph

{
  "$ref": "#/components/schemas/Graph"
}

Possible errors: 400, 401, 403, 404, 405, 409, 413, 415, 422, 429, 500, 503. Error meanings.

Agents

GET /api/agents List available named agents without provider secrets

Human viewer, reviewer, publisher, or administrator. Agent and feed credentials are excluded.

Authentication: Authorization: Bearer <access-token>

No request body is defined.

Responses

HTTP 200 — Success

application/json · object

{
  "type": "object",
  "properties": {
    "agents": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/Agent"
      }
    }
  },
  "required": [
    "agents"
  ],
  "additionalProperties": false
}

Possible errors: 400, 401, 403, 404, 405, 409, 413, 415, 422, 429, 500, 503. Error meanings.

POST /api/agents Create a managed model or external service-agent identity

Human administrator; an active Enterprise entitlement is required. Managed keys are write-only. External agents receive assigned context through claim/complete/fail only.

Authentication: Authorization: Bearer <access-token>

Request body — required

application/json · AgentConfig

FieldPresenceTypeConstraints
nameRequiredstring{"minLength": 1, "description": "1–200 UTF-8 bytes, trimmed, without control characters; active names must be unique."}
kindRequiredstring{"enum": ["managed", "external"]}
enabledOptionalboolean{"default": true}
descriptionOptionalstring{"description": "At most 2,000 UTF-8 bytes; tab and newlines are permitted."}
endpointOptionalobject or schema-defined value{"anyOf": [{"type": "string", "format": "uri", "description": "Managed agents: HTTPS API base URL; HTTP allowed only on loopback. At most 2,048 UTF-8 bytes; no embedded credentials, query, or fragment."}, {"type": "null"}]}
modelOptionalobject or schema-defined value{"anyOf": [{"type": "string", "minLength": 1, "description": "1–200 UTF-8 bytes, trimmed, without control characters."}, {"type": "null"}]}
instructionsOptionalstring{"description": "At most 8,000 UTF-8 bytes; tab and newlines are permitted."}
api_keyOptionalobject or schema-defined value{"anyOf": [{"type": "string", "writeOnly": true, "description": "Write-only. After trimming, 1–8,192 printable ASCII bytes with no spaces. Omitted/null preserves the existing key; never returned.", "minLength": 1, "maxLength": 8192}, {"type": "null"}]}
clear_api_keyOptionalboolean{"default": false}
max_output_tokensOptionalinteger{"minimum": 128, "maximum": 4096, "default": 1024}
token_limit_fieldOptionalstring{"enum": ["auto", "max_tokens", "max_completion_tokens"], "default": "auto"}
{
  "$ref": "#/components/schemas/AgentConfig"
}

Responses

HTTP 200 — Success

application/json · object

{
  "type": "object",
  "properties": {
    "agent": {
      "$ref": "#/components/schemas/Agent"
    },
    "token": {
      "type": "string",
      "description": "External agent only; shown once."
    }
  },
  "required": [
    "agent"
  ],
  "additionalProperties": false
}

Possible errors: 400, 401, 403, 404, 405, 409, 413, 415, 422, 429, 500, 503, 408. Error meanings.

PUT /api/agents/{id} Update, enable, or disable a named agent

Human administrator; an active Enterprise entitlement is required. Submit the complete configuration. Omitted non-secret settings take their defaults and kind is immutable. On a URL change, replace the existing key or clear it explicitly. Reconfiguration invalidates outstanding jobs.

Authentication: Authorization: Bearer <access-token>

Parameters

NameLocationPresenceSchema
idpathRequired{"type": "string", "format": "uuid"}

Request body — required

application/json · AgentConfig

FieldPresenceTypeConstraints
nameRequiredstring{"minLength": 1, "description": "1–200 UTF-8 bytes, trimmed, without control characters; active names must be unique."}
kindRequiredstring{"enum": ["managed", "external"]}
enabledOptionalboolean{"default": true}
descriptionOptionalstring{"description": "At most 2,000 UTF-8 bytes; tab and newlines are permitted."}
endpointOptionalobject or schema-defined value{"anyOf": [{"type": "string", "format": "uri", "description": "Managed agents: HTTPS API base URL; HTTP allowed only on loopback. At most 2,048 UTF-8 bytes; no embedded credentials, query, or fragment."}, {"type": "null"}]}
modelOptionalobject or schema-defined value{"anyOf": [{"type": "string", "minLength": 1, "description": "1–200 UTF-8 bytes, trimmed, without control characters."}, {"type": "null"}]}
instructionsOptionalstring{"description": "At most 8,000 UTF-8 bytes; tab and newlines are permitted."}
api_keyOptionalobject or schema-defined value{"anyOf": [{"type": "string", "writeOnly": true, "description": "Write-only. After trimming, 1–8,192 printable ASCII bytes with no spaces. Omitted/null preserves the existing key; never returned.", "minLength": 1, "maxLength": 8192}, {"type": "null"}]}
clear_api_keyOptionalboolean{"default": false}
max_output_tokensOptionalinteger{"minimum": 128, "maximum": 4096, "default": 1024}
token_limit_fieldOptionalstring{"enum": ["auto", "max_tokens", "max_completion_tokens"], "default": "auto"}
{
  "$ref": "#/components/schemas/AgentConfig"
}

Responses

HTTP 200 — Success

application/json · object

{
  "type": "object",
  "properties": {
    "agent": {
      "$ref": "#/components/schemas/Agent"
    }
  },
  "required": [
    "agent"
  ],
  "additionalProperties": false
}

Possible errors: 400, 401, 403, 404, 405, 409, 413, 415, 422, 429, 500, 503, 408. Error meanings.

GET /api/agent-jobs Read agent requests in the selected chat room

Human viewer, reviewer, publisher, or administrator. Agent and feed credentials are excluded.

Authentication: Authorization: Bearer <access-token>

Parameters

NameLocationPresenceSchema
workflow_idqueryOptional{"type": "string", "description": "Stable workflow identifier; use the value returned by /api/workflows.", "pattern": "^[A-Za-z0-9_.-]{1,128}$", "minLength": 1, "maxLength": 128} Omit for the team room or across-team graph; do not send the literal string null.
limitqueryOptional{"type": "integer", "minimum": 1, "maximum": 100, "default": 100}

No request body is defined.

Responses

HTTP 200 — Success

application/json · object

{
  "type": "object",
  "properties": {
    "jobs": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/AgentJob"
      }
    }
  },
  "required": [
    "jobs"
  ],
  "additionalProperties": false
}

Possible errors: 400, 401, 403, 404, 405, 409, 413, 415, 422, 429, 500, 503. Error meanings.

POST /api/agent-jobs/{id}/cancel Cancel an explicit agent request

The requesting human or an administrator. Cancellation is available in read-only mode and discards late output. An already-started provider request may still incur charges.

Authentication: Authorization: Bearer <access-token>

Parameters

NameLocationPresenceSchema
idpathRequired{"type": "integer", "minimum": 1}

Request body — required

application/json · object

FieldPresenceTypeConstraints
expected_attemptRequiredinteger{"minimum": 1, "maximum": 3}
{
  "type": "object",
  "properties": {
    "expected_attempt": {
      "type": "integer",
      "minimum": 1,
      "maximum": 3
    }
  },
  "required": [
    "expected_attempt"
  ],
  "additionalProperties": false
}

Responses

HTTP 200 — Success

application/json · object

{
  "type": "object",
  "properties": {
    "job": {
      "$ref": "#/components/schemas/AgentJob"
    }
  },
  "required": [
    "job"
  ],
  "additionalProperties": false
}

Possible errors: 400, 401, 403, 404, 405, 409, 413, 415, 422, 429, 500, 503, 408. Error meanings.

POST /api/agent-jobs/{id}/retry Retry an explicit agent request

The requesting human or an administrator. Retry requires Enterprise and is limited to three attempts. Repeating the same expected_attempt is idempotent.

Authentication: Authorization: Bearer <access-token>

Parameters

NameLocationPresenceSchema
idpathRequired{"type": "integer", "minimum": 1}

Request body — required

application/json · object

FieldPresenceTypeConstraints
expected_attemptRequiredinteger{"minimum": 1, "maximum": 3}
{
  "type": "object",
  "properties": {
    "expected_attempt": {
      "type": "integer",
      "minimum": 1,
      "maximum": 3
    }
  },
  "required": [
    "expected_attempt"
  ],
  "additionalProperties": false
}

Responses

HTTP 200 — Success

application/json · object

{
  "type": "object",
  "properties": {
    "job": {
      "$ref": "#/components/schemas/AgentJob"
    }
  },
  "required": [
    "job"
  ],
  "additionalProperties": false
}

Possible errors: 400, 401, 403, 404, 405, 409, 413, 415, 422, 429, 500, 503, 408. Error meanings.

POST /api/agent-jobs/claim Claim one explicitly assigned external-agent job

An enabled external-agent identity with active Enterprise. Reuse client_claim_id after an unknown response. Context contains the human request, explicit reply ancestors, and attached IOC evidence. Idle returns job:null.

Authentication: Authorization: Bearer <access-token>

Request body — required

application/json · object

FieldPresenceTypeConstraints
client_claim_idRequiredstring{"format": "uuid"}
{
  "type": "object",
  "properties": {
    "client_claim_id": {
      "type": "string",
      "format": "uuid"
    }
  },
  "required": [
    "client_claim_id"
  ],
  "additionalProperties": false
}

Responses

HTTP 200 — Success

application/json · object

{
  "type": "object",
  "properties": {
    "job": {
      "anyOf": [
        {
          "$ref": "#/components/schemas/AgentJob"
        },
        {
          "type": "null"
        }
      ]
    },
    "lease_token": {
      "type": "string",
      "format": "uuid"
    },
    "lease_expires_at": {
      "type": "string",
      "format": "date-time"
    },
    "context": {
      "type": "object",
      "additionalProperties": true
    }
  },
  "required": [
    "job"
  ],
  "additionalProperties": false
}

Possible errors: 400, 401, 403, 404, 405, 409, 413, 415, 422, 429, 500, 503, 408. Error meanings.

POST /api/agent-jobs/{id}/complete Post one answer under the active assigned lease

Assigned external-agent token, current lease and active Enterprise for new answers. An identical completed answer is idempotent. A changed answer for a completed lease returns 409.

Authentication: Authorization: Bearer <access-token>

Parameters

NameLocationPresenceSchema
idpathRequired{"type": "integer", "minimum": 1}

Request body — required

application/json · object

FieldPresenceTypeConstraints
lease_tokenRequiredstring{"format": "uuid"}
bodyRequiredstring{"minLength": 1, "maxLength": 4000}
{
  "type": "object",
  "properties": {
    "lease_token": {
      "type": "string",
      "format": "uuid"
    },
    "body": {
      "type": "string",
      "minLength": 1,
      "maxLength": 4000
    }
  },
  "required": [
    "lease_token",
    "body"
  ],
  "additionalProperties": false
}

Responses

HTTP 200 — Success

application/json · object

{
  "type": "object",
  "properties": {
    "job": {
      "$ref": "#/components/schemas/AgentJob"
    },
    "message": {
      "$ref": "#/components/schemas/Message"
    },
    "deduplicated": {
      "type": "boolean"
    }
  },
  "required": [
    "job",
    "message",
    "deduplicated"
  ],
  "additionalProperties": false
}

Possible errors: 400, 401, 403, 404, 405, 409, 413, 415, 422, 429, 500, 503, 408. Error meanings.

POST /api/agent-jobs/{id}/fail Mark the assigned external-agent attempt failed

External-agent token for this job only. No automatic provider retry is performed.

Authentication: Authorization: Bearer <access-token>

Parameters

NameLocationPresenceSchema
idpathRequired{"type": "integer", "minimum": 1}

Request body — required

application/json · object

FieldPresenceTypeConstraints
lease_tokenRequiredstring{"format": "uuid"}
errorRequiredstring{"description": "Brief private runner error, at most1,000 UTF-8 bytes. Public status uses a fixed sanitized explanation."}
{
  "type": "object",
  "properties": {
    "lease_token": {
      "type": "string",
      "format": "uuid"
    },
    "error": {
      "type": "string",
      "description": "Brief private runner error, at most1,000 UTF-8 bytes. Public status uses a fixed sanitized explanation."
    }
  },
  "required": [
    "lease_token",
    "error"
  ],
  "additionalProperties": false
}

Responses

HTTP 200 — Success

application/json · object

{
  "type": "object",
  "properties": {
    "job": {
      "$ref": "#/components/schemas/AgentJob"
    }
  },
  "required": [
    "job"
  ],
  "additionalProperties": false
}

Possible errors: 400, 401, 403, 404, 405, 409, 413, 415, 422, 429, 500, 503, 408. Error meanings.

Intelligence

GET /api/workflows/{id}/enrichment Read the last shared advisory reputation report and lookup status

Authorized human viewers can read team-scoped results. The stale flag indicates that the workflow review changed after the external lookup.

Authentication: Authorization: Bearer <access-token>

Parameters

NameLocationPresenceSchema
idpathRequired{"type": "string"} Existing workflow ID

No request body is defined.

Responses

HTTP 200 — Saved report, provider configuration names, and active-job status

application/json · object

{
  "type": "object",
  "properties": {
    "workflow_id": {
      "type": "string"
    },
    "providers": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "job": {
      "anyOf": [
        {
          "type": "object"
        },
        {
          "type": "null"
        }
      ]
    }
  }
}

Possible errors: 401, 403, 404. Error meanings.

POST /api/workflows/{id}/enrichment Start a bounded, human-consented reputation lookup for 1–100 indicator IDs

Requires a reviewer/publisher/admin and active Enterprise entitlement. Provider credentials are configured in the team server process environment, never supplied by the client. External lookups execute in the background without holding the team database lock. Results are advisory and cannot change decisions or publish a feed.

Authentication: Authorization: Bearer <access-token>

Parameters

NameLocationPresenceSchema
idpathRequired{"type": "string"} Existing workflow ID

Request body — required

application/json · object

FieldPresenceTypeConstraints
expected_revisionRequiredinteger{}
idsRequiredArray of string{"minItems": 1, "maxItems": 100, "uniqueItems": true}
consentRequiredboolean{"const": true}
{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "expected_revision",
    "ids",
    "consent"
  ],
  "properties": {
    "expected_revision": {
      "type": "integer"
    },
    "ids": {
      "type": "array",
      "minItems": 1,
      "maxItems": 100,
      "uniqueItems": true,
      "items": {
        "type": "string"
      }
    },
    "consent": {
      "type": "boolean",
      "const": true
    }
  }
}

Responses

HTTP 202 — Lookup admitted; poll GET for results

application/json · object

{
  "type": "object"
}

Possible errors: 401, 403, 409, 422, 429. Error meanings.

Data models

Exact schema definitions from the bundled OpenAPI contract.

Error
FieldPresenceTypeConstraints
errorRequiredobject{"properties": {"code": {"type": "string"}, "message": {"type": "string"}}, "required": ["code", "message"], "additionalProperties": false}
revisionOptionalinteger{"format": "int64"}
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string"
        },
        "message": {
          "type": "string"
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    },
    "revision": {
      "type": "integer",
      "format": "int64"
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
User
FieldPresenceTypeConstraints
idRequiredstring{"format": "uuid"}
nameRequiredstring{}
roleRequiredstring{"enum": ["viewer", "reviewer", "publisher", "admin", "feed_reader"]}
kindRequiredstring{"enum": ["human", "managed_agent", "external_agent"]}
created_atRequiredstring{"format": "date-time"}
revoked_atRequiredobject or schema-defined value{"anyOf": [{"type": "string", "format": "date-time"}, {"type": "null"}]}
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "name": {
      "type": "string"
    },
    "role": {
      "type": "string",
      "enum": [
        "viewer",
        "reviewer",
        "publisher",
        "admin",
        "feed_reader"
      ]
    },
    "kind": {
      "type": "string",
      "enum": [
        "human",
        "managed_agent",
        "external_agent"
      ]
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "revoked_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "id",
    "name",
    "role",
    "kind",
    "created_at",
    "revoked_at"
  ],
  "additionalProperties": false
}
LicenseStatus
FieldPresenceTypeConstraints
proRequiredboolean{}
labelRequiredstring{}
messageRequiredstring{}
expires_atRequiredobject or schema-defined value{"anyOf": [{"type": "string", "format": "date-time"}, {"type": "null"}]}
{
  "type": "object",
  "properties": {
    "pro": {
      "type": "boolean"
    },
    "label": {
      "type": "string"
    },
    "message": {
      "type": "string"
    },
    "expires_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "pro",
    "label",
    "message",
    "expires_at"
  ],
  "additionalProperties": false
}
EnterpriseCheckout
FieldPresenceTypeConstraints
urlRequiredstring{"format": "uri"}
organization_idRequiredstring{"format": "uuid"}
organization_slugRequiredstring{}
product_idRequiredstring{"format": "uuid"}
price_displayRequiredstring{}
{
  "type": "object",
  "properties": {
    "url": {
      "type": "string",
      "format": "uri"
    },
    "organization_id": {
      "type": "string",
      "format": "uuid"
    },
    "organization_slug": {
      "type": "string"
    },
    "product_id": {
      "type": "string",
      "format": "uuid"
    },
    "price_display": {
      "type": "string"
    }
  },
  "required": [
    "url",
    "organization_id",
    "organization_slug",
    "product_id",
    "price_display"
  ],
  "additionalProperties": false
}
Identity
FieldPresenceTypeConstraints
userRequiredUser{}
licenseRequiredLicenseStatus{}
read_onlyRequiredboolean{}
teamRequiredobject{"additionalProperties": true}
checkoutRequiredobject or schema-defined value{"anyOf": [{"$ref": "#/components/schemas/EnterpriseCheckout"}, {"type": "null"}]}
{
  "type": "object",
  "properties": {
    "user": {
      "$ref": "#/components/schemas/User"
    },
    "license": {
      "$ref": "#/components/schemas/LicenseStatus"
    },
    "read_only": {
      "type": "boolean"
    },
    "team": {
      "type": "object",
      "additionalProperties": true
    },
    "checkout": {
      "anyOf": [
        {
          "$ref": "#/components/schemas/EnterpriseCheckout"
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "user",
    "license",
    "read_only",
    "team",
    "checkout"
  ],
  "additionalProperties": false
}
CreateUser
FieldPresenceTypeConstraints
nameRequiredstring{"minLength": 1, "description": "1–200 UTF-8 bytes without control characters; active names must be unique."}
roleRequiredstring{"enum": ["viewer", "reviewer", "publisher", "admin", "feed_reader"]}
{
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "minLength": 1,
      "description": "1–200 UTF-8 bytes without control characters; active names must be unique."
    },
    "role": {
      "type": "string",
      "enum": [
        "viewer",
        "reviewer",
        "publisher",
        "admin",
        "feed_reader"
      ]
    }
  },
  "required": [
    "name",
    "role"
  ],
  "additionalProperties": false
}
CredentialResult
FieldPresenceTypeConstraints
userRequiredUser{}
tokenRequiredstring{"writeOnly": false, "description": "Returned once. Store privately; later reads never return it."}
{
  "type": "object",
  "properties": {
    "user": {
      "$ref": "#/components/schemas/User"
    },
    "token": {
      "type": "string",
      "writeOnly": false,
      "description": "Returned once. Store privately; later reads never return it."
    }
  },
  "required": [
    "user",
    "token"
  ],
  "additionalProperties": true
}
TeamUserResult
FieldPresenceTypeConstraints
userRequiredUser{}
{
  "type": "object",
  "properties": {
    "user": {
      "$ref": "#/components/schemas/User"
    }
  },
  "required": [
    "user"
  ],
  "additionalProperties": false
}
ReleasedIndicator
FieldPresenceTypeConstraints
idRequiredstring{"pattern": "^[0-9a-f]{64}$"}
kindRequiredstring{"enum": ["ipv4", "ipv6", "domain", "url", "email", "md5", "sha1", "sha256", "sha512"]}
valueRequiredstring{}
stix_idRequiredstring{}
created_atRequiredstring{"format": "date-time"}
modified_atRequiredstring{"format": "date-time"}
valid_fromRequiredstring{"format": "date-time"}
valid_untilRequiredstring{"format": "date-time"}
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "pattern": "^[0-9a-f]{64}$"
    },
    "kind": {
      "type": "string",
      "enum": [
        "ipv4",
        "ipv6",
        "domain",
        "url",
        "email",
        "md5",
        "sha1",
        "sha256",
        "sha512"
      ]
    },
    "value": {
      "type": "string"
    },
    "stix_id": {
      "type": "string"
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "modified_at": {
      "type": "string",
      "format": "date-time"
    },
    "valid_from": {
      "type": "string",
      "format": "date-time"
    },
    "valid_until": {
      "type": "string",
      "format": "date-time"
    }
  },
  "required": [
    "id",
    "kind",
    "value",
    "stix_id",
    "created_at",
    "modified_at",
    "valid_from",
    "valid_until"
  ],
  "additionalProperties": false
}
ReleaseDelta
FieldPresenceTypeConstraints
baseline_idRequiredobject or schema-defined value{"anyOf": [{"type": "string"}, {"type": "null"}]}
addedRequiredArray of ReleasedIndicator{}
updatedRequiredArray of ReleasedIndicator{}
removedRequiredArray of object{}
{
  "type": "object",
  "properties": {
    "baseline_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "added": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/ReleasedIndicator"
      }
    },
    "updated": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/ReleasedIndicator"
      }
    },
    "removed": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": true
      }
    }
  },
  "required": [
    "baseline_id",
    "added",
    "updated",
    "removed"
  ],
  "additionalProperties": false
}
Release
FieldPresenceTypeConstraints
schema_versionRequiredobject or schema-defined value{"const": 1}
idRequiredstring{}
workflow_idRequiredstring{"description": "Stable workflow identifier; use the value returned by /api/workflows.", "pattern": "^[A-Za-z0-9_.-]{1,128}$", "minLength": 1, "maxLength": 128}
client_idRequiredstring{}
candidate_digestRequiredstring{}
created_atRequiredstring{"format": "date-time"}
indicatorsRequiredArray of ReleasedIndicator{}
deltaRequiredReleaseDelta{}
digestRequiredstring{}
{
  "type": "object",
  "properties": {
    "schema_version": {
      "const": 1
    },
    "id": {
      "type": "string"
    },
    "workflow_id": {
      "type": "string",
      "description": "Stable workflow identifier; use the value returned by /api/workflows.",
      "pattern": "^[A-Za-z0-9_.-]{1,128}$",
      "minLength": 1,
      "maxLength": 128
    },
    "client_id": {
      "type": "string"
    },
    "candidate_digest": {
      "type": "string"
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "indicators": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/ReleasedIndicator"
      }
    },
    "delta": {
      "$ref": "#/components/schemas/ReleaseDelta"
    },
    "digest": {
      "type": "string"
    }
  },
  "required": [
    "schema_version",
    "id",
    "workflow_id",
    "client_id",
    "candidate_digest",
    "created_at",
    "indicators",
    "delta",
    "digest"
  ],
  "additionalProperties": false
}
ReleaseSummary
FieldPresenceTypeConstraints
idRequiredstring{}
created_atRequiredstring{"format": "date-time"}
digestRequiredstring{}
candidate_digestRequiredstring{}
indicator_countRequiredinteger{"format": "int64"}
actor_idRequiredstring{"format": "uuid"}
noteRequiredstring{}
revisionRequiredinteger{"format": "int64", "minimum": 1}
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "digest": {
      "type": "string"
    },
    "candidate_digest": {
      "type": "string"
    },
    "indicator_count": {
      "type": "integer",
      "format": "int64"
    },
    "actor_id": {
      "type": "string",
      "format": "uuid"
    },
    "note": {
      "type": "string"
    },
    "revision": {
      "type": "integer",
      "format": "int64",
      "minimum": 1
    }
  },
  "required": [
    "id",
    "created_at",
    "digest",
    "candidate_digest",
    "indicator_count",
    "actor_id",
    "note",
    "revision"
  ],
  "additionalProperties": false
}
WorkflowSummary
FieldPresenceTypeConstraints
idRequiredstring{"description": "Stable workflow identifier; use the value returned by /api/workflows.", "pattern": "^[A-Za-z0-9_.-]{1,128}$", "minLength": 1, "maxLength": 128}
nameRequiredstring{}
revisionRequiredinteger{"format": "int64", "minimum": 1}
updated_atRequiredstring{"format": "date-time"}
has_runRequiredboolean{}
latest_release_idRequiredobject or schema-defined value{"anyOf": [{"type": "string"}, {"type": "null"}]}
pending_publication_requestRequiredobject or schema-defined value{"anyOf": [{"type": "object", "additionalProperties": true}, {"type": "null"}]}
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Stable workflow identifier; use the value returned by /api/workflows.",
      "pattern": "^[A-Za-z0-9_.-]{1,128}$",
      "minLength": 1,
      "maxLength": 128
    },
    "name": {
      "type": "string"
    },
    "revision": {
      "type": "integer",
      "format": "int64",
      "minimum": 1
    },
    "updated_at": {
      "type": "string",
      "format": "date-time"
    },
    "has_run": {
      "type": "boolean"
    },
    "latest_release_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "pending_publication_request": {
      "anyOf": [
        {
          "type": "object",
          "additionalProperties": true
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "id",
    "name",
    "revision",
    "updated_at",
    "has_run",
    "latest_release_id",
    "pending_publication_request"
  ],
  "additionalProperties": false
}
FieldMapping
FieldPresenceTypeConstraints
value_fieldRequiredstring{}
type_fieldOptionalobject or schema-defined value{"anyOf": [{"type": "string"}, {"type": "null"}]}
fixed_kindOptionalobject or schema-defined value{"anyOf": [{"type": "string", "enum": ["ipv4", "ipv6", "domain", "url", "email", "md5", "sha1", "sha256", "sha512"]}, {"type": "null"}]}
{
  "type": "object",
  "properties": {
    "value_field": {
      "type": "string"
    },
    "type_field": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "fixed_kind": {
      "anyOf": [
        {
          "type": "string",
          "enum": [
            "ipv4",
            "ipv6",
            "domain",
            "url",
            "email",
            "md5",
            "sha1",
            "sha256",
            "sha512"
          ]
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "value_field"
  ],
  "additionalProperties": false,
  "description": "Choose exactly one type_field or fixed_kind. value_field and type_field must be distinct nonempty field names of at most 256 UTF-8 bytes.",
  "oneOf": [
    {
      "required": [
        "type_field"
      ],
      "properties": {
        "type_field": {
          "type": "string",
          "minLength": 1
        },
        "fixed_kind": {
          "type": "null"
        }
      }
    },
    {
      "required": [
        "fixed_kind"
      ],
      "properties": {
        "fixed_kind": {
          "type": "string",
          "enum": [
            "ipv4",
            "ipv6",
            "domain",
            "url",
            "email",
            "md5",
            "sha1",
            "sha256",
            "sha512"
          ]
        },
        "type_field": {
          "type": "null"
        }
      }
    }
  ]
}
WorkflowSource
FieldPresenceTypeConstraints
idRequiredstring{"description": "Stable configured source identifier; use this same value as a prepare input name.", "pattern": "^[A-Za-z0-9_.-]{1,128}$", "minLength": 1, "maxLength": 128}
formatRequiredstring{"enum": ["text", "csv", "json"]}
complete_snapshotRequiredobject or schema-defined value{"const": true}
mappingOptionalobject or schema-defined value{"anyOf": [{"$ref": "#/components/schemas/FieldMapping"}, {"type": "null"}]}
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Stable configured source identifier; use this same value as a prepare input name.",
      "pattern": "^[A-Za-z0-9_.-]{1,128}$",
      "minLength": 1,
      "maxLength": 128
    },
    "format": {
      "type": "string",
      "enum": [
        "text",
        "csv",
        "json"
      ]
    },
    "complete_snapshot": {
      "const": true
    },
    "mapping": {
      "anyOf": [
        {
          "$ref": "#/components/schemas/FieldMapping"
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "id",
    "format",
    "complete_snapshot"
  ],
  "additionalProperties": false,
  "allOf": [
    {
      "if": {
        "properties": {
          "format": {
            "const": "text"
          }
        }
      },
      "then": {
        "properties": {
          "mapping": {
            "type": "null"
          }
        }
      },
      "else": {
        "required": [
          "mapping"
        ],
        "properties": {
          "mapping": {
            "$ref": "#/components/schemas/FieldMapping"
          }
        }
      }
    }
  ]
}
Profile
FieldPresenceTypeConstraints
schema_versionOptionalobject or schema-defined value{"const": 1}
idOptionalstring{}
nameOptionalstring{}
allowed_typesOptionalArray of string{"minItems": 1, "uniqueItems": true}
warning_listsOptionalArray of WarningList{"maxItems": 100}
require_reason_for_warningsOptionalboolean{}
require_all_reviewedOptionalboolean{}
exportOptionalobject{"properties": {"defang": {"type": "boolean"}, "columns": {"type": "array", "items": {"type": "object", "properties": {"field": {"type": "string"}, "heading": {"type": "string"}}, "required": ["field", "heading"], "additionalProperties": false}, "minItems": 1, "maxItems": 32}}, "required": ["defang", "columns"], "additionalProperties": false}
{
  "type": "object",
  "properties": {
    "schema_version": {
      "const": 1
    },
    "id": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "allowed_types": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "ipv4",
          "ipv6",
          "domain",
          "url",
          "email",
          "md5",
          "sha1",
          "sha256",
          "sha512"
        ]
      },
      "minItems": 1,
      "uniqueItems": true
    },
    "warning_lists": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/WarningList"
      },
      "maxItems": 100
    },
    "require_reason_for_warnings": {
      "type": "boolean"
    },
    "require_all_reviewed": {
      "type": "boolean"
    },
    "export": {
      "type": "object",
      "properties": {
        "defang": {
          "type": "boolean"
        },
        "columns": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "field": {
                "type": "string"
              },
              "heading": {
                "type": "string"
              }
            },
            "required": [
              "field",
              "heading"
            ],
            "additionalProperties": false
          },
          "minItems": 1,
          "maxItems": 32
        }
      },
      "required": [
        "defang",
        "columns"
      ],
      "additionalProperties": false
    }
  },
  "required": [],
  "additionalProperties": false
}
WorkflowPolicy
FieldPresenceTypeConstraints
client_idOptionalstring{"description": "Stable client identifier for this workflow; 1–128 ASCII letters, digits, underscore, hyphen, or dot.", "pattern": "^[A-Za-z0-9_.-]{1,128}$", "minLength": 1, "maxLength": 128}
ttl_daysOptionalinteger{"minimum": 1, "maximum": 3650}
max_removal_percentOptionalinteger{"minimum": 0, "maximum": 100}
allow_emptyOptionalboolean{}
require_separate_publisherOptionalboolean{"description": "Legacy local-CLI guard: when true, use authenticated server publication. On the team server, Publisher/Administrator may approve and publish their own work; Reviewer submissions require their approval regardless of this flag."}
require_reason_for_keptOptionalboolean{}
block_import_issuesOptionalboolean{}
{
  "type": "object",
  "properties": {
    "client_id": {
      "type": "string",
      "description": "Stable client identifier for this workflow; 1–128 ASCII letters, digits, underscore, hyphen, or dot.",
      "pattern": "^[A-Za-z0-9_.-]{1,128}$",
      "minLength": 1,
      "maxLength": 128
    },
    "ttl_days": {
      "type": "integer",
      "minimum": 1,
      "maximum": 3650
    },
    "max_removal_percent": {
      "type": "integer",
      "minimum": 0,
      "maximum": 100
    },
    "allow_empty": {
      "type": "boolean"
    },
    "require_separate_publisher": {
      "type": "boolean",
      "description": "Legacy local-CLI guard: when true, use authenticated server publication. On the team server, Publisher/Administrator may approve and publish their own work; Reviewer submissions require their approval regardless of this flag."
    },
    "require_reason_for_kept": {
      "type": "boolean"
    },
    "block_import_issues": {
      "type": "boolean"
    }
  },
  "required": [],
  "additionalProperties": false
}
WorkflowConfig
FieldPresenceTypeConstraints
schema_versionRequiredobject or schema-defined value{"const": 1}
idRequiredstring{"description": "Stable workflow identifier; use the value returned by /api/workflows.", "pattern": "^[A-Za-z0-9_.-]{1,128}$", "minLength": 1, "maxLength": 128}
nameRequiredstring{}
profileRequiredProfile{}
sourcesRequiredArray of WorkflowSource{"minItems": 1, "maxItems": 200}
policyRequiredWorkflowPolicy{}
{
  "type": "object",
  "properties": {
    "schema_version": {
      "const": 1
    },
    "id": {
      "type": "string",
      "description": "Stable workflow identifier; use the value returned by /api/workflows.",
      "pattern": "^[A-Za-z0-9_.-]{1,128}$",
      "minLength": 1,
      "maxLength": 128
    },
    "name": {
      "type": "string"
    },
    "profile": {
      "$ref": "#/components/schemas/Profile"
    },
    "sources": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/WorkflowSource"
      },
      "minItems": 1,
      "maxItems": 200
    },
    "policy": {
      "$ref": "#/components/schemas/WorkflowPolicy"
    }
  },
  "required": [
    "schema_version",
    "id",
    "name",
    "profile",
    "sources",
    "policy"
  ],
  "additionalProperties": false
}
WorkflowDetail
FieldPresenceTypeConstraints
revisionRequiredinteger{"format": "int64", "minimum": 1}
configRequiredWorkflowConfig{}
config_staleRequiredboolean{}
reanalysis_requiredRequiredboolean{}
runRequiredobject or schema-defined value{"anyOf": [{"type": "object", "additionalProperties": true}, {"type": "null"}]}
candidate_digestRequiredobject or schema-defined value{"anyOf": [{"type": "string"}, {"type": "null"}]}
expected_digestRequiredobject or schema-defined value{"anyOf": [{"type": "string"}, {"type": "null"}]}
gateRequiredobject or schema-defined value{"anyOf": [{"type": "object", "additionalProperties": true}, {"type": "null"}]}
decision_actorsRequiredobject{"additionalProperties": true}
decision_approvalsRequiredobject{"additionalProperties": true}
latest_releaseRequiredobject or schema-defined value{"anyOf": [{"$ref": "#/components/schemas/Release"}, {"type": "null"}]}
releaseOptionalRelease{}
publication_requestRequiredobject or schema-defined value{"anyOf": [{"$ref": "#/components/schemas/PublicationRequest"}, {"type": "null"}]}
{
  "type": "object",
  "properties": {
    "revision": {
      "type": "integer",
      "format": "int64",
      "minimum": 1
    },
    "config": {
      "$ref": "#/components/schemas/WorkflowConfig"
    },
    "config_stale": {
      "type": "boolean"
    },
    "reanalysis_required": {
      "type": "boolean"
    },
    "run": {
      "anyOf": [
        {
          "type": "object",
          "additionalProperties": true
        },
        {
          "type": "null"
        }
      ]
    },
    "candidate_digest": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "expected_digest": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "gate": {
      "anyOf": [
        {
          "type": "object",
          "additionalProperties": true
        },
        {
          "type": "null"
        }
      ]
    },
    "decision_actors": {
      "type": "object",
      "additionalProperties": true
    },
    "decision_approvals": {
      "type": "object",
      "additionalProperties": true
    },
    "latest_release": {
      "anyOf": [
        {
          "$ref": "#/components/schemas/Release"
        },
        {
          "type": "null"
        }
      ]
    },
    "release": {
      "$ref": "#/components/schemas/Release"
    },
    "publication_request": {
      "anyOf": [
        {
          "$ref": "#/components/schemas/PublicationRequest"
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "revision",
    "config",
    "config_stale",
    "reanalysis_required",
    "run",
    "candidate_digest",
    "expected_digest",
    "gate",
    "decision_actors",
    "decision_approvals",
    "latest_release",
    "publication_request"
  ],
  "additionalProperties": true
}
PrepareWorkflow
FieldPresenceTypeConstraints
expected_revisionRequiredinteger{"format": "int64", "minimum": 1}
inputsRequiredArray of object{"minItems": 1, "maxItems": 200}
{
  "type": "object",
  "properties": {
    "expected_revision": {
      "type": "integer",
      "format": "int64",
      "minimum": 1
    },
    "inputs": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "The corresponding configured source ID, not an arbitrary filename."
          },
          "content": {
            "type": "string"
          },
          "format": {
            "type": "string",
            "enum": [
              "text",
              "csv",
              "json"
            ]
          }
        },
        "required": [
          "name",
          "content",
          "format"
        ],
        "additionalProperties": false
      },
      "minItems": 1,
      "maxItems": 200
    }
  },
  "required": [
    "expected_revision",
    "inputs"
  ],
  "additionalProperties": false,
  "description": "Provide each configured complete snapshot. Combined source content is limited to 20 MiB; HTTP JSON is limited to 32 MiB. Server time is authoritative: omit as_of."
}
DecideWorkflow
FieldPresenceTypeConstraints
expected_revisionRequiredinteger{"format": "int64", "minimum": 1}
idsRequiredArray of string{"minItems": 1, "maxItems": 50000, "uniqueItems": true}
stateRequiredstring{"enum": ["keep", "exclude", "needs_review"]}
reasonRequiredstring{}
{
  "type": "object",
  "properties": {
    "expected_revision": {
      "type": "integer",
      "format": "int64",
      "minimum": 1
    },
    "ids": {
      "type": "array",
      "items": {
        "type": "string",
        "pattern": "^[0-9a-f]{64}$"
      },
      "minItems": 1,
      "maxItems": 50000,
      "uniqueItems": true
    },
    "state": {
      "type": "string",
      "enum": [
        "keep",
        "exclude",
        "needs_review"
      ]
    },
    "reason": {
      "type": "string"
    }
  },
  "required": [
    "expected_revision",
    "ids",
    "state",
    "reason"
  ],
  "additionalProperties": false
}
RenewWorkflow
FieldPresenceTypeConstraints
expected_revisionRequiredinteger{"format": "int64", "minimum": 1}
idsRequiredArray of string{"minItems": 1, "maxItems": 50000, "uniqueItems": true}
reasonRequiredstring{}
{
  "type": "object",
  "properties": {
    "expected_revision": {
      "type": "integer",
      "format": "int64",
      "minimum": 1
    },
    "ids": {
      "type": "array",
      "items": {
        "type": "string",
        "pattern": "^[0-9a-f]{64}$"
      },
      "minItems": 1,
      "maxItems": 50000,
      "uniqueItems": true
    },
    "reason": {
      "type": "string"
    }
  },
  "required": [
    "expected_revision",
    "ids",
    "reason"
  ],
  "additionalProperties": false
}
VerifyWorkflow
FieldPresenceTypeConstraints
expected_revisionRequiredinteger{"format": "int64", "minimum": 1}
expected_digestRequiredstring{}
idsRequiredArray of string{"minItems": 1, "maxItems": 50000, "uniqueItems": true}
noteOptionalstring{"description": "At most 8,000 UTF-8 bytes."}
{
  "type": "object",
  "properties": {
    "expected_revision": {
      "type": "integer",
      "format": "int64",
      "minimum": 1
    },
    "expected_digest": {
      "type": "string"
    },
    "ids": {
      "type": "array",
      "items": {
        "type": "string",
        "pattern": "^[0-9a-f]{64}$"
      },
      "minItems": 1,
      "maxItems": 50000,
      "uniqueItems": true
    },
    "note": {
      "type": "string",
      "description": "At most 8,000 UTF-8 bytes."
    }
  },
  "required": [
    "expected_revision",
    "expected_digest",
    "ids"
  ],
  "additionalProperties": false
}
PublishWorkflow
FieldPresenceTypeConstraints
expected_revisionRequiredinteger{"format": "int64", "minimum": 1}
expected_digestRequiredstring{}
noteOptionalstring{"description": "At most 8,000 UTF-8 bytes."}
{
  "type": "object",
  "properties": {
    "expected_revision": {
      "type": "integer",
      "format": "int64",
      "minimum": 1
    },
    "expected_digest": {
      "type": "string"
    },
    "note": {
      "type": "string",
      "description": "At most 8,000 UTF-8 bytes."
    }
  },
  "required": [
    "expected_revision",
    "expected_digest"
  ],
  "additionalProperties": false
}
Mention
FieldPresenceTypeConstraints
user_idRequiredstring{"format": "uuid"}
nameRequiredstring{}
kindRequiredstring{"enum": ["human", "managed_agent", "external_agent"]}
{
  "type": "object",
  "properties": {
    "user_id": {
      "type": "string",
      "format": "uuid"
    },
    "name": {
      "type": "string"
    },
    "kind": {
      "type": "string",
      "enum": [
        "human",
        "managed_agent",
        "external_agent"
      ]
    }
  },
  "required": [
    "user_id",
    "name",
    "kind"
  ],
  "additionalProperties": false
}
Message
FieldPresenceTypeConstraints
idRequiredinteger{"format": "int64"}
client_message_idRequiredstring{"format": "uuid"}
workflow_idRequiredobject or schema-defined value{"anyOf": [{"type": "string", "description": "Stable workflow identifier; use the value returned by /api/workflows.", "pattern": "^[A-Za-z0-9_.-]{1,128}$", "minLength": 1, "maxLength": 128}, {"type": "null"}]}
actor_idRequiredstring{"format": "uuid"}
actor_nameRequiredstring{}
actor_kindRequiredstring{"enum": ["human", "managed_agent", "external_agent"]}
bodyRequiredstring{}
created_atRequiredstring{"format": "date-time"}
indicatorRequiredobject or schema-defined value{"anyOf": [{"type": "object", "properties": {"id": {"type": "string", "pattern": "^[0-9a-f]{64}$"}, "kind": {"type": "string", "enum": ["ipv4", "ipv6", "domain", "url", "email", "md5", "sha1", "sha256", "sha512"]}, "value": {"type": "string"}}, "required": ["id", "kind", "value"], "additionalProperties": false}, {"type": "null"}]}
reply_toRequiredobject or schema-defined value{"anyOf": [{"type": "integer", "format": "int64"}, {"type": "null"}]}
mentionsRequiredArray of Mention{}
agent_requestRequiredobject or schema-defined value{"anyOf": [{"$ref": "#/components/schemas/AgentRequest"}, {"type": "null"}]}
agentRequiredobject or schema-defined value{"anyOf": [{"$ref": "#/components/schemas/AgentMessage"}, {"type": "null"}]}
edited_atRequiredobject or schema-defined value{"anyOf": [{"type": "string", "format": "date-time"}, {"type": "null"}]}
edit_versionRequiredinteger{"format": "int64", "minimum": 0, "description": "Optimistic concurrency version for PUT /api/chat/messages/{id}."}
{
  "type": "object",
  "properties": {
    "id": {
      "type": "integer",
      "format": "int64"
    },
    "client_message_id": {
      "type": "string",
      "format": "uuid"
    },
    "workflow_id": {
      "anyOf": [
        {
          "type": "string",
          "description": "Stable workflow identifier; use the value returned by /api/workflows.",
          "pattern": "^[A-Za-z0-9_.-]{1,128}$",
          "minLength": 1,
          "maxLength": 128
        },
        {
          "type": "null"
        }
      ]
    },
    "actor_id": {
      "type": "string",
      "format": "uuid"
    },
    "actor_name": {
      "type": "string"
    },
    "actor_kind": {
      "type": "string",
      "enum": [
        "human",
        "managed_agent",
        "external_agent"
      ]
    },
    "body": {
      "type": "string"
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "indicator": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "pattern": "^[0-9a-f]{64}$"
            },
            "kind": {
              "type": "string",
              "enum": [
                "ipv4",
                "ipv6",
                "domain",
                "url",
                "email",
                "md5",
                "sha1",
                "sha256",
                "sha512"
              ]
            },
            "value": {
              "type": "string"
            }
          },
          "required": [
            "id",
            "kind",
            "value"
          ],
          "additionalProperties": false
        },
        {
          "type": "null"
        }
      ]
    },
    "reply_to": {
      "anyOf": [
        {
          "type": "integer",
          "format": "int64"
        },
        {
          "type": "null"
        }
      ]
    },
    "mentions": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/Mention"
      }
    },
    "agent_request": {
      "anyOf": [
        {
          "$ref": "#/components/schemas/AgentRequest"
        },
        {
          "type": "null"
        }
      ]
    },
    "agent": {
      "anyOf": [
        {
          "$ref": "#/components/schemas/AgentMessage"
        },
        {
          "type": "null"
        }
      ]
    },
    "edited_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ]
    },
    "edit_version": {
      "type": "integer",
      "format": "int64",
      "minimum": 0,
      "description": "Optimistic concurrency version for PUT /api/chat/messages/{id}."
    }
  },
  "required": [
    "id",
    "client_message_id",
    "workflow_id",
    "actor_id",
    "actor_name",
    "body",
    "created_at",
    "actor_kind",
    "indicator",
    "reply_to",
    "mentions",
    "agent_request",
    "agent",
    "edited_at",
    "edit_version"
  ],
  "additionalProperties": true
}
SendMessage
FieldPresenceTypeConstraints
client_message_idRequiredstring{"format": "uuid"}
workflow_idOptionalobject or schema-defined value{"anyOf": [{"type": "string", "description": "Stable workflow identifier; use the value returned by /api/workflows.", "pattern": "^[A-Za-z0-9_.-]{1,128}$", "minLength": 1, "maxLength": 128}, {"type": "null"}]}
bodyRequiredstring{"minLength": 1, "maxLength": 4000, "description": "Plain text, at most 16,000 UTF-8 bytes. No unsupported controls."}
indicator_idOptionalobject or schema-defined value{"anyOf": [{"type": "string", "pattern": "^[0-9a-f]{64}$"}, {"type": "null"}]}
reply_toOptionalobject or schema-defined value{"anyOf": [{"type": "integer", "minimum": 1}, {"type": "null"}]}
agent_idOptionalobject or schema-defined value{"anyOf": [{"type": "string", "format": "uuid"}, {"type": "null"}]}
mention_user_idsOptionalArray of string{"maxItems": 20, "uniqueItems": true}
{
  "type": "object",
  "properties": {
    "client_message_id": {
      "type": "string",
      "format": "uuid"
    },
    "workflow_id": {
      "anyOf": [
        {
          "type": "string",
          "description": "Stable workflow identifier; use the value returned by /api/workflows.",
          "pattern": "^[A-Za-z0-9_.-]{1,128}$",
          "minLength": 1,
          "maxLength": 128
        },
        {
          "type": "null"
        }
      ]
    },
    "body": {
      "type": "string",
      "minLength": 1,
      "maxLength": 4000,
      "description": "Plain text, at most 16,000 UTF-8 bytes. No unsupported controls."
    },
    "indicator_id": {
      "anyOf": [
        {
          "type": "string",
          "pattern": "^[0-9a-f]{64}$"
        },
        {
          "type": "null"
        }
      ]
    },
    "reply_to": {
      "anyOf": [
        {
          "type": "integer",
          "minimum": 1
        },
        {
          "type": "null"
        }
      ]
    },
    "agent_id": {
      "anyOf": [
        {
          "type": "string",
          "format": "uuid"
        },
        {
          "type": "null"
        }
      ]
    },
    "mention_user_ids": {
      "type": "array",
      "items": {
        "type": "string",
        "format": "uuid"
      },
      "maxItems": 20,
      "uniqueItems": true
    }
  },
  "required": [
    "client_message_id",
    "body"
  ],
  "additionalProperties": false
}
AgentConfig
FieldPresenceTypeConstraints
nameRequiredstring{"minLength": 1, "description": "1–200 UTF-8 bytes, trimmed, without control characters; active names must be unique."}
kindRequiredstring{"enum": ["managed", "external"]}
enabledOptionalboolean{"default": true}
descriptionOptionalstring{"description": "At most 2,000 UTF-8 bytes; tab and newlines are permitted."}
endpointOptionalobject or schema-defined value{"anyOf": [{"type": "string", "format": "uri", "description": "Managed agents: HTTPS API base URL; HTTP allowed only on loopback. At most 2,048 UTF-8 bytes; no embedded credentials, query, or fragment."}, {"type": "null"}]}
modelOptionalobject or schema-defined value{"anyOf": [{"type": "string", "minLength": 1, "description": "1–200 UTF-8 bytes, trimmed, without control characters."}, {"type": "null"}]}
instructionsOptionalstring{"description": "At most 8,000 UTF-8 bytes; tab and newlines are permitted."}
api_keyOptionalobject or schema-defined value{"anyOf": [{"type": "string", "writeOnly": true, "description": "Write-only. After trimming, 1–8,192 printable ASCII bytes with no spaces. Omitted/null preserves the existing key; never returned.", "minLength": 1, "maxLength": 8192}, {"type": "null"}]}
clear_api_keyOptionalboolean{"default": false}
max_output_tokensOptionalinteger{"minimum": 128, "maximum": 4096, "default": 1024}
token_limit_fieldOptionalstring{"enum": ["auto", "max_tokens", "max_completion_tokens"], "default": "auto"}
{
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "minLength": 1,
      "description": "1–200 UTF-8 bytes, trimmed, without control characters; active names must be unique."
    },
    "kind": {
      "type": "string",
      "enum": [
        "managed",
        "external"
      ]
    },
    "enabled": {
      "type": "boolean",
      "default": true
    },
    "description": {
      "type": "string",
      "description": "At most 2,000 UTF-8 bytes; tab and newlines are permitted."
    },
    "endpoint": {
      "anyOf": [
        {
          "type": "string",
          "format": "uri",
          "description": "Managed agents: HTTPS API base URL; HTTP allowed only on loopback. At most 2,048 UTF-8 bytes; no embedded credentials, query, or fragment."
        },
        {
          "type": "null"
        }
      ]
    },
    "model": {
      "anyOf": [
        {
          "type": "string",
          "minLength": 1,
          "description": "1–200 UTF-8 bytes, trimmed, without control characters."
        },
        {
          "type": "null"
        }
      ]
    },
    "instructions": {
      "type": "string",
      "description": "At most 8,000 UTF-8 bytes; tab and newlines are permitted."
    },
    "api_key": {
      "anyOf": [
        {
          "type": "string",
          "writeOnly": true,
          "description": "Write-only. After trimming, 1–8,192 printable ASCII bytes with no spaces. Omitted/null preserves the existing key; never returned.",
          "minLength": 1,
          "maxLength": 8192
        },
        {
          "type": "null"
        }
      ]
    },
    "clear_api_key": {
      "type": "boolean",
      "default": false
    },
    "max_output_tokens": {
      "type": "integer",
      "minimum": 128,
      "maximum": 4096,
      "default": 1024
    },
    "token_limit_field": {
      "type": "string",
      "enum": [
        "auto",
        "max_tokens",
        "max_completion_tokens"
      ],
      "default": "auto"
    }
  },
  "required": [
    "name",
    "kind"
  ],
  "additionalProperties": false,
  "allOf": [
    {
      "if": {
        "properties": {
          "kind": {
            "const": "managed"
          }
        }
      },
      "then": {
        "required": [
          "endpoint",
          "model"
        ],
        "properties": {
          "endpoint": {
            "type": "string",
            "format": "uri"
          },
          "model": {
            "type": "string",
            "minLength": 1
          }
        }
      }
    },
    {
      "if": {
        "properties": {
          "kind": {
            "const": "external"
          }
        }
      },
      "then": {
        "properties": {
          "endpoint": {
            "type": "null"
          },
          "model": {
            "type": "null"
          },
          "api_key": {
            "type": "null"
          }
        }
      }
    },
    {
      "if": {
        "required": [
          "clear_api_key"
        ],
        "properties": {
          "clear_api_key": {
            "const": true
          }
        }
      },
      "then": {
        "properties": {
          "api_key": {
            "type": "null"
          }
        }
      }
    }
  ]
}
Agent
FieldPresenceTypeConstraints
idRequiredstring{"format": "uuid"}
user_idRequiredstring{"format": "uuid"}
nameRequiredstring{}
kindRequiredstring{"enum": ["managed", "external"]}
enabledRequiredboolean{}
descriptionOptionalstring{}
endpointOptionalobject or schema-defined value{"anyOf": [{"type": "string"}, {"type": "null"}]}
modelOptionalobject or schema-defined value{"anyOf": [{"type": "string"}, {"type": "null"}]}
instructionsOptionalstring{"description": "Included for human administrators only."}
api_key_configuredRequiredboolean{}
config_revisionRequiredinteger{"format": "int64", "minimum": 1}
max_output_tokensOptionalinteger{"format": "int64"}
token_limit_fieldOptionalstring{}
created_atOptionalstring{"format": "date-time"}
updated_atOptionalstring{"format": "date-time"}
revoked_atOptionalobject or schema-defined value{"anyOf": [{"type": "string", "format": "date-time"}, {"type": "null"}]}
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "user_id": {
      "type": "string",
      "format": "uuid"
    },
    "name": {
      "type": "string"
    },
    "kind": {
      "type": "string",
      "enum": [
        "managed",
        "external"
      ]
    },
    "enabled": {
      "type": "boolean"
    },
    "description": {
      "type": "string"
    },
    "endpoint": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "model": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "instructions": {
      "type": "string",
      "description": "Included for human administrators only."
    },
    "api_key_configured": {
      "type": "boolean"
    },
    "config_revision": {
      "type": "integer",
      "format": "int64",
      "minimum": 1
    },
    "max_output_tokens": {
      "type": "integer",
      "format": "int64"
    },
    "token_limit_field": {
      "type": "string"
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "updated_at": {
      "type": "string",
      "format": "date-time"
    },
    "revoked_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "id",
    "user_id",
    "name",
    "kind",
    "enabled",
    "api_key_configured",
    "config_revision"
  ],
  "additionalProperties": true
}
AgentJob
FieldPresenceTypeConstraints
idRequiredinteger{"format": "int64"}
agent_idRequiredstring{"format": "uuid"}
agent_nameOptionalstring{}
kindOptionalstring{}
workflow_idRequiredobject or schema-defined value{"anyOf": [{"type": "string", "description": "Stable workflow identifier; use the value returned by /api/workflows.", "pattern": "^[A-Za-z0-9_.-]{1,128}$", "minLength": 1, "maxLength": 128}, {"type": "null"}]}
trigger_message_idRequiredinteger{"format": "int64"}
requested_byRequiredobject{"properties": {"id": {"type": "string", "format": "uuid"}, "name": {"type": "string"}}, "required": ["id", "name"], "additionalProperties": false}
statusRequiredstring{"enum": ["queued", "running", "succeeded", "failed", "cancelled"]}
attemptRequiredinteger{"minimum": 1, "maximum": 3}
created_atOptionalstring{"format": "date-time"}
updated_atOptionalstring{"format": "date-time"}
started_atOptionalobject or schema-defined value{"anyOf": [{"type": "string", "format": "date-time"}, {"type": "null"}]}
finished_atOptionalobject or schema-defined value{"anyOf": [{"type": "string", "format": "date-time"}, {"type": "null"}]}
errorOptionalobject or schema-defined value{"anyOf": [{"type": "object", "properties": {"code": {"type": "string"}, "message": {"type": "string"}}, "required": ["code", "message"], "additionalProperties": false}, {"type": "null"}]}
reply_message_idOptionalobject or schema-defined value{"anyOf": [{"type": "integer", "format": "int64"}, {"type": "null"}]}
context_revisionOptionalobject or schema-defined value{"anyOf": [{"type": "integer", "format": "int64"}, {"type": "null"}]}
context_truncatedOptionalboolean{}
{
  "type": "object",
  "properties": {
    "id": {
      "type": "integer",
      "format": "int64"
    },
    "agent_id": {
      "type": "string",
      "format": "uuid"
    },
    "agent_name": {
      "type": "string"
    },
    "kind": {
      "type": "string"
    },
    "workflow_id": {
      "anyOf": [
        {
          "type": "string",
          "description": "Stable workflow identifier; use the value returned by /api/workflows.",
          "pattern": "^[A-Za-z0-9_.-]{1,128}$",
          "minLength": 1,
          "maxLength": 128
        },
        {
          "type": "null"
        }
      ]
    },
    "trigger_message_id": {
      "type": "integer",
      "format": "int64"
    },
    "requested_by": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid"
        },
        "name": {
          "type": "string"
        }
      },
      "required": [
        "id",
        "name"
      ],
      "additionalProperties": false
    },
    "status": {
      "type": "string",
      "enum": [
        "queued",
        "running",
        "succeeded",
        "failed",
        "cancelled"
      ]
    },
    "attempt": {
      "type": "integer",
      "minimum": 1,
      "maximum": 3
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "updated_at": {
      "type": "string",
      "format": "date-time"
    },
    "started_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ]
    },
    "finished_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ]
    },
    "error": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "code": {
              "type": "string"
            },
            "message": {
              "type": "string"
            }
          },
          "required": [
            "code",
            "message"
          ],
          "additionalProperties": false
        },
        {
          "type": "null"
        }
      ]
    },
    "reply_message_id": {
      "anyOf": [
        {
          "type": "integer",
          "format": "int64"
        },
        {
          "type": "null"
        }
      ]
    },
    "context_revision": {
      "anyOf": [
        {
          "type": "integer",
          "format": "int64"
        },
        {
          "type": "null"
        }
      ]
    },
    "context_truncated": {
      "type": "boolean"
    }
  },
  "required": [
    "id",
    "agent_id",
    "workflow_id",
    "trigger_message_id",
    "requested_by",
    "status",
    "attempt"
  ],
  "additionalProperties": true
}
SyncRequest
FieldPresenceTypeConstraints
session_idRequiredstring{"format": "uuid"}
workflow_idOptionalobject or schema-defined value{"anyOf": [{"type": "string", "description": "Stable workflow identifier; use the value returned by /api/workflows.", "pattern": "^[A-Za-z0-9_.-]{1,128}$", "minLength": 1, "maxLength": 128}, {"type": "null"}]}
viewRequiredstring{"enum": ["overview", "review", "graph", "chat"]}
selected_iocOptionalobject or schema-defined value{"anyOf": [{"type": "string", "pattern": "^[0-9a-f]{64}$"}, {"type": "null"}]}
after_activityOptionalinteger{"minimum": 0, "default": 0}
after_messageOptionalinteger{"minimum": 0, "default": 0}
typingOptionalboolean{"default": false}
{
  "type": "object",
  "properties": {
    "session_id": {
      "type": "string",
      "format": "uuid"
    },
    "workflow_id": {
      "anyOf": [
        {
          "type": "string",
          "description": "Stable workflow identifier; use the value returned by /api/workflows.",
          "pattern": "^[A-Za-z0-9_.-]{1,128}$",
          "minLength": 1,
          "maxLength": 128
        },
        {
          "type": "null"
        }
      ]
    },
    "view": {
      "type": "string",
      "enum": [
        "overview",
        "review",
        "graph",
        "chat"
      ]
    },
    "selected_ioc": {
      "anyOf": [
        {
          "type": "string",
          "pattern": "^[0-9a-f]{64}$"
        },
        {
          "type": "null"
        }
      ]
    },
    "after_activity": {
      "type": "integer",
      "minimum": 0,
      "default": 0
    },
    "after_message": {
      "type": "integer",
      "minimum": 0,
      "default": 0
    },
    "typing": {
      "type": "boolean",
      "default": false
    }
  },
  "required": [
    "session_id",
    "view"
  ],
  "additionalProperties": false
}
AuditEvent
FieldPresenceTypeConstraints
idRequiredinteger{"format": "int64"}
workflow_idOptionalobject or schema-defined value{"anyOf": [{"type": "string", "description": "Stable workflow identifier; use the value returned by /api/workflows.", "pattern": "^[A-Za-z0-9_.-]{1,128}$", "minLength": 1, "maxLength": 128}, {"type": "null"}]}
actor_idRequiredstring{"format": "uuid"}
actor_nameRequiredstring{}
actionRequiredstring{}
revisionOptionalobject or schema-defined value{"anyOf": [{"type": "integer", "format": "int64"}, {"type": "null"}]}
created_atRequiredstring{"format": "date-time"}
content_hashRequiredstring{}
detailsRequiredobject{"additionalProperties": true}
details_truncatedOptionalboolean{}
details_bytesOptionalinteger{"format": "int64"}
{
  "type": "object",
  "properties": {
    "id": {
      "type": "integer",
      "format": "int64"
    },
    "workflow_id": {
      "anyOf": [
        {
          "type": "string",
          "description": "Stable workflow identifier; use the value returned by /api/workflows.",
          "pattern": "^[A-Za-z0-9_.-]{1,128}$",
          "minLength": 1,
          "maxLength": 128
        },
        {
          "type": "null"
        }
      ]
    },
    "actor_id": {
      "type": "string",
      "format": "uuid"
    },
    "actor_name": {
      "type": "string"
    },
    "action": {
      "type": "string"
    },
    "revision": {
      "anyOf": [
        {
          "type": "integer",
          "format": "int64"
        },
        {
          "type": "null"
        }
      ]
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "content_hash": {
      "type": "string"
    },
    "details": {
      "type": "object",
      "additionalProperties": true
    },
    "details_truncated": {
      "type": "boolean"
    },
    "details_bytes": {
      "type": "integer",
      "format": "int64"
    }
  },
  "required": [
    "id",
    "actor_id",
    "actor_name",
    "action",
    "created_at",
    "content_hash",
    "details"
  ],
  "additionalProperties": true
}
SyncResult
FieldPresenceTypeConstraints
server_timeRequiredstring{"format": "date-time"}
enterpriseRequiredboolean{}
workflow_idOptionalobject or schema-defined value{"anyOf": [{"type": "string", "description": "Stable workflow identifier; use the value returned by /api/workflows.", "pattern": "^[A-Za-z0-9_.-]{1,128}$", "minLength": 1, "maxLength": 128}, {"type": "null"}]}
workflow_revisionOptionalobject or schema-defined value{"anyOf": [{"type": "integer", "format": "int64"}, {"type": "null"}]}
activityRequiredArray of AuditEvent{}
messagesRequiredArray of Message{}
presenceRequiredArray of object{}
next_activityRequiredinteger{"format": "int64"}
next_messageRequiredinteger{"format": "int64"}
has_moreOptionalboolean{}
activity_has_moreOptionalboolean{}
messages_has_moreOptionalboolean{}
messages_has_olderOptionalboolean{}
agent_jobsOptionalArray of AgentJob{}
agent_catalog_revisionOptionalinteger{"format": "int64"}
userRequiredUser{}
{
  "type": "object",
  "properties": {
    "server_time": {
      "type": "string",
      "format": "date-time"
    },
    "enterprise": {
      "type": "boolean"
    },
    "workflow_id": {
      "anyOf": [
        {
          "type": "string",
          "description": "Stable workflow identifier; use the value returned by /api/workflows.",
          "pattern": "^[A-Za-z0-9_.-]{1,128}$",
          "minLength": 1,
          "maxLength": 128
        },
        {
          "type": "null"
        }
      ]
    },
    "workflow_revision": {
      "anyOf": [
        {
          "type": "integer",
          "format": "int64"
        },
        {
          "type": "null"
        }
      ]
    },
    "activity": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/AuditEvent"
      }
    },
    "messages": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/Message"
      }
    },
    "presence": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": true
      }
    },
    "next_activity": {
      "type": "integer",
      "format": "int64"
    },
    "next_message": {
      "type": "integer",
      "format": "int64"
    },
    "has_more": {
      "type": "boolean"
    },
    "activity_has_more": {
      "type": "boolean"
    },
    "messages_has_more": {
      "type": "boolean"
    },
    "messages_has_older": {
      "type": "boolean"
    },
    "agent_jobs": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/AgentJob"
      }
    },
    "agent_catalog_revision": {
      "type": "integer",
      "format": "int64"
    },
    "user": {
      "$ref": "#/components/schemas/User"
    }
  },
  "required": [
    "server_time",
    "enterprise",
    "activity",
    "messages",
    "presence",
    "next_activity",
    "next_message",
    "user"
  ],
  "additionalProperties": true
}
GraphNode
FieldPresenceTypeConstraints
idRequiredstring{}
kindRequiredstring{"enum": ["ioc", "source", "workflow", "member", "host"]}
labelRequiredstring{}
indicator_idOptionalobject or schema-defined value{"anyOf": [{"type": "string", "pattern": "^[0-9a-f]{64}$"}, {"type": "null"}]}
indicator_kindOptionalobject or schema-defined value{"anyOf": [{"type": "string", "enum": ["ipv4", "ipv6", "domain", "url", "email", "md5", "sha1", "sha256", "sha512"]}, {"type": "null"}]}
workflow_idOptionalobject or schema-defined value{"anyOf": [{"type": "string", "description": "Stable workflow identifier; use the value returned by /api/workflows.", "pattern": "^[A-Za-z0-9_.-]{1,128}$", "minLength": 1, "maxLength": 128}, {"type": "null"}]}
stateOptionalobject or schema-defined value{"anyOf": [{"type": "string"}, {"type": "null"}]}
detailsRequiredobject{"additionalProperties": true}
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "kind": {
      "type": "string",
      "enum": [
        "ioc",
        "source",
        "workflow",
        "member",
        "host"
      ]
    },
    "label": {
      "type": "string"
    },
    "indicator_id": {
      "anyOf": [
        {
          "type": "string",
          "pattern": "^[0-9a-f]{64}$"
        },
        {
          "type": "null"
        }
      ]
    },
    "indicator_kind": {
      "anyOf": [
        {
          "type": "string",
          "enum": [
            "ipv4",
            "ipv6",
            "domain",
            "url",
            "email",
            "md5",
            "sha1",
            "sha256",
            "sha512"
          ]
        },
        {
          "type": "null"
        }
      ]
    },
    "workflow_id": {
      "anyOf": [
        {
          "type": "string",
          "description": "Stable workflow identifier; use the value returned by /api/workflows.",
          "pattern": "^[A-Za-z0-9_.-]{1,128}$",
          "minLength": 1,
          "maxLength": 128
        },
        {
          "type": "null"
        }
      ]
    },
    "state": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "details": {
      "type": "object",
      "additionalProperties": true
    }
  },
  "required": [
    "id",
    "kind",
    "label",
    "details"
  ],
  "additionalProperties": true
}
GraphEdge
FieldPresenceTypeConstraints
idRequiredstring{}
sourceRequiredstring{}
targetRequiredstring{}
kindRequiredstring{}
labelOptionalstring{}
workflow_idOptionalstring{"description": "Stable workflow identifier; use the value returned by /api/workflows.", "pattern": "^[A-Za-z0-9_.-]{1,128}$", "minLength": 1, "maxLength": 128}
evidenceRequiredobject{"additionalProperties": true}
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "source": {
      "type": "string"
    },
    "target": {
      "type": "string"
    },
    "kind": {
      "type": "string"
    },
    "label": {
      "type": "string"
    },
    "workflow_id": {
      "type": "string",
      "description": "Stable workflow identifier; use the value returned by /api/workflows.",
      "pattern": "^[A-Za-z0-9_.-]{1,128}$",
      "minLength": 1,
      "maxLength": 128
    },
    "evidence": {
      "type": "object",
      "additionalProperties": true
    }
  },
  "required": [
    "id",
    "source",
    "target",
    "kind",
    "evidence"
  ],
  "additionalProperties": true
}
Graph
FieldPresenceTypeConstraints
workflow_idOptionalobject or schema-defined value{"anyOf": [{"type": "string", "description": "Stable workflow identifier; use the value returned by /api/workflows.", "pattern": "^[A-Za-z0-9_.-]{1,128}$", "minLength": 1, "maxLength": 128}, {"type": "null"}]}
workflow_revisionOptionalobject or schema-defined value{"anyOf": [{"type": "integer", "format": "int64"}, {"type": "null"}]}
generated_atOptionalstring{"format": "date-time"}
nodesRequiredArray of GraphNode{}
edgesRequiredArray of GraphEdge{}
countsRequiredobject{"additionalProperties": true}
truncatedRequiredboolean{}
truncationRequiredobject{"additionalProperties": true}
noticeOptionalstring{}
{
  "type": "object",
  "properties": {
    "workflow_id": {
      "anyOf": [
        {
          "type": "string",
          "description": "Stable workflow identifier; use the value returned by /api/workflows.",
          "pattern": "^[A-Za-z0-9_.-]{1,128}$",
          "minLength": 1,
          "maxLength": 128
        },
        {
          "type": "null"
        }
      ]
    },
    "workflow_revision": {
      "anyOf": [
        {
          "type": "integer",
          "format": "int64"
        },
        {
          "type": "null"
        }
      ]
    },
    "generated_at": {
      "type": "string",
      "format": "date-time"
    },
    "nodes": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/GraphNode"
      }
    },
    "edges": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/GraphEdge"
      }
    },
    "counts": {
      "type": "object",
      "additionalProperties": true
    },
    "truncated": {
      "type": "boolean"
    },
    "truncation": {
      "type": "object",
      "additionalProperties": true
    },
    "notice": {
      "type": "string"
    }
  },
  "required": [
    "nodes",
    "edges",
    "counts",
    "truncated",
    "truncation"
  ],
  "additionalProperties": true
}
WarningList
FieldPresenceTypeConstraints
nameRequiredstring{"minLength": 1, "description": "At most 256 UTF-8 bytes."}
versionOptionalobject or schema-defined value{}
descriptionOptionalstring{"description": "At most 64 KiB of UTF-8 text."}
typeOptionalstring{"enum": ["string", "hostname", "cidr", "substring"], "default": "string"}
listOptionalArray of string{"maxItems": 100000}
{
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "minLength": 1,
      "description": "At most 256 UTF-8 bytes."
    },
    "version": {},
    "description": {
      "type": "string",
      "description": "At most 64 KiB of UTF-8 text."
    },
    "type": {
      "type": "string",
      "enum": [
        "string",
        "hostname",
        "cidr",
        "substring"
      ],
      "default": "string"
    },
    "list": {
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1,
        "description": "At most 4,096 UTF-8 bytes."
      },
      "maxItems": 100000
    }
  },
  "required": [
    "name"
  ],
  "additionalProperties": false
}
AgentRequest
FieldPresenceTypeConstraints
job_idRequiredinteger{"format": "int64"}
agent_idRequiredstring{"format": "uuid"}
{
  "type": "object",
  "properties": {
    "job_id": {
      "type": "integer",
      "format": "int64"
    },
    "agent_id": {
      "type": "string",
      "format": "uuid"
    }
  },
  "required": [
    "job_id",
    "agent_id"
  ],
  "additionalProperties": false
}
AgentMessage
FieldPresenceTypeConstraints
agent_idRequiredstring{"format": "uuid"}
kindRequiredstring{"enum": ["managed", "external"]}
job_idRequiredinteger{"format": "int64"}
modelRequiredstring{}
triggered_byRequiredstring{"format": "uuid"}
context_revisionRequiredobject or schema-defined value{"anyOf": [{"type": "integer", "format": "int64"}, {"type": "null"}]}
truncatedRequiredboolean{"description": "True if the generated answer was shortened to the chat limit; job.context_truncated describes context shortening separately."}
{
  "type": "object",
  "properties": {
    "agent_id": {
      "type": "string",
      "format": "uuid"
    },
    "kind": {
      "type": "string",
      "enum": [
        "managed",
        "external"
      ]
    },
    "job_id": {
      "type": "integer",
      "format": "int64"
    },
    "model": {
      "type": "string"
    },
    "triggered_by": {
      "type": "string",
      "format": "uuid"
    },
    "context_revision": {
      "anyOf": [
        {
          "type": "integer",
          "format": "int64"
        },
        {
          "type": "null"
        }
      ]
    },
    "truncated": {
      "type": "boolean",
      "description": "True if the generated answer was shortened to the chat limit; job.context_truncated describes context shortening separately."
    }
  },
  "required": [
    "agent_id",
    "kind",
    "job_id",
    "model",
    "triggered_by",
    "context_revision",
    "truncated"
  ],
  "additionalProperties": false
}
ApiDiscovery
FieldPresenceTypeConstraints
nameRequiredstring{}
versionRequiredstring{}
openapiRequiredstring{}
identityRequiredstring{}
authenticationRequiredobject{"properties": {"type": {"const": "bearer"}, "header": {"const": "Authorization"}, "tokens_in_urls": {"const": false}}, "required": ["type", "header", "tokens_in_urls"], "additionalProperties": false}
userRequiredobject{"properties": {"id": {"type": "string", "format": "uuid"}, "name": {"type": "string"}, "role": {"type": "string", "enum": ["viewer", "reviewer", "publisher", "admin", "feed_reader"]}, "kind": {"type": "string", "enum": ["human", "managed_agent", "external_agent"]}}, "required": ["id", "name", "role", "kind"], "additionalProperties": false}
capabilitiesRequiredArray of string{"description": "Server features, not the permissions granted to the current token. Each operation enforces its documented identity and role."}
noteRequiredstring{}
{
  "type": "object",
  "properties": {
    "name": {
      "type": "string"
    },
    "version": {
      "type": "string"
    },
    "openapi": {
      "type": "string"
    },
    "identity": {
      "type": "string"
    },
    "authentication": {
      "type": "object",
      "properties": {
        "type": {
          "const": "bearer"
        },
        "header": {
          "const": "Authorization"
        },
        "tokens_in_urls": {
          "const": false
        }
      },
      "required": [
        "type",
        "header",
        "tokens_in_urls"
      ],
      "additionalProperties": false
    },
    "user": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid"
        },
        "name": {
          "type": "string"
        },
        "role": {
          "type": "string",
          "enum": [
            "viewer",
            "reviewer",
            "publisher",
            "admin",
            "feed_reader"
          ]
        },
        "kind": {
          "type": "string",
          "enum": [
            "human",
            "managed_agent",
            "external_agent"
          ]
        }
      },
      "required": [
        "id",
        "name",
        "role",
        "kind"
      ],
      "additionalProperties": false
    },
    "capabilities": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Server features, not the permissions granted to the current token. Each operation enforces its documented identity and role."
    },
    "note": {
      "type": "string"
    }
  },
  "required": [
    "name",
    "version",
    "openapi",
    "identity",
    "authentication",
    "user",
    "capabilities",
    "note"
  ],
  "additionalProperties": false
}
PublicationRequest
FieldPresenceTypeConstraints
idRequiredstring{"format": "uuid"}
workflow_idRequiredstring{"description": "Stable workflow identifier; use the value returned by /api/workflows.", "pattern": "^[A-Za-z0-9_.-]{1,128}$", "minLength": 1, "maxLength": 128}
requester_idRequiredstring{"format": "uuid"}
requester_nameRequiredstring{}
requested_atRequiredstring{"format": "date-time"}
requested_revisionRequiredinteger{"format": "int64", "minimum": 1}
candidate_digestRequiredstring{}
noteRequiredstring{}
statusRequiredstring{"enum": ["pending", "approved", "rejected", "outdated"]}
resolved_byRequiredobject or schema-defined value{"anyOf": [{"type": "string", "format": "uuid"}, {"type": "null"}]}
resolver_nameRequiredobject or schema-defined value{"anyOf": [{"type": "string"}, {"type": "null"}]}
resolved_atRequiredobject or schema-defined value{"anyOf": [{"type": "string", "format": "date-time"}, {"type": "null"}]}
resolution_noteRequiredobject or schema-defined value{"anyOf": [{"type": "string"}, {"type": "null"}]}
release_idRequiredobject or schema-defined value{"anyOf": [{"type": "string"}, {"type": "null"}]}
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "workflow_id": {
      "type": "string",
      "description": "Stable workflow identifier; use the value returned by /api/workflows.",
      "pattern": "^[A-Za-z0-9_.-]{1,128}$",
      "minLength": 1,
      "maxLength": 128
    },
    "requester_id": {
      "type": "string",
      "format": "uuid"
    },
    "requester_name": {
      "type": "string"
    },
    "requested_at": {
      "type": "string",
      "format": "date-time"
    },
    "requested_revision": {
      "type": "integer",
      "format": "int64",
      "minimum": 1
    },
    "candidate_digest": {
      "type": "string"
    },
    "note": {
      "type": "string"
    },
    "status": {
      "type": "string",
      "enum": [
        "pending",
        "approved",
        "rejected",
        "outdated"
      ]
    },
    "resolved_by": {
      "anyOf": [
        {
          "type": "string",
          "format": "uuid"
        },
        {
          "type": "null"
        }
      ]
    },
    "resolver_name": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "resolved_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ]
    },
    "resolution_note": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "release_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "id",
    "workflow_id",
    "requester_id",
    "requester_name",
    "requested_at",
    "requested_revision",
    "candidate_digest",
    "note",
    "status",
    "resolved_by",
    "resolver_name",
    "resolved_at",
    "resolution_note",
    "release_id"
  ],
  "additionalProperties": false
}
RequestPublication
FieldPresenceTypeConstraints
expected_revisionRequiredinteger{"format": "int64", "minimum": 1}
expected_digestRequiredstring{}
noteOptionalstring{"description": "Optional submission note, at most 8,000 UTF-8 bytes."}
{
  "type": "object",
  "properties": {
    "expected_revision": {
      "type": "integer",
      "format": "int64",
      "minimum": 1
    },
    "expected_digest": {
      "type": "string"
    },
    "note": {
      "type": "string",
      "description": "Optional submission note, at most 8,000 UTF-8 bytes."
    }
  },
  "required": [
    "expected_revision",
    "expected_digest"
  ],
  "additionalProperties": false
}
ApprovePublication
FieldPresenceTypeConstraints
expected_revisionRequiredinteger{"format": "int64", "minimum": 1}
expected_digestRequiredstring{}
noteOptionalstring{"description": "Optional approval/publication note, at most 8,000 UTF-8 bytes."}
{
  "type": "object",
  "properties": {
    "expected_revision": {
      "type": "integer",
      "format": "int64",
      "minimum": 1
    },
    "expected_digest": {
      "type": "string"
    },
    "note": {
      "type": "string",
      "description": "Optional approval/publication note, at most 8,000 UTF-8 bytes."
    }
  },
  "required": [
    "expected_revision",
    "expected_digest"
  ],
  "additionalProperties": false
}
RejectPublication
FieldPresenceTypeConstraints
expected_revisionRequiredinteger{"format": "int64", "minimum": 1}
reasonRequiredstring{"minLength": 1, "description": "Required rejection reason after trimming, at most 8,000 UTF-8 bytes."}
{
  "type": "object",
  "properties": {
    "expected_revision": {
      "type": "integer",
      "format": "int64",
      "minimum": 1
    },
    "reason": {
      "type": "string",
      "minLength": 1,
      "description": "Required rejection reason after trimming, at most 8,000 UTF-8 bytes."
    }
  },
  "required": [
    "expected_revision",
    "reason"
  ],
  "additionalProperties": false
}
ChatRoomSummary
FieldPresenceTypeConstraints
room_keyRequiredstring{"description": "team for the shared room; workflow:<id> for a workflow room."}
workflow_idRequiredobject or schema-defined value{"anyOf": [{"type": "string", "minLength": 1, "maxLength": 128, "pattern": "^[A-Za-z0-9_.-]{1,128}$"}, {"type": "null"}], "description": "Omit or use null for the shared team room; otherwise use a current workflow ID."}
nameRequiredstring{}
last_message_idRequiredinteger{"format": "int64", "minimum": 0}
last_read_idRequiredinteger{"format": "int64", "minimum": 0}
unreadRequiredinteger{"format": "int64", "minimum": 0}
mentionsRequiredinteger{"format": "int64", "minimum": 0, "description": "Unread mentions and replies to this member."}
{
  "type": "object",
  "description": "One team or workflow discussion room, with read state specific to the requesting member.",
  "additionalProperties": false,
  "properties": {
    "room_key": {
      "type": "string",
      "description": "team for the shared room; workflow:<id> for a workflow room."
    },
    "workflow_id": {
      "anyOf": [
        {
          "type": "string",
          "minLength": 1,
          "maxLength": 128,
          "pattern": "^[A-Za-z0-9_.-]{1,128}$"
        },
        {
          "type": "null"
        }
      ],
      "description": "Omit or use null for the shared team room; otherwise use a current workflow ID."
    },
    "name": {
      "type": "string"
    },
    "last_message_id": {
      "type": "integer",
      "format": "int64",
      "minimum": 0
    },
    "last_read_id": {
      "type": "integer",
      "format": "int64",
      "minimum": 0
    },
    "unread": {
      "type": "integer",
      "format": "int64",
      "minimum": 0
    },
    "mentions": {
      "type": "integer",
      "format": "int64",
      "minimum": 0,
      "description": "Unread mentions and replies to this member."
    }
  },
  "required": [
    "room_key",
    "workflow_id",
    "name",
    "last_message_id",
    "last_read_id",
    "unread",
    "mentions"
  ]
}
ChatNotification
FieldPresenceTypeConstraints
message_idRequiredinteger{"format": "int64", "minimum": 1}
actor_nameRequiredstring{}
previewRequiredstring{"description": "Truncated message preview, at most 240 Unicode characters."}
created_atRequiredstring{"format": "date-time"}
unreadRequiredboolean{}
mentionRequiredboolean{}
replyRequiredboolean{}
edited_atRequiredobject or schema-defined value{"anyOf": [{"type": "string", "format": "date-time"}, {"type": "null"}]}
{
  "type": "object",
  "description": "An incoming message or mention in the requested room, including read/edit status.",
  "additionalProperties": false,
  "properties": {
    "message_id": {
      "type": "integer",
      "format": "int64",
      "minimum": 1
    },
    "actor_name": {
      "type": "string"
    },
    "preview": {
      "type": "string",
      "description": "Truncated message preview, at most 240 Unicode characters."
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "unread": {
      "type": "boolean"
    },
    "mention": {
      "type": "boolean"
    },
    "reply": {
      "type": "boolean"
    },
    "edited_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "message_id",
    "actor_name",
    "preview",
    "created_at",
    "unread",
    "mention",
    "reply",
    "edited_at"
  ]
}