Skip to content
logmast

Developer documentation

API reference

The deployed HTTP contract: authentication, operations, request shapes, and stable responses. Generated from the same OpenAPI source available to tools.

API v1 · Updated 2026-10-06Source manifest

Contract 1.7.0 · API origin https://app.logmast.com. Discover the target installation's capabilities before using an optional endpoint. Download OpenAPI JSON →

Authentication

Ingest bearer tokens submit evidence for one service. Management bearer tokens and human sessions act within workspace roles. Cookie writes also require the exact Origin. Never give application producers management credentials.

A successful ingest response acknowledges synchronous WAL commit. Preserve identities and content after an uncertain response. Control writes are generally not replay-idempotent; reconcile state before repeating. See the collection contract and failure playbook.

Operations

Discover catalog and availability

GET /api/v1/catalog

Discover the trial, published pricing bands and capability gates, ingestion.content_encodings, the sentry ingest contract, and capabilities.checks. checks describes the included definition/signal allowance, body and interval limits; live workspace usage comes from the checks list. provisional gives the events and bytes a workspace accepts before its owner's email is verified (unverified_allowance repeats it with what the claim unlocks); past it ingestion answers 402 VERIFICATION_REQUIRED until the claim completes.

Authority: Public / operation-specific proof

Parameters and responses
StatusMeaning / schema
200Success · object
defaultStable error code · Problem

Idempotently create a provisional trial

POST /api/v1/enrollments

Creates a workspace with the catalog's provisional allowance. Replaying an enrollment returns the same result and is not a new trial. Ten new trials per client address and one hundred per installation per hour; more than thirty requests in quick succession from one address answer 429 ATTEMPT_LIMIT before the request is examined.

Authority: Public / operation-specific proof

Parameters and responses

Request: application/json · Enrollment

StatusMeaning / schema
200Success · object
defaultStable error code · Problem

List authorized workspaces

GET /api/v1/workspaces

Authority: management or humanSession

Parameters and responses
StatusMeaning / schema
200Success · array
defaultStable error code · Problem

Read trial and service receipt status

GET /api/v1/workspaces/{workspace}/enrollment

projects lists the workspace's live projects, including those without services.

Authority: management or humanSession

Parameters and responses
ParameterLocation / shape
workspace · requiredpath · string
StatusMeaning / schema
200Success · object
defaultStable error code · Problem

List live projects and services

GET /api/v1/workspaces/{workspace}/navigation

Projects ({id,name}) and services ({id,name,project_id}) that are not deleted. Reads no evidence, so it is cheap enough for every page.

Authority: management or humanSession

Parameters and responses
ParameterLocation / shape
workspace · requiredpath · string
StatusMeaning / schema
200Success · object
defaultStable error code · Problem

Queue email ownership proof

POST /api/v1/workspaces/{workspace}/claim

Sends the verification email. 409 when the workspace is already claimed. 429 ATTEMPT_LIMIT when a limit is reached: three an hour and six a day per workspace, six a day per recipient, ten a day across the workspaces one client address enrolled, sixty an hour per installation.

Authority: management or humanSession

Parameters and responses
ParameterLocation / shape
workspace · requiredpath · string

Request: application/json · Claim

StatusMeaning / schema
200Success · object
defaultStable error code · Problem

Verify email and claim; existing accounts require their session

POST /api/v1/claims/complete

Authority: Public / operation-specific proof

Parameters and responses

Request: application/json · ClaimCompletion

StatusMeaning / schema
200Success · object
defaultStable error code · Problem

List agent grants

GET /api/v1/workspaces/{workspace}/agents

Owner only; never returns secrets. Includes an enrollment's bootstrap token as "Enrollment agent (bootstrap)".

Authority: management or humanSession

Parameters and responses
ParameterLocation / shape
workspace · requiredpath · string
StatusMeaning / schema
200Success · object
defaultStable error code · Problem

Grant a distinct agent identity

POST /api/v1/workspaces/{workspace}/agents

Human owner only. Persist the ID, random secret and entire intent before calling. Replays must be identical. Expiry must be in the future, at most 360 days away. The console defaults to 180 days. Optional project_id limits the grant to one live project; at most 100 active grants per workspace.

Authority: humanSession

Parameters and responses
ParameterLocation / shape
workspace · requiredpath · string

Request: application/json · AgentGrant

StatusMeaning / schema
200Success · object
defaultStable error code · Problem

Revoke an agent grant

POST /api/v1/workspaces/{workspace}/agents/{agent}/revoke

Owner only. The agent path parameter is the grant id, or the bootstrap token id for an enrollment agent, not agent_id. Repeating succeeds without duplicate audit.

Authority: management or humanSession

Parameters and responses
ParameterLocation / shape
workspace · requiredpath · string
agent · requiredpath · string
StatusMeaning / schema
200Success · object
defaultStable error code · Problem

Read coverage and purchase operations

GET /api/v1/workspaces/{workspace}/billing

Read scope. Does not initiate payment.

Authority: management or humanSession

Parameters and responses
ParameterLocation / shape
workspace · requiredpath · string
StatusMeaning / schema
200Success · object
defaultStable error code · Problem

Create or resume human checkout

POST /api/v1/workspaces/{workspace}/billing/checkout

Human owner only and catalog capabilities.human_checkout=true. Buys whole US dollars of prepaid credit. Persist ID and exact intent before calling. Reconcile after uncertain responses; do not create a new charge. A workspace with no contract (provisioned by the operator, unbilled by arrangement) answers 409 NOT_BILLED.

Authority: humanSession

Parameters and responses
ParameterLocation / shape
workspace · requiredpath · string

Request: application/json · Checkout

StatusMeaning / schema
200Success · object
defaultStable error code · Problem

Reconcile a purchase against Stripe

POST /api/v1/workspaces/{workspace}/billing/operations/{operation}/reconcile

Human owner only. A return URL is not proof of payment.

Authority: humanSession

Parameters and responses
ParameterLocation / shape
workspace · requiredpath · string
operation · requiredpath · string
StatusMeaning / schema
200Success · object
defaultStable error code · Problem

Manage service configuration and policies

POST /api/v1/workspaces/{workspace}/control

Manage scope/member role. Membership and limits require owner. Credential creation requires a human session. Not generally idempotent: read current state before retrying an uncertain write. Results can contain secrets; save privately. revoke_credential and revoke_token succeed again on an already revoked item and keep its first revocation time; they and rename_service answer 404 for an ID the caller cannot see in this workspace. Removing a membership also revokes that account's tokens for the workspace. membership changes or removes existing members only; a role for an account that is not a member answers 404. invite, revoke_invitation, delete_project and delete_service need an owner signed in at the console. Commands that name a deleted project or service answer 404.

Authority: management or humanSession

Parameters and responses
ParameterLocation / shape
workspace · requiredpath · string

Request: application/json · Control

StatusMeaning / schema
200Success · object
defaultStable error code · Problem

Read configuration and policy state

GET /api/v1/workspaces/{workspace}/policies

Workspace-scoped inventory; use to reconcile uncertain control writes. tokens lists API tokens issued through create_token or by the operator, usable ones first, at most 200: all of them for an owner using a session or a write-capable token, otherwise the caller's own. members lists the workspace's accounts with role and, for people, email; it is empty for any other caller. Agent grants and enrollment tokens are listed by the agents endpoint. invitations lists open invitations to the same audience as members. limits holds daily_event_limit, daily_byte_limit and redacted_fields for the same audience as members, and is null otherwise; the limits command replaces all three, so send back what was read.

Authority: management or humanSession

Parameters and responses
ParameterLocation / shape
workspace · requiredpath · string
StatusMeaning / schema
200Success · object
defaultStable error code · Problem

Read retained failure evidence

GET /api/v1/workspaces/{workspace}/investigation

Same paginated investigation response. Retention enforced at read time. Default window 24 hours, page size 50 plus lookahead.

Authority: management or humanSession

Parameters and responses
ParameterLocation / shape
workspace · requiredpath · string
projectquery · string
servicequery · string
groupquery · string
occurrencequery · string
environmentquery · string
codequery · string
severityquery · string
correlationquery · string
textquery · string
sincequery · string
untilquery · string
pagequery · integer
viewquery · all | attention
releasequery · string

Exact release filter; counts and histograms use the same retained evidence.

StatusMeaning / schema
200Success · object
defaultStable error code · Problem

Read retained failure evidence

GET /api/v1/workspaces/{workspace}/groups

Same paginated investigation response. Retention enforced at read time. Default window 24 hours, page size 50 plus lookahead.

Authority: management or humanSession

Parameters and responses
ParameterLocation / shape
workspace · requiredpath · string
projectquery · string
servicequery · string
groupquery · string
occurrencequery · string
environmentquery · string
codequery · string
severityquery · string
correlationquery · string
textquery · string
sincequery · string
untilquery · string
pagequery · integer
viewquery · all | attention
releasequery · string

Exact release filter; counts and histograms use the same retained evidence.

StatusMeaning / schema
200Success · object
defaultStable error code · Problem

Read retained failure evidence

GET /api/v1/workspaces/{workspace}/occurrences

Same paginated investigation response. Retention enforced at read time. Default window 24 hours, page size 50 plus lookahead.

Authority: management or humanSession

Parameters and responses
ParameterLocation / shape
workspace · requiredpath · string
projectquery · string
servicequery · string
groupquery · string
occurrencequery · string
environmentquery · string
codequery · string
severityquery · string
correlationquery · string
textquery · string
sincequery · string
untilquery · string
pagequery · integer
viewquery · all | attention
releasequery · string

Exact release filter; counts and histograms use the same retained evidence.

StatusMeaning / schema
200Success · object
defaultStable error code · Problem

Read one occurrence

GET /api/v1/workspaces/{workspace}/services/{service}/occurrences/{occurrence}

Read scope; retention enforced independently of physical cleanup.

Authority: management or humanSession

Parameters and responses
ParameterLocation / shape
workspace · requiredpath · string
service · requiredpath · string
occurrence · requiredpath · string
StatusMeaning / schema
200Success · object
defaultStable error code · Problem

Durably accept a batch

POST /api/v1/ingest/batches

Ingest credential only. Maximum 100 events, 1 MiB wire and decoded JSON, 64 KiB per event. Plain JSON and advertised gzip. Authentication precedes decoding. Replay identical batch and occurrence identities after uncertainty. Success follows synchronous WAL commit; require non-nil receipt and matching counts. Canonical uncompressed bytes determine allowance.

Authority: ingest

Parameters and responses
ParameterLocation / shape
Content-Encodingheader · identity | gzip

Optional. Unsupported encodings return 415; expansion overflow returns 413.

Request: application/json · Batch

StatusMeaning / schema
200Success · Acceptance
413Wire or decoded body exceeds limit · Problem
415Unsupported content encoding · Problem
defaultStable error code · Problem

Sign in as a human

POST /api/v1/auth/login

Password and either a current TOTP code or a single-use recovery code; establishes Secure HttpOnly session. Agents use delegated credentials instead.

Authority: Public / operation-specific proof

Parameters and responses

Request: application/json · Login

StatusMeaning / schema
200Success · object
defaultStable error code · Problem

Revoke current session

POST /api/v1/auth/logout

Cookie mutation requires exact Origin.

Authority: humanSession

Parameters and responses
StatusMeaning / schema
200Success · object
defaultStable error code · Problem

Durably accept an application-owned check result

POST /api/v1/ingest/check-ins

Service ingest token. Identity or gzip; maximum 8 KiB wire and decoded. Twenty new signals/second/workspace; default separate allowance 50,000/day. Duplicates are free for 90 days; changed content conflicts. Paused, stale, reordered, and late reports do not advance state. Does not execute tests or establish availability.

Authority: ingest

Parameters and responses
ParameterLocation / shape
Content-Encodingheader · identity | gzip

Optional. Unsupported encodings return 415; expansion overflow returns 413.

Request: application/json · CheckIn

StatusMeaning / schema
200Success · CheckAcceptance
defaultStable error code · Problem

List checks and separate collection allowance

GET /api/v1/workspaces/{workspace}/checks

Read authority within this workspace. Retention applies before physical cleanup. Unknown or expired receipt/check returns 404. Ingest credentials cannot read.

Authority: management or humanSession

Parameters and responses
ParameterLocation / shape
workspace · requiredpath · string
StatusMeaning / schema
200Success · CheckList
defaultStable error code · Problem

Read retained check transitions and attention

GET /api/v1/workspaces/{workspace}/checks/{check}

Read authority within this workspace. Retention applies before physical cleanup. Unknown or expired receipt/check returns 404. Ingest credentials cannot read.

Authority: management or humanSession

Parameters and responses
ParameterLocation / shape
workspace · requiredpath · string
check · requiredpath · string
StatusMeaning / schema
200Success · CheckDetail
defaultStable error code · Problem

Read retained receipt processing and delivery stages

GET /api/v1/workspaces/{workspace}/receipts/{receipt}

Read authority within this workspace. Retention applies before physical cleanup. Unknown or expired receipt/check returns 404. Ingest credentials cannot read.

Authority: management or humanSession

Parameters and responses
ParameterLocation / shape
workspace · requiredpath · string
receipt · requiredpath · string
StatusMeaning / schema
200Success · ReceiptStatus
defaultStable error code · Problem

Accept a Sentry SDK envelope

POST /api/{project}/envelope/

For unmodified Sentry server SDKs configured with a Logmast DSN. The first `event` item is mapped to one Logmast event and accepted exactly like a one-event batch (same receipts, limits, billing, redaction and retention); its identity comes from the event's `event_id`, so a retry is a free duplicate. Every other item is acknowledged and discarded without charge, and `X-Sentry-Rate-Limits` tells the SDK to stop sending those categories. Requests carrying Origin are refused (403). Concurrent envelopes wait up to 5 seconds for their workspace's share, then 429. A 402 or daily-quota 429 carries `X-Sentry-Rate-Limits: 60::organization:quota_exceeded`. See docs/public/sentry.md.

Authority: sentryAuth or sentryKey

Parameters and responses
ParameterLocation / shape
project · requiredpath · string

Ignored: the DSN key selects the service. Published DSNs use 1.

Content-Encodingheader · identity | gzip | deflate | br

Optional. Unsupported encodings return 415; at most 8 MiB on the wire, 32 MiB expanded and 1 MiB per event item, else 413.

Request: application/x-sentry-envelope · string

StatusMeaning / schema
200Accepted or discarded. `id` is present when the envelope held an event. · object
defaultStable error code · Problem

Read the signed-in person's account

GET /api/v1/account

Browser sessions only; API tokens are refused.

Authority: humanSession

Parameters and responses
StatusMeaning / schema
200Success · object
defaultStable error code · Problem

Change the password

POST /api/v1/account/password

A wrong password or code answers 422, not 401; a locked client answers 429. Ends the account's other sessions; API tokens are unaffected.

Authority: humanSession

Parameters and responses

Request: application/json · PasswordChange

StatusMeaning / schema
200Success · object
defaultStable error code · Problem

Replace the authenticator

POST /api/v1/account/authenticator

A wrong password or code answers 422, not 401; a locked client answers 429. The proof is a current code, or a session opened with a recovery code. Ends the account's other sessions.

Authority: humanSession

Parameters and responses

Request: application/json · AuthenticatorReset

StatusMeaning / schema
200Success · object
defaultStable error code · Problem

Generate ten recovery codes

POST /api/v1/account/recovery-codes

A wrong password or code answers 422, not 401; a locked client answers 429. Shown once; replaces all earlier codes.

Authority: humanSession

Parameters and responses

Request: application/json · RecoveryCodesRequest

StatusMeaning / schema
200Success · object
defaultStable error code · Problem

End every session of this account

POST /api/v1/account/sessions/end-all

Includes the current session. API tokens are unaffected.

Authority: humanSession

Parameters and responses
StatusMeaning / schema
200Success · object
defaultStable error code · Problem

Read an invitation from its email link

POST /api/v1/invitations/preview

Authority: Public / operation-specific proof

Parameters and responses

Request: application/json · InvitationProof

StatusMeaning / schema
200Success · object
defaultStable error code · Problem

Accept an invitation; existing accounts require their session

POST /api/v1/invitations/complete

Authority: Public / operation-specific proof

Parameters and responses

Request: application/json · InvitationCompletion

StatusMeaning / schema
200Success · object
defaultStable error code · Problem

Read the audit log, newest first

GET /api/v1/workspaces/{workspace}/audit

For an owner using a session or a write-capable token. Pass next_before as before for the next page.

Authority: management or humanSession

Parameters and responses
ParameterLocation / shape
workspace · requiredpath · string
beforequery · string
limitquery · integer
StatusMeaning / schema
200Success · object
defaultStable error code · Problem

Delete a workspace

POST /api/v1/workspaces/{workspace}/delete

Owner's browser session only. All access ends at once and the next hourly maintenance run removes its data; billing records are kept. Cannot be undone. 409 while a checkout or subscription is open.

Authority: humanSession

Parameters and responses
ParameterLocation / shape
workspace · requiredpath · string

Request: application/json · WorkspaceDeletion

StatusMeaning / schema
200Success · object
defaultStable error code · Problem

Start a device login

POST /api/v1/device/authorizations

Anonymous. The CLI generates its token and device code and sends only their SHA-256 hashes. Retrying with the same id and hashes returns the same user code; the same id with other hashes answers 409. Limited per client address.

Authority: Public / operation-specific proof

Parameters and responses

Request: application/json · DeviceStart

StatusMeaning / schema
200A code for a person to type at verification_uri within ten minutes · object
defaultStable error code · Problem

Poll a device login

POST /api/v1/device/authorizations/{id}/poll

Anonymous; proves possession with the device code. Every state answers 200. Approved returns the grant's workspace, project, scopes and expiry, never the token.

Authority: Public / operation-specific proof

Parameters and responses
ParameterLocation / shape
id · requiredpath · string

Request: application/json · object

StatusMeaning / schema
200The decision so far · object
defaultStable error code · Problem

Find a pending device login by its code

POST /api/v1/device/lookup

Console session only (bearer tokens refused). A request naming a workspace is found only by its members. Five wrong codes in ten minutes per person or per client address (an IPv6 /64) answer 429. Shows what the client reported and the requester's /24 or /64 network.

Authority: Public / operation-specific proof

Parameters and responses

Request: application/json · object

StatusMeaning / schema
200The pending request · object
defaultStable error code · Problem

Approve or deny a device login

POST /api/v1/device/authorizations/{id}/decision

Console session of a workspace owner, from the exact public Origin. An approval cannot change the requested workspace or project or widen the scope or days; management needs a fresh authenticator code. Creates an agent grant with the CLI's token hash and emails the other owners. A denial needs membership of the named workspace and is audited there.

Authority: Public / operation-specific proof

Parameters and responses
ParameterLocation / shape
id · requiredpath · string

Request: application/json · DeviceDecision

StatusMeaning / schema
200Decided · object
defaultStable error code · Problem

Describe the bearer token

GET /api/v1/auth/token

What the presented token reaches: workspace, project, scopes, expiry and agent name. Never returns the token.

Authority: Public / operation-specific proof

Parameters and responses
StatusMeaning / schema
200Token metadata · object
defaultStable error code · Problem

Revoke the bearer token

POST /api/v1/auth/token/revoke

A token revokes itself, as `logmastctl logout` does; an agent's membership ends with it.

Authority: Public / operation-specific proof

Parameters and responses
StatusMeaning / schema
200Revoked · object
defaultStable error code · Problem

Request and response schemas

Nullable fields accept null. Required lists and closed-object rules are included below. Runtime limits on text use UTF-8 bytes; keep producer fields within those limits.

Enrollment

FieldShape
id · requiredstring
workspace · requiredstring
project · requiredstring
service · requiredstring
bootstrap_secret · requiredstring
ingest_secret · requiredstring
Complete JSON schema
{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "id",
    "workspace",
    "project",
    "service",
    "bootstrap_secret",
    "ingest_secret"
  ],
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "workspace": {
      "type": "string",
      "minLength": 1,
      "maxLength": 120
    },
    "project": {
      "type": "string",
      "minLength": 1,
      "maxLength": 120
    },
    "service": {
      "type": "string",
      "minLength": 1,
      "maxLength": 120
    },
    "bootstrap_secret": {
      "type": "string",
      "pattern": "^[a-f0-9]{64}$",
      "writeOnly": true
    },
    "ingest_secret": {
      "type": "string",
      "pattern": "^[a-f0-9]{64}$",
      "writeOnly": true
    }
  }
}

Claim

FieldShape
email · requiredstring
Complete JSON schema
{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "email"
  ],
  "properties": {
    "email": {
      "type": "string",
      "format": "email",
      "maxLength": 254
    }
  }
}

ClaimCompletion

FieldShape
challenge_id · requiredstring
proof · requiredstring
passwordstring
totp_secretstring
totp_codestring
Complete JSON schema
{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "challenge_id",
    "proof"
  ],
  "properties": {
    "challenge_id": {
      "type": "string",
      "format": "uuid"
    },
    "proof": {
      "type": "string",
      "pattern": "^[a-f0-9]{64}$",
      "writeOnly": true
    },
    "password": {
      "type": "string",
      "minLength": 12,
      "maxLength": 1024,
      "writeOnly": true
    },
    "totp_secret": {
      "type": "string",
      "writeOnly": true
    },
    "totp_code": {
      "type": "string",
      "pattern": "^[0-9]{6}$",
      "writeOnly": true
    }
  }
}

Problem

FieldShape
code · requiredstring
message · requiredstring
errors · requiredarray
Complete JSON schema
{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "code",
    "message",
    "errors"
  ],
  "properties": {
    "code": {
      "type": "string"
    },
    "message": {
      "type": "string"
    },
    "errors": {
      "type": "array",
      "items": {
        "type": "object"
      }
    }
  }
}

AgentGrant

FieldShape
id · requiredstring
name · requiredstring
secret · requiredstring
scopes · requiredarray

read required; billing scope alone cannot purchase

expires_at · requiredstring

In the future, at most 360 days from grant creation

Complete JSON schema
{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "id",
    "name",
    "secret",
    "scopes",
    "expires_at"
  ],
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 120
    },
    "secret": {
      "type": "string",
      "pattern": "^[a-f0-9]{64}$",
      "writeOnly": true
    },
    "scopes": {
      "type": "array",
      "minItems": 1,
      "maxItems": 3,
      "items": {
        "enum": [
          "read",
          "manage",
          "billing"
        ]
      },
      "description": "read required; billing scope alone cannot purchase"
    },
    "expires_at": {
      "type": "string",
      "format": "date-time",
      "description": "In the future, at most 360 days from grant creation"
    }
  }
}

Checkout

FieldShape
id · requiredstring
usd · requiredinteger

Whole US dollars of credit to buy

Complete JSON schema
{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "id",
    "usd"
  ],
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "usd": {
      "type": "integer",
      "minimum": 10,
      "maximum": 5000,
      "description": "Whole US dollars of credit to buy"
    }
  }
}

Login

Send exactly one of totp and recovery_code.

FieldShape
email · requiredstring
password · requiredstring
totpstring
recovery_codestring

Single-use. Case, hyphens and spaces are ignored.

Complete JSON schema
{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "email",
    "password"
  ],
  "description": "Send exactly one of totp and recovery_code.",
  "properties": {
    "email": {
      "type": "string",
      "format": "email"
    },
    "password": {
      "type": "string",
      "writeOnly": true
    },
    "totp": {
      "type": "string",
      "pattern": "^[0-9]{6}$",
      "writeOnly": true
    },
    "recovery_code": {
      "type": "string",
      "maxLength": 64,
      "writeOnly": true,
      "description": "Single-use. Case, hyphens and spaces are ignored."
    }
  }
}

Scope

FieldShape
project_idSee schema
service_idSee schema
group_idSee schema
environmentSee schema
code_prefixSee schema
severitySee schema
fingerprintSee schema
attributesSee schema
Complete JSON schema
{
  "type": "object",
  "additionalProperties": false,
  "required": [],
  "properties": {
    "project_id": {
      "anyOf": [
        {
          "type": "string",
          "format": "uuid"
        },
        {
          "type": "null"
        }
      ]
    },
    "service_id": {
      "anyOf": [
        {
          "type": "string",
          "format": "uuid"
        },
        {
          "type": "null"
        }
      ]
    },
    "group_id": {
      "anyOf": [
        {
          "type": "string",
          "format": "uuid"
        },
        {
          "type": "null"
        }
      ]
    },
    "environment": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "code_prefix": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "severity": {
      "anyOf": [
        {
          "enum": [
            "debug",
            "info",
            "warning",
            "error",
            "fatal"
          ]
        },
        {
          "type": "null"
        }
      ]
    },
    "fingerprint": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "attributes": {
      "anyOf": [
        {
          "type": "object",
          "maxProperties": 8,
          "additionalProperties": {
            "type": [
              "string",
              "number",
              "boolean",
              "null"
            ]
          }
        },
        {
          "type": "null"
        }
      ]
    }
  }
}

Exception

FieldShape
kind · requiredstring
message · requiredstring
Complete JSON schema
{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "kind",
    "message"
  ],
  "properties": {
    "kind": {
      "type": "string"
    },
    "message": {
      "type": "string"
    }
  }
}

Event

FieldShape
occurrence_id · requiredstring
timestamp · requiredstring
environment · requiredstring
severity · requireddebug | info | warning | error | fatal
message · requiredstring
codeSee schema
cause_discriminatorSee schema
fingerprintSee schema
outcomeSee schema
exception_chainarray
stackSee schema
operationSee schema
correlation_idsarray
releaseSee schema
breadcrumbsarray
attributesobject
Complete JSON schema
{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "occurrence_id",
    "timestamp",
    "environment",
    "severity",
    "message"
  ],
  "properties": {
    "occurrence_id": {
      "type": "string",
      "format": "uuid"
    },
    "timestamp": {
      "type": "string",
      "format": "date-time"
    },
    "environment": {
      "type": "string"
    },
    "severity": {
      "enum": [
        "debug",
        "info",
        "warning",
        "error",
        "fatal"
      ]
    },
    "message": {
      "type": "string"
    },
    "code": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "cause_discriminator": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "fingerprint": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "outcome": {
      "anyOf": [
        {
          "enum": [
            "rejected",
            "retrying",
            "recovered",
            "failed"
          ]
        },
        {
          "type": "null"
        }
      ]
    },
    "exception_chain": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/Exception"
      }
    },
    "stack": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "operation": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "correlation_ids": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "release": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "breadcrumbs": {
      "type": "array",
      "maxItems": 32,
      "items": {}
    },
    "attributes": {
      "type": "object",
      "maxProperties": 32
    }
  }
}

Batch

FieldShape
batch_id · requiredstring
service_id · requiredstring
events · requiredarray
Complete JSON schema
{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "batch_id",
    "service_id",
    "events"
  ],
  "properties": {
    "batch_id": {
      "type": "string",
      "format": "uuid"
    },
    "service_id": {
      "type": "string",
      "format": "uuid"
    },
    "events": {
      "type": "array",
      "minItems": 1,
      "maxItems": 100,
      "items": {
        "$ref": "#/components/schemas/Event"
      }
    }
  }
}

Acceptance

FieldShape
receipt_id · requiredstring
new_events · requiredinteger
duplicates · requiredinteger
stored_eventsinteger

New events that kept their payload; the rest of new_events were counted only, because the balance ran out

Complete JSON schema
{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "receipt_id",
    "new_events",
    "duplicates"
  ],
  "properties": {
    "receipt_id": {
      "type": "string",
      "format": "uuid"
    },
    "new_events": {
      "type": "integer",
      "minimum": 0
    },
    "duplicates": {
      "type": "integer",
      "minimum": 0
    },
    "stored_events": {
      "type": "integer",
      "minimum": 0,
      "description": "New events that kept their payload; the rest of new_events were counted only, because the balance ran out"
    }
  }
}

Control

Complete JSON schema
{
  "oneOf": [
    {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "action",
        "scope"
      ],
      "properties": {
        "action": {
          "const": "preview"
        },
        "scope": {
          "$ref": "#/components/schemas/Scope"
        }
      }
    },
    {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "action",
        "scope",
        "reason"
      ],
      "properties": {
        "action": {
          "const": "mute"
        },
        "scope": {
          "$ref": "#/components/schemas/Scope"
        },
        "reason": {
          "type": "string"
        },
        "expires_at": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ]
        },
        "preview_id": {
          "anyOf": [
            {
              "type": "string",
              "format": "uuid"
            },
            {
              "type": "null"
            }
          ]
        }
      }
    },
    {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "action",
        "id"
      ],
      "properties": {
        "action": {
          "const": "end_mute"
        },
        "id": {
          "type": "string",
          "format": "uuid"
        }
      }
    },
    {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "action",
        "id"
      ],
      "properties": {
        "action": {
          "const": "acknowledge"
        },
        "id": {
          "type": "string",
          "format": "uuid"
        }
      }
    },
    {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "action",
        "scope",
        "fingerprint",
        "preview_id"
      ],
      "properties": {
        "action": {
          "const": "grouping_rule"
        },
        "scope": {
          "$ref": "#/components/schemas/Scope"
        },
        "fingerprint": {
          "type": "string"
        },
        "preview_id": {
          "type": "string",
          "format": "uuid"
        }
      }
    },
    {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "action",
        "id"
      ],
      "properties": {
        "action": {
          "const": "disable_grouping_rule"
        },
        "id": {
          "type": "string",
          "format": "uuid"
        }
      }
    },
    {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "action",
        "scope",
        "recipient",
        "preview_id"
      ],
      "properties": {
        "action": {
          "const": "notification_rule"
        },
        "scope": {
          "$ref": "#/components/schemas/Scope"
        },
        "recipient": {
          "type": "string",
          "format": "email"
        },
        "preview_id": {
          "type": "string",
          "format": "uuid"
        }
      }
    },
    {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "action",
        "id"
      ],
      "properties": {
        "action": {
          "const": "disable_notification_rule"
        },
        "id": {
          "type": "string",
          "format": "uuid"
        }
      }
    },
    {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "action",
        "name"
      ],
      "properties": {
        "action": {
          "const": "create_project"
        },
        "name": {
          "type": "string"
        }
      }
    },
    {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "action",
        "id",
        "name"
      ],
      "description": "Renames a live project. Writer role.",
      "properties": {
        "action": {
          "const": "rename_project"
        },
        "id": {
          "type": "string",
          "format": "uuid"
        },
        "name": {
          "type": "string"
        }
      }
    },
    {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "action",
        "id",
        "name"
      ],
      "description": "Deletes a project and all its services: their ingest credentials are revoked at once, every read hides them, and maintenance removes their evidence, checks and rules. Usage records are kept. Owner signed in at the console only; name must equal the project's current name (otherwise 422). 404 for an unknown or already deleted project.",
      "properties": {
        "action": {
          "const": "delete_project"
        },
        "id": {
          "type": "string",
          "format": "uuid"
        },
        "name": {
          "type": "string"
        }
      }
    },
    {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "action",
        "project_id",
        "name"
      ],
      "properties": {
        "action": {
          "const": "create_service"
        },
        "project_id": {
          "type": "string",
          "format": "uuid"
        },
        "name": {
          "type": "string"
        }
      }
    },
    {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "action",
        "id",
        "name"
      ],
      "description": "Deletes one service, as delete_project does for each of its services. Owner signed in at the console only; name must equal the service's current name (otherwise 422). 404 for an unknown or already deleted service.",
      "properties": {
        "action": {
          "const": "delete_service"
        },
        "id": {
          "type": "string",
          "format": "uuid"
        },
        "name": {
          "type": "string"
        }
      }
    },
    {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "action",
        "id",
        "name",
        "project_id"
      ],
      "properties": {
        "action": {
          "const": "rename_service"
        },
        "id": {
          "type": "string",
          "format": "uuid"
        },
        "name": {
          "type": "string"
        },
        "project_id": {
          "type": "string",
          "format": "uuid"
        }
      }
    },
    {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "action",
        "service_id"
      ],
      "properties": {
        "action": {
          "const": "rotate_credential"
        },
        "service_id": {
          "type": "string",
          "format": "uuid"
        }
      }
    },
    {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "action",
        "id"
      ],
      "properties": {
        "action": {
          "const": "revoke_credential"
        },
        "id": {
          "type": "string",
          "format": "uuid"
        }
      }
    },
    {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "action",
        "account_id"
      ],
      "properties": {
        "action": {
          "const": "membership"
        },
        "account_id": {
          "type": "string",
          "format": "uuid"
        },
        "role": {
          "anyOf": [
            {
              "enum": [
                "owner",
                "member",
                "viewer"
              ]
            },
            {
              "type": "null"
            }
          ]
        }
      }
    },
    {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "action",
        "daily_event_limit",
        "daily_byte_limit",
        "redacted_fields"
      ],
      "properties": {
        "action": {
          "const": "limits"
        },
        "daily_event_limit": {
          "type": "integer",
          "format": "int64"
        },
        "daily_byte_limit": {
          "type": "integer",
          "format": "int64"
        },
        "redacted_fields": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    },
    {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "action",
        "read_only",
        "expires_at"
      ],
      "properties": {
        "action": {
          "const": "create_token"
        },
        "read_only": {
          "type": "boolean"
        },
        "expires_at": {
          "type": "string",
          "format": "date-time"
        },
        "id": {
          "type": "string",
          "format": "uuid",
          "description": "With secret: a retry of the same request replays and creates no second token."
        },
        "label": {
          "type": "string",
          "minLength": 1,
          "maxLength": 120
        },
        "secret": {
          "type": "string",
          "pattern": "^[a-f0-9]{64}$",
          "description": "Generated and kept by the caller; never returned or audited. Required with id."
        },
        "project_id": {
          "type": "string",
          "format": "uuid",
          "description": "Limits the token to one live project."
        }
      },
      "description": "Human session at the console only. Without id and secret the response carries a new token once; with them it is {id, replayed} and the caller already holds the secret. A different request under the same id answers 409."
    },
    {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "action",
        "id"
      ],
      "properties": {
        "action": {
          "const": "revoke_token"
        },
        "id": {
          "type": "string",
          "format": "uuid"
        }
      }
    },
    {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "action",
        "recipient"
      ],
      "properties": {
        "action": {
          "const": "test_email"
        },
        "recipient": {
          "type": "string",
          "format": "email"
        }
      }
    },
    {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "action",
        "change"
      ],
      "properties": {
        "action": {
          "const": "check"
        },
        "change": {
          "$ref": "#/components/schemas/CheckChange"
        }
      }
    },
    {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "action",
        "email",
        "role"
      ],
      "properties": {
        "action": {
          "const": "invite"
        },
        "email": {
          "type": "string",
          "format": "email"
        },
        "role": {
          "enum": [
            "owner",
            "member",
            "viewer"
          ]
        }
      }
    },
    {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "action",
        "id"
      ],
      "properties": {
        "action": {
          "const": "revoke_invitation"
        },
        "id": {
          "type": "string",
          "format": "uuid"
        }
      }
    }
  ]
}

CheckDefinition

A service/environment expectation. Only verification may have a null interval (ad hoc). Limits on strings are UTF-8 bytes.

FieldShape
id · requiredstring
service_id · requiredstring
name · requiredstring
environment · requiredstring
kind · requiredheartbeat | job | verification
interval_seconds · requiredSee schema
grace_seconds · requiredinteger
Complete JSON schema
{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "id",
    "service_id",
    "name",
    "environment",
    "kind",
    "interval_seconds",
    "grace_seconds"
  ],
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "service_id": {
      "type": "string",
      "format": "uuid"
    },
    "name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 120
    },
    "environment": {
      "type": "string",
      "minLength": 1,
      "maxLength": 80
    },
    "kind": {
      "enum": [
        "heartbeat",
        "job",
        "verification"
      ]
    },
    "interval_seconds": {
      "anyOf": [
        {
          "type": "integer",
          "minimum": 60,
          "maximum": 604800
        },
        {
          "type": "null"
        }
      ]
    },
    "grace_seconds": {
      "type": "integer",
      "minimum": 0,
      "maximum": 604800
    }
  },
  "description": "A service/environment expectation. Only verification may have a null interval (ad hoc). Limits on strings are UTF-8 bytes."
}

CheckIn

New observations: past 24 hours through 60 seconds ahead. Persist immutable content and non-nil IDs before sending. Optional occurrence must be retained in the same service/environment.

FieldShape
check_id · requiredstring
run_id · requiredstring
observed_at · requiredstring
outcome · requiredpass | fail
releaseSee schema
duration_msSee schema
correlation_idSee schema
occurrence_idSee schema
Complete JSON schema
{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "check_id",
    "run_id",
    "observed_at",
    "outcome"
  ],
  "properties": {
    "check_id": {
      "type": "string",
      "format": "uuid"
    },
    "run_id": {
      "type": "string",
      "format": "uuid"
    },
    "observed_at": {
      "type": "string",
      "format": "date-time"
    },
    "outcome": {
      "enum": [
        "pass",
        "fail"
      ]
    },
    "release": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 256
        },
        {
          "type": "null"
        }
      ]
    },
    "duration_ms": {
      "anyOf": [
        {
          "type": "integer",
          "minimum": 0,
          "maximum": 604800000
        },
        {
          "type": "null"
        }
      ]
    },
    "correlation_id": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 128
        },
        {
          "type": "null"
        }
      ]
    },
    "occurrence_id": {
      "anyOf": [
        {
          "type": "string",
          "format": "uuid"
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "description": "New observations: past 24 hours through 60 seconds ahead. Persist immutable content and non-nil IDs before sending. Optional occurrence must be retained in the same service/environment."
}

CheckAcceptance

Synchronous WAL acknowledgment. A duplicate returns the original receipt and applied decision. applied=false does not establish current liveness.

FieldShape
receipt_id · requiredstring
duplicate · requiredboolean
applied · requiredboolean
Complete JSON schema
{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "receipt_id",
    "duplicate",
    "applied"
  ],
  "properties": {
    "receipt_id": {
      "type": "string",
      "format": "uuid"
    },
    "duplicate": {
      "type": "boolean"
    },
    "applied": {
      "type": "boolean"
    }
  },
  "description": "Synchronous WAL acknowledgment. A duplicate returns the original receipt and applied decision. applied=false does not establish current liveness."
}

CheckStatus

FieldShape
definition · requiredCheckDefinition
revision · requiredinteger
state · requirednever_received | current | failed | overdue | paused | monitoring_unavailable | evidence_expired
due_at · requiredSee schema
last_received_at · requiredSee schema
last_pass_at · requiredSee schema
last_result · requiredSee schema
Complete JSON schema
{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "definition",
    "revision",
    "state",
    "due_at",
    "last_received_at",
    "last_pass_at",
    "last_result"
  ],
  "properties": {
    "definition": {
      "$ref": "#/components/schemas/CheckDefinition"
    },
    "revision": {
      "type": "integer",
      "minimum": 1
    },
    "state": {
      "enum": [
        "never_received",
        "current",
        "failed",
        "overdue",
        "paused",
        "monitoring_unavailable",
        "evidence_expired"
      ]
    },
    "due_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ]
    },
    "last_received_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ]
    },
    "last_pass_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ]
    },
    "last_result": {
      "anyOf": [
        {
          "$ref": "#/components/schemas/CheckIn"
        },
        {
          "type": "null"
        }
      ]
    }
  }
}

CheckAllowance

FieldShape
available · requiredboolean
reason · requiredSee schema
check_limit · requiredinteger
daily_limit · requiredinteger
accepted_today · requiredintegernull

Null for a project-limited credential.

evaluated_at · requiredSee schema
Complete JSON schema
{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "available",
    "reason",
    "check_limit",
    "daily_limit",
    "accepted_today",
    "evaluated_at"
  ],
  "properties": {
    "available": {
      "type": "boolean"
    },
    "reason": {
      "anyOf": [
        {
          "enum": [
            "coverage_expired",
            "check_allowance_exhausted"
          ]
        },
        {
          "type": "null"
        }
      ]
    },
    "check_limit": {
      "type": "integer"
    },
    "daily_limit": {
      "type": "integer"
    },
    "accepted_today": {
      "type": [
        "integer",
        "null"
      ],
      "description": "Null for a project-limited credential."
    },
    "evaluated_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ]
    }
  }
}

CheckList

FieldShape
checks · requiredarray
allowance · requiredCheckAllowance
Complete JSON schema
{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "checks",
    "allowance"
  ],
  "properties": {
    "checks": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/CheckStatus"
      }
    },
    "allowance": {
      "$ref": "#/components/schemas/CheckAllowance"
    }
  }
}

CheckChange

Member management authority required. Persist creation intent; reconcile after uncertainty. Update/pause/archive require the current revision. Reconfiguration closes an episode without proving recovery.

Complete JSON schema
{
  "oneOf": [
    {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "operation",
        "definition"
      ],
      "properties": {
        "operation": {
          "const": "create"
        },
        "definition": {
          "$ref": "#/components/schemas/CheckDefinition"
        }
      }
    },
    {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "operation",
        "id",
        "revision",
        "name",
        "interval_seconds",
        "grace_seconds"
      ],
      "properties": {
        "operation": {
          "const": "update"
        },
        "id": {
          "type": "string",
          "format": "uuid"
        },
        "revision": {
          "type": "integer",
          "minimum": 1
        },
        "name": {
          "type": "string",
          "minLength": 1,
          "maxLength": 120
        },
        "interval_seconds": {
          "anyOf": [
            {
              "type": "integer",
              "minimum": 60,
              "maximum": 604800
            },
            {
              "type": "null"
            }
          ]
        },
        "grace_seconds": {
          "type": "integer",
          "minimum": 0,
          "maximum": 604800
        }
      }
    },
    {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "operation",
        "id",
        "revision",
        "paused"
      ],
      "properties": {
        "operation": {
          "const": "pause"
        },
        "id": {
          "type": "string",
          "format": "uuid"
        },
        "revision": {
          "type": "integer",
          "minimum": 1
        },
        "paused": {
          "type": "boolean"
        }
      }
    },
    {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "operation",
        "id",
        "revision"
      ],
      "properties": {
        "operation": {
          "const": "archive"
        },
        "id": {
          "type": "string",
          "format": "uuid"
        },
        "revision": {
          "type": "integer",
          "minimum": 1
        }
      }
    }
  ],
  "description": "Member management authority required. Persist creation intent; reconcile after uncertainty. Update/pause/archive require the current revision. Reconfiguration closes an episode without proving recovery."
}

CheckDetail

FieldShape
check_id · requiredstring
transitions · requiredarray
attention · requiredarray
Complete JSON schema
{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "check_id",
    "transitions",
    "attention"
  ],
  "properties": {
    "check_id": {
      "type": "string",
      "format": "uuid"
    },
    "transitions": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "id",
          "created_at",
          "previous_state",
          "state"
        ],
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "previous_state": {
            "type": "string"
          },
          "state": {
            "type": "string"
          }
        }
      }
    },
    "attention": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "id",
          "condition",
          "created_at",
          "recovered_at",
          "closed_at",
          "acknowledged_at",
          "suppression_reason"
        ],
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "condition": {
            "enum": [
              "check_failed",
              "check_overdue"
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "recovered_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ]
          },
          "closed_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ]
          },
          "acknowledged_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ]
          },
          "suppression_reason": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        }
      }
    }
  }
}

ReceiptStatus

Retained receipt status. sent / smtp_accepted_at mean SMTP acceptance, not inbox arrival. No matching notification is not delivery proof.

FieldShape
receipt_id · requiredstring
received_at · requiredstring
processed_at · requiredSee schema
processing_gap · requiredboolean
new_events · requiredinteger
duplicates · requiredinteger
retained_events · requiredinteger
attention · requiredarray
notifications · requiredarray
stored_eventsinteger
charge_micro_usdinteger
Complete JSON schema
{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "receipt_id",
    "received_at",
    "processed_at",
    "processing_gap",
    "new_events",
    "duplicates",
    "retained_events",
    "attention",
    "notifications"
  ],
  "properties": {
    "receipt_id": {
      "type": "string",
      "format": "uuid"
    },
    "received_at": {
      "type": "string",
      "format": "date-time"
    },
    "processed_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ]
    },
    "processing_gap": {
      "type": "boolean"
    },
    "new_events": {
      "type": "integer"
    },
    "duplicates": {
      "type": "integer"
    },
    "retained_events": {
      "type": "integer"
    },
    "attention": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "id",
          "suppression_reason"
        ],
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "suppression_reason": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        }
      }
    },
    "notifications": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "id",
          "status",
          "attempts",
          "smtp_accepted_at"
        ],
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "status": {
            "enum": [
              "pending",
              "sending",
              "sent",
              "exhausted"
            ]
          },
          "attempts": {
            "type": "integer"
          },
          "smtp_accepted_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ]
          }
        }
      }
    },
    "stored_events": {
      "type": "integer",
      "minimum": 0
    },
    "charge_micro_usd": {
      "type": "integer",
      "minimum": 0
    }
  },
  "description": "Retained receipt status. sent / smtp_accepted_at mean SMTP acceptance, not inbox arrival. No matching notification is not delivery proof."
}

PasswordChange

FieldShape
current_password · requiredstring
new_password · requiredstring
totp · requiredstring
Complete JSON schema
{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "current_password",
    "new_password",
    "totp"
  ],
  "properties": {
    "current_password": {
      "type": "string",
      "writeOnly": true
    },
    "new_password": {
      "type": "string",
      "minLength": 12,
      "maxLength": 1024,
      "writeOnly": true
    },
    "totp": {
      "type": "string",
      "pattern": "^[0-9]{6}$",
      "writeOnly": true
    }
  }
}

AuthenticatorReset

FieldShape
password · requiredstring
current_totpstring

Omit only in a session opened with a recovery code.

new_totp_secret · requiredstring
new_totp_code · requiredstring
Complete JSON schema
{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "password",
    "new_totp_secret",
    "new_totp_code"
  ],
  "properties": {
    "password": {
      "type": "string",
      "writeOnly": true
    },
    "current_totp": {
      "type": "string",
      "pattern": "^[0-9]{6}$",
      "writeOnly": true,
      "description": "Omit only in a session opened with a recovery code."
    },
    "new_totp_secret": {
      "type": "string",
      "writeOnly": true
    },
    "new_totp_code": {
      "type": "string",
      "pattern": "^[0-9]{6}$",
      "writeOnly": true
    }
  }
}

RecoveryCodesRequest

FieldShape
password · requiredstring
totp · requiredstring
Complete JSON schema
{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "password",
    "totp"
  ],
  "properties": {
    "password": {
      "type": "string",
      "writeOnly": true
    },
    "totp": {
      "type": "string",
      "pattern": "^[0-9]{6}$",
      "writeOnly": true
    }
  }
}

InvitationProof

FieldShape
invitation_id · requiredstring
proof · requiredstring
Complete JSON schema
{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "invitation_id",
    "proof"
  ],
  "properties": {
    "invitation_id": {
      "type": "string",
      "format": "uuid"
    },
    "proof": {
      "type": "string",
      "pattern": "^[0-9a-f]{64}$",
      "writeOnly": true
    }
  }
}

InvitationCompletion

FieldShape
invitation_id · requiredstring
proof · requiredstring
passwordstring
totp_secretstring
totp_codestring
Complete JSON schema
{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "invitation_id",
    "proof"
  ],
  "properties": {
    "invitation_id": {
      "type": "string",
      "format": "uuid"
    },
    "proof": {
      "type": "string",
      "pattern": "^[0-9a-f]{64}$",
      "writeOnly": true
    },
    "password": {
      "type": "string",
      "minLength": 12,
      "maxLength": 1024,
      "writeOnly": true
    },
    "totp_secret": {
      "type": "string",
      "writeOnly": true
    },
    "totp_code": {
      "type": "string",
      "pattern": "^[0-9]{6}$",
      "writeOnly": true
    }
  }
}

WorkspaceDeletion

FieldShape
name · requiredstring

The workspace's exact name.

password · requiredstring
totp · requiredstring
Complete JSON schema
{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "name",
    "password",
    "totp"
  ],
  "properties": {
    "name": {
      "type": "string",
      "description": "The workspace's exact name."
    },
    "password": {
      "type": "string",
      "writeOnly": true
    },
    "totp": {
      "type": "string",
      "pattern": "^[0-9]{6}$",
      "writeOnly": true
    }
  }
}

DeviceStart

FieldShape
id · requiredstring
device_code_hash · requiredstring
token_hash · requiredstring
workspacestringnull
projectstringnull
scope · requiredread | manage
days · requiredinteger
client · requiredobject
Complete JSON schema
{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "id",
    "device_code_hash",
    "token_hash",
    "scope",
    "days",
    "client"
  ],
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "device_code_hash": {
      "type": "string",
      "pattern": "^[a-f0-9]{64}$"
    },
    "token_hash": {
      "type": "string",
      "pattern": "^[a-f0-9]{64}$"
    },
    "workspace": {
      "type": [
        "string",
        "null"
      ],
      "format": "uuid"
    },
    "project": {
      "type": [
        "string",
        "null"
      ],
      "format": "uuid"
    },
    "scope": {
      "type": "string",
      "enum": [
        "read",
        "manage"
      ]
    },
    "days": {
      "type": "integer",
      "minimum": 1,
      "maximum": 360
    },
    "client": {
      "type": "object",
      "required": [
        "version",
        "hostname"
      ],
      "properties": {
        "version": {
          "type": "string",
          "pattern": "^[A-Za-z0-9.+-]{1,32}$"
        },
        "hostname": {
          "type": "string",
          "pattern": "^[A-Za-z0-9.-]{1,64}$"
        },
        "directory": {
          "type": [
            "string",
            "null"
          ],
          "maxLength": 200
        }
      }
    }
  }
}

DeviceDecision

FieldShape
approve · requiredboolean
workspacestring
projectstringnull
scoperead | manage
daysinteger
totpstringnull
Complete JSON schema
{
  "type": "object",
  "required": [
    "approve"
  ],
  "properties": {
    "approve": {
      "type": "boolean"
    },
    "workspace": {
      "type": "string",
      "format": "uuid"
    },
    "project": {
      "type": [
        "string",
        "null"
      ],
      "format": "uuid"
    },
    "scope": {
      "type": "string",
      "enum": [
        "read",
        "manage"
      ]
    },
    "days": {
      "type": "integer",
      "minimum": 1
    },
    "totp": {
      "type": [
        "string",
        "null"
      ],
      "pattern": "^[0-9]{6}$"
    }
  }
}

Search documentation

Search guides, contracts, and agent playbooks.

Search runs in your browser over public documentation.