Developer documentation
API reference
The deployed HTTP contract: authentication, operations, request shapes, and stable responses. Generated from the same OpenAPI source available to tools.
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
| Status | Meaning / schema |
|---|---|
200 | Success · object |
default | Stable 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
| Status | Meaning / schema |
|---|---|
200 | Success · object |
default | Stable error code · Problem |
List authorized workspaces
GET /api/v1/workspaces
Authority: management or humanSession
Parameters and responses
| Status | Meaning / schema |
|---|---|
200 | Success · array |
default | Stable 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
| Parameter | Location / shape |
|---|---|
workspace · required | path · string |
| Status | Meaning / schema |
|---|---|
200 | Success · object |
default | Stable 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
| Parameter | Location / shape |
|---|---|
workspace · required | path · string |
| Status | Meaning / schema |
|---|---|
200 | Success · object |
default | Stable 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
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
| Status | Meaning / schema |
|---|---|
200 | Success · object |
default | Stable 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
| Parameter | Location / shape |
|---|---|
workspace · required | path · string |
| Status | Meaning / schema |
|---|---|
200 | Success · object |
default | Stable 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
| Parameter | Location / shape |
|---|---|
workspace · required | path · string |
Request: application/json · AgentGrant
| Status | Meaning / schema |
|---|---|
200 | Success · object |
default | Stable 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
| Parameter | Location / shape |
|---|---|
workspace · required | path · string |
agent · required | path · string |
| Status | Meaning / schema |
|---|---|
200 | Success · object |
default | Stable 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
| Parameter | Location / shape |
|---|---|
workspace · required | path · string |
| Status | Meaning / schema |
|---|---|
200 | Success · object |
default | Stable 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
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
| Parameter | Location / shape |
|---|---|
workspace · required | path · string |
operation · required | path · string |
| Status | Meaning / schema |
|---|---|
200 | Success · object |
default | Stable 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
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
| Parameter | Location / shape |
|---|---|
workspace · required | path · string |
| Status | Meaning / schema |
|---|---|
200 | Success · object |
default | Stable 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
| Parameter | Location / shape |
|---|---|
workspace · required | path · string |
project | query · string |
service | query · string |
group | query · string |
occurrence | query · string |
environment | query · string |
code | query · string |
severity | query · string |
correlation | query · string |
text | query · string |
since | query · string |
until | query · string |
page | query · integer |
view | query · all | attention |
release | query · string Exact release filter; counts and histograms use the same retained evidence. |
| Status | Meaning / schema |
|---|---|
200 | Success · object |
default | Stable 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
| Parameter | Location / shape |
|---|---|
workspace · required | path · string |
project | query · string |
service | query · string |
group | query · string |
occurrence | query · string |
environment | query · string |
code | query · string |
severity | query · string |
correlation | query · string |
text | query · string |
since | query · string |
until | query · string |
page | query · integer |
view | query · all | attention |
release | query · string Exact release filter; counts and histograms use the same retained evidence. |
| Status | Meaning / schema |
|---|---|
200 | Success · object |
default | Stable 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
| Parameter | Location / shape |
|---|---|
workspace · required | path · string |
project | query · string |
service | query · string |
group | query · string |
occurrence | query · string |
environment | query · string |
code | query · string |
severity | query · string |
correlation | query · string |
text | query · string |
since | query · string |
until | query · string |
page | query · integer |
view | query · all | attention |
release | query · string Exact release filter; counts and histograms use the same retained evidence. |
| Status | Meaning / schema |
|---|---|
200 | Success · object |
default | Stable 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
| Parameter | Location / shape |
|---|---|
workspace · required | path · string |
service · required | path · string |
occurrence · required | path · string |
| Status | Meaning / schema |
|---|---|
200 | Success · object |
default | Stable 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
| Parameter | Location / shape |
|---|---|
Content-Encoding | header · identity | gzip Optional. Unsupported encodings return 415; expansion overflow returns 413. |
Request: application/json · Batch
| Status | Meaning / schema |
|---|---|
200 | Success · Acceptance |
413 | Wire or decoded body exceeds limit · Problem |
415 | Unsupported content encoding · Problem |
default | Stable 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
Revoke current session
POST /api/v1/auth/logout
Cookie mutation requires exact Origin.
Authority: humanSession
Parameters and responses
| Status | Meaning / schema |
|---|---|
200 | Success · object |
default | Stable 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
| Parameter | Location / shape |
|---|---|
Content-Encoding | header · identity | gzip Optional. Unsupported encodings return 415; expansion overflow returns 413. |
Request: application/json · CheckIn
| Status | Meaning / schema |
|---|---|
200 | Success · CheckAcceptance |
default | Stable 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
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
| Parameter | Location / shape |
|---|---|
workspace · required | path · string |
check · required | path · string |
| Status | Meaning / schema |
|---|---|
200 | Success · CheckDetail |
default | Stable 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
| Parameter | Location / shape |
|---|---|
workspace · required | path · string |
receipt · required | path · string |
| Status | Meaning / schema |
|---|---|
200 | Success · ReceiptStatus |
default | Stable 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
| Parameter | Location / shape |
|---|---|
project · required | path · string Ignored: the DSN key selects the service. Published DSNs use 1. |
Content-Encoding | header · 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
| Status | Meaning / schema |
|---|---|
200 | Accepted or discarded. `id` is present when the envelope held an event. · object |
default | Stable 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
| Status | Meaning / schema |
|---|---|
200 | Success · object |
default | Stable 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
| Status | Meaning / schema |
|---|---|
200 | Success · object |
default | Stable 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
| Status | Meaning / schema |
|---|---|
200 | Success · object |
default | Stable 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
| Status | Meaning / schema |
|---|---|
200 | Success · object |
default | Stable 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
| Status | Meaning / schema |
|---|---|
200 | Success · object |
default | Stable 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
| Status | Meaning / schema |
|---|---|
200 | Success · object |
default | Stable 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
| Status | Meaning / schema |
|---|---|
200 | Success · object |
default | Stable 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
| Parameter | Location / shape |
|---|---|
workspace · required | path · string |
before | query · string |
limit | query · integer |
| Status | Meaning / schema |
|---|---|
200 | Success · object |
default | Stable 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
| Parameter | Location / shape |
|---|---|
workspace · required | path · string |
Request: application/json · WorkspaceDeletion
| Status | Meaning / schema |
|---|---|
200 | Success · object |
default | Stable 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
| Status | Meaning / schema |
|---|---|
200 | A code for a person to type at verification_uri within ten minutes · object |
default | Stable 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
| Parameter | Location / shape |
|---|---|
id · required | path · string |
Request: application/json · object
| Status | Meaning / schema |
|---|---|
200 | The decision so far · object |
default | Stable 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
| Status | Meaning / schema |
|---|---|
200 | The pending request · object |
default | Stable 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
| Parameter | Location / shape |
|---|---|
id · required | path · string |
Request: application/json · DeviceDecision
| Status | Meaning / schema |
|---|---|
200 | Decided · object |
default | Stable 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
| Status | Meaning / schema |
|---|---|
200 | Token metadata · object |
default | Stable 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
| Status | Meaning / schema |
|---|---|
200 | Revoked · object |
default | Stable 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
| Field | Shape |
|---|---|
id · required | string |
workspace · required | string |
project · required | string |
service · required | string |
bootstrap_secret · required | string |
ingest_secret · required | string |
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
| Field | Shape |
|---|---|
email · required | string |
Complete JSON schema
{
"type": "object",
"additionalProperties": false,
"required": [
"email"
],
"properties": {
"email": {
"type": "string",
"format": "email",
"maxLength": 254
}
}
}ClaimCompletion
| Field | Shape |
|---|---|
challenge_id · required | string |
proof · required | string |
password | string |
totp_secret | string |
totp_code | string |
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
| Field | Shape |
|---|---|
code · required | string |
message · required | string |
errors · required | array |
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
| Field | Shape |
|---|---|
id · required | string |
name · required | string |
secret · required | string |
scopes · required | array read required; billing scope alone cannot purchase |
expires_at · required | string 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
| Field | Shape |
|---|---|
id · required | string |
usd · required | integer 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.
| Field | Shape |
|---|---|
email · required | string |
password · required | string |
totp | string |
recovery_code | string 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
| Field | Shape |
|---|---|
project_id | See schema |
service_id | See schema |
group_id | See schema |
environment | See schema |
code_prefix | See schema |
severity | See schema |
fingerprint | See schema |
attributes | See 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
| Field | Shape |
|---|---|
kind · required | string |
message · required | string |
Complete JSON schema
{
"type": "object",
"additionalProperties": false,
"required": [
"kind",
"message"
],
"properties": {
"kind": {
"type": "string"
},
"message": {
"type": "string"
}
}
}Event
| Field | Shape |
|---|---|
occurrence_id · required | string |
timestamp · required | string |
environment · required | string |
severity · required | debug | info | warning | error | fatal |
message · required | string |
code | See schema |
cause_discriminator | See schema |
fingerprint | See schema |
outcome | See schema |
exception_chain | array |
stack | See schema |
operation | See schema |
correlation_ids | array |
release | See schema |
breadcrumbs | array |
attributes | object |
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
| Field | Shape |
|---|---|
batch_id · required | string |
service_id · required | string |
events · required | array |
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
| Field | Shape |
|---|---|
receipt_id · required | string |
new_events · required | integer |
duplicates · required | integer |
stored_events | integer 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.
| Field | Shape |
|---|---|
id · required | string |
service_id · required | string |
name · required | string |
environment · required | string |
kind · required | heartbeat | job | verification |
interval_seconds · required | See schema |
grace_seconds · required | integer |
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.
| Field | Shape |
|---|---|
check_id · required | string |
run_id · required | string |
observed_at · required | string |
outcome · required | pass | fail |
release | See schema |
duration_ms | See schema |
correlation_id | See schema |
occurrence_id | See 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.
| Field | Shape |
|---|---|
receipt_id · required | string |
duplicate · required | boolean |
applied · required | boolean |
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
| Field | Shape |
|---|---|
definition · required | CheckDefinition |
revision · required | integer |
state · required | never_received | current | failed | overdue | paused | monitoring_unavailable | evidence_expired |
due_at · required | See schema |
last_received_at · required | See schema |
last_pass_at · required | See schema |
last_result · required | See 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
| Field | Shape |
|---|---|
available · required | boolean |
reason · required | See schema |
check_limit · required | integer |
daily_limit · required | integer |
accepted_today · required | integernull Null for a project-limited credential. |
evaluated_at · required | See 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
| Field | Shape |
|---|---|
checks · required | array |
allowance · required | CheckAllowance |
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
| Field | Shape |
|---|---|
check_id · required | string |
transitions · required | array |
attention · required | array |
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.
| Field | Shape |
|---|---|
receipt_id · required | string |
received_at · required | string |
processed_at · required | See schema |
processing_gap · required | boolean |
new_events · required | integer |
duplicates · required | integer |
retained_events · required | integer |
attention · required | array |
notifications · required | array |
stored_events | integer |
charge_micro_usd | integer |
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
| Field | Shape |
|---|---|
current_password · required | string |
new_password · required | string |
totp · required | string |
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
| Field | Shape |
|---|---|
password · required | string |
current_totp | string Omit only in a session opened with a recovery code. |
new_totp_secret · required | string |
new_totp_code · required | string |
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
| Field | Shape |
|---|---|
password · required | string |
totp · required | string |
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
| Field | Shape |
|---|---|
invitation_id · required | string |
proof · required | string |
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
| Field | Shape |
|---|---|
invitation_id · required | string |
proof · required | string |
password | string |
totp_secret | string |
totp_code | string |
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
| Field | Shape |
|---|---|
name · required | string The workspace's exact name. |
password · required | string |
totp · required | string |
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
| Field | Shape |
|---|---|
id · required | string |
device_code_hash · required | string |
token_hash · required | string |
workspace | stringnull |
project | stringnull |
scope · required | read | manage |
days · required | integer |
client · required | object |
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
| Field | Shape |
|---|---|
approve · required | boolean |
workspace | string |
project | stringnull |
scope | read | manage |
days | integer |
totp | stringnull |
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}$"
}
}
}