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.
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.
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.
.\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
| Identity | What its token can do |
|---|---|
| Viewer | Read workflows, evidence, graph and audit history; participate in chat, mentions and explicit agent questions. Cannot review or publish. |
| Reviewer | Viewer access plus complete snapshot imports, review decisions, renewals and publication requests. Needs Publisher or Administrator approval to make a release live. |
| Publisher | Reviewer access plus optional independent verification and publication/approval, including their own reviewed work or own requests. |
| Administrator | Publisher access plus member management, agent configuration and workflow configuration. |
| Feed reader | Own identity, discovery/specification and approved feed formats. Cannot browse the workbench. |
| External agent | Own identity, discovery/specification and its assigned job claim/complete/fail routes. Cannot review, approve, publish or post unsolicited chat. |
| Managed agent | No 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
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.
{
"expected_revision": 8,
"expected_digest": "COPY_CURRENT_CANDIDATE_DIGEST",
"note": "Source evidence reviewed; ready for publication 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:
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.
{
"expected_revision": 9,
"expected_digest": "COPY_PUBLICATION_REQUEST_CANDIDATE_DIGEST",
"note": "Evidence checked. Approved for the published feed."
}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:
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
# 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.
| Operation | When the response is lost |
|---|---|
| Publication request | Keep 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. |
| Approval | Replaying 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. |
| Rejection | The original resolver and same reason can replay the existing rejection without another resolution. |
| Direct publication | Read current state first. Repeating /publish for an already-published candidate returns a conflict; it does not add a release. |
| Chat | Use 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 writes | Read 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
namemust be its configured source ID. Do not send an inventedas_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.
{
"error": {
"code": "revision_conflict",
"message": "This workflow changed. Reload and inspect the current revision."
},
"revision": 8
}| HTTP status | Meaning |
|---|---|
400 | Malformed request, invalid Host, or credentials supplied in a query parameter. |
401 | Missing, invalid, or revoked bearer token. |
403 | Account kind/role, browser origin, or Enterprise entitlement does not permit this operation. |
404 | Record not found. |
405 | HTTP method is not supported. |
409 | Revision, lease, attempt, or idempotency conflict. |
413 | Request is too large. |
415 | The request requires application/json. |
422 | Request validation failed. |
429 | Rate or queue capacity limit. |
500 | An internal error prevented the operation. |
503 | Service 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.
No operations match these filters. Try a shorter term or clear the filters.
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
| Field | Presence | Type | Constraints |
|---|---|---|---|
name | Required | string | {"minLength": 1, "description": "1–200 UTF-8 bytes without control characters; active names must be unique."} |
role | Required | string | {"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
| Name | Location | Presence | Schema |
|---|---|---|---|
id | path | Required | {"type": "string", "format": "uuid"} |
Request body — required
application/json · object
| Field | Presence | Type | Constraints |
|---|---|---|---|
role | Required | string | {"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
| Name | Location | Presence | Schema |
|---|---|---|---|
id | path | Required | {"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
| Name | Location | Presence | Schema |
|---|---|---|---|
id | path | Required | {"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
| Field | Presence | Type | Constraints |
|---|---|---|---|
config | Required | WorkflowConfig | {} |
{
"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
| Name | Location | Presence | Schema |
|---|---|---|---|
id | path | Required | {"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
| Name | Location | Presence | Schema |
|---|---|---|---|
id | path | Required | {"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
| Field | Presence | Type | Constraints |
|---|---|---|---|
expected_revision | Required | integer | {"format": "int64", "minimum": 1} |
config | Required | WorkflowConfig | {} |
{
"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
| Name | Location | Presence | Schema |
|---|---|---|---|
id | path | Required | {"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
| Field | Presence | Type | Constraints |
|---|---|---|---|
expected_revision | Required | integer | {"format": "int64", "minimum": 1} |
inputs | Required | Array 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
| Name | Location | Presence | Schema |
|---|---|---|---|
id | path | Required | {"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
| Field | Presence | Type | Constraints |
|---|---|---|---|
expected_revision | Required | integer | {"format": "int64", "minimum": 1} |
ids | Required | Array of string | {"minItems": 1, "maxItems": 50000, "uniqueItems": true} |
state | Required | string | {"enum": ["keep", "exclude", "needs_review"]} |
reason | Required | string | {} |
{
"$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
| Name | Location | Presence | Schema |
|---|---|---|---|
id | path | Required | {"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
| Field | Presence | Type | Constraints |
|---|---|---|---|
expected_revision | Required | integer | {"format": "int64", "minimum": 1} |
ids | Required | Array of string | {"minItems": 1, "maxItems": 50000, "uniqueItems": true} |
reason | Required | string | {} |
{
"$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
| Name | Location | Presence | Schema |
|---|---|---|---|
id | path | Required | {"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
| Field | Presence | Type | Constraints |
|---|---|---|---|
expected_revision | Required | integer | {"format": "int64", "minimum": 1} |
expected_digest | Required | string | {} |
ids | Required | Array of string | {"minItems": 1, "maxItems": 50000, "uniqueItems": true} |
note | Optional | string | {"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
| Name | Location | Presence | Schema |
|---|---|---|---|
id | path | Required | {"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
| Name | Location | Presence | Schema |
|---|---|---|---|
id | path | Required | {"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
| Field | Presence | Type | Constraints |
|---|---|---|---|
expected_revision | Required | integer | {"format": "int64", "minimum": 1} |
expected_digest | Required | string | {} |
note | Optional | string | {"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
| Name | Location | Presence | Schema |
|---|---|---|---|
id | path | Required | {"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
| Name | Location | Presence | Schema |
|---|---|---|---|
id | path | Required | {"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
| Field | Presence | Type | Constraints |
|---|---|---|---|
expected_revision | Required | integer | {"format": "int64", "minimum": 1} |
expected_digest | Required | string | {} |
note | Optional | string | {"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
| Name | Location | Presence | Schema |
|---|---|---|---|
id | path | Required | {"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_id | path | Required | {"type": "string", "format": "uuid"} Publication request ID returned by this workflow. |
Request body — required
application/json · ApprovePublication
| Field | Presence | Type | Constraints |
|---|---|---|---|
expected_revision | Required | integer | {"format": "int64", "minimum": 1} |
expected_digest | Required | string | {} |
note | Optional | string | {"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
| Name | Location | Presence | Schema |
|---|---|---|---|
id | path | Required | {"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_id | path | Required | {"type": "string", "format": "uuid"} Publication request ID returned by this workflow. |
Request body — required
application/json · RejectPublication
| Field | Presence | Type | Constraints |
|---|---|---|---|
expected_revision | Required | integer | {"format": "int64", "minimum": 1} |
reason | Required | string | {"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
| Name | Location | Presence | Schema |
|---|---|---|---|
id | path | Required | {"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
| Name | Location | Presence | Schema |
|---|---|---|---|
id | path | Required | {"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_id | path | Required | {"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
| Name | Location | Presence | Schema |
|---|---|---|---|
id | path | Required | {"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_id | path | Required | {"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
| Name | Location | Presence | Schema |
|---|---|---|---|
id | path | Required | {"type": "string", "description": "Stable workflow identifier; use the value returned by /api/workflows.", "pattern": "^[A-Za-z0-9_.-]{1,128}$", "minLength": 1, "maxLength": 128} |
format | path | Required | {"type": "string", "enum": ["csv", "txt", "json", "stix", "delta"]} |
If-None-Match | header | Optional | {"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
| Name | Location | Presence | Schema |
|---|---|---|---|
after | query | Optional | {"type": "integer", "minimum": 0, "default": 0} |
limit | query | Optional | {"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
| Name | Location | Presence | Schema |
|---|---|---|---|
id | path | Required | {"type": "string", "description": "Stable workflow identifier; use the value returned by /api/workflows.", "pattern": "^[A-Za-z0-9_.-]{1,128}$", "minLength": 1, "maxLength": 128} |
after | query | Optional | {"type": "integer", "minimum": 0, "default": 0} |
limit | query | Optional | {"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
| Field | Presence | Type | Constraints |
|---|---|---|---|
session_id | Required | string | {"format": "uuid"} |
workflow_id | Optional | object 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"}]} |
view | Required | string | {"enum": ["overview", "review", "graph", "chat"]} |
selected_ioc | Optional | object or schema-defined value | {"anyOf": [{"type": "string", "pattern": "^[0-9a-f]{64}$"}, {"type": "null"}]} |
after_activity | Optional | integer | {"minimum": 0, "default": 0} |
after_message | Optional | integer | {"minimum": 0, "default": 0} |
typing | Optional | boolean | {"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
| Field | Presence | Type | Constraints |
|---|---|---|---|
session_id | Required | string | {"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
| Name | Location | Presence | Schema |
|---|---|---|---|
workflow_id | query | Optional | {"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. |
before | query | Optional | {"type": "integer", "minimum": 1} |
limit | query | Optional | {"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
| Field | Presence | Type | Constraints |
|---|---|---|---|
client_message_id | Required | string | {"format": "uuid"} |
workflow_id | Optional | object 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"}]} |
body | Required | string | {"minLength": 1, "maxLength": 4000, "description": "Plain text, at most 16,000 UTF-8 bytes. No unsupported controls."} |
indicator_id | Optional | object or schema-defined value | {"anyOf": [{"type": "string", "pattern": "^[0-9a-f]{64}$"}, {"type": "null"}]} |
reply_to | Optional | object or schema-defined value | {"anyOf": [{"type": "integer", "minimum": 1}, {"type": "null"}]} |
agent_id | Optional | object or schema-defined value | {"anyOf": [{"type": "string", "format": "uuid"}, {"type": "null"}]} |
mention_user_ids | Optional | Array 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
| Name | Location | Presence | Schema |
|---|---|---|---|
id | path | Required | {"type": "integer", "format": "int64", "minimum": 1} Positive server-assigned message ID. |
Request body — required
application/json · object
| Field | Presence | Type | Constraints |
|---|---|---|---|
body | Required | string | {"minLength": 1, "maxLength": 4000, "description": "Up to 16,000 UTF-8 bytes; line breaks and tabs allowed."} |
expected_edit_version | Required | integer | {"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
| Field | Presence | Type | Constraints |
|---|---|---|---|
workflow_id | Optional | object 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_id | Optional | object 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
| Name | Location | Presence | Schema |
|---|---|---|---|
workflow_id | query | Optional | {"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
| Name | Location | Presence | Schema |
|---|---|---|---|
workflow_id | query | Optional | {"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. |
q | query | Optional | {"type": "string", "maxLength": 256} |
limit | query | Optional | {"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
| Field | Presence | Type | Constraints |
|---|---|---|---|
name | Required | string | {"minLength": 1, "description": "1–200 UTF-8 bytes, trimmed, without control characters; active names must be unique."} |
kind | Required | string | {"enum": ["managed", "external"]} |
enabled | Optional | boolean | {"default": true} |
description | Optional | string | {"description": "At most 2,000 UTF-8 bytes; tab and newlines are permitted."} |
endpoint | Optional | object 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"}]} |
model | Optional | object or schema-defined value | {"anyOf": [{"type": "string", "minLength": 1, "description": "1–200 UTF-8 bytes, trimmed, without control characters."}, {"type": "null"}]} |
instructions | Optional | string | {"description": "At most 8,000 UTF-8 bytes; tab and newlines are permitted."} |
api_key | Optional | object 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_key | Optional | boolean | {"default": false} |
max_output_tokens | Optional | integer | {"minimum": 128, "maximum": 4096, "default": 1024} |
token_limit_field | Optional | string | {"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
| Name | Location | Presence | Schema |
|---|---|---|---|
id | path | Required | {"type": "string", "format": "uuid"} |
Request body — required
application/json · AgentConfig
| Field | Presence | Type | Constraints |
|---|---|---|---|
name | Required | string | {"minLength": 1, "description": "1–200 UTF-8 bytes, trimmed, without control characters; active names must be unique."} |
kind | Required | string | {"enum": ["managed", "external"]} |
enabled | Optional | boolean | {"default": true} |
description | Optional | string | {"description": "At most 2,000 UTF-8 bytes; tab and newlines are permitted."} |
endpoint | Optional | object 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"}]} |
model | Optional | object or schema-defined value | {"anyOf": [{"type": "string", "minLength": 1, "description": "1–200 UTF-8 bytes, trimmed, without control characters."}, {"type": "null"}]} |
instructions | Optional | string | {"description": "At most 8,000 UTF-8 bytes; tab and newlines are permitted."} |
api_key | Optional | object 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_key | Optional | boolean | {"default": false} |
max_output_tokens | Optional | integer | {"minimum": 128, "maximum": 4096, "default": 1024} |
token_limit_field | Optional | string | {"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
| Name | Location | Presence | Schema |
|---|---|---|---|
workflow_id | query | Optional | {"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. |
limit | query | Optional | {"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
| Name | Location | Presence | Schema |
|---|---|---|---|
id | path | Required | {"type": "integer", "minimum": 1} |
Request body — required
application/json · object
| Field | Presence | Type | Constraints |
|---|---|---|---|
expected_attempt | Required | integer | {"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
| Name | Location | Presence | Schema |
|---|---|---|---|
id | path | Required | {"type": "integer", "minimum": 1} |
Request body — required
application/json · object
| Field | Presence | Type | Constraints |
|---|---|---|---|
expected_attempt | Required | integer | {"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
| Field | Presence | Type | Constraints |
|---|---|---|---|
client_claim_id | Required | string | {"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
| Name | Location | Presence | Schema |
|---|---|---|---|
id | path | Required | {"type": "integer", "minimum": 1} |
Request body — required
application/json · object
| Field | Presence | Type | Constraints |
|---|---|---|---|
lease_token | Required | string | {"format": "uuid"} |
body | Required | string | {"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
| Name | Location | Presence | Schema |
|---|---|---|---|
id | path | Required | {"type": "integer", "minimum": 1} |
Request body — required
application/json · object
| Field | Presence | Type | Constraints |
|---|---|---|---|
lease_token | Required | string | {"format": "uuid"} |
error | Required | string | {"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
| Name | Location | Presence | Schema |
|---|---|---|---|
id | path | Required | {"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
| Name | Location | Presence | Schema |
|---|---|---|---|
id | path | Required | {"type": "string"} Existing workflow ID |
Request body — required
application/json · object
| Field | Presence | Type | Constraints |
|---|---|---|---|
expected_revision | Required | integer | {} |
ids | Required | Array of string | {"minItems": 1, "maxItems": 100, "uniqueItems": true} |
consent | Required | boolean | {"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
| Field | Presence | Type | Constraints |
|---|---|---|---|
error | Required | object | {"properties": {"code": {"type": "string"}, "message": {"type": "string"}}, "required": ["code", "message"], "additionalProperties": false} |
revision | Optional | integer | {"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
| Field | Presence | Type | Constraints |
|---|---|---|---|
id | Required | string | {"format": "uuid"} |
name | Required | string | {} |
role | Required | string | {"enum": ["viewer", "reviewer", "publisher", "admin", "feed_reader"]} |
kind | Required | string | {"enum": ["human", "managed_agent", "external_agent"]} |
created_at | Required | string | {"format": "date-time"} |
revoked_at | Required | object 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
| Field | Presence | Type | Constraints |
|---|---|---|---|
pro | Required | boolean | {} |
label | Required | string | {} |
message | Required | string | {} |
expires_at | Required | object 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
| Field | Presence | Type | Constraints |
|---|---|---|---|
url | Required | string | {"format": "uri"} |
organization_id | Required | string | {"format": "uuid"} |
organization_slug | Required | string | {} |
product_id | Required | string | {"format": "uuid"} |
price_display | Required | string | {} |
{
"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
| Field | Presence | Type | Constraints |
|---|---|---|---|
user | Required | User | {} |
license | Required | LicenseStatus | {} |
read_only | Required | boolean | {} |
team | Required | object | {"additionalProperties": true} |
checkout | Required | object 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
| Field | Presence | Type | Constraints |
|---|---|---|---|
name | Required | string | {"minLength": 1, "description": "1–200 UTF-8 bytes without control characters; active names must be unique."} |
role | Required | string | {"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
| Field | Presence | Type | Constraints |
|---|---|---|---|
user | Required | User | {} |
token | Required | string | {"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
| Field | Presence | Type | Constraints |
|---|---|---|---|
user | Required | User | {} |
{
"type": "object",
"properties": {
"user": {
"$ref": "#/components/schemas/User"
}
},
"required": [
"user"
],
"additionalProperties": false
}ReleasedIndicator
| Field | Presence | Type | Constraints |
|---|---|---|---|
id | Required | string | {"pattern": "^[0-9a-f]{64}$"} |
kind | Required | string | {"enum": ["ipv4", "ipv6", "domain", "url", "email", "md5", "sha1", "sha256", "sha512"]} |
value | Required | string | {} |
stix_id | Required | string | {} |
created_at | Required | string | {"format": "date-time"} |
modified_at | Required | string | {"format": "date-time"} |
valid_from | Required | string | {"format": "date-time"} |
valid_until | Required | string | {"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
| Field | Presence | Type | Constraints |
|---|---|---|---|
baseline_id | Required | object or schema-defined value | {"anyOf": [{"type": "string"}, {"type": "null"}]} |
added | Required | Array of ReleasedIndicator | {} |
updated | Required | Array of ReleasedIndicator | {} |
removed | Required | Array 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
| Field | Presence | Type | Constraints |
|---|---|---|---|
schema_version | Required | object or schema-defined value | {"const": 1} |
id | Required | string | {} |
workflow_id | Required | 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 | Required | string | {} |
candidate_digest | Required | string | {} |
created_at | Required | string | {"format": "date-time"} |
indicators | Required | Array of ReleasedIndicator | {} |
delta | Required | ReleaseDelta | {} |
digest | Required | string | {} |
{
"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
| Field | Presence | Type | Constraints |
|---|---|---|---|
id | Required | string | {} |
created_at | Required | string | {"format": "date-time"} |
digest | Required | string | {} |
candidate_digest | Required | string | {} |
indicator_count | Required | integer | {"format": "int64"} |
actor_id | Required | string | {"format": "uuid"} |
note | Required | string | {} |
revision | Required | integer | {"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
| Field | Presence | Type | Constraints |
|---|---|---|---|
id | Required | string | {"description": "Stable workflow identifier; use the value returned by /api/workflows.", "pattern": "^[A-Za-z0-9_.-]{1,128}$", "minLength": 1, "maxLength": 128} |
name | Required | string | {} |
revision | Required | integer | {"format": "int64", "minimum": 1} |
updated_at | Required | string | {"format": "date-time"} |
has_run | Required | boolean | {} |
latest_release_id | Required | object or schema-defined value | {"anyOf": [{"type": "string"}, {"type": "null"}]} |
pending_publication_request | Required | object 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
| Field | Presence | Type | Constraints |
|---|---|---|---|
value_field | Required | string | {} |
type_field | Optional | object or schema-defined value | {"anyOf": [{"type": "string"}, {"type": "null"}]} |
fixed_kind | Optional | object 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
| Field | Presence | Type | Constraints |
|---|---|---|---|
id | Required | 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 | Required | string | {"enum": ["text", "csv", "json"]} |
complete_snapshot | Required | object or schema-defined value | {"const": true} |
mapping | Optional | object 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
| Field | Presence | Type | Constraints |
|---|---|---|---|
schema_version | Optional | object or schema-defined value | {"const": 1} |
id | Optional | string | {} |
name | Optional | string | {} |
allowed_types | Optional | Array of string | {"minItems": 1, "uniqueItems": true} |
warning_lists | Optional | Array of WarningList | {"maxItems": 100} |
require_reason_for_warnings | Optional | boolean | {} |
require_all_reviewed | Optional | boolean | {} |
export | Optional | 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} |
{
"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
| Field | Presence | Type | Constraints |
|---|---|---|---|
client_id | Optional | 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 | Optional | integer | {"minimum": 1, "maximum": 3650} |
max_removal_percent | Optional | integer | {"minimum": 0, "maximum": 100} |
allow_empty | Optional | boolean | {} |
require_separate_publisher | Optional | 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 | Optional | boolean | {} |
block_import_issues | Optional | boolean | {} |
{
"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
| Field | Presence | Type | Constraints |
|---|---|---|---|
schema_version | Required | object or schema-defined value | {"const": 1} |
id | Required | string | {"description": "Stable workflow identifier; use the value returned by /api/workflows.", "pattern": "^[A-Za-z0-9_.-]{1,128}$", "minLength": 1, "maxLength": 128} |
name | Required | string | {} |
profile | Required | Profile | {} |
sources | Required | Array of WorkflowSource | {"minItems": 1, "maxItems": 200} |
policy | Required | WorkflowPolicy | {} |
{
"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
| Field | Presence | Type | Constraints |
|---|---|---|---|
revision | Required | integer | {"format": "int64", "minimum": 1} |
config | Required | WorkflowConfig | {} |
config_stale | Required | boolean | {} |
reanalysis_required | Required | boolean | {} |
run | Required | object or schema-defined value | {"anyOf": [{"type": "object", "additionalProperties": true}, {"type": "null"}]} |
candidate_digest | Required | object or schema-defined value | {"anyOf": [{"type": "string"}, {"type": "null"}]} |
expected_digest | Required | object or schema-defined value | {"anyOf": [{"type": "string"}, {"type": "null"}]} |
gate | Required | object or schema-defined value | {"anyOf": [{"type": "object", "additionalProperties": true}, {"type": "null"}]} |
decision_actors | Required | object | {"additionalProperties": true} |
decision_approvals | Required | object | {"additionalProperties": true} |
latest_release | Required | object or schema-defined value | {"anyOf": [{"$ref": "#/components/schemas/Release"}, {"type": "null"}]} |
release | Optional | Release | {} |
publication_request | Required | object 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
| Field | Presence | Type | Constraints |
|---|---|---|---|
expected_revision | Required | integer | {"format": "int64", "minimum": 1} |
inputs | Required | Array 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
| Field | Presence | Type | Constraints |
|---|---|---|---|
expected_revision | Required | integer | {"format": "int64", "minimum": 1} |
ids | Required | Array of string | {"minItems": 1, "maxItems": 50000, "uniqueItems": true} |
state | Required | string | {"enum": ["keep", "exclude", "needs_review"]} |
reason | Required | string | {} |
{
"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
| Field | Presence | Type | Constraints |
|---|---|---|---|
expected_revision | Required | integer | {"format": "int64", "minimum": 1} |
ids | Required | Array of string | {"minItems": 1, "maxItems": 50000, "uniqueItems": true} |
reason | Required | string | {} |
{
"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
| Field | Presence | Type | Constraints |
|---|---|---|---|
expected_revision | Required | integer | {"format": "int64", "minimum": 1} |
expected_digest | Required | string | {} |
ids | Required | Array of string | {"minItems": 1, "maxItems": 50000, "uniqueItems": true} |
note | Optional | string | {"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
| Field | Presence | Type | Constraints |
|---|---|---|---|
expected_revision | Required | integer | {"format": "int64", "minimum": 1} |
expected_digest | Required | string | {} |
note | Optional | string | {"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
| Field | Presence | Type | Constraints |
|---|---|---|---|
user_id | Required | string | {"format": "uuid"} |
name | Required | string | {} |
kind | Required | string | {"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
| Field | Presence | Type | Constraints |
|---|---|---|---|
id | Required | integer | {"format": "int64"} |
client_message_id | Required | string | {"format": "uuid"} |
workflow_id | Required | object 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_id | Required | string | {"format": "uuid"} |
actor_name | Required | string | {} |
actor_kind | Required | string | {"enum": ["human", "managed_agent", "external_agent"]} |
body | Required | string | {} |
created_at | Required | string | {"format": "date-time"} |
indicator | Required | object 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_to | Required | object or schema-defined value | {"anyOf": [{"type": "integer", "format": "int64"}, {"type": "null"}]} |
mentions | Required | Array of Mention | {} |
agent_request | Required | object or schema-defined value | {"anyOf": [{"$ref": "#/components/schemas/AgentRequest"}, {"type": "null"}]} |
agent | Required | object or schema-defined value | {"anyOf": [{"$ref": "#/components/schemas/AgentMessage"}, {"type": "null"}]} |
edited_at | Required | object or schema-defined value | {"anyOf": [{"type": "string", "format": "date-time"}, {"type": "null"}]} |
edit_version | Required | integer | {"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
| Field | Presence | Type | Constraints |
|---|---|---|---|
client_message_id | Required | string | {"format": "uuid"} |
workflow_id | Optional | object 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"}]} |
body | Required | string | {"minLength": 1, "maxLength": 4000, "description": "Plain text, at most 16,000 UTF-8 bytes. No unsupported controls."} |
indicator_id | Optional | object or schema-defined value | {"anyOf": [{"type": "string", "pattern": "^[0-9a-f]{64}$"}, {"type": "null"}]} |
reply_to | Optional | object or schema-defined value | {"anyOf": [{"type": "integer", "minimum": 1}, {"type": "null"}]} |
agent_id | Optional | object or schema-defined value | {"anyOf": [{"type": "string", "format": "uuid"}, {"type": "null"}]} |
mention_user_ids | Optional | Array 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
| Field | Presence | Type | Constraints |
|---|---|---|---|
name | Required | string | {"minLength": 1, "description": "1–200 UTF-8 bytes, trimmed, without control characters; active names must be unique."} |
kind | Required | string | {"enum": ["managed", "external"]} |
enabled | Optional | boolean | {"default": true} |
description | Optional | string | {"description": "At most 2,000 UTF-8 bytes; tab and newlines are permitted."} |
endpoint | Optional | object 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"}]} |
model | Optional | object or schema-defined value | {"anyOf": [{"type": "string", "minLength": 1, "description": "1–200 UTF-8 bytes, trimmed, without control characters."}, {"type": "null"}]} |
instructions | Optional | string | {"description": "At most 8,000 UTF-8 bytes; tab and newlines are permitted."} |
api_key | Optional | object 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_key | Optional | boolean | {"default": false} |
max_output_tokens | Optional | integer | {"minimum": 128, "maximum": 4096, "default": 1024} |
token_limit_field | Optional | string | {"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
| Field | Presence | Type | Constraints |
|---|---|---|---|
id | Required | string | {"format": "uuid"} |
user_id | Required | string | {"format": "uuid"} |
name | Required | string | {} |
kind | Required | string | {"enum": ["managed", "external"]} |
enabled | Required | boolean | {} |
description | Optional | string | {} |
endpoint | Optional | object or schema-defined value | {"anyOf": [{"type": "string"}, {"type": "null"}]} |
model | Optional | object or schema-defined value | {"anyOf": [{"type": "string"}, {"type": "null"}]} |
instructions | Optional | string | {"description": "Included for human administrators only."} |
api_key_configured | Required | boolean | {} |
config_revision | Required | integer | {"format": "int64", "minimum": 1} |
max_output_tokens | Optional | integer | {"format": "int64"} |
token_limit_field | Optional | string | {} |
created_at | Optional | string | {"format": "date-time"} |
updated_at | Optional | string | {"format": "date-time"} |
revoked_at | Optional | object 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
| Field | Presence | Type | Constraints |
|---|---|---|---|
id | Required | integer | {"format": "int64"} |
agent_id | Required | string | {"format": "uuid"} |
agent_name | Optional | string | {} |
kind | Optional | string | {} |
workflow_id | Required | object 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_id | Required | integer | {"format": "int64"} |
requested_by | Required | object | {"properties": {"id": {"type": "string", "format": "uuid"}, "name": {"type": "string"}}, "required": ["id", "name"], "additionalProperties": false} |
status | Required | string | {"enum": ["queued", "running", "succeeded", "failed", "cancelled"]} |
attempt | Required | integer | {"minimum": 1, "maximum": 3} |
created_at | Optional | string | {"format": "date-time"} |
updated_at | Optional | string | {"format": "date-time"} |
started_at | Optional | object or schema-defined value | {"anyOf": [{"type": "string", "format": "date-time"}, {"type": "null"}]} |
finished_at | Optional | object or schema-defined value | {"anyOf": [{"type": "string", "format": "date-time"}, {"type": "null"}]} |
error | Optional | object or schema-defined value | {"anyOf": [{"type": "object", "properties": {"code": {"type": "string"}, "message": {"type": "string"}}, "required": ["code", "message"], "additionalProperties": false}, {"type": "null"}]} |
reply_message_id | Optional | object or schema-defined value | {"anyOf": [{"type": "integer", "format": "int64"}, {"type": "null"}]} |
context_revision | Optional | object or schema-defined value | {"anyOf": [{"type": "integer", "format": "int64"}, {"type": "null"}]} |
context_truncated | Optional | boolean | {} |
{
"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
| Field | Presence | Type | Constraints |
|---|---|---|---|
session_id | Required | string | {"format": "uuid"} |
workflow_id | Optional | object 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"}]} |
view | Required | string | {"enum": ["overview", "review", "graph", "chat"]} |
selected_ioc | Optional | object or schema-defined value | {"anyOf": [{"type": "string", "pattern": "^[0-9a-f]{64}$"}, {"type": "null"}]} |
after_activity | Optional | integer | {"minimum": 0, "default": 0} |
after_message | Optional | integer | {"minimum": 0, "default": 0} |
typing | Optional | boolean | {"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
| Field | Presence | Type | Constraints |
|---|---|---|---|
id | Required | integer | {"format": "int64"} |
workflow_id | Optional | object 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_id | Required | string | {"format": "uuid"} |
actor_name | Required | string | {} |
action | Required | string | {} |
revision | Optional | object or schema-defined value | {"anyOf": [{"type": "integer", "format": "int64"}, {"type": "null"}]} |
created_at | Required | string | {"format": "date-time"} |
content_hash | Required | string | {} |
details | Required | object | {"additionalProperties": true} |
details_truncated | Optional | boolean | {} |
details_bytes | Optional | integer | {"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
| Field | Presence | Type | Constraints |
|---|---|---|---|
server_time | Required | string | {"format": "date-time"} |
enterprise | Required | boolean | {} |
workflow_id | Optional | object 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_revision | Optional | object or schema-defined value | {"anyOf": [{"type": "integer", "format": "int64"}, {"type": "null"}]} |
activity | Required | Array of AuditEvent | {} |
messages | Required | Array of Message | {} |
presence | Required | Array of object | {} |
next_activity | Required | integer | {"format": "int64"} |
next_message | Required | integer | {"format": "int64"} |
has_more | Optional | boolean | {} |
activity_has_more | Optional | boolean | {} |
messages_has_more | Optional | boolean | {} |
messages_has_older | Optional | boolean | {} |
agent_jobs | Optional | Array of AgentJob | {} |
agent_catalog_revision | Optional | integer | {"format": "int64"} |
user | Required | User | {} |
{
"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
| Field | Presence | Type | Constraints |
|---|---|---|---|
id | Required | string | {} |
kind | Required | string | {"enum": ["ioc", "source", "workflow", "member", "host"]} |
label | Required | string | {} |
indicator_id | Optional | object or schema-defined value | {"anyOf": [{"type": "string", "pattern": "^[0-9a-f]{64}$"}, {"type": "null"}]} |
indicator_kind | Optional | object or schema-defined value | {"anyOf": [{"type": "string", "enum": ["ipv4", "ipv6", "domain", "url", "email", "md5", "sha1", "sha256", "sha512"]}, {"type": "null"}]} |
workflow_id | Optional | object 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"}]} |
state | Optional | object or schema-defined value | {"anyOf": [{"type": "string"}, {"type": "null"}]} |
details | Required | object | {"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
| Field | Presence | Type | Constraints |
|---|---|---|---|
id | Required | string | {} |
source | Required | string | {} |
target | Required | string | {} |
kind | Required | string | {} |
label | Optional | string | {} |
workflow_id | Optional | string | {"description": "Stable workflow identifier; use the value returned by /api/workflows.", "pattern": "^[A-Za-z0-9_.-]{1,128}$", "minLength": 1, "maxLength": 128} |
evidence | Required | object | {"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
| Field | Presence | Type | Constraints |
|---|---|---|---|
workflow_id | Optional | object 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_revision | Optional | object or schema-defined value | {"anyOf": [{"type": "integer", "format": "int64"}, {"type": "null"}]} |
generated_at | Optional | string | {"format": "date-time"} |
nodes | Required | Array of GraphNode | {} |
edges | Required | Array of GraphEdge | {} |
counts | Required | object | {"additionalProperties": true} |
truncated | Required | boolean | {} |
truncation | Required | object | {"additionalProperties": true} |
notice | Optional | string | {} |
{
"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
| Field | Presence | Type | Constraints |
|---|---|---|---|
name | Required | string | {"minLength": 1, "description": "At most 256 UTF-8 bytes."} |
version | Optional | object or schema-defined value | {} |
description | Optional | string | {"description": "At most 64 KiB of UTF-8 text."} |
type | Optional | string | {"enum": ["string", "hostname", "cidr", "substring"], "default": "string"} |
list | Optional | Array 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
| Field | Presence | Type | Constraints |
|---|---|---|---|
job_id | Required | integer | {"format": "int64"} |
agent_id | Required | string | {"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
| Field | Presence | Type | Constraints |
|---|---|---|---|
agent_id | Required | string | {"format": "uuid"} |
kind | Required | string | {"enum": ["managed", "external"]} |
job_id | Required | integer | {"format": "int64"} |
model | Required | string | {} |
triggered_by | Required | string | {"format": "uuid"} |
context_revision | Required | object or schema-defined value | {"anyOf": [{"type": "integer", "format": "int64"}, {"type": "null"}]} |
truncated | Required | boolean | {"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
| Field | Presence | Type | Constraints |
|---|---|---|---|
name | Required | string | {} |
version | Required | string | {} |
openapi | Required | string | {} |
identity | Required | string | {} |
authentication | Required | object | {"properties": {"type": {"const": "bearer"}, "header": {"const": "Authorization"}, "tokens_in_urls": {"const": false}}, "required": ["type", "header", "tokens_in_urls"], "additionalProperties": false} |
user | Required | 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 | Required | Array of string | {"description": "Server features, not the permissions granted to the current token. Each operation enforces its documented identity and role."} |
note | Required | string | {} |
{
"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
| Field | Presence | Type | Constraints |
|---|---|---|---|
id | Required | string | {"format": "uuid"} |
workflow_id | Required | 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 | Required | string | {"format": "uuid"} |
requester_name | Required | string | {} |
requested_at | Required | string | {"format": "date-time"} |
requested_revision | Required | integer | {"format": "int64", "minimum": 1} |
candidate_digest | Required | string | {} |
note | Required | string | {} |
status | Required | string | {"enum": ["pending", "approved", "rejected", "outdated"]} |
resolved_by | Required | object or schema-defined value | {"anyOf": [{"type": "string", "format": "uuid"}, {"type": "null"}]} |
resolver_name | Required | object or schema-defined value | {"anyOf": [{"type": "string"}, {"type": "null"}]} |
resolved_at | Required | object or schema-defined value | {"anyOf": [{"type": "string", "format": "date-time"}, {"type": "null"}]} |
resolution_note | Required | object or schema-defined value | {"anyOf": [{"type": "string"}, {"type": "null"}]} |
release_id | Required | object 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
| Field | Presence | Type | Constraints |
|---|---|---|---|
expected_revision | Required | integer | {"format": "int64", "minimum": 1} |
expected_digest | Required | string | {} |
note | Optional | string | {"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
| Field | Presence | Type | Constraints |
|---|---|---|---|
expected_revision | Required | integer | {"format": "int64", "minimum": 1} |
expected_digest | Required | string | {} |
note | Optional | string | {"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
| Field | Presence | Type | Constraints |
|---|---|---|---|
expected_revision | Required | integer | {"format": "int64", "minimum": 1} |
reason | Required | string | {"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
| Field | Presence | Type | Constraints |
|---|---|---|---|
room_key | Required | string | {"description": "team for the shared room; workflow:<id> for a workflow room."} |
workflow_id | Required | object 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."} |
name | Required | string | {} |
last_message_id | Required | integer | {"format": "int64", "minimum": 0} |
last_read_id | Required | integer | {"format": "int64", "minimum": 0} |
unread | Required | integer | {"format": "int64", "minimum": 0} |
mentions | Required | integer | {"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
| Field | Presence | Type | Constraints |
|---|---|---|---|
message_id | Required | integer | {"format": "int64", "minimum": 1} |
actor_name | Required | string | {} |
preview | Required | string | {"description": "Truncated message preview, at most 240 Unicode characters."} |
created_at | Required | string | {"format": "date-time"} |
unread | Required | boolean | {} |
mention | Required | boolean | {} |
reply | Required | boolean | {} |
edited_at | Required | object 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"
]
}