{"openapi":"3.1.0","info":{"title":"Yasad API","version":"1.0.0","description":"Server-side API for one Yasad workspace. Authenticate with an app key from Apps → your app → API keys, sent as a bearer token over HTTPS."},"paths":{"/v1/records/page":{"post":{"operationId":"pageBusinessRecords","summary":"Read canonical business records by stable cursor or up to 100 IDs in this workspace","x-workspace-roles":["reader","operator"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"entity":{"enum":["customers","resources","reservations","orders","payments"]},"ids":{"type":"array","items":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"minItems":1,"maxItems":100,"uniqueItems":true},"after":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"limit":{"type":"integer","minimum":1,"maximum":200}},"required":["entity"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"records":{"type":"array","items":{"type":"object","additionalProperties":true}},"next":{"type":["string","null"]}},"required":["records","next"],"additionalProperties":false}}}},"400":{"description":"Invalid input; details.field names the problem","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"401":{"description":"Missing, unknown, expired or turned-off key","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"403":{"description":"The key's role cannot call this operation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"409":{"description":"Conflict: stale revision, changed retry, no capacity or expired hold","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"429":{"description":"Rate limited; wait details.retryAfterSeconds (also the retry-after header)","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"500":{"description":"Not completed; for a change, details.outcome says whether it may have happened","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}}}}},"/v1/data/summary":{"post":{"operationId":"summarizeRecords","summary":"Count matching records and summarize an optional numeric field as decimal strings","x-workspace-roles":["reader","operator"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"collection":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,63}$"},"filter":{"type":"object","additionalProperties":true},"field":{"type":"string","minLength":1,"maxLength":64}},"required":["collection"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"count":{"type":"string"},"sum":{"type":["string","null"]},"min":{"type":["string","null"]},"max":{"type":["string","null"]}},"required":["count","sum","min","max"],"additionalProperties":false}}}},"400":{"description":"Invalid input; details.field names the problem","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"401":{"description":"Missing, unknown, expired or turned-off key","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"403":{"description":"The key's role cannot call this operation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"409":{"description":"Conflict: stale revision, changed retry, no capacity or expired hold","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"429":{"description":"Rate limited; wait details.retryAfterSeconds (also the retry-after header)","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"500":{"description":"Not completed; for a change, details.outcome says whether it may have happened","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}}}}},"/v1/deployments":{"get":{"operationId":"listDeployments","summary":"Latest 50 hosting operations for this credential’s own application","x-workspace-roles":["reader","operator"],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"applicationId":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"action":{"type":"string","minLength":1,"maxLength":120},"revision":{"type":"string","minLength":1,"maxLength":40},"status":{"type":"string","minLength":1,"maxLength":120},"createdAt":{"type":"string","pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\\.[0-9]{3}Z$"}},"required":["id","applicationId","action","revision","status","createdAt"],"additionalProperties":false}}}}},"400":{"description":"Invalid input; details.field names the problem","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"401":{"description":"Missing, unknown, expired or turned-off key","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"403":{"description":"The key's role cannot call this operation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"409":{"description":"Conflict: stale revision, changed retry, no capacity or expired hold","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"429":{"description":"Rate limited; wait details.retryAfterSeconds (also the retry-after header)","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"500":{"description":"Not completed; for a change, details.outcome says whether it may have happened","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}}}}},"/v1/usage":{"get":{"operationId":"getUsage","summary":"Observe rolling 30-day request and provider activity, and current storage","x-workspace-roles":["reader","operator","integrations"],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"integer","minimum":0}}}}},"400":{"description":"Invalid input; details.field names the problem","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"401":{"description":"Missing, unknown, expired or turned-off key","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"403":{"description":"The key's role cannot call this operation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"409":{"description":"Conflict: stale revision, changed retry, no capacity or expired hold","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"429":{"description":"Rate limited; wait details.retryAfterSeconds (also the retry-after header)","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"500":{"description":"Not completed; for a change, details.outcome says whether it may have happened","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}}}}},"/v1/files":{"get":{"operationId":"listFiles","summary":"List workspace files, upload sessions and attached entities","x-workspace-roles":["reader","operator"],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"name":{"type":"string","minLength":1,"maxLength":180},"contentType":{"enum":["image/jpeg","image/png","application/pdf","text/plain","application/json"]},"sizeBytes":{"type":"integer","minimum":1,"maximum":8388608},"sha256":{"type":["string","null"]},"status":{"type":"string","minLength":1,"maxLength":120},"public":{"type":"boolean"},"entity":{"type":["string","null"]},"entityId":{"type":["string","null"]},"expiresAt":{"type":"string","pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\\.[0-9]{3}Z$"}},"required":["id","name","contentType","sizeBytes","sha256","status","public","entity","entityId","expiresAt"],"additionalProperties":false}}}}},"400":{"description":"Invalid input; details.field names the problem","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"401":{"description":"Missing, unknown, expired or turned-off key","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"403":{"description":"The key's role cannot call this operation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"409":{"description":"Conflict: stale revision, changed retry, no capacity or expired hold","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"429":{"description":"Rate limited; wait details.retryAfterSeconds (also the retry-after header)","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"500":{"description":"Not completed; for a change, details.outcome says whether it may have happened","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}}}},"post":{"operationId":"createUpload","summary":"Reserve workspace bytes and create a 10-minute signed PUT session","x-workspace-roles":["operator"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"name":{"type":"string","minLength":1,"maxLength":180},"contentType":{"enum":["image/jpeg","image/png","application/pdf","text/plain","application/json"]},"sizeBytes":{"type":"integer","minimum":1,"maximum":8388608},"sha256":{"type":"string","pattern":"^[a-f0-9]{64}$"}},"required":["requestId","name","contentType","sizeBytes"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"value":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"name":{"type":"string","minLength":1,"maxLength":180},"contentType":{"enum":["image/jpeg","image/png","application/pdf","text/plain","application/json"]},"sizeBytes":{"type":"integer","minimum":1,"maximum":8388608},"sha256":{"type":["string","null"]},"status":{"type":"string","minLength":1,"maxLength":120},"public":{"type":"boolean"},"entity":{"type":["string","null"]},"entityId":{"type":["string","null"]},"expiresAt":{"type":"string","pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\\.[0-9]{3}Z$"},"uploadUrl":{"type":"string","minLength":1,"maxLength":8192},"method":{"const":"PUT"}},"required":["id","name","contentType","sizeBytes","sha256","status","public","entity","entityId","expiresAt","uploadUrl","method"],"additionalProperties":false},"replayed":{"type":"boolean"}},"required":["value","replayed"],"additionalProperties":false}}}},"400":{"description":"Invalid input; details.field names the problem","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"401":{"description":"Missing, unknown, expired or turned-off key","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"403":{"description":"The key's role cannot call this operation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"409":{"description":"Conflict: stale revision, changed retry, no capacity or expired hold","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"429":{"description":"Rate limited; wait details.retryAfterSeconds (also the retry-after header)","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"500":{"description":"Not completed; for a change, details.outcome says whether it may have happened","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}}}}},"/v1/files/{id}/finalize":{"post":{"operationId":"finalizeUpload","summary":"Verify uploaded content and make the file available","x-workspace-roles":["operator"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"}},"required":["requestId"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"value":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"name":{"type":"string","minLength":1,"maxLength":180},"contentType":{"enum":["image/jpeg","image/png","application/pdf","text/plain","application/json"]},"sizeBytes":{"type":"integer","minimum":1,"maximum":8388608},"sha256":{"type":["string","null"]},"status":{"type":"string","minLength":1,"maxLength":120},"public":{"type":"boolean"},"entity":{"type":["string","null"]},"entityId":{"type":["string","null"]},"expiresAt":{"type":"string","pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\\.[0-9]{3}Z$"}},"required":["id","name","contentType","sizeBytes","sha256","status","public","entity","entityId","expiresAt"],"additionalProperties":false},"replayed":{"type":"boolean"}},"required":["value","replayed"],"additionalProperties":false}}}},"400":{"description":"Invalid input; details.field names the problem","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"401":{"description":"Missing, unknown, expired or turned-off key","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"403":{"description":"The key's role cannot call this operation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"409":{"description":"Conflict: stale revision, changed retry, no capacity or expired hold","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"429":{"description":"Rate limited; wait details.retryAfterSeconds (also the retry-after header)","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"500":{"description":"Not completed; for a change, details.outcome says whether it may have happened","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}}}}},"/v1/files/{id}/download":{"get":{"operationId":"downloadFile","summary":"Get a short-lived authorized download URL","x-workspace-roles":["reader","operator"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","minLength":1,"maxLength":8192},"expiresIn":{"type":"integer","minimum":1,"maximum":600}},"required":["url","expiresIn"],"additionalProperties":false}}}},"400":{"description":"Invalid input; details.field names the problem","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"401":{"description":"Missing, unknown, expired or turned-off key","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"403":{"description":"The key's role cannot call this operation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"409":{"description":"Conflict: stale revision, changed retry, no capacity or expired hold","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"429":{"description":"Rate limited; wait details.retryAfterSeconds (also the retry-after header)","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"500":{"description":"Not completed; for a change, details.outcome says whether it may have happened","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}}}}},"/v1/files/{id}/attach":{"post":{"operationId":"attachFile","summary":"Associate one native entity or custom record. Send null to detach","x-workspace-roles":["operator"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"target":{"anyOf":[{"type":"object","properties":{"entity":{"enum":["record","customers","resources","reservations","orders","payments"]},"id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"}},"required":["entity","id"],"additionalProperties":false},{"type":"null"}]}},"required":["requestId","target"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"value":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"name":{"type":"string","minLength":1,"maxLength":180},"contentType":{"enum":["image/jpeg","image/png","application/pdf","text/plain","application/json"]},"sizeBytes":{"type":"integer","minimum":1,"maximum":8388608},"sha256":{"type":["string","null"]},"status":{"type":"string","minLength":1,"maxLength":120},"public":{"type":"boolean"},"entity":{"type":["string","null"]},"entityId":{"type":["string","null"]},"expiresAt":{"type":"string","pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\\.[0-9]{3}Z$"}},"required":["id","name","contentType","sizeBytes","sha256","status","public","entity","entityId","expiresAt"],"additionalProperties":false},"replayed":{"type":"boolean"}},"required":["value","replayed"],"additionalProperties":false}}}},"400":{"description":"Invalid input; details.field names the problem","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"401":{"description":"Missing, unknown, expired or turned-off key","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"403":{"description":"The key's role cannot call this operation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"409":{"description":"Conflict: stale revision, changed retry, no capacity or expired hold","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"429":{"description":"Rate limited; wait details.retryAfterSeconds (also the retry-after header)","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"500":{"description":"Not completed; for a change, details.outcome says whether it may have happened","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}}}}},"/v1/files/{id}/visibility":{"post":{"operationId":"publishFile","summary":"Opt into public access or revoke it","x-workspace-roles":["integrations"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"public":{"type":"boolean"}},"required":["requestId","public"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"value":{"type":"object","additionalProperties":true},"replayed":{"type":"boolean"}},"required":["value","replayed"],"additionalProperties":false}}}},"400":{"description":"Invalid input; details.field names the problem","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"401":{"description":"Missing, unknown, expired or turned-off key","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"403":{"description":"The key's role cannot call this operation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"409":{"description":"Conflict: stale revision, changed retry, no capacity or expired hold","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"429":{"description":"Rate limited; wait details.retryAfterSeconds (also the retry-after header)","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"500":{"description":"Not completed; for a change, details.outcome says whether it may have happened","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}}}}},"/v1/files/{id}":{"delete":{"operationId":"deleteFile","summary":"Remove access and queue safe deletion of an unlinked file","x-workspace-roles":["operator"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"}},"required":["requestId"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"value":{"type":"object","additionalProperties":true},"replayed":{"type":"boolean"}},"required":["value","replayed"],"additionalProperties":false}}}},"400":{"description":"Invalid input; details.field names the problem","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"401":{"description":"Missing, unknown, expired or turned-off key","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"403":{"description":"The key's role cannot call this operation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"409":{"description":"Conflict: stale revision, changed retry, no capacity or expired hold","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"429":{"description":"Rate limited; wait details.retryAfterSeconds (also the retry-after header)","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"500":{"description":"Not completed; for a change, details.outcome says whether it may have happened","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}}}}},"/v1/emails":{"post":{"operationId":"sendEmail","summary":"Queue one transactional email using the verified workspace sender. Supply text or HTML","x-workspace-roles":["mailer"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"to":{"type":"string","minLength":1,"maxLength":254},"subject":{"type":"string","minLength":1,"maxLength":200},"html":{"type":"string","minLength":1,"maxLength":24000},"text":{"type":"string","minLength":1,"maxLength":24000}},"required":["requestId","to","subject"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"value":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"to":{"type":"string","minLength":1,"maxLength":254},"from":{"type":"string","minLength":1,"maxLength":254},"createdAt":{"type":"string","pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\\.[0-9]{3}Z$"},"status":{"type":"string","minLength":1,"maxLength":120},"attempts":{"type":"integer","minimum":0,"maximum":100000},"providerId":{"type":["string","null"]},"error":{"type":["string","null"]}},"required":["id","to","from","createdAt","status","attempts","providerId","error"],"additionalProperties":false},"replayed":{"type":"boolean"}},"required":["value","replayed"],"additionalProperties":false}}}},"400":{"description":"Invalid input; details.field names the problem","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"401":{"description":"Missing, unknown, expired or turned-off key","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"403":{"description":"The key's role cannot call this operation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"409":{"description":"Conflict: stale revision, changed retry, no capacity or expired hold","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"429":{"description":"Rate limited; wait details.retryAfterSeconds (also the retry-after header)","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"500":{"description":"Not completed; for a change, details.outcome says whether it may have happened","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}}}},"get":{"operationId":"listEmails","summary":"Inspect the latest 100 workspace email delivery intents","x-workspace-roles":["mailer","integrations"],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"to":{"type":"string","minLength":1,"maxLength":254},"from":{"type":"string","minLength":1,"maxLength":254},"createdAt":{"type":"string","pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\\.[0-9]{3}Z$"},"status":{"type":"string","minLength":1,"maxLength":120},"attempts":{"type":"integer","minimum":0,"maximum":100000},"providerId":{"type":["string","null"]},"error":{"type":["string","null"]},"history":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","minLength":1,"maxLength":120},"at":{"type":"string","minLength":1,"maxLength":120}},"required":["type","at"],"additionalProperties":false}}},"required":["id","to","from","createdAt","status","attempts","providerId","error","history"],"additionalProperties":false}}}}},"400":{"description":"Invalid input; details.field names the problem","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"401":{"description":"Missing, unknown, expired or turned-off key","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"403":{"description":"The key's role cannot call this operation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"409":{"description":"Conflict: stale revision, changed retry, no capacity or expired hold","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"429":{"description":"Rate limited; wait details.retryAfterSeconds (also the retry-after header)","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"500":{"description":"Not completed; for a change, details.outcome says whether it may have happened","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}}}}},"/v1/emails/sender":{"get":{"operationId":"getSender","summary":"Read the approved workspace sending identity","x-workspace-roles":["integrations","mailer"],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Invalid input; details.field names the problem","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"401":{"description":"Missing, unknown, expired or turned-off key","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"403":{"description":"The key's role cannot call this operation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"409":{"description":"Conflict: stale revision, changed retry, no capacity or expired hold","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"429":{"description":"Rate limited; wait details.retryAfterSeconds (also the retry-after header)","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"500":{"description":"Not completed; for a change, details.outcome says whether it may have happened","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}}}},"post":{"operationId":"setSender","summary":"Select a platform-assigned verified domain or reset to the managed sender","x-workspace-roles":["integrations"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"address":{"anyOf":[{"type":"string","minLength":1,"maxLength":254},{"type":"null"}]}},"required":["requestId","address"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"value":{"type":"object","additionalProperties":true},"replayed":{"type":"boolean"}},"required":["value","replayed"],"additionalProperties":false}}}},"400":{"description":"Invalid input; details.field names the problem","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"401":{"description":"Missing, unknown, expired or turned-off key","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"403":{"description":"The key's role cannot call this operation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"409":{"description":"Conflict: stale revision, changed retry, no capacity or expired hold","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"429":{"description":"Rate limited; wait details.retryAfterSeconds (also the retry-after header)","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"500":{"description":"Not completed; for a change, details.outcome says whether it may have happened","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}}}}},"/v1/payments/merchant":{"get":{"operationId":"getMerchant","summary":"Inspect merchant readiness, return origins and deposit policy","x-workspace-roles":["integrations"],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Invalid input; details.field names the problem","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"401":{"description":"Missing, unknown, expired or turned-off key","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"403":{"description":"The key's role cannot call this operation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"409":{"description":"Conflict: stale revision, changed retry, no capacity or expired hold","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"429":{"description":"Rate limited; wait details.retryAfterSeconds (also the retry-after header)","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"500":{"description":"Not completed; for a change, details.outcome says whether it may have happened","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}}}},"post":{"operationId":"connectMerchant","summary":"Connect merchant and request a hosted onboarding link. Use 10000 basis points for full payment","x-workspace-roles":["integrations"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"origins":{"type":"array","items":{"type":"string","minLength":1,"maxLength":2048},"minItems":1,"maxItems":10},"returnUrl":{"type":"string","minLength":1,"maxLength":2048},"refreshUrl":{"type":"string","minLength":1,"maxLength":2048},"depositBps":{"type":"integer","minimum":1,"maximum":10000}},"required":["requestId","origins","returnUrl","refreshUrl","depositBps"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"value":{"type":"object","required":["id","kind","orderId","amountCents","status"],"properties":{"id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"kind":{"type":"string","minLength":1,"maxLength":120},"orderId":{"type":["string","null"]},"amountCents":{"type":"integer","minimum":0,"maximum":2147483647},"status":{"type":"string","minLength":1,"maxLength":120},"url":{"type":["string","null"]},"error":{"type":["string","null"]},"refundedCents":{"type":"integer","minimum":0,"maximum":2147483647}}},"replayed":{"type":"boolean"}},"required":["value","replayed"],"additionalProperties":false}}}},"400":{"description":"Invalid input; details.field names the problem","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"401":{"description":"Missing, unknown, expired or turned-off key","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"403":{"description":"The key's role cannot call this operation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"409":{"description":"Conflict: stale revision, changed retry, no capacity or expired hold","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"429":{"description":"Rate limited; wait details.retryAfterSeconds (also the retry-after header)","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"500":{"description":"Not completed; for a change, details.outcome says whether it may have happened","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}}}}},"/v1/payments/merchant/refresh":{"post":{"operationId":"refreshMerchant","summary":"Refresh merchant capability and readiness","x-workspace-roles":["integrations"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"}},"required":["requestId"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"value":{"type":"object","required":["id","kind","orderId","amountCents","status"],"properties":{"id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"kind":{"type":"string","minLength":1,"maxLength":120},"orderId":{"type":["string","null"]},"amountCents":{"type":"integer","minimum":0,"maximum":2147483647},"status":{"type":"string","minLength":1,"maxLength":120},"url":{"type":["string","null"]},"error":{"type":["string","null"]},"refundedCents":{"type":"integer","minimum":0,"maximum":2147483647}}},"replayed":{"type":"boolean"}},"required":["value","replayed"],"additionalProperties":false}}}},"400":{"description":"Invalid input; details.field names the problem","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"401":{"description":"Missing, unknown, expired or turned-off key","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"403":{"description":"The key's role cannot call this operation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"409":{"description":"Conflict: stale revision, changed retry, no capacity or expired hold","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"429":{"description":"Rate limited; wait details.retryAfterSeconds (also the retry-after header)","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"500":{"description":"Not completed; for a change, details.outcome says whether it may have happened","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}}}}},"/v1/payments/checkout":{"post":{"operationId":"createCheckout","summary":"Request direct checkout for the authoritative order amount; poll the returned operation ID","x-workspace-roles":["operator","storefront"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"orderId":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"amount":{"enum":["deposit","full","remaining"]},"successUrl":{"type":"string","minLength":1,"maxLength":2048},"cancelUrl":{"type":"string","minLength":1,"maxLength":2048}},"required":["requestId","orderId","amount","successUrl","cancelUrl"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"value":{"type":"object","required":["id","kind","orderId","amountCents","status"],"properties":{"id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"kind":{"type":"string","minLength":1,"maxLength":120},"orderId":{"type":["string","null"]},"amountCents":{"type":"integer","minimum":0,"maximum":2147483647},"status":{"type":"string","minLength":1,"maxLength":120},"url":{"type":["string","null"]},"error":{"type":["string","null"]},"refundedCents":{"type":"integer","minimum":0,"maximum":2147483647}}},"replayed":{"type":"boolean"}},"required":["value","replayed"],"additionalProperties":false}}}},"400":{"description":"Invalid input; details.field names the problem","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"401":{"description":"Missing, unknown, expired or turned-off key","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"403":{"description":"The key's role cannot call this operation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"409":{"description":"Conflict: stale revision, changed retry, no capacity or expired hold","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"429":{"description":"Rate limited; wait details.retryAfterSeconds (also the retry-after header)","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"500":{"description":"Not completed; for a change, details.outcome says whether it may have happened","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}}}}},"/v1/payments/operations":{"get":{"operationId":"listPaymentJobs","summary":"Inspect payment operations, hosted links and actionable errors","x-workspace-roles":["integrations"],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","required":["id","kind","orderId","amountCents","status"],"properties":{"id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"kind":{"type":"string","minLength":1,"maxLength":120},"orderId":{"type":["string","null"]},"amountCents":{"type":"integer","minimum":0,"maximum":2147483647},"status":{"type":"string","minLength":1,"maxLength":120},"url":{"type":["string","null"]},"error":{"type":["string","null"]},"refundedCents":{"type":"integer","minimum":0,"maximum":2147483647}}}}}}},"400":{"description":"Invalid input; details.field names the problem","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"401":{"description":"Missing, unknown, expired or turned-off key","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"403":{"description":"The key's role cannot call this operation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"409":{"description":"Conflict: stale revision, changed retry, no capacity or expired hold","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"429":{"description":"Rate limited; wait details.retryAfterSeconds (also the retry-after header)","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"500":{"description":"Not completed; for a change, details.outcome says whether it may have happened","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}}}}},"/v1/payments/operations/{id}":{"get":{"operationId":"getPaymentJob","summary":"Poll a payment operation for its current status and hosted URL","x-workspace-roles":["operator","storefront","integrations"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["id","kind","orderId","amountCents","status"],"properties":{"id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"kind":{"type":"string","minLength":1,"maxLength":120},"orderId":{"type":["string","null"]},"amountCents":{"type":"integer","minimum":0,"maximum":2147483647},"status":{"type":"string","minLength":1,"maxLength":120},"url":{"type":["string","null"]},"error":{"type":["string","null"]},"refundedCents":{"type":"integer","minimum":0,"maximum":2147483647}}}}}},"400":{"description":"Invalid input; details.field names the problem","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"401":{"description":"Missing, unknown, expired or turned-off key","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"403":{"description":"The key's role cannot call this operation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"409":{"description":"Conflict: stale revision, changed retry, no capacity or expired hold","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"429":{"description":"Rate limited; wait details.retryAfterSeconds (also the retry-after header)","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"500":{"description":"Not completed; for a change, details.outcome says whether it may have happened","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}}}}},"/v1/payments/reconcile":{"post":{"operationId":"reconcilePayment","summary":"Reconcile checkout and refunds against current provider records","x-workspace-roles":["integrations"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"checkoutId":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"sessionId":{"type":"string","minLength":1,"maxLength":255}},"required":["requestId","checkoutId"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"value":{"type":"object","required":["id","kind","orderId","amountCents","status"],"properties":{"id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"kind":{"type":"string","minLength":1,"maxLength":120},"orderId":{"type":["string","null"]},"amountCents":{"type":"integer","minimum":0,"maximum":2147483647},"status":{"type":"string","minLength":1,"maxLength":120},"url":{"type":["string","null"]},"error":{"type":["string","null"]},"refundedCents":{"type":"integer","minimum":0,"maximum":2147483647}}},"replayed":{"type":"boolean"}},"required":["value","replayed"],"additionalProperties":false}}}},"400":{"description":"Invalid input; details.field names the problem","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"401":{"description":"Missing, unknown, expired or turned-off key","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"403":{"description":"The key's role cannot call this operation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"409":{"description":"Conflict: stale revision, changed retry, no capacity or expired hold","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"429":{"description":"Rate limited; wait details.retryAfterSeconds (also the retry-after header)","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"500":{"description":"Not completed; for a change, details.outcome says whether it may have happened","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}}}}},"/v1/payments/simulate":{"post":{"operationId":"simulatePayment","summary":"Complete or expire a local simulated checkout","x-workspace-roles":["integrations"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"checkoutId":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"status":{"enum":["paid","expired"]}},"required":["requestId","checkoutId","status"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"value":{"type":"object","required":["id","kind","orderId","amountCents","status"],"properties":{"id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"kind":{"type":"string","minLength":1,"maxLength":120},"orderId":{"type":["string","null"]},"amountCents":{"type":"integer","minimum":0,"maximum":2147483647},"status":{"type":"string","minLength":1,"maxLength":120},"url":{"type":["string","null"]},"error":{"type":["string","null"]},"refundedCents":{"type":"integer","minimum":0,"maximum":2147483647}}},"replayed":{"type":"boolean"}},"required":["value","replayed"],"additionalProperties":false}}}},"400":{"description":"Invalid input; details.field names the problem","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"401":{"description":"Missing, unknown, expired or turned-off key","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"403":{"description":"The key's role cannot call this operation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"409":{"description":"Conflict: stale revision, changed retry, no capacity or expired hold","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"429":{"description":"Rate limited; wait details.retryAfterSeconds (also the retry-after header)","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"500":{"description":"Not completed; for a change, details.outcome says whether it may have happened","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}}}}},"/v1/payments/refund":{"post":{"operationId":"refundPayment","summary":"Refund a checkout in full or specify a partial amount in cents","x-workspace-roles":["integrations"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"checkoutId":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"amountCents":{"type":"integer","minimum":1,"maximum":2147483647}},"required":["requestId","checkoutId"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"value":{"type":"object","required":["id","kind","orderId","amountCents","status"],"properties":{"id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"kind":{"type":"string","minLength":1,"maxLength":120},"orderId":{"type":["string","null"]},"amountCents":{"type":"integer","minimum":0,"maximum":2147483647},"status":{"type":"string","minLength":1,"maxLength":120},"url":{"type":["string","null"]},"error":{"type":["string","null"]},"refundedCents":{"type":"integer","minimum":0,"maximum":2147483647}}},"replayed":{"type":"boolean"}},"required":["value","replayed"],"additionalProperties":false}}}},"400":{"description":"Invalid input; details.field names the problem","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"401":{"description":"Missing, unknown, expired or turned-off key","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"403":{"description":"The key's role cannot call this operation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"409":{"description":"Conflict: stale revision, changed retry, no capacity or expired hold","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"429":{"description":"Rate limited; wait details.retryAfterSeconds (also the retry-after header)","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"500":{"description":"Not completed; for a change, details.outcome says whether it may have happened","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}}}}},"/v1/events":{"get":{"operationId":"listEvents","summary":"Read the latest 200 workspace events","x-workspace-roles":["reader","operator","integrations"],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"type":{"enum":["customer.created","resource.created","resource.updated","reservation.created","reservation.cancelled","order.created","order.updated","order.cancelled","payment.succeeded","payment.refunded","record.created","record.updated","record.deleted"]},"entityId":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"at":{"type":"string","pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\\.[0-9]{3}Z$"}},"required":["id","type","entityId","at"],"additionalProperties":false}}}}},"400":{"description":"Invalid input; details.field names the problem","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"401":{"description":"Missing, unknown, expired or turned-off key","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"403":{"description":"The key's role cannot call this operation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"409":{"description":"Conflict: stale revision, changed retry, no capacity or expired hold","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"429":{"description":"Rate limited; wait details.retryAfterSeconds (also the retry-after header)","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"500":{"description":"Not completed; for a change, details.outcome says whether it may have happened","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}}}}},"/v1/webhooks":{"get":{"operationId":"listWebhooks","summary":"List workspace webhook subscriptions","x-workspace-roles":["integrations"],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true}}}}},"400":{"description":"Invalid input; details.field names the problem","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"401":{"description":"Missing, unknown, expired or turned-off key","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"403":{"description":"The key's role cannot call this operation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"409":{"description":"Conflict: stale revision, changed retry, no capacity or expired hold","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"429":{"description":"Rate limited; wait details.retryAfterSeconds (also the retry-after header)","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"500":{"description":"Not completed; for a change, details.outcome says whether it may have happened","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}}}},"post":{"operationId":"createWebhook","summary":"Subscribe an approved URL to signed events and retrieve the Ed25519 public verification key","x-workspace-roles":["integrations"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"url":{"type":"string","minLength":1,"maxLength":2048},"types":{"type":"array","items":{"enum":["customer.created","resource.created","resource.updated","reservation.created","reservation.cancelled","order.created","order.updated","order.cancelled","payment.succeeded","payment.refunded","record.created","record.updated","record.deleted"]},"minItems":1,"uniqueItems":true}},"required":["requestId","url","types"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"value":{"type":"object","additionalProperties":true},"replayed":{"type":"boolean"}},"required":["value","replayed"],"additionalProperties":false}}}},"400":{"description":"Invalid input; details.field names the problem","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"401":{"description":"Missing, unknown, expired or turned-off key","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"403":{"description":"The key's role cannot call this operation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"409":{"description":"Conflict: stale revision, changed retry, no capacity or expired hold","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"429":{"description":"Rate limited; wait details.retryAfterSeconds (also the retry-after header)","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"500":{"description":"Not completed; for a change, details.outcome says whether it may have happened","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}}}}},"/v1/webhooks/deliveries":{"get":{"operationId":"listDeliveries","summary":"Inspect the latest 100 deliveries and attempt histories","x-workspace-roles":["integrations"],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true}}}}},"400":{"description":"Invalid input; details.field names the problem","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"401":{"description":"Missing, unknown, expired or turned-off key","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"403":{"description":"The key's role cannot call this operation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"409":{"description":"Conflict: stale revision, changed retry, no capacity or expired hold","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"429":{"description":"Rate limited; wait details.retryAfterSeconds (also the retry-after header)","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"500":{"description":"Not completed; for a change, details.outcome says whether it may have happened","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}}}}},"/v1/application/url":{"put":{"operationId":"setApplicationUrl","summary":"Set the live web address of the app this key belongs to, so the owner can open it from Yasad. Call it after each deploy.","x-workspace-roles":["reader","operator","storefront"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"url":{"type":"string","minLength":1,"maxLength":2048}},"required":["requestId","url"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"value":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"url":{"type":"string","minLength":1,"maxLength":120}},"required":["id","url"],"additionalProperties":false},"replayed":{"type":"boolean"}},"required":["value","replayed"],"additionalProperties":false}}}},"400":{"description":"Invalid input; details.field names the problem","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"401":{"description":"Missing, unknown, expired or turned-off key","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"403":{"description":"The key's role cannot call this operation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"409":{"description":"Conflict: stale revision, changed retry, no capacity or expired hold","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"429":{"description":"Rate limited; wait details.retryAfterSeconds (also the retry-after header)","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"500":{"description":"Not completed; for a change, details.outcome says whether it may have happened","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}}}}},"/v1/webhooks/{id}/disable":{"post":{"operationId":"disableWebhook","summary":"Disable a webhook subscription","x-workspace-roles":["integrations"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"}},"required":["requestId"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"value":{"type":"object","additionalProperties":true},"replayed":{"type":"boolean"}},"required":["value","replayed"],"additionalProperties":false}}}},"400":{"description":"Invalid input; details.field names the problem","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"401":{"description":"Missing, unknown, expired or turned-off key","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"403":{"description":"The key's role cannot call this operation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"409":{"description":"Conflict: stale revision, changed retry, no capacity or expired hold","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"429":{"description":"Rate limited; wait details.retryAfterSeconds (also the retry-after header)","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"500":{"description":"Not completed; for a change, details.outcome says whether it may have happened","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}}}}},"/v1/webhooks/deliveries/{id}/retry":{"post":{"operationId":"retryDelivery","summary":"Retry an exhausted delivery with the original event ID","x-workspace-roles":["integrations"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"}},"required":["requestId"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"value":{"type":"object","additionalProperties":true},"replayed":{"type":"boolean"}},"required":["value","replayed"],"additionalProperties":false}}}},"400":{"description":"Invalid input; details.field names the problem","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"401":{"description":"Missing, unknown, expired or turned-off key","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"403":{"description":"The key's role cannot call this operation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"409":{"description":"Conflict: stale revision, changed retry, no capacity or expired hold","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"429":{"description":"Rate limited; wait details.retryAfterSeconds (also the retry-after header)","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"500":{"description":"Not completed; for a change, details.outcome says whether it may have happened","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}}}}},"/v1/collections":{"get":{"operationId":"listCollections","summary":"Discover current workspace collection names, versions and field schemas","x-workspace-roles":["reader","operator"],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,63}$"},"fields":{"type":"object","propertyNames":{"pattern":"^[a-zA-Z][a-zA-Z0-9_]{0,63}$"},"maxProperties":100,"additionalProperties":{"type":"object","properties":{"type":{"enum":["string","text","integer","number","boolean","date","datetime","enum","json","record","native"]},"required":{"type":"boolean"},"unique":{"type":"boolean"},"default":{},"values":{"type":"array","items":{"type":"string","minLength":1,"maxLength":255},"minItems":1,"maxItems":128,"uniqueItems":true},"target":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,63}$"}},"required":["type"],"additionalProperties":false}},"version":{"type":"integer","minimum":1,"maximum":9007199254740991},"legacy":{"type":"boolean"}},"required":["name","fields","version","legacy"],"additionalProperties":false}}}}},"400":{"description":"Invalid input; details.field names the problem","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"401":{"description":"Missing, unknown, expired or turned-off key","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"403":{"description":"The key's role cannot call this operation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"409":{"description":"Conflict: stale revision, changed retry, no capacity or expired hold","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"429":{"description":"Rate limited; wait details.retryAfterSeconds (also the retry-after header)","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"500":{"description":"Not completed; for a change, details.outcome says whether it may have happened","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}}}},"post":{"operationId":"createCollection","summary":"Create a typed collection. Reference targets use a collection or native plural name","x-workspace-roles":["operator"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"name":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,63}$"},"fields":{"type":"object","propertyNames":{"pattern":"^[a-zA-Z][a-zA-Z0-9_]{0,63}$"},"maxProperties":100,"additionalProperties":{"type":"object","properties":{"type":{"enum":["string","text","integer","number","boolean","date","datetime","enum","json","record","native"]},"required":{"type":"boolean"},"unique":{"type":"boolean"},"default":{},"values":{"type":"array","items":{"type":"string","minLength":1,"maxLength":255},"minItems":1,"maxItems":128,"uniqueItems":true},"target":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,63}$"}},"required":["type"],"additionalProperties":false}}},"required":["requestId","name","fields"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"value":{"type":"object","properties":{"name":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,63}$"},"fields":{"type":"object","propertyNames":{"pattern":"^[a-zA-Z][a-zA-Z0-9_]{0,63}$"},"maxProperties":100,"additionalProperties":{"type":"object","properties":{"type":{"enum":["string","text","integer","number","boolean","date","datetime","enum","json","record","native"]},"required":{"type":"boolean"},"unique":{"type":"boolean"},"default":{},"values":{"type":"array","items":{"type":"string","minLength":1,"maxLength":255},"minItems":1,"maxItems":128,"uniqueItems":true},"target":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,63}$"}},"required":["type"],"additionalProperties":false}},"version":{"type":"integer","minimum":1,"maximum":9007199254740991},"legacy":{"type":"boolean"}},"required":["name","fields","version","legacy"],"additionalProperties":false},"replayed":{"type":"boolean"}},"required":["value","replayed"],"additionalProperties":false}}}},"400":{"description":"Invalid input; details.field names the problem","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"401":{"description":"Missing, unknown, expired or turned-off key","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"403":{"description":"The key's role cannot call this operation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"409":{"description":"Conflict: stale revision, changed retry, no capacity or expired hold","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"429":{"description":"Rate limited; wait details.retryAfterSeconds (also the retry-after header)","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"500":{"description":"Not completed; for a change, details.outcome says whether it may have happened","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}}}},"patch":{"operationId":"updateCollection","summary":"Replace a schema with a compatible next version","x-workspace-roles":["operator"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"name":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,63}$"},"fields":{"type":"object","propertyNames":{"pattern":"^[a-zA-Z][a-zA-Z0-9_]{0,63}$"},"maxProperties":100,"additionalProperties":{"type":"object","properties":{"type":{"enum":["string","text","integer","number","boolean","date","datetime","enum","json","record","native"]},"required":{"type":"boolean"},"unique":{"type":"boolean"},"default":{},"values":{"type":"array","items":{"type":"string","minLength":1,"maxLength":255},"minItems":1,"maxItems":128,"uniqueItems":true},"target":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,63}$"}},"required":["type"],"additionalProperties":false}},"version":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["requestId","name","fields","version"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"value":{"type":"object","properties":{"name":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,63}$"},"fields":{"type":"object","propertyNames":{"pattern":"^[a-zA-Z][a-zA-Z0-9_]{0,63}$"},"maxProperties":100,"additionalProperties":{"type":"object","properties":{"type":{"enum":["string","text","integer","number","boolean","date","datetime","enum","json","record","native"]},"required":{"type":"boolean"},"unique":{"type":"boolean"},"default":{},"values":{"type":"array","items":{"type":"string","minLength":1,"maxLength":255},"minItems":1,"maxItems":128,"uniqueItems":true},"target":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,63}$"}},"required":["type"],"additionalProperties":false}},"version":{"type":"integer","minimum":1,"maximum":9007199254740991},"legacy":{"type":"boolean"}},"required":["name","fields","version","legacy"],"additionalProperties":false},"replayed":{"type":"boolean"}},"required":["value","replayed"],"additionalProperties":false}}}},"400":{"description":"Invalid input; details.field names the problem","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"401":{"description":"Missing, unknown, expired or turned-off key","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"403":{"description":"The key's role cannot call this operation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"409":{"description":"Conflict: stale revision, changed retry, no capacity or expired hold","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"429":{"description":"Rate limited; wait details.retryAfterSeconds (also the retry-after header)","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"500":{"description":"Not completed; for a change, details.outcome says whether it may have happened","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}}}}},"/v1/collections/schema":{"post":{"operationId":"getCollection","summary":"Read one current collection schema","x-workspace-roles":["reader","operator"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"collection":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,63}$"}},"required":["collection"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,63}$"},"fields":{"type":"object","propertyNames":{"pattern":"^[a-zA-Z][a-zA-Z0-9_]{0,63}$"},"maxProperties":100,"additionalProperties":{"type":"object","properties":{"type":{"enum":["string","text","integer","number","boolean","date","datetime","enum","json","record","native"]},"required":{"type":"boolean"},"unique":{"type":"boolean"},"default":{},"values":{"type":"array","items":{"type":"string","minLength":1,"maxLength":255},"minItems":1,"maxItems":128,"uniqueItems":true},"target":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,63}$"}},"required":["type"],"additionalProperties":false}},"version":{"type":"integer","minimum":1,"maximum":9007199254740991},"legacy":{"type":"boolean"}},"required":["name","fields","version","legacy"],"additionalProperties":false}}}},"400":{"description":"Invalid input; details.field names the problem","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"401":{"description":"Missing, unknown, expired or turned-off key","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"403":{"description":"The key's role cannot call this operation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"409":{"description":"Conflict: stale revision, changed retry, no capacity or expired hold","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"429":{"description":"Rate limited; wait details.retryAfterSeconds (also the retry-after header)","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"500":{"description":"Not completed; for a change, details.outcome says whether it may have happened","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}}}}},"/v1/data/query":{"post":{"operationId":"queryRecords","summary":"Filter by field equality, sort and page through records","x-workspace-roles":["reader","operator"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"collection":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,63}$"},"filter":{"type":"object","additionalProperties":true},"sort":{"type":"string","minLength":1,"maxLength":64},"descending":{"type":"boolean"},"limit":{"type":"integer","minimum":1,"maximum":200},"offset":{"type":"integer","minimum":0,"maximum":2147483647}},"required":["collection"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"records":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"collection":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,63}$"},"data":{"type":"object","additionalProperties":true},"revision":{"type":"integer","minimum":1,"maximum":9007199254740991},"schemaVersion":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["id","collection","data","revision","schemaVersion"],"additionalProperties":false}},"nextOffset":{"type":["integer","null"]}},"required":["records","nextOffset"],"additionalProperties":false}}}},"400":{"description":"Invalid input; details.field names the problem","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"401":{"description":"Missing, unknown, expired or turned-off key","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"403":{"description":"The key's role cannot call this operation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"409":{"description":"Conflict: stale revision, changed retry, no capacity or expired hold","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"429":{"description":"Rate limited; wait details.retryAfterSeconds (also the retry-after header)","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"500":{"description":"Not completed; for a change, details.outcome says whether it may have happened","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}}}}},"/v1/data/{id}":{"get":{"operationId":"getRecord","summary":"Read one typed record","x-workspace-roles":["reader","operator"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"collection":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,63}$"},"data":{"type":"object","additionalProperties":true},"revision":{"type":"integer","minimum":1,"maximum":9007199254740991},"schemaVersion":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["id","collection","data","revision","schemaVersion"],"additionalProperties":false}}}},"400":{"description":"Invalid input; details.field names the problem","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"401":{"description":"Missing, unknown, expired or turned-off key","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"403":{"description":"The key's role cannot call this operation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"409":{"description":"Conflict: stale revision, changed retry, no capacity or expired hold","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"429":{"description":"Rate limited; wait details.retryAfterSeconds (also the retry-after header)","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"500":{"description":"Not completed; for a change, details.outcome says whether it may have happened","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}}}},"patch":{"operationId":"updateRecord","summary":"Replace record fields at the supplied revision","x-workspace-roles":["operator"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"revision":{"type":"integer","minimum":1,"maximum":9007199254740991},"data":{"type":"object","additionalProperties":true}},"required":["requestId","revision","data"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"value":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"collection":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,63}$"},"data":{"type":"object","additionalProperties":true},"revision":{"type":"integer","minimum":1,"maximum":9007199254740991},"schemaVersion":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["id","collection","data","revision","schemaVersion"],"additionalProperties":false},"replayed":{"type":"boolean"}},"required":["value","replayed"],"additionalProperties":false}}}},"400":{"description":"Invalid input; details.field names the problem","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"401":{"description":"Missing, unknown, expired or turned-off key","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"403":{"description":"The key's role cannot call this operation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"409":{"description":"Conflict: stale revision, changed retry, no capacity or expired hold","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"429":{"description":"Rate limited; wait details.retryAfterSeconds (also the retry-after header)","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"500":{"description":"Not completed; for a change, details.outcome says whether it may have happened","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}}}},"delete":{"operationId":"deleteRecord","summary":"Delete an unreferenced record at the supplied revision","x-workspace-roles":["operator"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"revision":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["requestId","revision"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"value":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"collection":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,63}$"}},"required":["id","collection"],"additionalProperties":false},"replayed":{"type":"boolean"}},"required":["value","replayed"],"additionalProperties":false}}}},"400":{"description":"Invalid input; details.field names the problem","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"401":{"description":"Missing, unknown, expired or turned-off key","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"403":{"description":"The key's role cannot call this operation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"409":{"description":"Conflict: stale revision, changed retry, no capacity or expired hold","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"429":{"description":"Rate limited; wait details.retryAfterSeconds (also the retry-after header)","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"500":{"description":"Not completed; for a change, details.outcome says whether it may have happened","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}}}}},"/v1/data":{"post":{"operationId":"createRecord","summary":"Create a validated record","x-workspace-roles":["operator","intake"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"collection":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,63}$"},"data":{"type":"object","additionalProperties":true}},"required":["requestId","collection","data"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"value":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"collection":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,63}$"},"data":{"type":"object","additionalProperties":true},"revision":{"type":"integer","minimum":1,"maximum":9007199254740991},"schemaVersion":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["id","collection","data","revision","schemaVersion"],"additionalProperties":false},"replayed":{"type":"boolean"}},"required":["value","replayed"],"additionalProperties":false}}}},"400":{"description":"Invalid input; details.field names the problem","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"401":{"description":"Missing, unknown, expired or turned-off key","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"403":{"description":"The key's role cannot call this operation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"409":{"description":"Conflict: stale revision, changed retry, no capacity or expired hold","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"429":{"description":"Rate limited; wait details.retryAfterSeconds (also the retry-after header)","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"500":{"description":"Not completed; for a change, details.outcome says whether it may have happened","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}}}}},"/v1/capabilities":{"get":{"operationId":"getCapabilities","summary":"Discover permitted operations and limits","x-workspace-roles":["reader","operator","storefront","integrations","mailer","intake"],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"context":{"type":"object","properties":{"workspaceName":{"type":"string","minLength":1,"maxLength":120},"environment":{"const":"sandbox"},"caller":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"kind":{"enum":["application","assistant"]},"name":{"type":"string","minLength":1,"maxLength":120}},"required":["id","kind","name"],"additionalProperties":false},{"type":"null"}]},"businessDescription":{"type":"string","minLength":1,"maxLength":500},"documentation":{"type":"object","properties":{"guide":{"const":"/agent/guide"},"sdk":{"const":"/sdk/guide"},"contract":{"const":"/openapi.json"},"rules":{"const":"/agent/rules"},"check":{"const":"/agent/check.mjs"}},"required":["guide","sdk","contract","rules","check"],"additionalProperties":false},"dataPolicy":{"type":"string","minLength":1,"maxLength":2000}},"required":["workspaceName","environment","caller","documentation","dataPolicy"],"additionalProperties":false},"version":{"const":1},"workspaceId":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"role":{"enum":["reader","operator","storefront","integrations","mailer","intake"]},"capabilities":{"type":"array","items":{"type":"string","minLength":1,"maxLength":120}},"payments":{"type":"boolean"},"openapi":{"const":"/openapi.json"},"currency":{"const":"USD"},"paymentMethods":{"type":"array","items":{"type":"string","minLength":1,"maxLength":120}},"operations":{"type":"array","items":{"type":"string","minLength":1,"maxLength":120}},"maxRequestBytes":{"const":32768}},"required":["context","version","workspaceId","role","capabilities","payments","openapi","currency","paymentMethods","operations","maxRequestBytes"],"additionalProperties":false}}}},"400":{"description":"Invalid input; details.field names the problem","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"401":{"description":"Missing, unknown, expired or turned-off key","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"403":{"description":"The key's role cannot call this operation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"409":{"description":"Conflict: stale revision, changed retry, no capacity or expired hold","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"429":{"description":"Rate limited; wait details.retryAfterSeconds (also the retry-after header)","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"500":{"description":"Not completed; for a change, details.outcome says whether it may have happened","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}}}}},"/v1/workspace":{"get":{"operationId":"getWorkspace","summary":"Read workspace and booking engine snapshot","x-workspace-roles":["reader","operator"],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"name":{"type":"string","minLength":1,"maxLength":120},"capabilities":{"type":"array","items":{"type":"string","minLength":1,"maxLength":120}},"resources":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"tenantId":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"revision":{"type":"integer","minimum":1,"maximum":9007199254740991},"name":{"type":"string","minLength":1,"maxLength":120},"kind":{"type":"string","minLength":1,"maxLength":60},"capacity":{"type":"integer","minimum":1,"maximum":1000000},"unitCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":2147483647},{"type":"null"}]},"archived":{"type":"boolean"},"bufferBeforeMinutes":{"type":"integer","minimum":0,"maximum":10080},"bufferAfterMinutes":{"type":"integer","minimum":0,"maximum":10080}},"required":["id","tenantId","revision","name","kind","capacity","unitCents","archived","bufferBeforeMinutes","bufferAfterMinutes"],"additionalProperties":false}},"bookings":{"type":"array","items":{"type":"object","properties":{"startsAt":{"type":"string","pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\\.[0-9]{3}Z$"},"endsAt":{"type":"string","pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\\.[0-9]{3}Z$"},"allocations":{"type":"array","items":{"type":"object","properties":{"resourceId":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"quantity":{"type":"integer","minimum":1,"maximum":1000000},"startsAt":{"type":"string","pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\\.[0-9]{3}Z$"},"endsAt":{"type":"string","pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\\.[0-9]{3}Z$"},"resourceName":{"type":"string","minLength":1,"maxLength":120},"resourceKind":{"type":"string","minLength":1,"maxLength":60}},"required":["resourceId","quantity","startsAt","endsAt","resourceName","resourceKind"],"additionalProperties":false}},"id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"tenantId":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"revision":{"type":"integer","minimum":1,"maximum":9007199254740991},"customerLabel":{"type":"string","minLength":1,"maxLength":120},"expiresAt":{"type":"string","pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\\.[0-9]{3}Z$"},"status":{"enum":["held","confirmed","cancelled","expired","requested","pending","completed"]},"events":{"type":"array","items":{"type":"object","properties":{"action":{"type":"string","minLength":1,"maxLength":120},"actorId":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"requestId":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"at":{"type":"string","pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\\.[0-9]{3}Z$"}},"required":["action","actorId","requestId","at"],"additionalProperties":false}}},"required":["startsAt","endsAt","allocations","id","tenantId","revision","customerLabel","expiresAt","status","events"],"additionalProperties":false}}},"required":["id","name","capabilities","resources","bookings"],"additionalProperties":false}}}},"400":{"description":"Invalid input; details.field names the problem","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"401":{"description":"Missing, unknown, expired or turned-off key","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"403":{"description":"The key's role cannot call this operation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"409":{"description":"Conflict: stale revision, changed retry, no capacity or expired hold","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"429":{"description":"Rate limited; wait details.retryAfterSeconds (also the retry-after header)","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"500":{"description":"Not completed; for a change, details.outcome says whether it may have happened","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}}}}},"/v1/export":{"get":{"operationId":"exportWorkspace","summary":"Export business records, typed records, current and historical collection schemas","x-workspace-roles":["reader","operator"],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"version":{"const":1},"workspace":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"name":{"type":"string","minLength":1,"maxLength":120}},"required":["id","name"],"additionalProperties":false},"customers":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"name":{"type":"string","minLength":1,"maxLength":120},"email":{"type":"string","minLength":1,"maxLength":254}},"required":["id","name","email"],"additionalProperties":false}},"resources":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"tenantId":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"revision":{"type":"integer","minimum":1,"maximum":9007199254740991},"name":{"type":"string","minLength":1,"maxLength":120},"kind":{"type":"string","minLength":1,"maxLength":60},"capacity":{"type":"integer","minimum":1,"maximum":1000000},"unitCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":2147483647},{"type":"null"}]},"archived":{"type":"boolean"},"bufferBeforeMinutes":{"type":"integer","minimum":0,"maximum":10080},"bufferAfterMinutes":{"type":"integer","minimum":0,"maximum":10080}},"required":["id","tenantId","revision","name","kind","capacity","unitCents","archived","bufferBeforeMinutes","bufferAfterMinutes"],"additionalProperties":false}},"reservations":{"type":"array","items":{"type":"object","properties":{"startsAt":{"type":"string","pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\\.[0-9]{3}Z$"},"endsAt":{"type":"string","pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\\.[0-9]{3}Z$"},"allocations":{"type":"array","items":{"type":"object","properties":{"resourceId":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"quantity":{"type":"integer","minimum":1,"maximum":1000000},"startsAt":{"type":"string","pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\\.[0-9]{3}Z$"},"endsAt":{"type":"string","pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\\.[0-9]{3}Z$"},"resourceName":{"type":"string","minLength":1,"maxLength":120},"resourceKind":{"type":"string","minLength":1,"maxLength":60}},"required":["resourceId","quantity","startsAt","endsAt","resourceName","resourceKind"],"additionalProperties":false}},"id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"tenantId":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"revision":{"type":"integer","minimum":1,"maximum":9007199254740991},"customerLabel":{"type":"string","minLength":1,"maxLength":120},"expiresAt":{"type":"string","pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\\.[0-9]{3}Z$"},"status":{"enum":["held","confirmed","cancelled","expired","requested","pending","completed"]},"events":{"type":"array","items":{"type":"object","properties":{"action":{"type":"string","minLength":1,"maxLength":120},"actorId":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"requestId":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"at":{"type":"string","pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\\.[0-9]{3}Z$"}},"required":["action","actorId","requestId","at"],"additionalProperties":false}}},"required":["startsAt","endsAt","allocations","id","tenantId","revision","customerLabel","expiresAt","status","events"],"additionalProperties":false}},"orders":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"customerId":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"reservationId":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"status":{"enum":["awaiting_payment","payment_expired","payment_review","placed","ready","fulfilled","cancelled"]},"revision":{"type":"integer","minimum":1,"maximum":9007199254740991},"createdAt":{"type":"string","pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\\.[0-9]{3}Z$"},"startsAt":{"type":"string","pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\\.[0-9]{3}Z$"},"endsAt":{"type":"string","pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\\.[0-9]{3}Z$"},"lines":{"type":"array","items":{"type":"object","properties":{"resourceId":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"name":{"type":"string","minLength":1,"maxLength":120},"quantity":{"type":"integer","minimum":1,"maximum":1000000},"unitCents":{"type":"integer","minimum":0,"maximum":2147483647}},"required":["resourceId","name","quantity","unitCents"],"additionalProperties":false}},"totalCents":{"type":"integer","minimum":0,"maximum":9007199254740991},"currency":{"const":"USD"},"requiredCents":{"type":"integer","minimum":0,"maximum":2147483647},"holdExpiresAt":{"type":"string","pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\\.[0-9]{3}Z$"}},"required":["id","customerId","reservationId","status","revision","createdAt","startsAt","endsAt","lines","totalCents","currency"],"additionalProperties":false}},"payments":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"orderId":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"amountCents":{"type":"integer","minimum":-2147483647,"maximum":2147483647},"currency":{"const":"USD"},"method":{"enum":["manual","stripe"]},"recordedAt":{"type":"string","pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\\.[0-9]{3}Z$"},"checkoutId":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"}},"required":["id","orderId","amountCents","currency","method","recordedAt"],"additionalProperties":false}},"customRecords":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"collection":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,63}$"},"data":{"type":"object","additionalProperties":true}},"required":["id","collection","data"],"additionalProperties":false}},"collections":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,63}$"},"fields":{"type":"object","propertyNames":{"pattern":"^[a-zA-Z][a-zA-Z0-9_]{0,63}$"},"maxProperties":100,"additionalProperties":{"type":"object","properties":{"type":{"enum":["string","text","integer","number","boolean","date","datetime","enum","json","record","native"]},"required":{"type":"boolean"},"unique":{"type":"boolean"},"default":{},"values":{"type":"array","items":{"type":"string","minLength":1,"maxLength":255},"minItems":1,"maxItems":128,"uniqueItems":true},"target":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,63}$"}},"required":["type"],"additionalProperties":false}},"version":{"type":"integer","minimum":1,"maximum":9007199254740991},"legacy":{"type":"boolean"}},"required":["name","fields","version","legacy"],"additionalProperties":false}},"collectionVersions":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,63}$"},"fields":{"type":"object","propertyNames":{"pattern":"^[a-zA-Z][a-zA-Z0-9_]{0,63}$"},"maxProperties":100,"additionalProperties":{"type":"object","properties":{"type":{"enum":["string","text","integer","number","boolean","date","datetime","enum","json","record","native"]},"required":{"type":"boolean"},"unique":{"type":"boolean"},"default":{},"values":{"type":"array","items":{"type":"string","minLength":1,"maxLength":255},"minItems":1,"maxItems":128,"uniqueItems":true},"target":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,63}$"}},"required":["type"],"additionalProperties":false}},"version":{"type":"integer","minimum":1,"maximum":9007199254740991},"legacy":{"type":"boolean"}},"required":["name","fields","version","legacy"],"additionalProperties":false}},"records":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"collection":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,63}$"},"data":{"type":"object","additionalProperties":true},"revision":{"type":"integer","minimum":1,"maximum":9007199254740991},"schemaVersion":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["id","collection","data","revision","schemaVersion"],"additionalProperties":false}},"relationships":{"type":"array","items":{"type":"object","properties":{"source":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"field":{"type":"string","minLength":1,"maxLength":120},"target":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"kind":{"type":"string","minLength":1,"maxLength":120}},"required":["source","field","target","kind"],"additionalProperties":false}},"files":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"name":{"type":"string","minLength":1,"maxLength":255},"content_type":{"type":"string","minLength":1,"maxLength":120},"size_bytes":{"type":"integer","minimum":1,"maximum":8388608},"sha256":{"type":["string","null"]},"entity":{"type":["string","null"]},"entity_id":{"type":["string","null"]},"record_id":{"type":["string","null"]}},"required":["id","name","content_type","size_bytes","sha256","entity","entity_id","record_id"],"additionalProperties":false}},"applications":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"name":{"type":"string","minLength":1,"maxLength":120},"app_type":{"type":"string","minLength":1,"maxLength":120},"revision":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["id","name","app_type","revision"],"additionalProperties":false}}},"required":["version","workspace","customers","resources","reservations","orders","payments","customRecords","collections","collectionVersions","records","relationships","files","applications"],"additionalProperties":false}}}},"400":{"description":"Invalid input; details.field names the problem","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"401":{"description":"Missing, unknown, expired or turned-off key","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"403":{"description":"The key's role cannot call this operation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"409":{"description":"Conflict: stale revision, changed retry, no capacity or expired hold","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"429":{"description":"Rate limited; wait details.retryAfterSeconds (also the retry-after header)","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"500":{"description":"Not completed; for a change, details.outcome says whether it may have happened","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}}}}},"/v1/customers":{"get":{"operationId":"listCustomers","summary":"List customer identities","x-workspace-roles":["reader","operator"],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"name":{"type":"string","minLength":1,"maxLength":120},"email":{"type":"string","minLength":1,"maxLength":254}},"required":["id","name","email"],"additionalProperties":false}}}}},"400":{"description":"Invalid input; details.field names the problem","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"401":{"description":"Missing, unknown, expired or turned-off key","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"403":{"description":"The key's role cannot call this operation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"409":{"description":"Conflict: stale revision, changed retry, no capacity or expired hold","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"429":{"description":"Rate limited; wait details.retryAfterSeconds (also the retry-after header)","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"500":{"description":"Not completed; for a change, details.outcome says whether it may have happened","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}}}},"post":{"operationId":"createCustomer","summary":"Create a workspace customer","x-workspace-roles":["operator"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"name":{"type":"string","minLength":1,"maxLength":120},"email":{"type":"string","minLength":1,"maxLength":254}},"required":["requestId","name","email"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"value":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"name":{"type":"string","minLength":1,"maxLength":120},"email":{"type":"string","minLength":1,"maxLength":254}},"required":["id","name","email"],"additionalProperties":false},"replayed":{"type":"boolean"}},"required":["value","replayed"],"additionalProperties":false}}}},"400":{"description":"Invalid input; details.field names the problem","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"401":{"description":"Missing, unknown, expired or turned-off key","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"403":{"description":"The key's role cannot call this operation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"409":{"description":"Conflict: stale revision, changed retry, no capacity or expired hold","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"429":{"description":"Rate limited; wait details.retryAfterSeconds (also the retry-after header)","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"500":{"description":"Not completed; for a change, details.outcome says whether it may have happened","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}}}}},"/v1/resources":{"get":{"operationId":"listResources","summary":"List resources. Storefronts see active priced offerings only","x-workspace-roles":["reader","operator","storefront"],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"tenantId":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"revision":{"type":"integer","minimum":1,"maximum":9007199254740991},"name":{"type":"string","minLength":1,"maxLength":120},"kind":{"type":"string","minLength":1,"maxLength":60},"capacity":{"type":"integer","minimum":1,"maximum":1000000},"unitCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":2147483647},{"type":"null"}]},"archived":{"type":"boolean"},"bufferBeforeMinutes":{"type":"integer","minimum":0,"maximum":10080},"bufferAfterMinutes":{"type":"integer","minimum":0,"maximum":10080}},"required":["id","tenantId","revision","name","kind","capacity","unitCents","archived","bufferBeforeMinutes","bufferAfterMinutes"],"additionalProperties":false}}}}},"400":{"description":"Invalid input; details.field names the problem","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"401":{"description":"Missing, unknown, expired or turned-off key","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"403":{"description":"The key's role cannot call this operation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"409":{"description":"Conflict: stale revision, changed retry, no capacity or expired hold","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"429":{"description":"Rate limited; wait details.retryAfterSeconds (also the retry-after header)","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"500":{"description":"Not completed; for a change, details.outcome says whether it may have happened","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}}}},"post":{"operationId":"createResource","summary":"Create a resource with optional USD unit price","x-workspace-roles":["operator"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"name":{"type":"string","minLength":1,"maxLength":120},"kind":{"type":"string","minLength":1,"maxLength":60},"capacity":{"type":"integer","minimum":1,"maximum":1000000},"unitCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":2147483647},{"type":"null"}]},"archived":{"type":"boolean"},"bufferBeforeMinutes":{"type":"integer","minimum":0,"maximum":10080},"bufferAfterMinutes":{"type":"integer","minimum":0,"maximum":10080}},"required":["requestId","name","kind","capacity"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"value":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"tenantId":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"revision":{"type":"integer","minimum":1,"maximum":9007199254740991},"name":{"type":"string","minLength":1,"maxLength":120},"kind":{"type":"string","minLength":1,"maxLength":60},"capacity":{"type":"integer","minimum":1,"maximum":1000000},"unitCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":2147483647},{"type":"null"}]},"archived":{"type":"boolean"},"bufferBeforeMinutes":{"type":"integer","minimum":0,"maximum":10080},"bufferAfterMinutes":{"type":"integer","minimum":0,"maximum":10080}},"required":["id","tenantId","revision","name","kind","capacity","unitCents","archived","bufferBeforeMinutes","bufferAfterMinutes"],"additionalProperties":false},"replayed":{"type":"boolean"}},"required":["value","replayed"],"additionalProperties":false}}}},"400":{"description":"Invalid input; details.field names the problem","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"401":{"description":"Missing, unknown, expired or turned-off key","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"403":{"description":"The key's role cannot call this operation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"409":{"description":"Conflict: stale revision, changed retry, no capacity or expired hold","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"429":{"description":"Rate limited; wait details.retryAfterSeconds (also the retry-after header)","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"500":{"description":"Not completed; for a change, details.outcome says whether it may have happened","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}}}}},"/v1/resources/{id}":{"patch":{"operationId":"updateResource","summary":"Revise resource terms with optimistic concurrency","x-workspace-roles":["operator"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"name":{"type":"string","minLength":1,"maxLength":120},"kind":{"type":"string","minLength":1,"maxLength":60},"capacity":{"type":"integer","minimum":1,"maximum":1000000},"unitCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":2147483647},{"type":"null"}]},"archived":{"type":"boolean"},"bufferBeforeMinutes":{"type":"integer","minimum":0,"maximum":10080},"bufferAfterMinutes":{"type":"integer","minimum":0,"maximum":10080},"revision":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["requestId","name","kind","capacity","revision"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"value":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"tenantId":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"revision":{"type":"integer","minimum":1,"maximum":9007199254740991},"name":{"type":"string","minLength":1,"maxLength":120},"kind":{"type":"string","minLength":1,"maxLength":60},"capacity":{"type":"integer","minimum":1,"maximum":1000000},"unitCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":2147483647},{"type":"null"}]},"archived":{"type":"boolean"},"bufferBeforeMinutes":{"type":"integer","minimum":0,"maximum":10080},"bufferAfterMinutes":{"type":"integer","minimum":0,"maximum":10080}},"required":["id","tenantId","revision","name","kind","capacity","unitCents","archived","bufferBeforeMinutes","bufferAfterMinutes"],"additionalProperties":false},"replayed":{"type":"boolean"}},"required":["value","replayed"],"additionalProperties":false}}}},"400":{"description":"Invalid input; details.field names the problem","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"401":{"description":"Missing, unknown, expired or turned-off key","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"403":{"description":"The key's role cannot call this operation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"409":{"description":"Conflict: stale revision, changed retry, no capacity or expired hold","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"429":{"description":"Rate limited; wait details.retryAfterSeconds (also the retry-after header)","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"500":{"description":"Not completed; for a change, details.outcome says whether it may have happened","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}}}}},"/v1/availability":{"post":{"operationId":"availability","summary":"Check available capacity for an exact future interval","x-workspace-roles":["reader","operator","storefront"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"startsAt":{"type":"string","pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\\.[0-9]{3}Z$"},"endsAt":{"type":"string","pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\\.[0-9]{3}Z$"},"allocations":{"type":"array","items":{"type":"object","properties":{"resourceId":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"quantity":{"type":"integer","minimum":1,"maximum":1000000}},"required":["resourceId","quantity"],"additionalProperties":false},"minItems":1,"maxItems":50}},"required":["startsAt","endsAt","allocations"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"startsAt":{"type":"string","pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\\.[0-9]{3}Z$"},"endsAt":{"type":"string","pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\\.[0-9]{3}Z$"},"allocations":{"type":"array","items":{"type":"object","properties":{"resourceId":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"quantity":{"type":"integer","minimum":1,"maximum":1000000},"startsAt":{"type":"string","pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\\.[0-9]{3}Z$"},"endsAt":{"type":"string","pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\\.[0-9]{3}Z$"},"resourceName":{"type":"string","minLength":1,"maxLength":120},"resourceKind":{"type":"string","minLength":1,"maxLength":60}},"required":["resourceId","quantity","startsAt","endsAt","resourceName","resourceKind"],"additionalProperties":false}}},"required":["startsAt","endsAt","allocations"],"additionalProperties":false}}}},"400":{"description":"Invalid input; details.field names the problem","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"401":{"description":"Missing, unknown, expired or turned-off key","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"403":{"description":"The key's role cannot call this operation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"409":{"description":"Conflict: stale revision, changed retry, no capacity or expired hold","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"429":{"description":"Rate limited; wait details.retryAfterSeconds (also the retry-after header)","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"500":{"description":"Not completed; for a change, details.outcome says whether it may have happened","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}}}}},"/v1/reservations":{"get":{"operationId":"listReservations","summary":"List reservations including effective hold expiry","x-workspace-roles":["reader","operator"],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"startsAt":{"type":"string","pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\\.[0-9]{3}Z$"},"endsAt":{"type":"string","pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\\.[0-9]{3}Z$"},"allocations":{"type":"array","items":{"type":"object","properties":{"resourceId":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"quantity":{"type":"integer","minimum":1,"maximum":1000000},"startsAt":{"type":"string","pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\\.[0-9]{3}Z$"},"endsAt":{"type":"string","pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\\.[0-9]{3}Z$"},"resourceName":{"type":"string","minLength":1,"maxLength":120},"resourceKind":{"type":"string","minLength":1,"maxLength":60}},"required":["resourceId","quantity","startsAt","endsAt","resourceName","resourceKind"],"additionalProperties":false}},"id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"tenantId":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"revision":{"type":"integer","minimum":1,"maximum":9007199254740991},"customerLabel":{"type":"string","minLength":1,"maxLength":120},"expiresAt":{"type":"string","pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\\.[0-9]{3}Z$"},"status":{"enum":["held","confirmed","cancelled","expired","requested","pending","completed"]},"events":{"type":"array","items":{"type":"object","properties":{"action":{"type":"string","minLength":1,"maxLength":120},"actorId":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"requestId":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"at":{"type":"string","pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\\.[0-9]{3}Z$"}},"required":["action","actorId","requestId","at"],"additionalProperties":false}}},"required":["startsAt","endsAt","allocations","id","tenantId","revision","customerLabel","expiresAt","status","events"],"additionalProperties":false}}}}},"400":{"description":"Invalid input; details.field names the problem","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"401":{"description":"Missing, unknown, expired or turned-off key","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"403":{"description":"The key's role cannot call this operation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"409":{"description":"Conflict: stale revision, changed retry, no capacity or expired hold","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"429":{"description":"Rate limited; wait details.retryAfterSeconds (also the retry-after header)","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"500":{"description":"Not completed; for a change, details.outcome says whether it may have happened","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}}}}},"/v1/reservations/hold":{"post":{"operationId":"hold","summary":"Hold capacity for a bounded period","x-workspace-roles":["operator"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"customerLabel":{"type":"string","minLength":1,"maxLength":120},"startsAt":{"type":"string","pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\\.[0-9]{3}Z$"},"endsAt":{"type":"string","pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\\.[0-9]{3}Z$"},"allocations":{"type":"array","items":{"type":"object","properties":{"resourceId":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"quantity":{"type":"integer","minimum":1,"maximum":1000000}},"required":["resourceId","quantity"],"additionalProperties":false},"minItems":1,"maxItems":50},"holdMinutes":{"type":"integer","minimum":1,"maximum":1440}},"required":["requestId","customerLabel","startsAt","endsAt","allocations","holdMinutes"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"value":{"type":"object","properties":{"startsAt":{"type":"string","pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\\.[0-9]{3}Z$"},"endsAt":{"type":"string","pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\\.[0-9]{3}Z$"},"allocations":{"type":"array","items":{"type":"object","properties":{"resourceId":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"quantity":{"type":"integer","minimum":1,"maximum":1000000},"startsAt":{"type":"string","pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\\.[0-9]{3}Z$"},"endsAt":{"type":"string","pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\\.[0-9]{3}Z$"},"resourceName":{"type":"string","minLength":1,"maxLength":120},"resourceKind":{"type":"string","minLength":1,"maxLength":60}},"required":["resourceId","quantity","startsAt","endsAt","resourceName","resourceKind"],"additionalProperties":false}},"id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"tenantId":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"revision":{"type":"integer","minimum":1,"maximum":9007199254740991},"customerLabel":{"type":"string","minLength":1,"maxLength":120},"expiresAt":{"type":"string","pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\\.[0-9]{3}Z$"},"status":{"enum":["held","confirmed","cancelled","expired","requested","pending","completed"]},"events":{"type":"array","items":{"type":"object","properties":{"action":{"type":"string","minLength":1,"maxLength":120},"actorId":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"requestId":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"at":{"type":"string","pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\\.[0-9]{3}Z$"}},"required":["action","actorId","requestId","at"],"additionalProperties":false}}},"required":["startsAt","endsAt","allocations","id","tenantId","revision","customerLabel","expiresAt","status","events"],"additionalProperties":false},"replayed":{"type":"boolean"}},"required":["value","replayed"],"additionalProperties":false}}}},"400":{"description":"Invalid input; details.field names the problem","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"401":{"description":"Missing, unknown, expired or turned-off key","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"403":{"description":"The key's role cannot call this operation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"409":{"description":"Conflict: stale revision, changed retry, no capacity or expired hold","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"429":{"description":"Rate limited; wait details.retryAfterSeconds (also the retry-after header)","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"500":{"description":"Not completed; for a change, details.outcome says whether it may have happened","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}}}}},"/v1/reservations/{id}/confirm":{"post":{"operationId":"confirm","summary":"confirm an independent reservation","x-workspace-roles":["operator"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"revision":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["requestId","revision"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"value":{"type":"object","properties":{"startsAt":{"type":"string","pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\\.[0-9]{3}Z$"},"endsAt":{"type":"string","pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\\.[0-9]{3}Z$"},"allocations":{"type":"array","items":{"type":"object","properties":{"resourceId":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"quantity":{"type":"integer","minimum":1,"maximum":1000000},"startsAt":{"type":"string","pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\\.[0-9]{3}Z$"},"endsAt":{"type":"string","pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\\.[0-9]{3}Z$"},"resourceName":{"type":"string","minLength":1,"maxLength":120},"resourceKind":{"type":"string","minLength":1,"maxLength":60}},"required":["resourceId","quantity","startsAt","endsAt","resourceName","resourceKind"],"additionalProperties":false}},"id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"tenantId":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"revision":{"type":"integer","minimum":1,"maximum":9007199254740991},"customerLabel":{"type":"string","minLength":1,"maxLength":120},"expiresAt":{"type":"string","pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\\.[0-9]{3}Z$"},"status":{"enum":["held","confirmed","cancelled","expired","requested","pending","completed"]},"events":{"type":"array","items":{"type":"object","properties":{"action":{"type":"string","minLength":1,"maxLength":120},"actorId":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"requestId":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"at":{"type":"string","pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\\.[0-9]{3}Z$"}},"required":["action","actorId","requestId","at"],"additionalProperties":false}}},"required":["startsAt","endsAt","allocations","id","tenantId","revision","customerLabel","expiresAt","status","events"],"additionalProperties":false},"replayed":{"type":"boolean"}},"required":["value","replayed"],"additionalProperties":false}}}},"400":{"description":"Invalid input; details.field names the problem","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"401":{"description":"Missing, unknown, expired or turned-off key","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"403":{"description":"The key's role cannot call this operation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"409":{"description":"Conflict: stale revision, changed retry, no capacity or expired hold","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"429":{"description":"Rate limited; wait details.retryAfterSeconds (also the retry-after header)","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"500":{"description":"Not completed; for a change, details.outcome says whether it may have happened","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}}}}},"/v1/reservations/{id}/cancel":{"post":{"operationId":"cancel","summary":"cancel an independent reservation","x-workspace-roles":["operator"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"revision":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["requestId","revision"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"value":{"type":"object","properties":{"startsAt":{"type":"string","pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\\.[0-9]{3}Z$"},"endsAt":{"type":"string","pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\\.[0-9]{3}Z$"},"allocations":{"type":"array","items":{"type":"object","properties":{"resourceId":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"quantity":{"type":"integer","minimum":1,"maximum":1000000},"startsAt":{"type":"string","pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\\.[0-9]{3}Z$"},"endsAt":{"type":"string","pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\\.[0-9]{3}Z$"},"resourceName":{"type":"string","minLength":1,"maxLength":120},"resourceKind":{"type":"string","minLength":1,"maxLength":60}},"required":["resourceId","quantity","startsAt","endsAt","resourceName","resourceKind"],"additionalProperties":false}},"id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"tenantId":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"revision":{"type":"integer","minimum":1,"maximum":9007199254740991},"customerLabel":{"type":"string","minLength":1,"maxLength":120},"expiresAt":{"type":"string","pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\\.[0-9]{3}Z$"},"status":{"enum":["held","confirmed","cancelled","expired","requested","pending","completed"]},"events":{"type":"array","items":{"type":"object","properties":{"action":{"type":"string","minLength":1,"maxLength":120},"actorId":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"requestId":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"at":{"type":"string","pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\\.[0-9]{3}Z$"}},"required":["action","actorId","requestId","at"],"additionalProperties":false}}},"required":["startsAt","endsAt","allocations","id","tenantId","revision","customerLabel","expiresAt","status","events"],"additionalProperties":false},"replayed":{"type":"boolean"}},"required":["value","replayed"],"additionalProperties":false}}}},"400":{"description":"Invalid input; details.field names the problem","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"401":{"description":"Missing, unknown, expired or turned-off key","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"403":{"description":"The key's role cannot call this operation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"409":{"description":"Conflict: stale revision, changed retry, no capacity or expired hold","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"429":{"description":"Rate limited; wait details.retryAfterSeconds (also the retry-after header)","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"500":{"description":"Not completed; for a change, details.outcome says whether it may have happened","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}}}}},"/v1/orders":{"get":{"operationId":"listOrders","summary":"List orders","x-workspace-roles":["reader","operator"],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"customerId":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"reservationId":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"status":{"enum":["awaiting_payment","payment_expired","payment_review","placed","ready","fulfilled","cancelled"]},"revision":{"type":"integer","minimum":1,"maximum":9007199254740991},"createdAt":{"type":"string","pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\\.[0-9]{3}Z$"},"startsAt":{"type":"string","pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\\.[0-9]{3}Z$"},"endsAt":{"type":"string","pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\\.[0-9]{3}Z$"},"lines":{"type":"array","items":{"type":"object","properties":{"resourceId":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"name":{"type":"string","minLength":1,"maxLength":120},"quantity":{"type":"integer","minimum":1,"maximum":1000000},"unitCents":{"type":"integer","minimum":0,"maximum":2147483647}},"required":["resourceId","name","quantity","unitCents"],"additionalProperties":false}},"totalCents":{"type":"integer","minimum":0,"maximum":9007199254740991},"currency":{"const":"USD"},"requiredCents":{"type":"integer","minimum":0,"maximum":2147483647},"holdExpiresAt":{"type":"string","pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\\.[0-9]{3}Z$"}},"required":["id","customerId","reservationId","status","revision","createdAt","startsAt","endsAt","lines","totalCents","currency"],"additionalProperties":false}}}}},"400":{"description":"Invalid input; details.field names the problem","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"401":{"description":"Missing, unknown, expired or turned-off key","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"403":{"description":"The key's role cannot call this operation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"409":{"description":"Conflict: stale revision, changed retry, no capacity or expired hold","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"429":{"description":"Rate limited; wait details.retryAfterSeconds (also the retry-after header)","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"500":{"description":"Not completed; for a change, details.outcome says whether it may have happened","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}}}},"post":{"operationId":"createOrder","summary":"Atomically reserve capacity and snapshot prices. Connected merchants gate confirmation on payment","x-workspace-roles":["operator","storefront"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"startsAt":{"type":"string","pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\\.[0-9]{3}Z$"},"endsAt":{"type":"string","pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\\.[0-9]{3}Z$"},"customer":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"email":{"type":"string","minLength":1,"maxLength":254}},"required":["name","email"],"additionalProperties":false},"lines":{"type":"array","items":{"type":"object","properties":{"resourceId":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"quantity":{"type":"integer","minimum":1,"maximum":1000000},"expectedUnitCents":{"type":"integer","minimum":0,"maximum":2147483647}},"required":["resourceId","quantity","expectedUnitCents"],"additionalProperties":false},"minItems":1,"maxItems":50}},"required":["requestId","startsAt","endsAt","customer","lines"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"value":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"customerId":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"reservationId":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"status":{"enum":["awaiting_payment","payment_expired","payment_review","placed","ready","fulfilled","cancelled"]},"revision":{"type":"integer","minimum":1,"maximum":9007199254740991},"createdAt":{"type":"string","pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\\.[0-9]{3}Z$"},"startsAt":{"type":"string","pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\\.[0-9]{3}Z$"},"endsAt":{"type":"string","pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\\.[0-9]{3}Z$"},"lines":{"type":"array","items":{"type":"object","properties":{"resourceId":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"name":{"type":"string","minLength":1,"maxLength":120},"quantity":{"type":"integer","minimum":1,"maximum":1000000},"unitCents":{"type":"integer","minimum":0,"maximum":2147483647}},"required":["resourceId","name","quantity","unitCents"],"additionalProperties":false}},"totalCents":{"type":"integer","minimum":0,"maximum":9007199254740991},"currency":{"const":"USD"},"requiredCents":{"type":"integer","minimum":0,"maximum":2147483647},"holdExpiresAt":{"type":"string","pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\\.[0-9]{3}Z$"}},"required":["id","customerId","reservationId","status","revision","createdAt","startsAt","endsAt","lines","totalCents","currency"],"additionalProperties":false},"replayed":{"type":"boolean"}},"required":["value","replayed"],"additionalProperties":false}}}},"400":{"description":"Invalid input; details.field names the problem","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"401":{"description":"Missing, unknown, expired or turned-off key","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"403":{"description":"The key's role cannot call this operation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"409":{"description":"Conflict: stale revision, changed retry, no capacity or expired hold","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"429":{"description":"Rate limited; wait details.retryAfterSeconds (also the retry-after header)","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"500":{"description":"Not completed; for a change, details.outcome says whether it may have happened","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}}}}},"/v1/orders/{id}":{"get":{"operationId":"getOrder","summary":"Read one order by its ID","x-workspace-roles":["reader","operator","storefront"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"customerId":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"reservationId":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"status":{"enum":["awaiting_payment","payment_expired","payment_review","placed","ready","fulfilled","cancelled"]},"revision":{"type":"integer","minimum":1,"maximum":9007199254740991},"createdAt":{"type":"string","pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\\.[0-9]{3}Z$"},"startsAt":{"type":"string","pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\\.[0-9]{3}Z$"},"endsAt":{"type":"string","pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\\.[0-9]{3}Z$"},"lines":{"type":"array","items":{"type":"object","properties":{"resourceId":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"name":{"type":"string","minLength":1,"maxLength":120},"quantity":{"type":"integer","minimum":1,"maximum":1000000},"unitCents":{"type":"integer","minimum":0,"maximum":2147483647}},"required":["resourceId","name","quantity","unitCents"],"additionalProperties":false}},"totalCents":{"type":"integer","minimum":0,"maximum":9007199254740991},"currency":{"const":"USD"},"requiredCents":{"type":"integer","minimum":0,"maximum":2147483647},"holdExpiresAt":{"type":"string","pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\\.[0-9]{3}Z$"}},"required":["id","customerId","reservationId","status","revision","createdAt","startsAt","endsAt","lines","totalCents","currency"],"additionalProperties":false}}}},"400":{"description":"Invalid input; details.field names the problem","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"401":{"description":"Missing, unknown, expired or turned-off key","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"403":{"description":"The key's role cannot call this operation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"409":{"description":"Conflict: stale revision, changed retry, no capacity or expired hold","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"429":{"description":"Rate limited; wait details.retryAfterSeconds (also the retry-after header)","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"500":{"description":"Not completed; for a change, details.outcome says whether it may have happened","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}}}},"patch":{"operationId":"updateOrder","summary":"Advance placed to ready to fulfilled, or cancel an open order","x-workspace-roles":["operator"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"revision":{"type":"integer","minimum":1,"maximum":9007199254740991},"status":{"enum":["awaiting_payment","payment_expired","payment_review","placed","ready","fulfilled","cancelled"]}},"required":["requestId","revision","status"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"value":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"customerId":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"reservationId":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"status":{"enum":["awaiting_payment","payment_expired","payment_review","placed","ready","fulfilled","cancelled"]},"revision":{"type":"integer","minimum":1,"maximum":9007199254740991},"createdAt":{"type":"string","pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\\.[0-9]{3}Z$"},"startsAt":{"type":"string","pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\\.[0-9]{3}Z$"},"endsAt":{"type":"string","pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\\.[0-9]{3}Z$"},"lines":{"type":"array","items":{"type":"object","properties":{"resourceId":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"name":{"type":"string","minLength":1,"maxLength":120},"quantity":{"type":"integer","minimum":1,"maximum":1000000},"unitCents":{"type":"integer","minimum":0,"maximum":2147483647}},"required":["resourceId","name","quantity","unitCents"],"additionalProperties":false}},"totalCents":{"type":"integer","minimum":0,"maximum":9007199254740991},"currency":{"const":"USD"},"requiredCents":{"type":"integer","minimum":0,"maximum":2147483647},"holdExpiresAt":{"type":"string","pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\\.[0-9]{3}Z$"}},"required":["id","customerId","reservationId","status","revision","createdAt","startsAt","endsAt","lines","totalCents","currency"],"additionalProperties":false},"replayed":{"type":"boolean"}},"required":["value","replayed"],"additionalProperties":false}}}},"400":{"description":"Invalid input; details.field names the problem","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"401":{"description":"Missing, unknown, expired or turned-off key","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"403":{"description":"The key's role cannot call this operation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"409":{"description":"Conflict: stale revision, changed retry, no capacity or expired hold","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"429":{"description":"Rate limited; wait details.retryAfterSeconds (also the retry-after header)","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"500":{"description":"Not completed; for a change, details.outcome says whether it may have happened","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}}}}},"/v1/payments":{"get":{"operationId":"listPayments","summary":"Read the workspace payment ledger including negative refund entries","x-workspace-roles":["reader","operator"],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"orderId":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"amountCents":{"type":"integer","minimum":-2147483647,"maximum":2147483647},"currency":{"const":"USD"},"method":{"enum":["manual","stripe"]},"recordedAt":{"type":"string","pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\\.[0-9]{3}Z$"},"checkoutId":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"}},"required":["id","orderId","amountCents","currency","method","recordedAt"],"additionalProperties":false}}}}},"400":{"description":"Invalid input; details.field names the problem","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"401":{"description":"Missing, unknown, expired or turned-off key","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"403":{"description":"The key's role cannot call this operation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"409":{"description":"Conflict: stale revision, changed retry, no capacity or expired hold","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"429":{"description":"Rate limited; wait details.retryAfterSeconds (also the retry-after header)","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"500":{"description":"Not completed; for a change, details.outcome says whether it may have happened","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}}}},"post":{"operationId":"recordPayment","summary":"Record a synthetic manual payment against an order balance","x-workspace-roles":["operator"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"orderId":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"amountCents":{"type":"integer","minimum":1,"maximum":2147483647}},"required":["requestId","orderId","amountCents"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"value":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"orderId":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"amountCents":{"type":"integer","minimum":-2147483647,"maximum":2147483647},"currency":{"const":"USD"},"method":{"enum":["manual","stripe"]},"recordedAt":{"type":"string","pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\\.[0-9]{3}Z$"},"checkoutId":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"}},"required":["id","orderId","amountCents","currency","method","recordedAt"],"additionalProperties":false},"replayed":{"type":"boolean"}},"required":["value","replayed"],"additionalProperties":false}}}},"400":{"description":"Invalid input; details.field names the problem","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"401":{"description":"Missing, unknown, expired or turned-off key","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"403":{"description":"The key's role cannot call this operation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"409":{"description":"Conflict: stale revision, changed retry, no capacity or expired hold","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"429":{"description":"Rate limited; wait details.retryAfterSeconds (also the retry-after header)","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"500":{"description":"Not completed; for a change, details.outcome says whether it may have happened","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}}}}},"/v1/custom-records":{"get":{"operationId":"listCustom","summary":"List custom records","x-workspace-roles":["reader","operator"],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"collection":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,63}$"},"data":{"type":"object","additionalProperties":true}},"required":["id","collection","data"],"additionalProperties":false}}}}},"400":{"description":"Invalid input; details.field names the problem","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"401":{"description":"Missing, unknown, expired or turned-off key","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"403":{"description":"The key's role cannot call this operation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"409":{"description":"Conflict: stale revision, changed retry, no capacity or expired hold","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"429":{"description":"Rate limited; wait details.retryAfterSeconds (also the retry-after header)","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"500":{"description":"Not completed; for a change, details.outcome says whether it may have happened","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}}}},"post":{"operationId":"createCustom","summary":"Append a business-specific JSON record","x-workspace-roles":["operator"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"collection":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,63}$"},"data":{"type":"object","additionalProperties":true}},"required":["requestId","collection","data"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"value":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"collection":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,63}$"},"data":{"type":"object","additionalProperties":true}},"required":["id","collection","data"],"additionalProperties":false},"replayed":{"type":"boolean"}},"required":["value","replayed"],"additionalProperties":false}}}},"400":{"description":"Invalid input; details.field names the problem","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"401":{"description":"Missing, unknown, expired or turned-off key","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"403":{"description":"The key's role cannot call this operation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"404":{"description":"Not found in this workspace","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"409":{"description":"Conflict: stale revision, changed retry, no capacity or expired hold","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"429":{"description":"Rate limited; wait details.retryAfterSeconds (also the retry-after header)","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}},"500":{"description":"Not completed; for a change, details.outcome says whether it may have happened","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","minLength":1,"maxLength":120},"message":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"outcome":{"enum":["rejected","read_failed","unconfirmed"]},"recovery":{"type":"string","minLength":1,"maxLength":500},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1,"maximum":86400},"field":{"type":"string","minLength":1,"maxLength":200}},"required":["outcome","recovery","retryable"],"additionalProperties":false}},"required":["error","message","details"],"additionalProperties":false}}}}}}}},"security":[{"workspaceKey":[]}],"components":{"securitySchemes":{"workspaceKey":{"type":"http","scheme":"bearer"}}}}