{"openapi":"3.0.3","info":{"title":"TheBridge integration API","version":"1.0.0","description":"A versioned API for another system to start and read cases, list and complete steps, read and propose changes to registers, and read the document register.\n\n**Authentication.** A company's TheBridge administrator creates a key on Admin → Integration API Keys and chooses its scopes and the role of its service member. The key is shown once: send it as `Authorization: Bearer tbk_…`. A revoked key answers 401 at once.\n\n**Who you are.** A key acts as its own service member of the company, with the role it was given. Everything it reads and does goes through the same rules as a person with that role: it sees only the cases it started, the steps open to it, and what its role lets it read. A confidential answer it may not read is the word \"Confidential\". The company is always the key's; nothing in a request can name another.\n\n**Limits.** 120 requests per minute per key per server (the service runs on two servers). Request bodies up to 256 KB. Case lists return the 100 most recently active. Every call is recorded in the company's audit log.\n\n**Stability.** Within v1 a field is only ever added. Idempotency: a start or a register proposal with an `idempotencyKey` you already sent returns the first result.\n\n**Scopes.** cases:read, cases:write, tasks:read, tasks:write, registers:read, registers:write, documents:read."},"servers":[{"url":"/"}],"components":{"securitySchemes":{"serviceKey":{"type":"http","scheme":"bearer","bearerFormat":"tbk_<key id>_<secret>","description":"A service key from the company's administrator."}},"schemas":{"Error":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","description":"A stable code, such as integration_api.key_invalid or process_studio.case_not_found."},"message":{"type":"string","description":"What happened, in words."}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"description":"Every refusal and failure has this shape."},"Case":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"processSlug":{"type":"string"},"title":{"type":"string"},"status":{"type":"string","description":"active, completed, cancelled or failed."},"definitionVersion":{"type":"integer"},"createdAt":{"type":"string","description":"An ISO 8601 date-time."},"updatedAt":{"type":"string","nullable":true,"description":"An ISO 8601 date-time."},"completedAt":{"type":"string","nullable":true,"description":"An ISO 8601 date-time."},"archived":{"type":"boolean"},"variables":{"type":"object","additionalProperties":{},"description":"The case values this key's member may read. A confidential answer it may not read is the word \"Confidential\"."}},"required":["id","processSlug","title","status","definitionVersion","createdAt","updatedAt","completedAt","archived","variables"],"additionalProperties":false},"CaseDetail":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"processSlug":{"type":"string"},"title":{"type":"string"},"status":{"type":"string","description":"active, completed, cancelled or failed."},"definitionVersion":{"type":"integer"},"createdAt":{"type":"string","description":"An ISO 8601 date-time."},"updatedAt":{"type":"string","nullable":true,"description":"An ISO 8601 date-time."},"completedAt":{"type":"string","nullable":true,"description":"An ISO 8601 date-time."},"archived":{"type":"boolean"},"variables":{"type":"object","additionalProperties":{},"description":"The case values this key's member may read. A confidential answer it may not read is the word \"Confidential\"."},"steps":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"nodeId":{"type":"string"},"title":{"type":"string"},"status":{"type":"string","description":"ready, in_progress, completed, cancelled …"},"kind":{"type":"string","description":"user (a person's step) or service_exception (a stopped automated step)."},"revision":{"type":"integer","description":"Send it back as expectedRevision to complete the step."},"assignedToYou":{"type":"boolean"},"response":{"type":"object","additionalProperties":{},"nullable":true,"description":"The step's answers, where this key's member may read them."}},"required":["id","nodeId","title","status","kind","revision","assignedToYou","response"],"additionalProperties":false}}},"required":["id","processSlug","title","status","definitionVersion","createdAt","updatedAt","completedAt","archived","variables","steps"],"additionalProperties":false},"Task":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"caseId":{"type":"string","format":"uuid"},"processSlug":{"type":"string","nullable":true},"caseTitle":{"type":"string","nullable":true},"title":{"type":"string"},"status":{"type":"string"},"kind":{"type":"string"},"revision":{"type":"integer"},"dueAt":{"type":"string","nullable":true,"description":"An ISO 8601 date-time."}},"required":["id","caseId","processSlug","caseTitle","title","status","kind","revision","dueAt"],"additionalProperties":false},"Document":{"type":"object","properties":{"kind":{"type":"string","enum":["planned","document"],"description":"A planned line on the register, or a document."},"documentId":{"type":"string","format":"uuid","nullable":true},"entryId":{"type":"string","format":"uuid","nullable":true},"number":{"type":"string","nullable":true},"title":{"type":"string"},"type":{"type":"string","nullable":true},"section":{"type":"string"},"stage":{"type":"string"},"status":{"type":"string","description":"The stage in the company's own words."},"owner":{"type":"string","nullable":true},"dueDate":{"type":"string","nullable":true}},"required":["kind","documentId","entryId","number","title","type","section","stage","status","owner","dueDate"],"additionalProperties":false}}},"security":[{"serviceKey":[]}],"paths":{"/api/v1/cases":{"get":{"operationId":"listCases","summary":"The cases this key's member may see","security":[{"serviceKey":[]}],"x-required-scope":"cases:read","description":"Needs the scope `cases:read`.","parameters":[{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["active","completed","cancelled","failed","stopped"],"description":"Only cases in this state. \"stopped\" is cancelled or failed."},"description":"Only cases in this state. \"stopped\" is cancelled or failed."},{"name":"includeArchived","in":"query","required":false,"schema":{"type":"string","enum":["true","false"],"description":"Archived cases are left out unless true."},"description":"Archived cases are left out unless true."}],"responses":{"200":{"description":"The cases, most recently active first.","content":{"application/json":{"schema":{"type":"object","properties":{"cases":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"processSlug":{"type":"string"},"title":{"type":"string"},"status":{"type":"string","description":"active, completed, cancelled or failed."},"definitionVersion":{"type":"integer"},"createdAt":{"type":"string","description":"An ISO 8601 date-time."},"updatedAt":{"type":"string","nullable":true,"description":"An ISO 8601 date-time."},"completedAt":{"type":"string","nullable":true,"description":"An ISO 8601 date-time."},"archived":{"type":"boolean"},"variables":{"type":"object","additionalProperties":{},"description":"The case values this key's member may read. A confidential answer it may not read is the word \"Confidential\"."}},"required":["id","processSlug","title","status","definitionVersion","createdAt","updatedAt","completedAt","archived","variables"],"additionalProperties":false}},"atPageLimit":{"type":"boolean","description":"True when there may be more cases than the 100 returned (the most recently active)."}},"required":["cases","atPageLimit"],"additionalProperties":false}}}},"400":{"description":"integration_api.invalid_request: the body or query does not match this contract; integration_api.invalid_json: the body is not JSON; or a product refusal of the request's shape.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","description":"A stable code, such as integration_api.key_invalid or process_studio.case_not_found."},"message":{"type":"string","description":"What happened, in words."}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"description":"Every refusal and failure has this shape."}}}},"401":{"description":"integration_api.key_missing, integration_api.key_invalid or integration_api.key_revoked.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","description":"A stable code, such as integration_api.key_invalid or process_studio.case_not_found."},"message":{"type":"string","description":"What happened, in words."}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"description":"Every refusal and failure has this shape."}}}},"403":{"description":"integration_api.not_enabled (the company has not switched the API on), integration_api.scope_required (the key lacks the scope), integration_api.membership_required (its service member holds no role), or a product refusal such as bridgeconnect.role_required or process_studio.task_assignee_required.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","description":"A stable code, such as integration_api.key_invalid or process_studio.case_not_found."},"message":{"type":"string","description":"What happened, in words."}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"description":"Every refusal and failure has this shape."}}}},"404":{"description":"Not found, or not one this key's member may see (the two are the same answer): process_studio.case_not_found, process_studio.task_not_found, dms.not_enabled, integration_api.not_found.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","description":"A stable code, such as integration_api.key_invalid or process_studio.case_not_found."},"message":{"type":"string","description":"What happened, in words."}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"description":"Every refusal and failure has this shape."}}}},"409":{"description":"A conflict: the step or case changed since it was read (process_studio.task_conflict), the case is archived or no longer active, or the register is not set up.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","description":"A stable code, such as integration_api.key_invalid or process_studio.case_not_found."},"message":{"type":"string","description":"What happened, in words."}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"description":"Every refusal and failure has this shape."}}}},"413":{"description":"integration_api.body_too_large: the body is larger than 256 KB.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","description":"A stable code, such as integration_api.key_invalid or process_studio.case_not_found."},"message":{"type":"string","description":"What happened, in words."}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"description":"Every refusal and failure has this shape."}}}},"429":{"description":"integration_api.rate_limited: more than 120 requests in a minute with one key, or 600 from one address, on one server (Retry-After: 60).","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","description":"A stable code, such as integration_api.key_invalid or process_studio.case_not_found."},"message":{"type":"string","description":"What happened, in words."}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"description":"Every refusal and failure has this shape."}}}},"500":{"description":"integration_api.request_failed.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","description":"A stable code, such as integration_api.key_invalid or process_studio.case_not_found."},"message":{"type":"string","description":"What happened, in words."}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"description":"Every refusal and failure has this shape."}}}}}}},"/api/v1/cases/{caseId}":{"get":{"operationId":"getCase","summary":"One case, as this key's member may read it","security":[{"serviceKey":[]}],"x-required-scope":"cases:read","description":"Needs the scope `cases:read`.","parameters":[{"name":"caseId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"The case and its steps.","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"processSlug":{"type":"string"},"title":{"type":"string"},"status":{"type":"string","description":"active, completed, cancelled or failed."},"definitionVersion":{"type":"integer"},"createdAt":{"type":"string","description":"An ISO 8601 date-time."},"updatedAt":{"type":"string","nullable":true,"description":"An ISO 8601 date-time."},"completedAt":{"type":"string","nullable":true,"description":"An ISO 8601 date-time."},"archived":{"type":"boolean"},"variables":{"type":"object","additionalProperties":{},"description":"The case values this key's member may read. A confidential answer it may not read is the word \"Confidential\"."},"steps":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"nodeId":{"type":"string"},"title":{"type":"string"},"status":{"type":"string","description":"ready, in_progress, completed, cancelled …"},"kind":{"type":"string","description":"user (a person's step) or service_exception (a stopped automated step)."},"revision":{"type":"integer","description":"Send it back as expectedRevision to complete the step."},"assignedToYou":{"type":"boolean"},"response":{"type":"object","additionalProperties":{},"nullable":true,"description":"The step's answers, where this key's member may read them."}},"required":["id","nodeId","title","status","kind","revision","assignedToYou","response"],"additionalProperties":false}}},"required":["id","processSlug","title","status","definitionVersion","createdAt","updatedAt","completedAt","archived","variables","steps"],"additionalProperties":false}}}},"400":{"description":"integration_api.invalid_request: the body or query does not match this contract; integration_api.invalid_json: the body is not JSON; or a product refusal of the request's shape.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","description":"A stable code, such as integration_api.key_invalid or process_studio.case_not_found."},"message":{"type":"string","description":"What happened, in words."}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"description":"Every refusal and failure has this shape."}}}},"401":{"description":"integration_api.key_missing, integration_api.key_invalid or integration_api.key_revoked.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","description":"A stable code, such as integration_api.key_invalid or process_studio.case_not_found."},"message":{"type":"string","description":"What happened, in words."}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"description":"Every refusal and failure has this shape."}}}},"403":{"description":"integration_api.not_enabled (the company has not switched the API on), integration_api.scope_required (the key lacks the scope), integration_api.membership_required (its service member holds no role), or a product refusal such as bridgeconnect.role_required or process_studio.task_assignee_required.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","description":"A stable code, such as integration_api.key_invalid or process_studio.case_not_found."},"message":{"type":"string","description":"What happened, in words."}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"description":"Every refusal and failure has this shape."}}}},"404":{"description":"Not found, or not one this key's member may see (the two are the same answer): process_studio.case_not_found, process_studio.task_not_found, dms.not_enabled, integration_api.not_found.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","description":"A stable code, such as integration_api.key_invalid or process_studio.case_not_found."},"message":{"type":"string","description":"What happened, in words."}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"description":"Every refusal and failure has this shape."}}}},"409":{"description":"A conflict: the step or case changed since it was read (process_studio.task_conflict), the case is archived or no longer active, or the register is not set up.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","description":"A stable code, such as integration_api.key_invalid or process_studio.case_not_found."},"message":{"type":"string","description":"What happened, in words."}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"description":"Every refusal and failure has this shape."}}}},"413":{"description":"integration_api.body_too_large: the body is larger than 256 KB.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","description":"A stable code, such as integration_api.key_invalid or process_studio.case_not_found."},"message":{"type":"string","description":"What happened, in words."}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"description":"Every refusal and failure has this shape."}}}},"429":{"description":"integration_api.rate_limited: more than 120 requests in a minute with one key, or 600 from one address, on one server (Retry-After: 60).","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","description":"A stable code, such as integration_api.key_invalid or process_studio.case_not_found."},"message":{"type":"string","description":"What happened, in words."}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"description":"Every refusal and failure has this shape."}}}},"500":{"description":"integration_api.request_failed.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","description":"A stable code, such as integration_api.key_invalid or process_studio.case_not_found."},"message":{"type":"string","description":"What happened, in words."}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"description":"Every refusal and failure has this shape."}}}}}}},"/api/v1/processes/{slug}/cases":{"post":{"operationId":"startCase","summary":"Start a case of a released process this key's member may start","security":[{"serviceKey":[]}],"x-required-scope":"cases:write","description":"Needs the scope `cases:write`.","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","pattern":"^[a-z][a-z0-9-]{1,119}$"},"description":"The process's slug."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":240},"variables":{"type":"object","additionalProperties":{},"default":{},"description":"The case's opening values, by variable key. Confidential and engine-kept keys are dropped."},"idempotencyKey":{"type":"string","minLength":8,"maxLength":200,"description":"Your own key for this start: the same key again returns the same case, never a second one."}},"required":["title","idempotencyKey"],"additionalProperties":false}}}},"responses":{"201":{"description":"The case started (or, for a key already used, the case it started).","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"processSlug":{"type":"string"},"title":{"type":"string"},"status":{"type":"string","description":"active, completed, cancelled or failed."},"definitionVersion":{"type":"integer"},"createdAt":{"type":"string","description":"An ISO 8601 date-time."},"updatedAt":{"type":"string","nullable":true,"description":"An ISO 8601 date-time."},"completedAt":{"type":"string","nullable":true,"description":"An ISO 8601 date-time."},"archived":{"type":"boolean"},"variables":{"type":"object","additionalProperties":{},"description":"The case values this key's member may read. A confidential answer it may not read is the word \"Confidential\"."},"steps":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"nodeId":{"type":"string"},"title":{"type":"string"},"status":{"type":"string","description":"ready, in_progress, completed, cancelled …"},"kind":{"type":"string","description":"user (a person's step) or service_exception (a stopped automated step)."},"revision":{"type":"integer","description":"Send it back as expectedRevision to complete the step."},"assignedToYou":{"type":"boolean"},"response":{"type":"object","additionalProperties":{},"nullable":true,"description":"The step's answers, where this key's member may read them."}},"required":["id","nodeId","title","status","kind","revision","assignedToYou","response"],"additionalProperties":false}}},"required":["id","processSlug","title","status","definitionVersion","createdAt","updatedAt","completedAt","archived","variables","steps"],"additionalProperties":false}}}},"400":{"description":"integration_api.invalid_request: the body or query does not match this contract; integration_api.invalid_json: the body is not JSON; or a product refusal of the request's shape.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","description":"A stable code, such as integration_api.key_invalid or process_studio.case_not_found."},"message":{"type":"string","description":"What happened, in words."}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"description":"Every refusal and failure has this shape."}}}},"401":{"description":"integration_api.key_missing, integration_api.key_invalid or integration_api.key_revoked.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","description":"A stable code, such as integration_api.key_invalid or process_studio.case_not_found."},"message":{"type":"string","description":"What happened, in words."}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"description":"Every refusal and failure has this shape."}}}},"403":{"description":"integration_api.not_enabled (the company has not switched the API on), integration_api.scope_required (the key lacks the scope), integration_api.membership_required (its service member holds no role), or a product refusal such as bridgeconnect.role_required or process_studio.task_assignee_required.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","description":"A stable code, such as integration_api.key_invalid or process_studio.case_not_found."},"message":{"type":"string","description":"What happened, in words."}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"description":"Every refusal and failure has this shape."}}}},"404":{"description":"Not found, or not one this key's member may see (the two are the same answer): process_studio.case_not_found, process_studio.task_not_found, dms.not_enabled, integration_api.not_found.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","description":"A stable code, such as integration_api.key_invalid or process_studio.case_not_found."},"message":{"type":"string","description":"What happened, in words."}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"description":"Every refusal and failure has this shape."}}}},"409":{"description":"A conflict: the step or case changed since it was read (process_studio.task_conflict), the case is archived or no longer active, or the register is not set up.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","description":"A stable code, such as integration_api.key_invalid or process_studio.case_not_found."},"message":{"type":"string","description":"What happened, in words."}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"description":"Every refusal and failure has this shape."}}}},"413":{"description":"integration_api.body_too_large: the body is larger than 256 KB.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","description":"A stable code, such as integration_api.key_invalid or process_studio.case_not_found."},"message":{"type":"string","description":"What happened, in words."}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"description":"Every refusal and failure has this shape."}}}},"429":{"description":"integration_api.rate_limited: more than 120 requests in a minute with one key, or 600 from one address, on one server (Retry-After: 60).","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","description":"A stable code, such as integration_api.key_invalid or process_studio.case_not_found."},"message":{"type":"string","description":"What happened, in words."}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"description":"Every refusal and failure has this shape."}}}},"500":{"description":"integration_api.request_failed.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","description":"A stable code, such as integration_api.key_invalid or process_studio.case_not_found."},"message":{"type":"string","description":"What happened, in words."}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"description":"Every refusal and failure has this shape."}}}}}}},"/api/v1/tasks":{"get":{"operationId":"listTasks","summary":"The steps open to this key's member","security":[{"serviceKey":[]}],"x-required-scope":"tasks:read","description":"Needs the scope `tasks:read`.","responses":{"200":{"description":"The open steps.","content":{"application/json":{"schema":{"type":"object","properties":{"tasks":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"caseId":{"type":"string","format":"uuid"},"processSlug":{"type":"string","nullable":true},"caseTitle":{"type":"string","nullable":true},"title":{"type":"string"},"status":{"type":"string"},"kind":{"type":"string"},"revision":{"type":"integer"},"dueAt":{"type":"string","nullable":true,"description":"An ISO 8601 date-time."}},"required":["id","caseId","processSlug","caseTitle","title","status","kind","revision","dueAt"],"additionalProperties":false}}},"required":["tasks"],"additionalProperties":false}}}},"400":{"description":"integration_api.invalid_request: the body or query does not match this contract; integration_api.invalid_json: the body is not JSON; or a product refusal of the request's shape.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","description":"A stable code, such as integration_api.key_invalid or process_studio.case_not_found."},"message":{"type":"string","description":"What happened, in words."}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"description":"Every refusal and failure has this shape."}}}},"401":{"description":"integration_api.key_missing, integration_api.key_invalid or integration_api.key_revoked.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","description":"A stable code, such as integration_api.key_invalid or process_studio.case_not_found."},"message":{"type":"string","description":"What happened, in words."}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"description":"Every refusal and failure has this shape."}}}},"403":{"description":"integration_api.not_enabled (the company has not switched the API on), integration_api.scope_required (the key lacks the scope), integration_api.membership_required (its service member holds no role), or a product refusal such as bridgeconnect.role_required or process_studio.task_assignee_required.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","description":"A stable code, such as integration_api.key_invalid or process_studio.case_not_found."},"message":{"type":"string","description":"What happened, in words."}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"description":"Every refusal and failure has this shape."}}}},"404":{"description":"Not found, or not one this key's member may see (the two are the same answer): process_studio.case_not_found, process_studio.task_not_found, dms.not_enabled, integration_api.not_found.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","description":"A stable code, such as integration_api.key_invalid or process_studio.case_not_found."},"message":{"type":"string","description":"What happened, in words."}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"description":"Every refusal and failure has this shape."}}}},"409":{"description":"A conflict: the step or case changed since it was read (process_studio.task_conflict), the case is archived or no longer active, or the register is not set up.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","description":"A stable code, such as integration_api.key_invalid or process_studio.case_not_found."},"message":{"type":"string","description":"What happened, in words."}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"description":"Every refusal and failure has this shape."}}}},"413":{"description":"integration_api.body_too_large: the body is larger than 256 KB.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","description":"A stable code, such as integration_api.key_invalid or process_studio.case_not_found."},"message":{"type":"string","description":"What happened, in words."}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"description":"Every refusal and failure has this shape."}}}},"429":{"description":"integration_api.rate_limited: more than 120 requests in a minute with one key, or 600 from one address, on one server (Retry-After: 60).","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","description":"A stable code, such as integration_api.key_invalid or process_studio.case_not_found."},"message":{"type":"string","description":"What happened, in words."}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"description":"Every refusal and failure has this shape."}}}},"500":{"description":"integration_api.request_failed.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","description":"A stable code, such as integration_api.key_invalid or process_studio.case_not_found."},"message":{"type":"string","description":"What happened, in words."}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"description":"Every refusal and failure has this shape."}}}}}}},"/api/v1/tasks/{taskId}/complete":{"post":{"operationId":"completeTask","summary":"Complete a step assigned to this key's member","security":[{"serviceKey":[]}],"x-required-scope":"tasks:write","description":"Needs the scope `tasks:write`.","parameters":[{"name":"taskId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"expectedRevision":{"type":"integer","minimum":1,"description":"The step's revision as last read: a step changed since is refused (409)."},"response":{"type":"object","additionalProperties":{},"default":{},"description":"The answers, by field key, as the step's form takes them."},"selectedEdgeId":{"type":"string","format":"uuid","nullable":true,"description":"Where the step goes next, when its form asks."},"selectedEdgeIds":{"type":"array","items":{"type":"string","format":"uuid"},"maxItems":100}},"required":["expectedRevision"],"additionalProperties":false}}}},"responses":{"200":{"description":"The case after the step.","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"processSlug":{"type":"string"},"title":{"type":"string"},"status":{"type":"string","description":"active, completed, cancelled or failed."},"definitionVersion":{"type":"integer"},"createdAt":{"type":"string","description":"An ISO 8601 date-time."},"updatedAt":{"type":"string","nullable":true,"description":"An ISO 8601 date-time."},"completedAt":{"type":"string","nullable":true,"description":"An ISO 8601 date-time."},"archived":{"type":"boolean"},"variables":{"type":"object","additionalProperties":{},"description":"The case values this key's member may read. A confidential answer it may not read is the word \"Confidential\"."},"steps":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"nodeId":{"type":"string"},"title":{"type":"string"},"status":{"type":"string","description":"ready, in_progress, completed, cancelled …"},"kind":{"type":"string","description":"user (a person's step) or service_exception (a stopped automated step)."},"revision":{"type":"integer","description":"Send it back as expectedRevision to complete the step."},"assignedToYou":{"type":"boolean"},"response":{"type":"object","additionalProperties":{},"nullable":true,"description":"The step's answers, where this key's member may read them."}},"required":["id","nodeId","title","status","kind","revision","assignedToYou","response"],"additionalProperties":false}}},"required":["id","processSlug","title","status","definitionVersion","createdAt","updatedAt","completedAt","archived","variables","steps"],"additionalProperties":false}}}},"400":{"description":"integration_api.invalid_request: the body or query does not match this contract; integration_api.invalid_json: the body is not JSON; or a product refusal of the request's shape.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","description":"A stable code, such as integration_api.key_invalid or process_studio.case_not_found."},"message":{"type":"string","description":"What happened, in words."}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"description":"Every refusal and failure has this shape."}}}},"401":{"description":"integration_api.key_missing, integration_api.key_invalid or integration_api.key_revoked.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","description":"A stable code, such as integration_api.key_invalid or process_studio.case_not_found."},"message":{"type":"string","description":"What happened, in words."}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"description":"Every refusal and failure has this shape."}}}},"403":{"description":"integration_api.not_enabled (the company has not switched the API on), integration_api.scope_required (the key lacks the scope), integration_api.membership_required (its service member holds no role), or a product refusal such as bridgeconnect.role_required or process_studio.task_assignee_required.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","description":"A stable code, such as integration_api.key_invalid or process_studio.case_not_found."},"message":{"type":"string","description":"What happened, in words."}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"description":"Every refusal and failure has this shape."}}}},"404":{"description":"Not found, or not one this key's member may see (the two are the same answer): process_studio.case_not_found, process_studio.task_not_found, dms.not_enabled, integration_api.not_found.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","description":"A stable code, such as integration_api.key_invalid or process_studio.case_not_found."},"message":{"type":"string","description":"What happened, in words."}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"description":"Every refusal and failure has this shape."}}}},"409":{"description":"A conflict: the step or case changed since it was read (process_studio.task_conflict), the case is archived or no longer active, or the register is not set up.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","description":"A stable code, such as integration_api.key_invalid or process_studio.case_not_found."},"message":{"type":"string","description":"What happened, in words."}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"description":"Every refusal and failure has this shape."}}}},"413":{"description":"integration_api.body_too_large: the body is larger than 256 KB.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","description":"A stable code, such as integration_api.key_invalid or process_studio.case_not_found."},"message":{"type":"string","description":"What happened, in words."}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"description":"Every refusal and failure has this shape."}}}},"429":{"description":"integration_api.rate_limited: more than 120 requests in a minute with one key, or 600 from one address, on one server (Retry-After: 60).","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","description":"A stable code, such as integration_api.key_invalid or process_studio.case_not_found."},"message":{"type":"string","description":"What happened, in words."}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"description":"Every refusal and failure has this shape."}}}},"500":{"description":"integration_api.request_failed.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","description":"A stable code, such as integration_api.key_invalid or process_studio.case_not_found."},"message":{"type":"string","description":"What happened, in words."}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"description":"Every refusal and failure has this shape."}}}}}}},"/api/v1/registers":{"get":{"operationId":"listRegisters","summary":"The company's registers","security":[{"serviceKey":[]}],"x-required-scope":"registers:read","description":"Needs the scope `registers:read`.","responses":{"200":{"description":"The registers.","content":{"application/json":{"schema":{"type":"object","properties":{"registers":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"name":{"type":"string"}},"required":["key","name"],"additionalProperties":false}}},"required":["registers"],"additionalProperties":false}}}},"400":{"description":"integration_api.invalid_request: the body or query does not match this contract; integration_api.invalid_json: the body is not JSON; or a product refusal of the request's shape.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","description":"A stable code, such as integration_api.key_invalid or process_studio.case_not_found."},"message":{"type":"string","description":"What happened, in words."}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"description":"Every refusal and failure has this shape."}}}},"401":{"description":"integration_api.key_missing, integration_api.key_invalid or integration_api.key_revoked.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","description":"A stable code, such as integration_api.key_invalid or process_studio.case_not_found."},"message":{"type":"string","description":"What happened, in words."}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"description":"Every refusal and failure has this shape."}}}},"403":{"description":"integration_api.not_enabled (the company has not switched the API on), integration_api.scope_required (the key lacks the scope), integration_api.membership_required (its service member holds no role), or a product refusal such as bridgeconnect.role_required or process_studio.task_assignee_required.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","description":"A stable code, such as integration_api.key_invalid or process_studio.case_not_found."},"message":{"type":"string","description":"What happened, in words."}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"description":"Every refusal and failure has this shape."}}}},"404":{"description":"Not found, or not one this key's member may see (the two are the same answer): process_studio.case_not_found, process_studio.task_not_found, dms.not_enabled, integration_api.not_found.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","description":"A stable code, such as integration_api.key_invalid or process_studio.case_not_found."},"message":{"type":"string","description":"What happened, in words."}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"description":"Every refusal and failure has this shape."}}}},"409":{"description":"A conflict: the step or case changed since it was read (process_studio.task_conflict), the case is archived or no longer active, or the register is not set up.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","description":"A stable code, such as integration_api.key_invalid or process_studio.case_not_found."},"message":{"type":"string","description":"What happened, in words."}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"description":"Every refusal and failure has this shape."}}}},"413":{"description":"integration_api.body_too_large: the body is larger than 256 KB.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","description":"A stable code, such as integration_api.key_invalid or process_studio.case_not_found."},"message":{"type":"string","description":"What happened, in words."}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"description":"Every refusal and failure has this shape."}}}},"429":{"description":"integration_api.rate_limited: more than 120 requests in a minute with one key, or 600 from one address, on one server (Retry-After: 60).","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","description":"A stable code, such as integration_api.key_invalid or process_studio.case_not_found."},"message":{"type":"string","description":"What happened, in words."}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"description":"Every refusal and failure has this shape."}}}},"500":{"description":"integration_api.request_failed.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","description":"A stable code, such as integration_api.key_invalid or process_studio.case_not_found."},"message":{"type":"string","description":"What happened, in words."}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"description":"Every refusal and failure has this shape."}}}}}}},"/api/v1/registers/{registerKey}":{"get":{"operationId":"getRegister","summary":"One register's rows","security":[{"serviceKey":[]}],"x-required-scope":"registers:read","description":"Needs the scope `registers:read`.","parameters":[{"name":"registerKey","in":"path","required":true,"schema":{"type":"string"},"description":"A register key from GET /api/v1/registers."},{"name":"search","in":"query","required":false,"schema":{"type":"string","maxLength":200}},{"name":"sort","in":"query","required":false,"schema":{"type":"string","maxLength":120,"description":"A column key: record.name (default), record.number, record.status, record.updated or a field key."},"description":"A column key: record.name (default), record.number, record.status, record.updated or a field key."},{"name":"direction","in":"query","required":false,"schema":{"type":"string","enum":["asc","desc"]}},{"name":"includeArchived","in":"query","required":false,"schema":{"type":"string","enum":["true","false"]}}],"responses":{"200":{"description":"The rows, in the view asked for.","content":{"application/json":{"schema":{"type":"object","properties":{"key":{"type":"string"},"name":{"type":"string"},"columns":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"}},"required":["key","label"],"additionalProperties":false}},"records":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string","nullable":true},"number":{"type":"string","nullable":true},"status":{"type":"string","nullable":true},"revision":{"type":"integer","nullable":true},"updatedAt":{"type":"string","nullable":true,"description":"An ISO 8601 date-time."},"values":{"type":"object","additionalProperties":{},"description":"The row's fields, by field key. A confidential answer this key's member may not read is \"Confidential\"."}},"required":["id","name","number","status","revision","updatedAt","values"],"additionalProperties":false}},"total":{"type":"integer"}},"required":["key","name","columns","records","total"],"additionalProperties":false}}}},"400":{"description":"integration_api.invalid_request: the body or query does not match this contract; integration_api.invalid_json: the body is not JSON; or a product refusal of the request's shape.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","description":"A stable code, such as integration_api.key_invalid or process_studio.case_not_found."},"message":{"type":"string","description":"What happened, in words."}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"description":"Every refusal and failure has this shape."}}}},"401":{"description":"integration_api.key_missing, integration_api.key_invalid or integration_api.key_revoked.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","description":"A stable code, such as integration_api.key_invalid or process_studio.case_not_found."},"message":{"type":"string","description":"What happened, in words."}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"description":"Every refusal and failure has this shape."}}}},"403":{"description":"integration_api.not_enabled (the company has not switched the API on), integration_api.scope_required (the key lacks the scope), integration_api.membership_required (its service member holds no role), or a product refusal such as bridgeconnect.role_required or process_studio.task_assignee_required.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","description":"A stable code, such as integration_api.key_invalid or process_studio.case_not_found."},"message":{"type":"string","description":"What happened, in words."}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"description":"Every refusal and failure has this shape."}}}},"404":{"description":"Not found, or not one this key's member may see (the two are the same answer): process_studio.case_not_found, process_studio.task_not_found, dms.not_enabled, integration_api.not_found.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","description":"A stable code, such as integration_api.key_invalid or process_studio.case_not_found."},"message":{"type":"string","description":"What happened, in words."}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"description":"Every refusal and failure has this shape."}}}},"409":{"description":"A conflict: the step or case changed since it was read (process_studio.task_conflict), the case is archived or no longer active, or the register is not set up.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","description":"A stable code, such as integration_api.key_invalid or process_studio.case_not_found."},"message":{"type":"string","description":"What happened, in words."}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"description":"Every refusal and failure has this shape."}}}},"413":{"description":"integration_api.body_too_large: the body is larger than 256 KB.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","description":"A stable code, such as integration_api.key_invalid or process_studio.case_not_found."},"message":{"type":"string","description":"What happened, in words."}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"description":"Every refusal and failure has this shape."}}}},"429":{"description":"integration_api.rate_limited: more than 120 requests in a minute with one key, or 600 from one address, on one server (Retry-After: 60).","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","description":"A stable code, such as integration_api.key_invalid or process_studio.case_not_found."},"message":{"type":"string","description":"What happened, in words."}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"description":"Every refusal and failure has this shape."}}}},"500":{"description":"integration_api.request_failed.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","description":"A stable code, such as integration_api.key_invalid or process_studio.case_not_found."},"message":{"type":"string","description":"What happened, in words."}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"description":"Every refusal and failure has this shape."}}}}}}},"/api/v1/registers/{registerKey}/proposals":{"post":{"operationId":"proposeRegisterChange","summary":"Propose a change to a register","security":[{"serviceKey":[]}],"x-required-scope":"registers:write","description":"Needs the scope `registers:write`.","parameters":[{"name":"registerKey","in":"path","required":true,"schema":{"type":"string"},"description":"A register key from GET /api/v1/registers."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"idempotencyKey":{"type":"string","minLength":8,"maxLength":200},"sourceRef":{"type":"string","minLength":1,"maxLength":1000,"description":"Your system's reference for what this change comes from."},"title":{"type":"string","maxLength":240},"content":{"type":"string","minLength":3,"maxLength":80000,"description":"The change, in words or as the record's fields: the register reads it into a proposal for its rows."}},"required":["idempotencyKey","sourceRef","content"],"additionalProperties":false}}}},"responses":{"201":{"description":"Applied.","content":{"application/json":{"schema":{"type":"object","properties":{"proposalId":{"type":"string","nullable":true},"status":{"type":"string","nullable":true,"description":"applied, or pending / conflict when the register's own review rule holds it for a person."},"autoApplied":{"type":"boolean"},"replayed":{"type":"boolean"}},"required":["proposalId","status","autoApplied","replayed"],"additionalProperties":false}}}},"202":{"description":"Held for a person by the register's own review rule.","content":{"application/json":{"schema":{"type":"object","properties":{"proposalId":{"type":"string","nullable":true},"status":{"type":"string","nullable":true,"description":"applied, or pending / conflict when the register's own review rule holds it for a person."},"autoApplied":{"type":"boolean"},"replayed":{"type":"boolean"}},"required":["proposalId","status","autoApplied","replayed"],"additionalProperties":false}}}},"400":{"description":"integration_api.invalid_request: the body or query does not match this contract; integration_api.invalid_json: the body is not JSON; or a product refusal of the request's shape.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","description":"A stable code, such as integration_api.key_invalid or process_studio.case_not_found."},"message":{"type":"string","description":"What happened, in words."}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"description":"Every refusal and failure has this shape."}}}},"401":{"description":"integration_api.key_missing, integration_api.key_invalid or integration_api.key_revoked.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","description":"A stable code, such as integration_api.key_invalid or process_studio.case_not_found."},"message":{"type":"string","description":"What happened, in words."}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"description":"Every refusal and failure has this shape."}}}},"403":{"description":"integration_api.not_enabled (the company has not switched the API on), integration_api.scope_required (the key lacks the scope), integration_api.membership_required (its service member holds no role), or a product refusal such as bridgeconnect.role_required or process_studio.task_assignee_required.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","description":"A stable code, such as integration_api.key_invalid or process_studio.case_not_found."},"message":{"type":"string","description":"What happened, in words."}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"description":"Every refusal and failure has this shape."}}}},"404":{"description":"Not found, or not one this key's member may see (the two are the same answer): process_studio.case_not_found, process_studio.task_not_found, dms.not_enabled, integration_api.not_found.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","description":"A stable code, such as integration_api.key_invalid or process_studio.case_not_found."},"message":{"type":"string","description":"What happened, in words."}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"description":"Every refusal and failure has this shape."}}}},"409":{"description":"A conflict: the step or case changed since it was read (process_studio.task_conflict), the case is archived or no longer active, or the register is not set up.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","description":"A stable code, such as integration_api.key_invalid or process_studio.case_not_found."},"message":{"type":"string","description":"What happened, in words."}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"description":"Every refusal and failure has this shape."}}}},"413":{"description":"integration_api.body_too_large: the body is larger than 256 KB.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","description":"A stable code, such as integration_api.key_invalid or process_studio.case_not_found."},"message":{"type":"string","description":"What happened, in words."}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"description":"Every refusal and failure has this shape."}}}},"429":{"description":"integration_api.rate_limited: more than 120 requests in a minute with one key, or 600 from one address, on one server (Retry-After: 60).","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","description":"A stable code, such as integration_api.key_invalid or process_studio.case_not_found."},"message":{"type":"string","description":"What happened, in words."}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"description":"Every refusal and failure has this shape."}}}},"500":{"description":"integration_api.request_failed.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","description":"A stable code, such as integration_api.key_invalid or process_studio.case_not_found."},"message":{"type":"string","description":"What happened, in words."}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"description":"Every refusal and failure has this shape."}}}}}}},"/api/v1/documents":{"get":{"operationId":"listDocuments","summary":"The document register, as this key's member may read it","security":[{"serviceKey":[]}],"x-required-scope":"documents:read","description":"Needs the scope `documents:read`.","responses":{"200":{"description":"Planned lines and documents.","content":{"application/json":{"schema":{"type":"object","properties":{"documents":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["planned","document"],"description":"A planned line on the register, or a document."},"documentId":{"type":"string","format":"uuid","nullable":true},"entryId":{"type":"string","format":"uuid","nullable":true},"number":{"type":"string","nullable":true},"title":{"type":"string"},"type":{"type":"string","nullable":true},"section":{"type":"string"},"stage":{"type":"string"},"status":{"type":"string","description":"The stage in the company's own words."},"owner":{"type":"string","nullable":true},"dueDate":{"type":"string","nullable":true}},"required":["kind","documentId","entryId","number","title","type","section","stage","status","owner","dueDate"],"additionalProperties":false}}},"required":["documents"],"additionalProperties":false}}}},"400":{"description":"integration_api.invalid_request: the body or query does not match this contract; integration_api.invalid_json: the body is not JSON; or a product refusal of the request's shape.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","description":"A stable code, such as integration_api.key_invalid or process_studio.case_not_found."},"message":{"type":"string","description":"What happened, in words."}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"description":"Every refusal and failure has this shape."}}}},"401":{"description":"integration_api.key_missing, integration_api.key_invalid or integration_api.key_revoked.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","description":"A stable code, such as integration_api.key_invalid or process_studio.case_not_found."},"message":{"type":"string","description":"What happened, in words."}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"description":"Every refusal and failure has this shape."}}}},"403":{"description":"integration_api.not_enabled (the company has not switched the API on), integration_api.scope_required (the key lacks the scope), integration_api.membership_required (its service member holds no role), or a product refusal such as bridgeconnect.role_required or process_studio.task_assignee_required.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","description":"A stable code, such as integration_api.key_invalid or process_studio.case_not_found."},"message":{"type":"string","description":"What happened, in words."}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"description":"Every refusal and failure has this shape."}}}},"404":{"description":"Not found, or not one this key's member may see (the two are the same answer): process_studio.case_not_found, process_studio.task_not_found, dms.not_enabled, integration_api.not_found.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","description":"A stable code, such as integration_api.key_invalid or process_studio.case_not_found."},"message":{"type":"string","description":"What happened, in words."}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"description":"Every refusal and failure has this shape."}}}},"409":{"description":"A conflict: the step or case changed since it was read (process_studio.task_conflict), the case is archived or no longer active, or the register is not set up.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","description":"A stable code, such as integration_api.key_invalid or process_studio.case_not_found."},"message":{"type":"string","description":"What happened, in words."}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"description":"Every refusal and failure has this shape."}}}},"413":{"description":"integration_api.body_too_large: the body is larger than 256 KB.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","description":"A stable code, such as integration_api.key_invalid or process_studio.case_not_found."},"message":{"type":"string","description":"What happened, in words."}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"description":"Every refusal and failure has this shape."}}}},"429":{"description":"integration_api.rate_limited: more than 120 requests in a minute with one key, or 600 from one address, on one server (Retry-After: 60).","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","description":"A stable code, such as integration_api.key_invalid or process_studio.case_not_found."},"message":{"type":"string","description":"What happened, in words."}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"description":"Every refusal and failure has this shape."}}}},"500":{"description":"integration_api.request_failed.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","description":"A stable code, such as integration_api.key_invalid or process_studio.case_not_found."},"message":{"type":"string","description":"What happened, in words."}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"description":"Every refusal and failure has this shape."}}}}}}},"/api/v1/openapi.json":{"get":{"operationId":"openApi","summary":"This document","security":[],"responses":{"200":{"description":"The OpenAPI document."}}}}}}