{"openapi":"3.1.0","info":{"title":"Dockt Public API","version":"0.1.0","description":"Dockt API for workforce and compliance verification workflows. Backend integrations authenticate with an API key or an M2M access token. Start by creating an assessment, upload one or more documents, then poll the returned Document id or receive a signed webhook before reading the decision. Workspace routes resolve ownership from the authenticated principal; never send worker documents directly from an untrusted browser.","contact":{"name":"Dockt support","email":"hello@dockt.com"}},"paths":{"/v1/documents":{"post":{"tags":["Documents"],"operationId":"Documents.createDocument","parameters":[{"name":"idempotency-key","in":"header","schema":{"type":"string","description":"Caller-generated retry key for duplicate-sensitive create and resend operations. Keys are scoped to the authenticated principal, method, and route and are retained for 24 hours.","title":"minLength(1)","minLength":1},"required":false,"description":"Caller-generated retry key for duplicate-sensitive create and resend operations. Keys are scoped to the authenticated principal, method, and route and are retained for 24 hours."}],"security":[{"bearerAuth":[]},{"sessionCookie":[]}],"responses":{"202":{"description":"Envelope for a single resource response.","content":{"application/json":{"schema":{"type":"object","required":["object","data"],"properties":{"object":{"type":"string","enum":["single"]},"data":{"$ref":"#/components/schemas/Document"}},"additionalProperties":false,"description":"Envelope for a single resource response."},"example":{"object":"single","data":{"object":"document","id":"doc_example1042","workspace_id":"wsp_example1042","assessment_id":null,"status":"uploaded","document_result":null,"filename":"passport.pdf","classified_as":null,"facts":{},"verifications":[],"enrichment":{"status":"pending","checks":[],"issues":[]},"credential_assertions":[],"issues":[],"fraud_signals":[],"findings":[],"uploaded_at":"2026-08-23T09:30:00Z","completed_at":null}}}}},"400":{"description":"The request did not match the expected schema","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/invalid-request","title":"Bad request","status":400,"detail":"The request did not match the expected schema.","instance":"req_example1042"}}}},"401":{"description":"Problem Details response for HTTP 401. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/missing-auth","title":"Unauthorized","status":401,"detail":"Send a valid bearer token or browser session.","instance":"req_example1042"}}}},"403":{"description":"Problem Details response for HTTP 403. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/forbidden","title":"Forbidden","status":403,"detail":"The authenticated principal does not have the required permission.","instance":"req_example1042"}}}},"404":{"description":"Problem Details response for HTTP 404. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/not-found","title":"Not found","status":404,"detail":"The requested resource was not found in the authenticated scope.","instance":"req_example1042"}}}},"409":{"description":"Problem Details response for HTTP 409. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/conflict","title":"Conflict","status":409,"detail":"The request conflicts with the current resource state.","instance":"req_example1042"}}}},"422":{"description":"Problem Details response for HTTP 422. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/validation","title":"Validation failed","status":422,"detail":"Correct the invalid fields and send the request again.","instance":"req_example1042","errors":{"issues":[{"path":["body","worker","nationality"],"message":"Expected a two-letter country code."}]}}}}},"429":{"description":"Problem Details response for HTTP 429. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/rate-limit","title":"Too many requests","status":429,"detail":"Wait for the Retry-After interval before retrying.","instance":"req_example1042"}}}},"500":{"description":"Problem Details response for HTTP 500. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/internal","title":"Internal server error","status":500,"detail":"Retry the request safely or contact Dockt support with the request ID.","instance":"req_example1042"}}}}},"description":"Uploads one standalone document for asynchronous document-intelligence processing.","summary":"Create document","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/UploadDocumentBody"}}},"required":true}},"get":{"tags":["Documents"],"operationId":"Documents.listDocuments","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":20,"example":20,"description":"Maximum number of resources to return. Defaults to 20 and cannot exceed 100."},"required":false,"description":"Maximum number of resources to return. Defaults to 20 and cannot exceed 100."},{"name":"cursor","in":"query","schema":{"type":"string","description":"Opaque next_cursor value returned by the previous page."},"required":false,"description":"Opaque next_cursor value returned by the previous page."},{"name":"status","in":"query","schema":{"$ref":"#/components/schemas/DocumentStatus"},"required":false},{"name":"assessment_id","in":"query","schema":{"$ref":"#/components/schemas/DocumentAssessmentId"},"required":false},{"name":"scope","in":"query","schema":{"type":"string","enum":["standalone"]},"required":false}],"security":[{"bearerAuth":[]},{"sessionCookie":[]}],"responses":{"200":{"description":"Envelope for a paginated collection response.","content":{"application/json":{"schema":{"type":"object","required":["object","data","has_more","next_cursor"],"properties":{"object":{"type":"string","enum":["list"]},"data":{"type":"array","items":{"$ref":"#/components/schemas/DocumentSummary"}},"has_more":{"type":"boolean"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}]}},"additionalProperties":false,"description":"Envelope for a paginated collection response."}}}},"400":{"description":"The request did not match the expected schema","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/invalid-request","title":"Bad request","status":400,"detail":"The request did not match the expected schema.","instance":"req_example1042"}}}},"401":{"description":"Problem Details response for HTTP 401. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/missing-auth","title":"Unauthorized","status":401,"detail":"Send a valid bearer token or browser session.","instance":"req_example1042"}}}},"403":{"description":"Problem Details response for HTTP 403. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/forbidden","title":"Forbidden","status":403,"detail":"The authenticated principal does not have the required permission.","instance":"req_example1042"}}}},"404":{"description":"Problem Details response for HTTP 404. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/not-found","title":"Not found","status":404,"detail":"The requested resource was not found in the authenticated scope.","instance":"req_example1042"}}}},"409":{"description":"Problem Details response for HTTP 409. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/conflict","title":"Conflict","status":409,"detail":"The request conflicts with the current resource state.","instance":"req_example1042"}}}},"422":{"description":"Problem Details response for HTTP 422. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/validation","title":"Validation failed","status":422,"detail":"Correct the invalid fields and send the request again.","instance":"req_example1042","errors":{"issues":[{"path":["body","worker","nationality"],"message":"Expected a two-letter country code."}]}}}}},"429":{"description":"Problem Details response for HTTP 429. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/rate-limit","title":"Too many requests","status":429,"detail":"Wait for the Retry-After interval before retrying.","instance":"req_example1042"}}}},"500":{"description":"Problem Details response for HTTP 500. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/internal","title":"Internal server error","status":500,"detail":"Retry the request safely or contact Dockt support with the request ID.","instance":"req_example1042"}}}}},"description":"Lists documents in the active workspace.","summary":"List documents"}},"/v1/documents/{documentId}":{"get":{"tags":["Documents"],"operationId":"Documents.getDocument","parameters":[{"name":"documentId","in":"path","schema":{"$ref":"#/components/schemas/DocumentResourceId"},"required":true}],"security":[{"bearerAuth":[]},{"sessionCookie":[]}],"responses":{"200":{"description":"Envelope for a single resource response.","content":{"application/json":{"schema":{"type":"object","required":["object","data"],"properties":{"object":{"type":"string","enum":["single"]},"data":{"$ref":"#/components/schemas/Document"}},"additionalProperties":false,"description":"Envelope for a single resource response."},"example":{"object":"single","data":{"object":"document","id":"doc_example1042","workspace_id":"wsp_example1042","assessment_id":null,"status":"completed","document_result":"valid","filename":"passport.pdf","classified_as":{"family":"identity","type":"passport_id","variant":null},"facts":{"holder_name":[{"value":"Amina Diallo","confidence":0.99}],"date_of_birth":[{"value":"1990-05-17","confidence":0.99}],"nationality":[{"value":"FR","confidence":0.98}],"valid_until":[{"value":"2031-05-16","confidence":0.97}]},"verifications":[],"enrichment":{"status":"completed","checks":[],"issues":[]},"credential_assertions":[],"issues":[],"fraud_signals":[],"findings":[],"uploaded_at":"2026-08-23T09:30:00Z","completed_at":"2026-08-23T09:30:18Z"}}}}},"400":{"description":"The request did not match the expected schema","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/invalid-request","title":"Bad request","status":400,"detail":"The request did not match the expected schema.","instance":"req_example1042"}}}},"401":{"description":"Problem Details response for HTTP 401. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/missing-auth","title":"Unauthorized","status":401,"detail":"Send a valid bearer token or browser session.","instance":"req_example1042"}}}},"403":{"description":"Problem Details response for HTTP 403. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/forbidden","title":"Forbidden","status":403,"detail":"The authenticated principal does not have the required permission.","instance":"req_example1042"}}}},"404":{"description":"Problem Details response for HTTP 404. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/not-found","title":"Not found","status":404,"detail":"The requested resource was not found in the authenticated scope.","instance":"req_example1042"}}}},"409":{"description":"Problem Details response for HTTP 409. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/conflict","title":"Conflict","status":409,"detail":"The request conflicts with the current resource state.","instance":"req_example1042"}}}},"422":{"description":"Problem Details response for HTTP 422. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/validation","title":"Validation failed","status":422,"detail":"Correct the invalid fields and send the request again.","instance":"req_example1042","errors":{"issues":[{"path":["body","worker","nationality"],"message":"Expected a two-letter country code."}]}}}}},"429":{"description":"Problem Details response for HTTP 429. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/rate-limit","title":"Too many requests","status":429,"detail":"Wait for the Retry-After interval before retrying.","instance":"req_example1042"}}}},"500":{"description":"Problem Details response for HTTP 500. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/internal","title":"Internal server error","status":500,"detail":"Retry the request safely or contact Dockt support with the request ID.","instance":"req_example1042"}}}}},"description":"Returns the current public document projection.","summary":"Get document"},"delete":{"tags":["Documents"],"operationId":"Documents.deleteDocument","parameters":[{"name":"documentId","in":"path","schema":{"$ref":"#/components/schemas/DocumentResourceId"},"required":true}],"security":[{"bearerAuth":[]},{"sessionCookie":[]}],"responses":{"200":{"description":"Envelope for a single resource response.","content":{"application/json":{"schema":{"type":"object","required":["object","data"],"properties":{"object":{"type":"string","enum":["single"]},"data":{"$ref":"#/components/schemas/DeletedDocument"}},"additionalProperties":false,"description":"Envelope for a single resource response."}}}},"400":{"description":"The request did not match the expected schema","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/invalid-request","title":"Bad request","status":400,"detail":"The request did not match the expected schema.","instance":"req_example1042"}}}},"401":{"description":"Problem Details response for HTTP 401. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/missing-auth","title":"Unauthorized","status":401,"detail":"Send a valid bearer token or browser session.","instance":"req_example1042"}}}},"403":{"description":"Problem Details response for HTTP 403. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/forbidden","title":"Forbidden","status":403,"detail":"The authenticated principal does not have the required permission.","instance":"req_example1042"}}}},"404":{"description":"Problem Details response for HTTP 404. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/not-found","title":"Not found","status":404,"detail":"The requested resource was not found in the authenticated scope.","instance":"req_example1042"}}}},"409":{"description":"Problem Details response for HTTP 409. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/conflict","title":"Conflict","status":409,"detail":"The request conflicts with the current resource state.","instance":"req_example1042"}}}},"422":{"description":"Problem Details response for HTTP 422. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/validation","title":"Validation failed","status":422,"detail":"Correct the invalid fields and send the request again.","instance":"req_example1042","errors":{"issues":[{"path":["body","worker","nationality"],"message":"Expected a two-letter country code."}]}}}}},"429":{"description":"Problem Details response for HTTP 429. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/rate-limit","title":"Too many requests","status":429,"detail":"Wait for the Retry-After interval before retrying.","instance":"req_example1042"}}}},"500":{"description":"Problem Details response for HTTP 500. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/internal","title":"Internal server error","status":500,"detail":"Retry the request safely or contact Dockt support with the request ID.","instance":"req_example1042"}}}}},"description":"Withdraws a document from the active workspace.","summary":"Delete document"}},"/v1/assessments":{"post":{"tags":["Assessments"],"operationId":"Assessments.createAssessment","parameters":[{"name":"idempotency-key","in":"header","schema":{"type":"string","description":"Caller-generated retry key for duplicate-sensitive create and resend operations. Keys are scoped to the authenticated principal, method, and route and are retained for 24 hours.","title":"minLength(1)","minLength":1},"required":false,"description":"Caller-generated retry key for duplicate-sensitive create and resend operations. Keys are scoped to the authenticated principal, method, and route and are retained for 24 hours."}],"security":[{"bearerAuth":[]},{"sessionCookie":[]}],"responses":{"201":{"description":"Envelope for a single resource response.","content":{"application/json":{"schema":{"type":"object","required":["object","data"],"properties":{"object":{"type":"string","enum":["single"]},"data":{"$ref":"#/components/schemas/Assessment"}},"additionalProperties":false,"description":"Envelope for a single resource response."},"example":{"object":"single","data":{"object":"assessment","id":"ast_example1042","workspace_id":"wsp_example1042","features_id":"feat_example1042","external_id":"worker-case-1042","external_profile":null,"resolved_job_profile_id":null,"status":"created","worker":{"first_name":"Amina","last_name":"Diallo","date_of_birth":"1990-05-17","nationality":"FR"},"context":[{"code":"employment.relationship","value":"posted_employee"},{"code":"employment.employer_country","value":"FR"}],"input_requests":[{"code":"project.is_construction","label":"Construction project","reason":"The applicable requirements depend on whether the work is construction work.","value_type":"boolean","options":[]}],"applied_packages":[{"code":"social_construction_be_v1","version":"v1"}],"requirements":[],"advisories":[],"documents":[],"review":{"review_required":false,"reason_codes":[]},"latest_decision":null,"created_at":"2026-08-23T09:30:00Z","updated_at":"2026-08-23T09:30:00Z"}}}}},"400":{"description":"The request did not match the expected schema","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/invalid-request","title":"Bad request","status":400,"detail":"The request did not match the expected schema.","instance":"req_example1042"}}}},"401":{"description":"Problem Details response for HTTP 401. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/missing-auth","title":"Unauthorized","status":401,"detail":"Send a valid bearer token or browser session.","instance":"req_example1042"}}}},"403":{"description":"Problem Details response for HTTP 403. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/forbidden","title":"Forbidden","status":403,"detail":"The authenticated principal does not have the required permission.","instance":"req_example1042"}}}},"404":{"description":"Problem Details response for HTTP 404. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/not-found","title":"Not found","status":404,"detail":"The requested resource was not found in the authenticated scope.","instance":"req_example1042"}}}},"409":{"description":"Problem Details response for HTTP 409. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/conflict","title":"Conflict","status":409,"detail":"The request conflicts with the current resource state.","instance":"req_example1042"}}}},"422":{"description":"Problem Details response for HTTP 422. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/validation","title":"Validation failed","status":422,"detail":"Correct the invalid fields and send the request again.","instance":"req_example1042","errors":{"issues":[{"path":["body","worker","nationality"],"message":"Expected a two-letter country code."}]}}}}},"429":{"description":"Problem Details response for HTTP 429. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/rate-limit","title":"Too many requests","status":429,"detail":"Wait for the Retry-After interval before retrying.","instance":"req_example1042"}}}},"500":{"description":"Problem Details response for HTTP 500. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/internal","title":"Internal server error","status":500,"detail":"Retry the request safely or contact Dockt support with the request ID.","instance":"req_example1042"}}}}},"description":"Creates a verification case for one worker in the active workspace and returns required evidence based on workspace Features.","summary":"Create assessment","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateAssessmentBody"},"example":{"external_id":"worker-case-1042","worker":{"first_name":"Amina","last_name":"Diallo","date_of_birth":"1990-05-17","nationality":"FR"},"context":[{"code":"employment.relationship","value":"posted_employee"},{"code":"employment.employer_country","value":"FR"}]}}},"required":true}},"get":{"tags":["Assessments"],"operationId":"Assessments.listAssessments","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":20,"example":20,"description":"Maximum number of resources to return. Defaults to 20 and cannot exceed 100."},"required":false,"description":"Maximum number of resources to return. Defaults to 20 and cannot exceed 100."},{"name":"cursor","in":"query","schema":{"type":"string","description":"Opaque next_cursor value returned by the previous page."},"required":false,"description":"Opaque next_cursor value returned by the previous page."},{"name":"status","in":"query","schema":{"$ref":"#/components/schemas/AssessmentStatus"},"required":false},{"name":"external_id","in":"query","schema":{"type":"string"},"required":false}],"security":[{"bearerAuth":[]},{"sessionCookie":[]}],"responses":{"200":{"description":"Envelope for a paginated collection response.","content":{"application/json":{"schema":{"type":"object","required":["object","data","has_more","next_cursor"],"properties":{"object":{"type":"string","enum":["list"]},"data":{"type":"array","items":{"$ref":"#/components/schemas/AssessmentSummary"}},"has_more":{"type":"boolean"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}]}},"additionalProperties":false,"description":"Envelope for a paginated collection response."}}}},"400":{"description":"The request did not match the expected schema","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/invalid-request","title":"Bad request","status":400,"detail":"The request did not match the expected schema.","instance":"req_example1042"}}}},"401":{"description":"Problem Details response for HTTP 401. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/missing-auth","title":"Unauthorized","status":401,"detail":"Send a valid bearer token or browser session.","instance":"req_example1042"}}}},"403":{"description":"Problem Details response for HTTP 403. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/forbidden","title":"Forbidden","status":403,"detail":"The authenticated principal does not have the required permission.","instance":"req_example1042"}}}},"404":{"description":"Problem Details response for HTTP 404. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/not-found","title":"Not found","status":404,"detail":"The requested resource was not found in the authenticated scope.","instance":"req_example1042"}}}},"409":{"description":"Problem Details response for HTTP 409. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/conflict","title":"Conflict","status":409,"detail":"The request conflicts with the current resource state.","instance":"req_example1042"}}}},"422":{"description":"Problem Details response for HTTP 422. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/validation","title":"Validation failed","status":422,"detail":"Correct the invalid fields and send the request again.","instance":"req_example1042","errors":{"issues":[{"path":["body","worker","nationality"],"message":"Expected a two-letter country code."}]}}}}},"429":{"description":"Problem Details response for HTTP 429. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/rate-limit","title":"Too many requests","status":429,"detail":"Wait for the Retry-After interval before retrying.","instance":"req_example1042"}}}},"500":{"description":"Problem Details response for HTTP 500. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/internal","title":"Internal server error","status":500,"detail":"Retry the request safely or contact Dockt support with the request ID.","instance":"req_example1042"}}}}},"description":"Lists assessments in the active workspace.","summary":"List assessments"}},"/v1/assessments/{assessmentId}":{"get":{"tags":["Assessments"],"operationId":"Assessments.getAssessment","parameters":[{"name":"assessmentId","in":"path","schema":{"$ref":"#/components/schemas/AssessmentResourceId"},"required":true}],"security":[{"bearerAuth":[]},{"sessionCookie":[]}],"responses":{"200":{"description":"Envelope for a single resource response.","content":{"application/json":{"schema":{"type":"object","required":["object","data"],"properties":{"object":{"type":"string","enum":["single"]},"data":{"$ref":"#/components/schemas/Assessment"}},"additionalProperties":false,"description":"Envelope for a single resource response."},"example":{"object":"single","data":{"object":"assessment","id":"ast_example1042","workspace_id":"wsp_example1042","features_id":"feat_example1042","external_id":"worker-case-1042","external_profile":null,"resolved_job_profile_id":null,"status":"assessed","worker":{"first_name":"Amina","last_name":"Diallo","date_of_birth":"1990-05-17","nationality":"FR"},"context":[{"code":"employment.relationship","value":"posted_employee"},{"code":"employment.employer_country","value":"FR"},{"code":"project.is_construction","value":true}],"input_requests":[],"applied_packages":[{"code":"social_construction_be_v1","version":"v1"}],"requirements":[{"code":"identity.worker","label":"Identity document","reason":"Confirm the identity of the worker being assessed.","status":"satisfied","required":true,"source_domain":"social","package":{"code":"social_construction_be_v1","version":"v1"},"accepted_evidence_types":["identity_document"],"supporting_document_ids":["doc_example1042"],"pending_document_ids":[],"review_document_ids":[],"invalid_document_ids":[]}],"advisories":[],"documents":[{"object":"document","id":"doc_example1042","status":"completed","document_result":"valid","match_status":"valid","filename":"passport.pdf","classified_as":{"family":"identity","type":"passport_id","variant":null},"issues":[],"uploaded_at":"2026-08-23T09:30:00Z","completed_at":"2026-08-23T09:30:18Z"}],"review":{"review_required":false,"reason_codes":[]},"latest_decision":{"decision_id":"dec_example1042","assessment_input_version":3,"decision":"compliant","signal":"green","explanation":"The available evidence satisfies every evaluated requirement for this assessment version.","findings":[],"recommendation":null,"created_at":"2026-08-23T09:31:00Z"},"created_at":"2026-08-23T09:30:00Z","updated_at":"2026-08-23T09:31:00Z"}}}}},"400":{"description":"The request did not match the expected schema","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/invalid-request","title":"Bad request","status":400,"detail":"The request did not match the expected schema.","instance":"req_example1042"}}}},"401":{"description":"Problem Details response for HTTP 401. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/missing-auth","title":"Unauthorized","status":401,"detail":"Send a valid bearer token or browser session.","instance":"req_example1042"}}}},"403":{"description":"Problem Details response for HTTP 403. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/forbidden","title":"Forbidden","status":403,"detail":"The authenticated principal does not have the required permission.","instance":"req_example1042"}}}},"404":{"description":"Problem Details response for HTTP 404. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/not-found","title":"Not found","status":404,"detail":"The requested resource was not found in the authenticated scope.","instance":"req_example1042"}}}},"409":{"description":"Problem Details response for HTTP 409. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/conflict","title":"Conflict","status":409,"detail":"The request conflicts with the current resource state.","instance":"req_example1042"}}}},"422":{"description":"Problem Details response for HTTP 422. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/validation","title":"Validation failed","status":422,"detail":"Correct the invalid fields and send the request again.","instance":"req_example1042","errors":{"issues":[{"path":["body","worker","nationality"],"message":"Expected a two-letter country code."}]}}}}},"429":{"description":"Problem Details response for HTTP 429. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/rate-limit","title":"Too many requests","status":429,"detail":"Wait for the Retry-After interval before retrying.","instance":"req_example1042"}}}},"500":{"description":"Problem Details response for HTTP 500. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/internal","title":"Internal server error","status":500,"detail":"Retry the request safely or contact Dockt support with the request ID.","instance":"req_example1042"}}}}},"description":"Returns assessment state, uploaded documents, review status, and latest decision summary.","summary":"Get assessment"},"patch":{"tags":["Assessments"],"operationId":"Assessments.updateAssessment","parameters":[{"name":"assessmentId","in":"path","schema":{"$ref":"#/components/schemas/AssessmentResourceId"},"required":true}],"security":[{"bearerAuth":[]},{"sessionCookie":[]}],"responses":{"200":{"description":"Envelope for a single resource response.","content":{"application/json":{"schema":{"type":"object","required":["object","data"],"properties":{"object":{"type":"string","enum":["single"]},"data":{"$ref":"#/components/schemas/Assessment"}},"additionalProperties":false,"description":"Envelope for a single resource response."}}}},"400":{"description":"The request did not match the expected schema","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/invalid-request","title":"Bad request","status":400,"detail":"The request did not match the expected schema.","instance":"req_example1042"}}}},"401":{"description":"Problem Details response for HTTP 401. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/missing-auth","title":"Unauthorized","status":401,"detail":"Send a valid bearer token or browser session.","instance":"req_example1042"}}}},"403":{"description":"Problem Details response for HTTP 403. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/forbidden","title":"Forbidden","status":403,"detail":"The authenticated principal does not have the required permission.","instance":"req_example1042"}}}},"404":{"description":"Problem Details response for HTTP 404. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/not-found","title":"Not found","status":404,"detail":"The requested resource was not found in the authenticated scope.","instance":"req_example1042"}}}},"409":{"description":"Problem Details response for HTTP 409. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/conflict","title":"Conflict","status":409,"detail":"The request conflicts with the current resource state.","instance":"req_example1042"}}}},"422":{"description":"Problem Details response for HTTP 422. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/validation","title":"Validation failed","status":422,"detail":"Correct the invalid fields and send the request again.","instance":"req_example1042","errors":{"issues":[{"path":["body","worker","nationality"],"message":"Expected a two-letter country code."}]}}}}},"429":{"description":"Problem Details response for HTTP 429. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/rate-limit","title":"Too many requests","status":429,"detail":"Wait for the Retry-After interval before retrying.","instance":"req_example1042"}}}},"500":{"description":"Problem Details response for HTTP 500. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/internal","title":"Internal server error","status":500,"detail":"Retry the request safely or contact Dockt support with the request ID.","instance":"req_example1042"}}}}},"description":"Updates customer metadata or worker context for an assessment in the active workspace.","summary":"Update assessment","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateAssessmentBody"}}},"required":true}}},"/v1/assessments/{assessmentId}/documents":{"post":{"tags":["Assessments"],"operationId":"Assessments.uploadAssessmentDocument","parameters":[{"name":"assessmentId","in":"path","schema":{"$ref":"#/components/schemas/AssessmentResourceId"},"required":true},{"name":"idempotency-key","in":"header","schema":{"type":"string","description":"Caller-generated retry key for duplicate-sensitive create and resend operations. Keys are scoped to the authenticated principal, method, and route and are retained for 24 hours.","title":"minLength(1)","minLength":1},"required":false,"description":"Caller-generated retry key for duplicate-sensitive create and resend operations. Keys are scoped to the authenticated principal, method, and route and are retained for 24 hours."}],"security":[{"bearerAuth":[]},{"sessionCookie":[]}],"responses":{"202":{"description":"Envelope for a single resource response.","content":{"application/json":{"schema":{"type":"object","required":["object","data"],"properties":{"object":{"type":"string","enum":["single"]},"data":{"$ref":"#/components/schemas/Document"}},"additionalProperties":false,"description":"Envelope for a single resource response."},"example":{"object":"single","data":{"object":"document","id":"doc_example1042","workspace_id":"wsp_example1042","assessment_id":"ast_example1042","status":"uploaded","document_result":null,"filename":"passport.pdf","classified_as":null,"facts":{},"verifications":[],"enrichment":{"status":"pending","checks":[],"issues":[]},"credential_assertions":[],"issues":[],"fraud_signals":[],"findings":[],"uploaded_at":"2026-08-23T09:30:00Z","completed_at":null}}}}},"400":{"description":"The request did not match the expected schema","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/invalid-request","title":"Bad request","status":400,"detail":"The request did not match the expected schema.","instance":"req_example1042"}}}},"401":{"description":"Problem Details response for HTTP 401. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/missing-auth","title":"Unauthorized","status":401,"detail":"Send a valid bearer token or browser session.","instance":"req_example1042"}}}},"403":{"description":"Problem Details response for HTTP 403. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/forbidden","title":"Forbidden","status":403,"detail":"The authenticated principal does not have the required permission.","instance":"req_example1042"}}}},"404":{"description":"Problem Details response for HTTP 404. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/not-found","title":"Not found","status":404,"detail":"The requested resource was not found in the authenticated scope.","instance":"req_example1042"}}}},"409":{"description":"Problem Details response for HTTP 409. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/conflict","title":"Conflict","status":409,"detail":"The request conflicts with the current resource state.","instance":"req_example1042"}}}},"422":{"description":"Problem Details response for HTTP 422. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/validation","title":"Validation failed","status":422,"detail":"Correct the invalid fields and send the request again.","instance":"req_example1042","errors":{"issues":[{"path":["body","worker","nationality"],"message":"Expected a two-letter country code."}]}}}}},"429":{"description":"Problem Details response for HTTP 429. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/rate-limit","title":"Too many requests","status":429,"detail":"Wait for the Retry-After interval before retrying.","instance":"req_example1042"}}}},"500":{"description":"Problem Details response for HTTP 500. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/internal","title":"Internal server error","status":500,"detail":"Retry the request safely or contact Dockt support with the request ID.","instance":"req_example1042"}}}}},"description":"Uploads evidence for an assessment. Processing is asynchronous; poll the document or assessment, or listen for webhooks for completion.","summary":"Upload assessment document","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/UploadAssessmentDocumentBody"}}},"required":true}}},"/v1/assessments/{assessmentId}/documents/{documentId}":{"delete":{"tags":["Assessments"],"operationId":"Assessments.deleteAssessmentDocument","parameters":[{"name":"assessmentId","in":"path","schema":{"$ref":"#/components/schemas/AssessmentResourceId"},"required":true},{"name":"documentId","in":"path","schema":{"$ref":"#/components/schemas/DocumentResourceId"},"required":true}],"security":[{"bearerAuth":[]},{"sessionCookie":[]}],"responses":{"200":{"description":"Envelope for a single resource response.","content":{"application/json":{"schema":{"type":"object","required":["object","data"],"properties":{"object":{"type":"string","enum":["single"]},"data":{"$ref":"#/components/schemas/DeletedDocument"}},"additionalProperties":false,"description":"Envelope for a single resource response."}}}},"400":{"description":"The request did not match the expected schema","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/invalid-request","title":"Bad request","status":400,"detail":"The request did not match the expected schema.","instance":"req_example1042"}}}},"401":{"description":"Problem Details response for HTTP 401. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/missing-auth","title":"Unauthorized","status":401,"detail":"Send a valid bearer token or browser session.","instance":"req_example1042"}}}},"403":{"description":"Problem Details response for HTTP 403. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/forbidden","title":"Forbidden","status":403,"detail":"The authenticated principal does not have the required permission.","instance":"req_example1042"}}}},"404":{"description":"Problem Details response for HTTP 404. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/not-found","title":"Not found","status":404,"detail":"The requested resource was not found in the authenticated scope.","instance":"req_example1042"}}}},"409":{"description":"Problem Details response for HTTP 409. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/conflict","title":"Conflict","status":409,"detail":"The request conflicts with the current resource state.","instance":"req_example1042"}}}},"422":{"description":"Problem Details response for HTTP 422. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/validation","title":"Validation failed","status":422,"detail":"Correct the invalid fields and send the request again.","instance":"req_example1042","errors":{"issues":[{"path":["body","worker","nationality"],"message":"Expected a two-letter country code."}]}}}}},"429":{"description":"Problem Details response for HTTP 429. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/rate-limit","title":"Too many requests","status":429,"detail":"Wait for the Retry-After interval before retrying.","instance":"req_example1042"}}}},"500":{"description":"Problem Details response for HTTP 500. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/internal","title":"Internal server error","status":500,"detail":"Retry the request safely or contact Dockt support with the request ID.","instance":"req_example1042"}}}}},"description":"Withdraws an uploaded assessment document from the active workspace.","summary":"Delete assessment document"}},"/v1/decisions/{decisionId}":{"get":{"tags":["Decisions"],"operationId":"Decisions.getDecision","parameters":[{"name":"decisionId","in":"path","schema":{"$ref":"#/components/schemas/DecisionId"},"required":true}],"security":[{"bearerAuth":[]},{"sessionCookie":[]}],"responses":{"200":{"description":"Envelope for a single resource response.","content":{"application/json":{"schema":{"type":"object","required":["object","data"],"properties":{"object":{"type":"string","enum":["single"]},"data":{"$ref":"#/components/schemas/Decision"}},"additionalProperties":false,"description":"Envelope for a single resource response."},"example":{"object":"single","data":{"object":"decision","id":"dec_example1042","assessment_id":"ast_example1042","workspace_id":"wsp_example1042","features_id":"feat_example1042","assessment_input_version":3,"decision":"compliant","signal":"green","explanation":"The available evidence satisfies every evaluated requirement for this assessment version.","findings":[],"facts":[{"id":"fact_example1042","code":"person.name","subject":{"id":"worker_example1042","type":"worker"},"value":"Amina Diallo","resolution":"corroborated","assurance":"medium","sources":[{"kind":"customer_input","code":"assessment.worker","document_ids":[],"observed_at":null,"fresh_until":null},{"kind":"document","code":"document.holder_name","document_ids":["doc_example1042"],"observed_at":"2026-08-23T09:30:18Z","fresh_until":null}]}],"documents":[{"document_id":"doc_example1042","status":"completed","document_result":"valid","finding_ids":[]}],"recommendation":null,"authority_verification_status":null,"fraud_signal_summary":[],"applied_packages":[{"code":"social_construction_be_v1","version":"v1"}],"requirements":[{"code":"identity.worker","label":"Identity document","reason":"Confirm the identity of the worker being assessed.","status":"satisfied","required":true,"source_domain":"social","package":{"code":"social_construction_be_v1","version":"v1"},"accepted_evidence_types":["identity_document"],"supporting_document_ids":["doc_example1042"],"pending_document_ids":[],"review_document_ids":[],"invalid_document_ids":[]}],"model_version":null,"created_at":"2026-08-23T09:31:00Z"}}}}},"400":{"description":"The request did not match the expected schema","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/invalid-request","title":"Bad request","status":400,"detail":"The request did not match the expected schema.","instance":"req_example1042"}}}},"401":{"description":"Problem Details response for HTTP 401. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/missing-auth","title":"Unauthorized","status":401,"detail":"Send a valid bearer token or browser session.","instance":"req_example1042"}}}},"403":{"description":"Problem Details response for HTTP 403. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/forbidden","title":"Forbidden","status":403,"detail":"The authenticated principal does not have the required permission.","instance":"req_example1042"}}}},"404":{"description":"Problem Details response for HTTP 404. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/not-found","title":"Not found","status":404,"detail":"The requested resource was not found in the authenticated scope.","instance":"req_example1042"}}}},"409":{"description":"Problem Details response for HTTP 409. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/conflict","title":"Conflict","status":409,"detail":"The request conflicts with the current resource state.","instance":"req_example1042"}}}},"422":{"description":"Problem Details response for HTTP 422. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/validation","title":"Validation failed","status":422,"detail":"Correct the invalid fields and send the request again.","instance":"req_example1042","errors":{"issues":[{"path":["body","worker","nationality"],"message":"Expected a two-letter country code."}]}}}}},"429":{"description":"Problem Details response for HTTP 429. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/rate-limit","title":"Too many requests","status":429,"detail":"Wait for the Retry-After interval before retrying.","instance":"req_example1042"}}}},"500":{"description":"Problem Details response for HTTP 500. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/internal","title":"Internal server error","status":500,"detail":"Retry the request safely or contact Dockt support with the request ID.","instance":"req_example1042"}}}}},"description":"Returns the immutable decision for an assessment, including applied policy releases and evaluated requirements.","summary":"Get decision"}},"/v1/decisions/{decisionId}/outcome":{"post":{"tags":["Decisions"],"operationId":"Decisions.createDecisionOutcome","parameters":[{"name":"decisionId","in":"path","schema":{"$ref":"#/components/schemas/DecisionId"},"required":true}],"security":[{"bearerAuth":[]},{"sessionCookie":[]}],"responses":{"201":{"description":"Envelope for a single resource response.","content":{"application/json":{"schema":{"type":"object","required":["object","data"],"properties":{"object":{"type":"string","enum":["single"]},"data":{"$ref":"#/components/schemas/DecisionOutcome"}},"additionalProperties":false,"description":"Envelope for a single resource response."}}}},"400":{"description":"The request did not match the expected schema","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/invalid-request","title":"Bad request","status":400,"detail":"The request did not match the expected schema.","instance":"req_example1042"}}}},"401":{"description":"Problem Details response for HTTP 401. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/missing-auth","title":"Unauthorized","status":401,"detail":"Send a valid bearer token or browser session.","instance":"req_example1042"}}}},"403":{"description":"Problem Details response for HTTP 403. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/forbidden","title":"Forbidden","status":403,"detail":"The authenticated principal does not have the required permission.","instance":"req_example1042"}}}},"404":{"description":"Problem Details response for HTTP 404. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/not-found","title":"Not found","status":404,"detail":"The requested resource was not found in the authenticated scope.","instance":"req_example1042"}}}},"409":{"description":"Problem Details response for HTTP 409. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/conflict","title":"Conflict","status":409,"detail":"The request conflicts with the current resource state.","instance":"req_example1042"}}}},"422":{"description":"Problem Details response for HTTP 422. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/validation","title":"Validation failed","status":422,"detail":"Correct the invalid fields and send the request again.","instance":"req_example1042","errors":{"issues":[{"path":["body","worker","nationality"],"message":"Expected a two-letter country code."}]}}}}},"429":{"description":"Problem Details response for HTTP 429. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/rate-limit","title":"Too many requests","status":429,"detail":"Wait for the Retry-After interval before retrying.","instance":"req_example1042"}}}},"500":{"description":"Problem Details response for HTTP 500. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/internal","title":"Internal server error","status":500,"detail":"Retry the request safely or contact Dockt support with the request ID.","instance":"req_example1042"}}}}},"description":"Records a downstream customer outcome for a decision without changing the original decision facts.","summary":"Report decision outcome","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateDecisionOutcomeBody"}}},"required":true}},"get":{"tags":["Decisions"],"operationId":"Decisions.getDecisionOutcome","parameters":[{"name":"decisionId","in":"path","schema":{"$ref":"#/components/schemas/DecisionId"},"required":true}],"security":[{"bearerAuth":[]},{"sessionCookie":[]}],"responses":{"200":{"description":"Envelope for a single resource response.","content":{"application/json":{"schema":{"type":"object","required":["object","data"],"properties":{"object":{"type":"string","enum":["single"]},"data":{"$ref":"#/components/schemas/DecisionOutcome"}},"additionalProperties":false,"description":"Envelope for a single resource response."}}}},"400":{"description":"The request did not match the expected schema","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/invalid-request","title":"Bad request","status":400,"detail":"The request did not match the expected schema.","instance":"req_example1042"}}}},"401":{"description":"Problem Details response for HTTP 401. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/missing-auth","title":"Unauthorized","status":401,"detail":"Send a valid bearer token or browser session.","instance":"req_example1042"}}}},"403":{"description":"Problem Details response for HTTP 403. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/forbidden","title":"Forbidden","status":403,"detail":"The authenticated principal does not have the required permission.","instance":"req_example1042"}}}},"404":{"description":"Problem Details response for HTTP 404. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/not-found","title":"Not found","status":404,"detail":"The requested resource was not found in the authenticated scope.","instance":"req_example1042"}}}},"409":{"description":"Problem Details response for HTTP 409. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/conflict","title":"Conflict","status":409,"detail":"The request conflicts with the current resource state.","instance":"req_example1042"}}}},"422":{"description":"Problem Details response for HTTP 422. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/validation","title":"Validation failed","status":422,"detail":"Correct the invalid fields and send the request again.","instance":"req_example1042","errors":{"issues":[{"path":["body","worker","nationality"],"message":"Expected a two-letter country code."}]}}}}},"429":{"description":"Problem Details response for HTTP 429. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/rate-limit","title":"Too many requests","status":429,"detail":"Wait for the Retry-After interval before retrying.","instance":"req_example1042"}}}},"500":{"description":"Problem Details response for HTTP 500. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/internal","title":"Internal server error","status":500,"detail":"Retry the request safely or contact Dockt support with the request ID.","instance":"req_example1042"}}}}},"description":"Returns the customer-reported outcome for a decision when one has been recorded.","summary":"Get decision outcome"}},"/v1/webhooks":{"post":{"tags":["Webhooks"],"operationId":"Webhooks.createWebhook","parameters":[{"name":"idempotency-key","in":"header","schema":{"type":"string","description":"Caller-generated retry key for duplicate-sensitive create and resend operations. Keys are scoped to the authenticated principal, method, and route and are retained for 24 hours.","title":"minLength(1)","minLength":1},"required":false,"description":"Caller-generated retry key for duplicate-sensitive create and resend operations. Keys are scoped to the authenticated principal, method, and route and are retained for 24 hours."}],"security":[{"bearerAuth":[]},{"sessionCookie":[]}],"responses":{"201":{"description":"Envelope for a single resource response.","content":{"application/json":{"schema":{"type":"object","required":["object","data"],"properties":{"object":{"type":"string","enum":["single"]},"data":{"$ref":"#/components/schemas/ProvisionedWebhookSubscription"}},"additionalProperties":false,"description":"Envelope for a single resource response."}}}},"400":{"description":"The request did not match the expected schema","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/invalid-request","title":"Bad request","status":400,"detail":"The request did not match the expected schema.","instance":"req_example1042"}}}},"401":{"description":"Problem Details response for HTTP 401. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/missing-auth","title":"Unauthorized","status":401,"detail":"Send a valid bearer token or browser session.","instance":"req_example1042"}}}},"403":{"description":"Problem Details response for HTTP 403. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/forbidden","title":"Forbidden","status":403,"detail":"The authenticated principal does not have the required permission.","instance":"req_example1042"}}}},"404":{"description":"Problem Details response for HTTP 404. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/not-found","title":"Not found","status":404,"detail":"The requested resource was not found in the authenticated scope.","instance":"req_example1042"}}}},"409":{"description":"Problem Details response for HTTP 409. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/conflict","title":"Conflict","status":409,"detail":"The request conflicts with the current resource state.","instance":"req_example1042"}}}},"422":{"description":"Problem Details response for HTTP 422. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/validation","title":"Validation failed","status":422,"detail":"Correct the invalid fields and send the request again.","instance":"req_example1042","errors":{"issues":[{"path":["body","worker","nationality"],"message":"Expected a two-letter country code."}]}}}}},"429":{"description":"Problem Details response for HTTP 429. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/rate-limit","title":"Too many requests","status":429,"detail":"Wait for the Retry-After interval before retrying.","instance":"req_example1042"}}}},"500":{"description":"Problem Details response for HTTP 500. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/internal","title":"Internal server error","status":500,"detail":"Retry the request safely or contact Dockt support with the request ID.","instance":"req_example1042"}}}}},"description":"Creates a webhook endpoint for the active workspace. The signing secret is returned once.","summary":"Create webhook","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateWebhookBody"}}},"required":true}},"get":{"tags":["Webhooks"],"operationId":"Webhooks.listWebhooks","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":20,"example":20,"description":"Maximum number of resources to return. Defaults to 20 and cannot exceed 100."},"required":false,"description":"Maximum number of resources to return. Defaults to 20 and cannot exceed 100."},{"name":"cursor","in":"query","schema":{"type":"string","description":"Opaque next_cursor value returned by the previous page."},"required":false,"description":"Opaque next_cursor value returned by the previous page."}],"security":[{"bearerAuth":[]},{"sessionCookie":[]}],"responses":{"200":{"description":"Envelope for a paginated collection response.","content":{"application/json":{"schema":{"type":"object","required":["object","data","has_more","next_cursor"],"properties":{"object":{"type":"string","enum":["list"]},"data":{"type":"array","items":{"$ref":"#/components/schemas/WebhookSubscription"}},"has_more":{"type":"boolean"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}]}},"additionalProperties":false,"description":"Envelope for a paginated collection response."}}}},"400":{"description":"The request did not match the expected schema","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/invalid-request","title":"Bad request","status":400,"detail":"The request did not match the expected schema.","instance":"req_example1042"}}}},"401":{"description":"Problem Details response for HTTP 401. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/missing-auth","title":"Unauthorized","status":401,"detail":"Send a valid bearer token or browser session.","instance":"req_example1042"}}}},"403":{"description":"Problem Details response for HTTP 403. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/forbidden","title":"Forbidden","status":403,"detail":"The authenticated principal does not have the required permission.","instance":"req_example1042"}}}},"404":{"description":"Problem Details response for HTTP 404. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/not-found","title":"Not found","status":404,"detail":"The requested resource was not found in the authenticated scope.","instance":"req_example1042"}}}},"409":{"description":"Problem Details response for HTTP 409. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/conflict","title":"Conflict","status":409,"detail":"The request conflicts with the current resource state.","instance":"req_example1042"}}}},"422":{"description":"Problem Details response for HTTP 422. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/validation","title":"Validation failed","status":422,"detail":"Correct the invalid fields and send the request again.","instance":"req_example1042","errors":{"issues":[{"path":["body","worker","nationality"],"message":"Expected a two-letter country code."}]}}}}},"429":{"description":"Problem Details response for HTTP 429. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/rate-limit","title":"Too many requests","status":429,"detail":"Wait for the Retry-After interval before retrying.","instance":"req_example1042"}}}},"500":{"description":"Problem Details response for HTTP 500. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/internal","title":"Internal server error","status":500,"detail":"Retry the request safely or contact Dockt support with the request ID.","instance":"req_example1042"}}}}},"description":"Lists webhook endpoints configured for the active workspace.","summary":"List webhooks"}},"/v1/webhooks/{webhookId}":{"get":{"tags":["Webhooks"],"operationId":"Webhooks.getWebhook","parameters":[{"name":"webhookId","in":"path","schema":{"$ref":"#/components/schemas/WebhookId"},"required":true}],"security":[{"bearerAuth":[]},{"sessionCookie":[]}],"responses":{"200":{"description":"Envelope for a single resource response.","content":{"application/json":{"schema":{"type":"object","required":["object","data"],"properties":{"object":{"type":"string","enum":["single"]},"data":{"$ref":"#/components/schemas/WebhookSubscription"}},"additionalProperties":false,"description":"Envelope for a single resource response."}}}},"400":{"description":"The request did not match the expected schema","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/invalid-request","title":"Bad request","status":400,"detail":"The request did not match the expected schema.","instance":"req_example1042"}}}},"401":{"description":"Problem Details response for HTTP 401. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/missing-auth","title":"Unauthorized","status":401,"detail":"Send a valid bearer token or browser session.","instance":"req_example1042"}}}},"403":{"description":"Problem Details response for HTTP 403. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/forbidden","title":"Forbidden","status":403,"detail":"The authenticated principal does not have the required permission.","instance":"req_example1042"}}}},"404":{"description":"Problem Details response for HTTP 404. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/not-found","title":"Not found","status":404,"detail":"The requested resource was not found in the authenticated scope.","instance":"req_example1042"}}}},"409":{"description":"Problem Details response for HTTP 409. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/conflict","title":"Conflict","status":409,"detail":"The request conflicts with the current resource state.","instance":"req_example1042"}}}},"422":{"description":"Problem Details response for HTTP 422. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/validation","title":"Validation failed","status":422,"detail":"Correct the invalid fields and send the request again.","instance":"req_example1042","errors":{"issues":[{"path":["body","worker","nationality"],"message":"Expected a two-letter country code."}]}}}}},"429":{"description":"Problem Details response for HTTP 429. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/rate-limit","title":"Too many requests","status":429,"detail":"Wait for the Retry-After interval before retrying.","instance":"req_example1042"}}}},"500":{"description":"Problem Details response for HTTP 500. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/internal","title":"Internal server error","status":500,"detail":"Retry the request safely or contact Dockt support with the request ID.","instance":"req_example1042"}}}}},"description":"Returns a webhook endpoint configured for the active workspace.","summary":"Get webhook"},"patch":{"tags":["Webhooks"],"operationId":"Webhooks.updateWebhook","parameters":[{"name":"webhookId","in":"path","schema":{"$ref":"#/components/schemas/WebhookId"},"required":true}],"security":[{"bearerAuth":[]},{"sessionCookie":[]}],"responses":{"200":{"description":"Envelope for a single resource response.","content":{"application/json":{"schema":{"type":"object","required":["object","data"],"properties":{"object":{"type":"string","enum":["single"]},"data":{"$ref":"#/components/schemas/WebhookSubscription"}},"additionalProperties":false,"description":"Envelope for a single resource response."}}}},"400":{"description":"The request did not match the expected schema","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/invalid-request","title":"Bad request","status":400,"detail":"The request did not match the expected schema.","instance":"req_example1042"}}}},"401":{"description":"Problem Details response for HTTP 401. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/missing-auth","title":"Unauthorized","status":401,"detail":"Send a valid bearer token or browser session.","instance":"req_example1042"}}}},"403":{"description":"Problem Details response for HTTP 403. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/forbidden","title":"Forbidden","status":403,"detail":"The authenticated principal does not have the required permission.","instance":"req_example1042"}}}},"404":{"description":"Problem Details response for HTTP 404. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/not-found","title":"Not found","status":404,"detail":"The requested resource was not found in the authenticated scope.","instance":"req_example1042"}}}},"409":{"description":"Problem Details response for HTTP 409. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/conflict","title":"Conflict","status":409,"detail":"The request conflicts with the current resource state.","instance":"req_example1042"}}}},"422":{"description":"Problem Details response for HTTP 422. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/validation","title":"Validation failed","status":422,"detail":"Correct the invalid fields and send the request again.","instance":"req_example1042","errors":{"issues":[{"path":["body","worker","nationality"],"message":"Expected a two-letter country code."}]}}}}},"429":{"description":"Problem Details response for HTTP 429. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/rate-limit","title":"Too many requests","status":429,"detail":"Wait for the Retry-After interval before retrying.","instance":"req_example1042"}}}},"500":{"description":"Problem Details response for HTTP 500. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/internal","title":"Internal server error","status":500,"detail":"Retry the request safely or contact Dockt support with the request ID.","instance":"req_example1042"}}}}},"description":"Updates webhook endpoint metadata or subscribed events.","summary":"Update webhook","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateWebhookBody"}}},"required":true}},"delete":{"tags":["Webhooks"],"operationId":"Webhooks.deleteWebhook","parameters":[{"name":"webhookId","in":"path","schema":{"$ref":"#/components/schemas/WebhookId"},"required":true}],"security":[{"bearerAuth":[]},{"sessionCookie":[]}],"responses":{"200":{"description":"Envelope for a single resource response.","content":{"application/json":{"schema":{"type":"object","required":["object","data"],"properties":{"object":{"type":"string","enum":["single"]},"data":{"$ref":"#/components/schemas/DeletedWebhook"}},"additionalProperties":false,"description":"Envelope for a single resource response."}}}},"400":{"description":"The request did not match the expected schema","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/invalid-request","title":"Bad request","status":400,"detail":"The request did not match the expected schema.","instance":"req_example1042"}}}},"401":{"description":"Problem Details response for HTTP 401. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/missing-auth","title":"Unauthorized","status":401,"detail":"Send a valid bearer token or browser session.","instance":"req_example1042"}}}},"403":{"description":"Problem Details response for HTTP 403. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/forbidden","title":"Forbidden","status":403,"detail":"The authenticated principal does not have the required permission.","instance":"req_example1042"}}}},"404":{"description":"Problem Details response for HTTP 404. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/not-found","title":"Not found","status":404,"detail":"The requested resource was not found in the authenticated scope.","instance":"req_example1042"}}}},"409":{"description":"Problem Details response for HTTP 409. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/conflict","title":"Conflict","status":409,"detail":"The request conflicts with the current resource state.","instance":"req_example1042"}}}},"422":{"description":"Problem Details response for HTTP 422. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/validation","title":"Validation failed","status":422,"detail":"Correct the invalid fields and send the request again.","instance":"req_example1042","errors":{"issues":[{"path":["body","worker","nationality"],"message":"Expected a two-letter country code."}]}}}}},"429":{"description":"Problem Details response for HTTP 429. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/rate-limit","title":"Too many requests","status":429,"detail":"Wait for the Retry-After interval before retrying.","instance":"req_example1042"}}}},"500":{"description":"Problem Details response for HTTP 500. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/internal","title":"Internal server error","status":500,"detail":"Retry the request safely or contact Dockt support with the request ID.","instance":"req_example1042"}}}}},"description":"Deletes a webhook endpoint and stops future event deliveries.","summary":"Delete webhook"}},"/v1/webhooks/{webhookId}/test":{"post":{"tags":["Webhooks"],"operationId":"Webhooks.sendWebhookTestEvent","parameters":[{"name":"webhookId","in":"path","schema":{"$ref":"#/components/schemas/WebhookId"},"required":true}],"security":[{"bearerAuth":[]},{"sessionCookie":[]}],"responses":{"202":{"description":"Envelope for a single resource response.","content":{"application/json":{"schema":{"type":"object","required":["object","data"],"properties":{"object":{"type":"string","enum":["single"]},"data":{"$ref":"#/components/schemas/WebhookDeliveryRequest"}},"additionalProperties":false,"description":"Envelope for a single resource response."}}}},"400":{"description":"The request did not match the expected schema","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/invalid-request","title":"Bad request","status":400,"detail":"The request did not match the expected schema.","instance":"req_example1042"}}}},"401":{"description":"Problem Details response for HTTP 401. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/missing-auth","title":"Unauthorized","status":401,"detail":"Send a valid bearer token or browser session.","instance":"req_example1042"}}}},"403":{"description":"Problem Details response for HTTP 403. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/forbidden","title":"Forbidden","status":403,"detail":"The authenticated principal does not have the required permission.","instance":"req_example1042"}}}},"404":{"description":"Problem Details response for HTTP 404. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/not-found","title":"Not found","status":404,"detail":"The requested resource was not found in the authenticated scope.","instance":"req_example1042"}}}},"409":{"description":"Problem Details response for HTTP 409. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/conflict","title":"Conflict","status":409,"detail":"The request conflicts with the current resource state.","instance":"req_example1042"}}}},"422":{"description":"Problem Details response for HTTP 422. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/validation","title":"Validation failed","status":422,"detail":"Correct the invalid fields and send the request again.","instance":"req_example1042","errors":{"issues":[{"path":["body","worker","nationality"],"message":"Expected a two-letter country code."}]}}}}},"429":{"description":"Problem Details response for HTTP 429. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/rate-limit","title":"Too many requests","status":429,"detail":"Wait for the Retry-After interval before retrying.","instance":"req_example1042"}}}},"500":{"description":"Problem Details response for HTTP 500. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/internal","title":"Internal server error","status":500,"detail":"Retry the request safely or contact Dockt support with the request ID.","instance":"req_example1042"}}}}},"description":"Queues a webhook.test event for one active endpoint.","summary":"Send webhook test event"}},"/v1/features":{"get":{"tags":["Features"],"operationId":"Features.getFeatures","parameters":[],"security":[{"bearerAuth":[]},{"sessionCookie":[]}],"responses":{"200":{"description":"Envelope for a single resource response.","content":{"application/json":{"schema":{"type":"object","required":["object","data"],"properties":{"object":{"type":"string","enum":["single"]},"data":{"$ref":"#/components/schemas/Features"}},"additionalProperties":false,"description":"Envelope for a single resource response."}}}},"400":{"description":"The request did not match the expected schema","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/invalid-request","title":"Bad request","status":400,"detail":"The request did not match the expected schema.","instance":"req_example1042"}}}},"401":{"description":"Problem Details response for HTTP 401. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/missing-auth","title":"Unauthorized","status":401,"detail":"Send a valid bearer token or browser session.","instance":"req_example1042"}}}},"403":{"description":"Problem Details response for HTTP 403. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/forbidden","title":"Forbidden","status":403,"detail":"The authenticated principal does not have the required permission.","instance":"req_example1042"}}}},"404":{"description":"Problem Details response for HTTP 404. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/not-found","title":"Not found","status":404,"detail":"The requested resource was not found in the authenticated scope.","instance":"req_example1042"}}}},"409":{"description":"Problem Details response for HTTP 409. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/conflict","title":"Conflict","status":409,"detail":"The request conflicts with the current resource state.","instance":"req_example1042"}}}},"422":{"description":"Problem Details response for HTTP 422. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/validation","title":"Validation failed","status":422,"detail":"Correct the invalid fields and send the request again.","instance":"req_example1042","errors":{"issues":[{"path":["body","worker","nationality"],"message":"Expected a two-letter country code."}]}}}}},"429":{"description":"Problem Details response for HTTP 429. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/rate-limit","title":"Too many requests","status":429,"detail":"Wait for the Retry-After interval before retrying.","instance":"req_example1042"}}}},"500":{"description":"Problem Details response for HTTP 500. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/internal","title":"Internal server error","status":500,"detail":"Retry the request safely or contact Dockt support with the request ID.","instance":"req_example1042"}}}}},"description":"Returns the current Features configuration for the active workspace.","summary":"Get current workspace features"},"patch":{"tags":["Features"],"operationId":"Features.updateFeatures","parameters":[],"security":[{"bearerAuth":[]},{"sessionCookie":[]}],"responses":{"200":{"description":"Envelope for a single resource response.","content":{"application/json":{"schema":{"type":"object","required":["object","data"],"properties":{"object":{"type":"string","enum":["single"]},"data":{"$ref":"#/components/schemas/Features"}},"additionalProperties":false,"description":"Envelope for a single resource response."}}}},"400":{"description":"The request did not match the expected schema","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/invalid-request","title":"Bad request","status":400,"detail":"The request did not match the expected schema.","instance":"req_example1042"}}}},"401":{"description":"Problem Details response for HTTP 401. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/missing-auth","title":"Unauthorized","status":401,"detail":"Send a valid bearer token or browser session.","instance":"req_example1042"}}}},"403":{"description":"Problem Details response for HTTP 403. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/forbidden","title":"Forbidden","status":403,"detail":"The authenticated principal does not have the required permission.","instance":"req_example1042"}}}},"404":{"description":"Problem Details response for HTTP 404. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/not-found","title":"Not found","status":404,"detail":"The requested resource was not found in the authenticated scope.","instance":"req_example1042"}}}},"409":{"description":"Problem Details response for HTTP 409. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/conflict","title":"Conflict","status":409,"detail":"The request conflicts with the current resource state.","instance":"req_example1042"}}}},"422":{"description":"Problem Details response for HTTP 422. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/validation","title":"Validation failed","status":422,"detail":"Correct the invalid fields and send the request again.","instance":"req_example1042","errors":{"issues":[{"path":["body","worker","nationality"],"message":"Expected a two-letter country code."}]}}}}},"429":{"description":"Problem Details response for HTTP 429. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/rate-limit","title":"Too many requests","status":429,"detail":"Wait for the Retry-After interval before retrying.","instance":"req_example1042"}}}},"500":{"description":"Problem Details response for HTTP 500. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/internal","title":"Internal server error","status":500,"detail":"Retry the request safely or contact Dockt support with the request ID.","instance":"req_example1042"}}}}},"description":"Updates the active workspace Features used by subsequent assessment creation and evaluation.","summary":"Update current workspace features","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateFeaturesBody"}}},"required":true}}},"/v1/social-compliance-packages":{"get":{"tags":["CompliancePackages"],"operationId":"CompliancePackages.listCompliancePackages","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":20,"example":20,"description":"Maximum number of resources to return. Defaults to 20 and cannot exceed 100."},"required":false,"description":"Maximum number of resources to return. Defaults to 20 and cannot exceed 100."},{"name":"cursor","in":"query","schema":{"type":"string","description":"Opaque next_cursor value returned by the previous page."},"required":false,"description":"Opaque next_cursor value returned by the previous page."}],"security":[{"bearerAuth":[]},{"sessionCookie":[]}],"responses":{"200":{"description":"Envelope for a paginated collection response.","content":{"application/json":{"schema":{"type":"object","required":["object","data","has_more","next_cursor"],"properties":{"object":{"type":"string","enum":["list"]},"data":{"type":"array","items":{"$ref":"#/components/schemas/CompliancePackage"}},"has_more":{"type":"boolean"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}]}},"additionalProperties":false,"description":"Envelope for a paginated collection response."}}}},"400":{"description":"The request did not match the expected schema","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/invalid-request","title":"Bad request","status":400,"detail":"The request did not match the expected schema.","instance":"req_example1042"}}}},"401":{"description":"Problem Details response for HTTP 401. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/missing-auth","title":"Unauthorized","status":401,"detail":"Send a valid bearer token or browser session.","instance":"req_example1042"}}}},"403":{"description":"Problem Details response for HTTP 403. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/forbidden","title":"Forbidden","status":403,"detail":"The authenticated principal does not have the required permission.","instance":"req_example1042"}}}},"404":{"description":"Problem Details response for HTTP 404. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/not-found","title":"Not found","status":404,"detail":"The requested resource was not found in the authenticated scope.","instance":"req_example1042"}}}},"409":{"description":"Problem Details response for HTTP 409. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/conflict","title":"Conflict","status":409,"detail":"The request conflicts with the current resource state.","instance":"req_example1042"}}}},"422":{"description":"Problem Details response for HTTP 422. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/validation","title":"Validation failed","status":422,"detail":"Correct the invalid fields and send the request again.","instance":"req_example1042","errors":{"issues":[{"path":["body","worker","nationality"],"message":"Expected a two-letter country code."}]}}}}},"429":{"description":"Problem Details response for HTTP 429. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/rate-limit","title":"Too many requests","status":429,"detail":"Wait for the Retry-After interval before retrying.","instance":"req_example1042"}}}},"500":{"description":"Problem Details response for HTTP 500. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/internal","title":"Internal server error","status":500,"detail":"Retry the request safely or contact Dockt support with the request ID.","instance":"req_example1042"}}}}},"description":"Lists available social compliance packages that can be enabled through workspace Features.","summary":"List social compliance packages"}},"/v1/social-compliance-packages/{code}":{"get":{"tags":["CompliancePackages"],"operationId":"CompliancePackages.getCompliancePackage","parameters":[{"name":"code","in":"path","schema":{"type":"string","description":"a string at least 1 character(s) long","title":"minLength(1)","minLength":1},"required":true,"description":"a string at least 1 character(s) long"}],"security":[{"bearerAuth":[]},{"sessionCookie":[]}],"responses":{"200":{"description":"Envelope for a single resource response.","content":{"application/json":{"schema":{"type":"object","required":["object","data"],"properties":{"object":{"type":"string","enum":["single"]},"data":{"$ref":"#/components/schemas/CompliancePackage"}},"additionalProperties":false,"description":"Envelope for a single resource response."}}}},"400":{"description":"The request did not match the expected schema","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/invalid-request","title":"Bad request","status":400,"detail":"The request did not match the expected schema.","instance":"req_example1042"}}}},"401":{"description":"Problem Details response for HTTP 401. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/missing-auth","title":"Unauthorized","status":401,"detail":"Send a valid bearer token or browser session.","instance":"req_example1042"}}}},"403":{"description":"Problem Details response for HTTP 403. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/forbidden","title":"Forbidden","status":403,"detail":"The authenticated principal does not have the required permission.","instance":"req_example1042"}}}},"404":{"description":"Problem Details response for HTTP 404. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/not-found","title":"Not found","status":404,"detail":"The requested resource was not found in the authenticated scope.","instance":"req_example1042"}}}},"409":{"description":"Problem Details response for HTTP 409. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/conflict","title":"Conflict","status":409,"detail":"The request conflicts with the current resource state.","instance":"req_example1042"}}}},"422":{"description":"Problem Details response for HTTP 422. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/validation","title":"Validation failed","status":422,"detail":"Correct the invalid fields and send the request again.","instance":"req_example1042","errors":{"issues":[{"path":["body","worker","nationality"],"message":"Expected a two-letter country code."}]}}}}},"429":{"description":"Problem Details response for HTTP 429. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/rate-limit","title":"Too many requests","status":429,"detail":"Wait for the Retry-After interval before retrying.","instance":"req_example1042"}}}},"500":{"description":"Problem Details response for HTTP 500. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/internal","title":"Internal server error","status":500,"detail":"Retry the request safely or contact Dockt support with the request ID.","instance":"req_example1042"}}}}},"description":"Returns package details, including the possible evidence types declared by that workflow before assessment-specific evaluation.","summary":"Get social compliance package"}},"/v1/auth/login":{"get":{"tags":["Auth"],"operationId":"Auth.login","parameters":[{"name":"return_to","in":"query","schema":{"type":"string","description":"a string at least 1 character(s) long","title":"minLength(1)","minLength":1},"required":false,"description":"a string at least 1 character(s) long"},{"name":"redirect_uri","in":"query","schema":{"type":"string","description":"a string at least 1 character(s) long","title":"minLength(1)","minLength":1},"required":false,"description":"a string at least 1 character(s) long"}],"security":[],"responses":{"200":{"description":"Redirect target for browser authentication flows.","content":{"application/json":{"schema":{"type":"object","required":["object","url"],"properties":{"object":{"type":"string","enum":["auth_redirect"]},"url":{"type":"string","description":"a string at least 1 character(s) long","title":"minLength(1)","minLength":1}},"additionalProperties":false,"description":"Redirect target for browser authentication flows."}}}},"400":{"description":"The request did not match the expected schema","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/invalid-request","title":"Bad request","status":400,"detail":"The request did not match the expected schema.","instance":"req_example1042"}}}},"401":{"description":"Problem Details response for HTTP 401. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/missing-auth","title":"Unauthorized","status":401,"detail":"Send a valid bearer token or browser session.","instance":"req_example1042"}}}},"403":{"description":"Problem Details response for HTTP 403. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/forbidden","title":"Forbidden","status":403,"detail":"The authenticated principal does not have the required permission.","instance":"req_example1042"}}}},"404":{"description":"Problem Details response for HTTP 404. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/not-found","title":"Not found","status":404,"detail":"The requested resource was not found in the authenticated scope.","instance":"req_example1042"}}}},"409":{"description":"Problem Details response for HTTP 409. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/conflict","title":"Conflict","status":409,"detail":"The request conflicts with the current resource state.","instance":"req_example1042"}}}},"422":{"description":"Problem Details response for HTTP 422. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/validation","title":"Validation failed","status":422,"detail":"Correct the invalid fields and send the request again.","instance":"req_example1042","errors":{"issues":[{"path":["body","worker","nationality"],"message":"Expected a two-letter country code."}]}}}}},"429":{"description":"Problem Details response for HTTP 429. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/rate-limit","title":"Too many requests","status":429,"detail":"Wait for the Retry-After interval before retrying.","instance":"req_example1042"}}}},"500":{"description":"Problem Details response for HTTP 500. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/internal","title":"Internal server error","status":500,"detail":"Retry the request safely or contact Dockt support with the request ID.","instance":"req_example1042"}}}}},"description":"Returns the URL a browser client should open to start a sign-in flow.","summary":"Start browser sign-in"}},"/v1/auth/signup":{"get":{"tags":["Auth"],"operationId":"Auth.signup","parameters":[{"name":"return_to","in":"query","schema":{"type":"string","description":"a string at least 1 character(s) long","title":"minLength(1)","minLength":1},"required":false,"description":"a string at least 1 character(s) long"},{"name":"redirect_uri","in":"query","schema":{"type":"string","description":"a string at least 1 character(s) long","title":"minLength(1)","minLength":1},"required":false,"description":"a string at least 1 character(s) long"}],"security":[],"responses":{"200":{"description":"Redirect target for browser authentication flows.","content":{"application/json":{"schema":{"type":"object","required":["object","url"],"properties":{"object":{"type":"string","enum":["auth_redirect"]},"url":{"type":"string","description":"a string at least 1 character(s) long","title":"minLength(1)","minLength":1}},"additionalProperties":false,"description":"Redirect target for browser authentication flows."}}}},"400":{"description":"The request did not match the expected schema","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/invalid-request","title":"Bad request","status":400,"detail":"The request did not match the expected schema.","instance":"req_example1042"}}}},"401":{"description":"Problem Details response for HTTP 401. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/missing-auth","title":"Unauthorized","status":401,"detail":"Send a valid bearer token or browser session.","instance":"req_example1042"}}}},"403":{"description":"Problem Details response for HTTP 403. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/forbidden","title":"Forbidden","status":403,"detail":"The authenticated principal does not have the required permission.","instance":"req_example1042"}}}},"404":{"description":"Problem Details response for HTTP 404. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/not-found","title":"Not found","status":404,"detail":"The requested resource was not found in the authenticated scope.","instance":"req_example1042"}}}},"409":{"description":"Problem Details response for HTTP 409. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/conflict","title":"Conflict","status":409,"detail":"The request conflicts with the current resource state.","instance":"req_example1042"}}}},"422":{"description":"Problem Details response for HTTP 422. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/validation","title":"Validation failed","status":422,"detail":"Correct the invalid fields and send the request again.","instance":"req_example1042","errors":{"issues":[{"path":["body","worker","nationality"],"message":"Expected a two-letter country code."}]}}}}},"429":{"description":"Problem Details response for HTTP 429. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/rate-limit","title":"Too many requests","status":429,"detail":"Wait for the Retry-After interval before retrying.","instance":"req_example1042"}}}},"500":{"description":"Problem Details response for HTTP 500. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/internal","title":"Internal server error","status":500,"detail":"Retry the request safely or contact Dockt support with the request ID.","instance":"req_example1042"}}}}},"description":"Returns the URL a browser client should open to start a sign-up flow.","summary":"Start browser sign-up"}},"/v1/auth/callback":{"get":{"tags":["Auth"],"operationId":"Auth.callback","parameters":[{"name":"code","in":"query","schema":{"type":"string","description":"a string at least 1 character(s) long","title":"minLength(1)","minLength":1},"required":false,"description":"a string at least 1 character(s) long"},{"name":"state","in":"query","schema":{"type":"string","description":"a string at least 1 character(s) long","title":"minLength(1)","minLength":1},"required":false,"description":"a string at least 1 character(s) long"},{"name":"error","in":"query","schema":{"type":"string","description":"a string at least 1 character(s) long","title":"minLength(1)","minLength":1},"required":false,"description":"a string at least 1 character(s) long"},{"name":"error_description","in":"query","schema":{"type":"string","description":"a string at least 1 character(s) long","title":"minLength(1)","minLength":1},"required":false,"description":"a string at least 1 character(s) long"}],"security":[],"responses":{"200":{"description":"Redirect target for browser authentication flows.","content":{"application/json":{"schema":{"type":"object","required":["object","url"],"properties":{"object":{"type":"string","enum":["auth_redirect"]},"url":{"type":"string","description":"a string at least 1 character(s) long","title":"minLength(1)","minLength":1}},"additionalProperties":false,"description":"Redirect target for browser authentication flows."}}}},"400":{"description":"The request did not match the expected schema","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/invalid-request","title":"Bad request","status":400,"detail":"The request did not match the expected schema.","instance":"req_example1042"}}}},"401":{"description":"Problem Details response for HTTP 401. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/missing-auth","title":"Unauthorized","status":401,"detail":"Send a valid bearer token or browser session.","instance":"req_example1042"}}}},"403":{"description":"Problem Details response for HTTP 403. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/forbidden","title":"Forbidden","status":403,"detail":"The authenticated principal does not have the required permission.","instance":"req_example1042"}}}},"404":{"description":"Problem Details response for HTTP 404. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/not-found","title":"Not found","status":404,"detail":"The requested resource was not found in the authenticated scope.","instance":"req_example1042"}}}},"409":{"description":"Problem Details response for HTTP 409. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/conflict","title":"Conflict","status":409,"detail":"The request conflicts with the current resource state.","instance":"req_example1042"}}}},"422":{"description":"Problem Details response for HTTP 422. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/validation","title":"Validation failed","status":422,"detail":"Correct the invalid fields and send the request again.","instance":"req_example1042","errors":{"issues":[{"path":["body","worker","nationality"],"message":"Expected a two-letter country code."}]}}}}},"429":{"description":"Problem Details response for HTTP 429. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/rate-limit","title":"Too many requests","status":429,"detail":"Wait for the Retry-After interval before retrying.","instance":"req_example1042"}}}},"500":{"description":"Problem Details response for HTTP 500. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/internal","title":"Internal server error","status":500,"detail":"Retry the request safely or contact Dockt support with the request ID.","instance":"req_example1042"}}}}},"description":"Completes browser authentication and returns the next redirect target.","summary":"Handle browser auth callback"}},"/v1/auth/logout":{"post":{"tags":["Auth"],"operationId":"Auth.logout","parameters":[{"name":"return_to","in":"query","schema":{"type":"string","description":"a string at least 1 character(s) long","title":"minLength(1)","minLength":1},"required":false,"description":"a string at least 1 character(s) long"},{"name":"redirect_uri","in":"query","schema":{"type":"string","description":"a string at least 1 character(s) long","title":"minLength(1)","minLength":1},"required":false,"description":"a string at least 1 character(s) long"}],"security":[{"bearerAuth":[]},{"sessionCookie":[]}],"responses":{"200":{"description":"Redirect target for browser authentication flows.","content":{"application/json":{"schema":{"type":"object","required":["object","url"],"properties":{"object":{"type":"string","enum":["auth_redirect"]},"url":{"type":"string","description":"a string at least 1 character(s) long","title":"minLength(1)","minLength":1}},"additionalProperties":false,"description":"Redirect target for browser authentication flows."}}}},"400":{"description":"The request did not match the expected schema","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/invalid-request","title":"Bad request","status":400,"detail":"The request did not match the expected schema.","instance":"req_example1042"}}}},"401":{"description":"Problem Details response for HTTP 401. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/missing-auth","title":"Unauthorized","status":401,"detail":"Send a valid bearer token or browser session.","instance":"req_example1042"}}}},"403":{"description":"Problem Details response for HTTP 403. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/forbidden","title":"Forbidden","status":403,"detail":"The authenticated principal does not have the required permission.","instance":"req_example1042"}}}},"404":{"description":"Problem Details response for HTTP 404. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/not-found","title":"Not found","status":404,"detail":"The requested resource was not found in the authenticated scope.","instance":"req_example1042"}}}},"409":{"description":"Problem Details response for HTTP 409. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/conflict","title":"Conflict","status":409,"detail":"The request conflicts with the current resource state.","instance":"req_example1042"}}}},"422":{"description":"Problem Details response for HTTP 422. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/validation","title":"Validation failed","status":422,"detail":"Correct the invalid fields and send the request again.","instance":"req_example1042","errors":{"issues":[{"path":["body","worker","nationality"],"message":"Expected a two-letter country code."}]}}}}},"429":{"description":"Problem Details response for HTTP 429. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/rate-limit","title":"Too many requests","status":429,"detail":"Wait for the Retry-After interval before retrying.","instance":"req_example1042"}}}},"500":{"description":"Problem Details response for HTTP 500. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/internal","title":"Internal server error","status":500,"detail":"Retry the request safely or contact Dockt support with the request ID.","instance":"req_example1042"}}}}},"description":"Clears the browser session and returns the next redirect target.","summary":"Log out of browser session"}},"/v1/auth/me":{"get":{"tags":["Auth"],"operationId":"Auth.getAuthContext","parameters":[],"security":[{"bearerAuth":[]},{"sessionCookie":[]}],"responses":{"200":{"description":"Envelope for a single resource response.","content":{"application/json":{"schema":{"type":"object","required":["object","data"],"properties":{"object":{"type":"string","enum":["single"]},"data":{"$ref":"#/components/schemas/AuthContext"}},"additionalProperties":false,"description":"Envelope for a single resource response."}}}},"400":{"description":"The request did not match the expected schema","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/invalid-request","title":"Bad request","status":400,"detail":"The request did not match the expected schema.","instance":"req_example1042"}}}},"401":{"description":"Problem Details response for HTTP 401. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/missing-auth","title":"Unauthorized","status":401,"detail":"Send a valid bearer token or browser session.","instance":"req_example1042"}}}},"403":{"description":"Problem Details response for HTTP 403. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/forbidden","title":"Forbidden","status":403,"detail":"The authenticated principal does not have the required permission.","instance":"req_example1042"}}}},"404":{"description":"Problem Details response for HTTP 404. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/not-found","title":"Not found","status":404,"detail":"The requested resource was not found in the authenticated scope.","instance":"req_example1042"}}}},"409":{"description":"Problem Details response for HTTP 409. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/conflict","title":"Conflict","status":409,"detail":"The request conflicts with the current resource state.","instance":"req_example1042"}}}},"422":{"description":"Problem Details response for HTTP 422. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/validation","title":"Validation failed","status":422,"detail":"Correct the invalid fields and send the request again.","instance":"req_example1042","errors":{"issues":[{"path":["body","worker","nationality"],"message":"Expected a two-letter country code."}]}}}}},"429":{"description":"Problem Details response for HTTP 429. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/rate-limit","title":"Too many requests","status":429,"detail":"Wait for the Retry-After interval before retrying.","instance":"req_example1042"}}}},"500":{"description":"Problem Details response for HTTP 500. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/internal","title":"Internal server error","status":500,"detail":"Retry the request safely or contact Dockt support with the request ID.","instance":"req_example1042"}}}}},"description":"Returns the authenticated principal, active account or workspace scope, available scopes, and granted permissions.","summary":"Get current auth context"}},"/v1/auth/scope":{"post":{"tags":["Auth"],"operationId":"Auth.selectPrincipalScope","parameters":[],"security":[{"bearerAuth":[]},{"sessionCookie":[]}],"responses":{"200":{"description":"Envelope for a single resource response.","content":{"application/json":{"schema":{"type":"object","required":["object","data"],"properties":{"object":{"type":"string","enum":["single"]},"data":{"$ref":"#/components/schemas/AuthContext"}},"additionalProperties":false,"description":"Envelope for a single resource response."}}}},"400":{"description":"The request did not match the expected schema","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/invalid-request","title":"Bad request","status":400,"detail":"The request did not match the expected schema.","instance":"req_example1042"}}}},"401":{"description":"Problem Details response for HTTP 401. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/missing-auth","title":"Unauthorized","status":401,"detail":"Send a valid bearer token or browser session.","instance":"req_example1042"}}}},"403":{"description":"Problem Details response for HTTP 403. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/forbidden","title":"Forbidden","status":403,"detail":"The authenticated principal does not have the required permission.","instance":"req_example1042"}}}},"404":{"description":"Problem Details response for HTTP 404. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/not-found","title":"Not found","status":404,"detail":"The requested resource was not found in the authenticated scope.","instance":"req_example1042"}}}},"409":{"description":"Problem Details response for HTTP 409. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/conflict","title":"Conflict","status":409,"detail":"The request conflicts with the current resource state.","instance":"req_example1042"}}}},"422":{"description":"Problem Details response for HTTP 422. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/validation","title":"Validation failed","status":422,"detail":"Correct the invalid fields and send the request again.","instance":"req_example1042","errors":{"issues":[{"path":["body","worker","nationality"],"message":"Expected a two-letter country code."}]}}}}},"429":{"description":"Problem Details response for HTTP 429. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/rate-limit","title":"Too many requests","status":429,"detail":"Wait for the Retry-After interval before retrying.","instance":"req_example1042"}}}},"500":{"description":"Problem Details response for HTTP 500. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/internal","title":"Internal server error","status":500,"detail":"Retry the request safely or contact Dockt support with the request ID.","instance":"req_example1042"}}}}},"description":"Changes the active account or workspace scope for a browser session. API credential scope is fixed by the credential.","summary":"Set active session principal scope","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SelectPrincipalScopeBody"}}},"required":true}}},"/v1/account":{"get":{"tags":["Account"],"operationId":"Account.getAccount","parameters":[],"security":[{"bearerAuth":[]},{"sessionCookie":[]}],"responses":{"200":{"description":"Envelope for a single resource response.","content":{"application/json":{"schema":{"type":"object","required":["object","data"],"properties":{"object":{"type":"string","enum":["single"]},"data":{"$ref":"#/components/schemas/Account"}},"additionalProperties":false,"description":"Envelope for a single resource response."}}}},"400":{"description":"The request did not match the expected schema","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/invalid-request","title":"Bad request","status":400,"detail":"The request did not match the expected schema.","instance":"req_example1042"}}}},"401":{"description":"Problem Details response for HTTP 401. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/missing-auth","title":"Unauthorized","status":401,"detail":"Send a valid bearer token or browser session.","instance":"req_example1042"}}}},"403":{"description":"Problem Details response for HTTP 403. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/forbidden","title":"Forbidden","status":403,"detail":"The authenticated principal does not have the required permission.","instance":"req_example1042"}}}},"404":{"description":"Problem Details response for HTTP 404. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/not-found","title":"Not found","status":404,"detail":"The requested resource was not found in the authenticated scope.","instance":"req_example1042"}}}},"409":{"description":"Problem Details response for HTTP 409. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/conflict","title":"Conflict","status":409,"detail":"The request conflicts with the current resource state.","instance":"req_example1042"}}}},"422":{"description":"Problem Details response for HTTP 422. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/validation","title":"Validation failed","status":422,"detail":"Correct the invalid fields and send the request again.","instance":"req_example1042","errors":{"issues":[{"path":["body","worker","nationality"],"message":"Expected a two-letter country code."}]}}}}},"429":{"description":"Problem Details response for HTTP 429. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/rate-limit","title":"Too many requests","status":429,"detail":"Wait for the Retry-After interval before retrying.","instance":"req_example1042"}}}},"500":{"description":"Problem Details response for HTTP 500. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/internal","title":"Internal server error","status":500,"detail":"Retry the request safely or contact Dockt support with the request ID.","instance":"req_example1042"}}}}},"description":"Returns the customer account associated with the authenticated principal.","summary":"Get account"},"patch":{"tags":["Account"],"operationId":"Account.updateAccount","parameters":[],"security":[{"bearerAuth":[]},{"sessionCookie":[]}],"responses":{"200":{"description":"Envelope for a single resource response.","content":{"application/json":{"schema":{"type":"object","required":["object","data"],"properties":{"object":{"type":"string","enum":["single"]},"data":{"$ref":"#/components/schemas/Account"}},"additionalProperties":false,"description":"Envelope for a single resource response."}}}},"400":{"description":"The request did not match the expected schema","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/invalid-request","title":"Bad request","status":400,"detail":"The request did not match the expected schema.","instance":"req_example1042"}}}},"401":{"description":"Problem Details response for HTTP 401. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/missing-auth","title":"Unauthorized","status":401,"detail":"Send a valid bearer token or browser session.","instance":"req_example1042"}}}},"403":{"description":"Problem Details response for HTTP 403. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/forbidden","title":"Forbidden","status":403,"detail":"The authenticated principal does not have the required permission.","instance":"req_example1042"}}}},"404":{"description":"Problem Details response for HTTP 404. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/not-found","title":"Not found","status":404,"detail":"The requested resource was not found in the authenticated scope.","instance":"req_example1042"}}}},"409":{"description":"Problem Details response for HTTP 409. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/conflict","title":"Conflict","status":409,"detail":"The request conflicts with the current resource state.","instance":"req_example1042"}}}},"422":{"description":"Problem Details response for HTTP 422. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/validation","title":"Validation failed","status":422,"detail":"Correct the invalid fields and send the request again.","instance":"req_example1042","errors":{"issues":[{"path":["body","worker","nationality"],"message":"Expected a two-letter country code."}]}}}}},"429":{"description":"Problem Details response for HTTP 429. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/rate-limit","title":"Too many requests","status":429,"detail":"Wait for the Retry-After interval before retrying.","instance":"req_example1042"}}}},"500":{"description":"Problem Details response for HTTP 500. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/internal","title":"Internal server error","status":500,"detail":"Retry the request safely or contact Dockt support with the request ID.","instance":"req_example1042"}}}}},"description":"Updates account display metadata used to identify the customer account.","summary":"Update account","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateAccountBody"}}},"required":true}}},"/v1/account/users":{"get":{"tags":["AccountUsers"],"operationId":"AccountUsers.listAccountUsers","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":20,"example":20,"description":"Maximum number of resources to return. Defaults to 20 and cannot exceed 100."},"required":false,"description":"Maximum number of resources to return. Defaults to 20 and cannot exceed 100."},{"name":"cursor","in":"query","schema":{"type":"string","description":"Opaque next_cursor value returned by the previous page."},"required":false,"description":"Opaque next_cursor value returned by the previous page."},{"name":"status","in":"query","schema":{"$ref":"#/components/schemas/AccountUserStatus"},"required":false}],"security":[{"bearerAuth":[]},{"sessionCookie":[]}],"responses":{"200":{"description":"Envelope for a paginated collection response.","content":{"application/json":{"schema":{"type":"object","required":["object","data","has_more","next_cursor"],"properties":{"object":{"type":"string","enum":["list"]},"data":{"type":"array","items":{"$ref":"#/components/schemas/AccountUser"}},"has_more":{"type":"boolean"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}]}},"additionalProperties":false,"description":"Envelope for a paginated collection response."}}}},"400":{"description":"The request did not match the expected schema","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/invalid-request","title":"Bad request","status":400,"detail":"The request did not match the expected schema.","instance":"req_example1042"}}}},"401":{"description":"Problem Details response for HTTP 401. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/missing-auth","title":"Unauthorized","status":401,"detail":"Send a valid bearer token or browser session.","instance":"req_example1042"}}}},"403":{"description":"Problem Details response for HTTP 403. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/forbidden","title":"Forbidden","status":403,"detail":"The authenticated principal does not have the required permission.","instance":"req_example1042"}}}},"404":{"description":"Problem Details response for HTTP 404. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/not-found","title":"Not found","status":404,"detail":"The requested resource was not found in the authenticated scope.","instance":"req_example1042"}}}},"409":{"description":"Problem Details response for HTTP 409. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/conflict","title":"Conflict","status":409,"detail":"The request conflicts with the current resource state.","instance":"req_example1042"}}}},"422":{"description":"Problem Details response for HTTP 422. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/validation","title":"Validation failed","status":422,"detail":"Correct the invalid fields and send the request again.","instance":"req_example1042","errors":{"issues":[{"path":["body","worker","nationality"],"message":"Expected a two-letter country code."}]}}}}},"429":{"description":"Problem Details response for HTTP 429. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/rate-limit","title":"Too many requests","status":429,"detail":"Wait for the Retry-After interval before retrying.","instance":"req_example1042"}}}},"500":{"description":"Problem Details response for HTTP 500. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/internal","title":"Internal server error","status":500,"detail":"Retry the request safely or contact Dockt support with the request ID.","instance":"req_example1042"}}}}},"description":"Lists users with account access, including their account role and access state.","summary":"List account users"}},"/v1/account/users/{userId}":{"patch":{"tags":["AccountUsers"],"operationId":"AccountUsers.updateAccountUser","parameters":[{"name":"userId","in":"path","schema":{"$ref":"#/components/schemas/AccountUserId"},"required":true}],"security":[{"bearerAuth":[]},{"sessionCookie":[]}],"responses":{"200":{"description":"Envelope for a single resource response.","content":{"application/json":{"schema":{"type":"object","required":["object","data"],"properties":{"object":{"type":"string","enum":["single"]},"data":{"$ref":"#/components/schemas/AccountUser"}},"additionalProperties":false,"description":"Envelope for a single resource response."}}}},"400":{"description":"The request did not match the expected schema","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/invalid-request","title":"Bad request","status":400,"detail":"The request did not match the expected schema.","instance":"req_example1042"}}}},"401":{"description":"Problem Details response for HTTP 401. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/missing-auth","title":"Unauthorized","status":401,"detail":"Send a valid bearer token or browser session.","instance":"req_example1042"}}}},"403":{"description":"Problem Details response for HTTP 403. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/forbidden","title":"Forbidden","status":403,"detail":"The authenticated principal does not have the required permission.","instance":"req_example1042"}}}},"404":{"description":"Problem Details response for HTTP 404. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/not-found","title":"Not found","status":404,"detail":"The requested resource was not found in the authenticated scope.","instance":"req_example1042"}}}},"409":{"description":"Problem Details response for HTTP 409. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/conflict","title":"Conflict","status":409,"detail":"The request conflicts with the current resource state.","instance":"req_example1042"}}}},"422":{"description":"Problem Details response for HTTP 422. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/validation","title":"Validation failed","status":422,"detail":"Correct the invalid fields and send the request again.","instance":"req_example1042","errors":{"issues":[{"path":["body","worker","nationality"],"message":"Expected a two-letter country code."}]}}}}},"429":{"description":"Problem Details response for HTTP 429. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/rate-limit","title":"Too many requests","status":429,"detail":"Wait for the Retry-After interval before retrying.","instance":"req_example1042"}}}},"500":{"description":"Problem Details response for HTTP 500. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/internal","title":"Internal server error","status":500,"detail":"Retry the request safely or contact Dockt support with the request ID.","instance":"req_example1042"}}}}},"description":"Updates a user role in the current account.","summary":"Update account user","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateAccountUserBody"}}},"required":true}},"delete":{"tags":["AccountUsers"],"operationId":"AccountUsers.deleteAccountUser","parameters":[{"name":"userId","in":"path","schema":{"$ref":"#/components/schemas/AccountUserId"},"required":true}],"security":[{"bearerAuth":[]},{"sessionCookie":[]}],"responses":{"200":{"description":"Envelope for a single resource response.","content":{"application/json":{"schema":{"type":"object","required":["object","data"],"properties":{"object":{"type":"string","enum":["single"]},"data":{"$ref":"#/components/schemas/DeletedAccountUser"}},"additionalProperties":false,"description":"Envelope for a single resource response."}}}},"400":{"description":"The request did not match the expected schema","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/invalid-request","title":"Bad request","status":400,"detail":"The request did not match the expected schema.","instance":"req_example1042"}}}},"401":{"description":"Problem Details response for HTTP 401. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/missing-auth","title":"Unauthorized","status":401,"detail":"Send a valid bearer token or browser session.","instance":"req_example1042"}}}},"403":{"description":"Problem Details response for HTTP 403. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/forbidden","title":"Forbidden","status":403,"detail":"The authenticated principal does not have the required permission.","instance":"req_example1042"}}}},"404":{"description":"Problem Details response for HTTP 404. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/not-found","title":"Not found","status":404,"detail":"The requested resource was not found in the authenticated scope.","instance":"req_example1042"}}}},"409":{"description":"Problem Details response for HTTP 409. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/conflict","title":"Conflict","status":409,"detail":"The request conflicts with the current resource state.","instance":"req_example1042"}}}},"422":{"description":"Problem Details response for HTTP 422. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/validation","title":"Validation failed","status":422,"detail":"Correct the invalid fields and send the request again.","instance":"req_example1042","errors":{"issues":[{"path":["body","worker","nationality"],"message":"Expected a two-letter country code."}]}}}}},"429":{"description":"Problem Details response for HTTP 429. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/rate-limit","title":"Too many requests","status":429,"detail":"Wait for the Retry-After interval before retrying.","instance":"req_example1042"}}}},"500":{"description":"Problem Details response for HTTP 500. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/internal","title":"Internal server error","status":500,"detail":"Retry the request safely or contact Dockt support with the request ID.","instance":"req_example1042"}}}}},"description":"Removes a user from the current account organization.","summary":"Remove account user"}},"/v1/account/invitations":{"get":{"tags":["AccountUsers"],"operationId":"AccountUsers.listAccountInvitations","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":20,"example":20,"description":"Maximum number of resources to return. Defaults to 20 and cannot exceed 100."},"required":false,"description":"Maximum number of resources to return. Defaults to 20 and cannot exceed 100."},{"name":"cursor","in":"query","schema":{"type":"string","description":"Opaque next_cursor value returned by the previous page."},"required":false,"description":"Opaque next_cursor value returned by the previous page."},{"name":"status","in":"query","schema":{"$ref":"#/components/schemas/AccountInvitationStatus"},"required":false}],"security":[{"bearerAuth":[]},{"sessionCookie":[]}],"responses":{"200":{"description":"Envelope for a paginated collection response.","content":{"application/json":{"schema":{"type":"object","required":["object","data","has_more","next_cursor"],"properties":{"object":{"type":"string","enum":["list"]},"data":{"type":"array","items":{"$ref":"#/components/schemas/AccountInvitation"}},"has_more":{"type":"boolean"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}]}},"additionalProperties":false,"description":"Envelope for a paginated collection response."}}}},"400":{"description":"The request did not match the expected schema","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/invalid-request","title":"Bad request","status":400,"detail":"The request did not match the expected schema.","instance":"req_example1042"}}}},"401":{"description":"Problem Details response for HTTP 401. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/missing-auth","title":"Unauthorized","status":401,"detail":"Send a valid bearer token or browser session.","instance":"req_example1042"}}}},"403":{"description":"Problem Details response for HTTP 403. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/forbidden","title":"Forbidden","status":403,"detail":"The authenticated principal does not have the required permission.","instance":"req_example1042"}}}},"404":{"description":"Problem Details response for HTTP 404. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/not-found","title":"Not found","status":404,"detail":"The requested resource was not found in the authenticated scope.","instance":"req_example1042"}}}},"409":{"description":"Problem Details response for HTTP 409. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/conflict","title":"Conflict","status":409,"detail":"The request conflicts with the current resource state.","instance":"req_example1042"}}}},"422":{"description":"Problem Details response for HTTP 422. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/validation","title":"Validation failed","status":422,"detail":"Correct the invalid fields and send the request again.","instance":"req_example1042","errors":{"issues":[{"path":["body","worker","nationality"],"message":"Expected a two-letter country code."}]}}}}},"429":{"description":"Problem Details response for HTTP 429. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/rate-limit","title":"Too many requests","status":429,"detail":"Wait for the Retry-After interval before retrying.","instance":"req_example1042"}}}},"500":{"description":"Problem Details response for HTTP 500. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/internal","title":"Internal server error","status":500,"detail":"Retry the request safely or contact Dockt support with the request ID.","instance":"req_example1042"}}}}},"description":"Lists invitations for the current account and their status.","summary":"List account invitations"},"post":{"tags":["AccountUsers"],"operationId":"AccountUsers.createAccountInvitation","parameters":[{"name":"idempotency-key","in":"header","schema":{"type":"string","description":"Caller-generated retry key for duplicate-sensitive create and resend operations. Keys are scoped to the authenticated principal, method, and route and are retained for 24 hours.","title":"minLength(1)","minLength":1},"required":false,"description":"Caller-generated retry key for duplicate-sensitive create and resend operations. Keys are scoped to the authenticated principal, method, and route and are retained for 24 hours."}],"security":[{"bearerAuth":[]},{"sessionCookie":[]}],"responses":{"201":{"description":"Envelope for a single resource response.","content":{"application/json":{"schema":{"type":"object","required":["object","data"],"properties":{"object":{"type":"string","enum":["single"]},"data":{"$ref":"#/components/schemas/AccountInvitation"}},"additionalProperties":false,"description":"Envelope for a single resource response."}}}},"400":{"description":"The request did not match the expected schema","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/invalid-request","title":"Bad request","status":400,"detail":"The request did not match the expected schema.","instance":"req_example1042"}}}},"401":{"description":"Problem Details response for HTTP 401. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/missing-auth","title":"Unauthorized","status":401,"detail":"Send a valid bearer token or browser session.","instance":"req_example1042"}}}},"403":{"description":"Problem Details response for HTTP 403. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/forbidden","title":"Forbidden","status":403,"detail":"The authenticated principal does not have the required permission.","instance":"req_example1042"}}}},"404":{"description":"Problem Details response for HTTP 404. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/not-found","title":"Not found","status":404,"detail":"The requested resource was not found in the authenticated scope.","instance":"req_example1042"}}}},"409":{"description":"Problem Details response for HTTP 409. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/conflict","title":"Conflict","status":409,"detail":"The request conflicts with the current resource state.","instance":"req_example1042"}}}},"422":{"description":"Problem Details response for HTTP 422. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/validation","title":"Validation failed","status":422,"detail":"Correct the invalid fields and send the request again.","instance":"req_example1042","errors":{"issues":[{"path":["body","worker","nationality"],"message":"Expected a two-letter country code."}]}}}}},"429":{"description":"Problem Details response for HTTP 429. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/rate-limit","title":"Too many requests","status":429,"detail":"Wait for the Retry-After interval before retrying.","instance":"req_example1042"}}}},"500":{"description":"Problem Details response for HTTP 500. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/internal","title":"Internal server error","status":500,"detail":"Retry the request safely or contact Dockt support with the request ID.","instance":"req_example1042"}}}}},"description":"Invites a user to join the current account. WorkOS sends the email.","summary":"Invite account user","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateAccountInvitationBody"}}},"required":true}}},"/v1/account/invitations/{invitationId}/resend":{"post":{"tags":["AccountUsers"],"operationId":"AccountUsers.resendAccountInvitation","parameters":[{"name":"invitationId","in":"path","schema":{"$ref":"#/components/schemas/AccountInvitationId"},"required":true},{"name":"idempotency-key","in":"header","schema":{"type":"string","description":"Caller-generated retry key for duplicate-sensitive create and resend operations. Keys are scoped to the authenticated principal, method, and route and are retained for 24 hours.","title":"minLength(1)","minLength":1},"required":false,"description":"Caller-generated retry key for duplicate-sensitive create and resend operations. Keys are scoped to the authenticated principal, method, and route and are retained for 24 hours."}],"security":[{"bearerAuth":[]},{"sessionCookie":[]}],"responses":{"200":{"description":"Envelope for a single resource response.","content":{"application/json":{"schema":{"type":"object","required":["object","data"],"properties":{"object":{"type":"string","enum":["single"]},"data":{"$ref":"#/components/schemas/AccountInvitation"}},"additionalProperties":false,"description":"Envelope for a single resource response."}}}},"400":{"description":"The request did not match the expected schema","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/invalid-request","title":"Bad request","status":400,"detail":"The request did not match the expected schema.","instance":"req_example1042"}}}},"401":{"description":"Problem Details response for HTTP 401. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/missing-auth","title":"Unauthorized","status":401,"detail":"Send a valid bearer token or browser session.","instance":"req_example1042"}}}},"403":{"description":"Problem Details response for HTTP 403. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/forbidden","title":"Forbidden","status":403,"detail":"The authenticated principal does not have the required permission.","instance":"req_example1042"}}}},"404":{"description":"Problem Details response for HTTP 404. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/not-found","title":"Not found","status":404,"detail":"The requested resource was not found in the authenticated scope.","instance":"req_example1042"}}}},"409":{"description":"Problem Details response for HTTP 409. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/conflict","title":"Conflict","status":409,"detail":"The request conflicts with the current resource state.","instance":"req_example1042"}}}},"422":{"description":"Problem Details response for HTTP 422. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/validation","title":"Validation failed","status":422,"detail":"Correct the invalid fields and send the request again.","instance":"req_example1042","errors":{"issues":[{"path":["body","worker","nationality"],"message":"Expected a two-letter country code."}]}}}}},"429":{"description":"Problem Details response for HTTP 429. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/rate-limit","title":"Too many requests","status":429,"detail":"Wait for the Retry-After interval before retrying.","instance":"req_example1042"}}}},"500":{"description":"Problem Details response for HTTP 500. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/internal","title":"Internal server error","status":500,"detail":"Retry the request safely or contact Dockt support with the request ID.","instance":"req_example1042"}}}}},"description":"Resends a pending account invitation email.","summary":"Resend account invitation"}},"/v1/account/invitations/{invitationId}":{"delete":{"tags":["AccountUsers"],"operationId":"AccountUsers.deleteAccountInvitation","parameters":[{"name":"invitationId","in":"path","schema":{"$ref":"#/components/schemas/AccountInvitationId"},"required":true}],"security":[{"bearerAuth":[]},{"sessionCookie":[]}],"responses":{"200":{"description":"Envelope for a single resource response.","content":{"application/json":{"schema":{"type":"object","required":["object","data"],"properties":{"object":{"type":"string","enum":["single"]},"data":{"$ref":"#/components/schemas/DeletedAccountInvitation"}},"additionalProperties":false,"description":"Envelope for a single resource response."}}}},"400":{"description":"The request did not match the expected schema","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/invalid-request","title":"Bad request","status":400,"detail":"The request did not match the expected schema.","instance":"req_example1042"}}}},"401":{"description":"Problem Details response for HTTP 401. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/missing-auth","title":"Unauthorized","status":401,"detail":"Send a valid bearer token or browser session.","instance":"req_example1042"}}}},"403":{"description":"Problem Details response for HTTP 403. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/forbidden","title":"Forbidden","status":403,"detail":"The authenticated principal does not have the required permission.","instance":"req_example1042"}}}},"404":{"description":"Problem Details response for HTTP 404. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/not-found","title":"Not found","status":404,"detail":"The requested resource was not found in the authenticated scope.","instance":"req_example1042"}}}},"409":{"description":"Problem Details response for HTTP 409. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/conflict","title":"Conflict","status":409,"detail":"The request conflicts with the current resource state.","instance":"req_example1042"}}}},"422":{"description":"Problem Details response for HTTP 422. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/validation","title":"Validation failed","status":422,"detail":"Correct the invalid fields and send the request again.","instance":"req_example1042","errors":{"issues":[{"path":["body","worker","nationality"],"message":"Expected a two-letter country code."}]}}}}},"429":{"description":"Problem Details response for HTTP 429. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/rate-limit","title":"Too many requests","status":429,"detail":"Wait for the Retry-After interval before retrying.","instance":"req_example1042"}}}},"500":{"description":"Problem Details response for HTTP 500. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/internal","title":"Internal server error","status":500,"detail":"Retry the request safely or contact Dockt support with the request ID.","instance":"req_example1042"}}}}},"description":"Revokes a pending account invitation.","summary":"Revoke account invitation"}},"/v1/workspace":{"get":{"tags":["Workspaces"],"operationId":"Workspaces.getCurrentWorkspace","parameters":[],"security":[{"bearerAuth":[]},{"sessionCookie":[]}],"responses":{"200":{"description":"Envelope for a single resource response.","content":{"application/json":{"schema":{"type":"object","required":["object","data"],"properties":{"object":{"type":"string","enum":["single"]},"data":{"$ref":"#/components/schemas/Workspace"}},"additionalProperties":false,"description":"Envelope for a single resource response."}}}},"400":{"description":"The request did not match the expected schema","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/invalid-request","title":"Bad request","status":400,"detail":"The request did not match the expected schema.","instance":"req_example1042"}}}},"401":{"description":"Problem Details response for HTTP 401. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/missing-auth","title":"Unauthorized","status":401,"detail":"Send a valid bearer token or browser session.","instance":"req_example1042"}}}},"403":{"description":"Problem Details response for HTTP 403. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/forbidden","title":"Forbidden","status":403,"detail":"The authenticated principal does not have the required permission.","instance":"req_example1042"}}}},"404":{"description":"Problem Details response for HTTP 404. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/not-found","title":"Not found","status":404,"detail":"The requested resource was not found in the authenticated scope.","instance":"req_example1042"}}}},"409":{"description":"Problem Details response for HTTP 409. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/conflict","title":"Conflict","status":409,"detail":"The request conflicts with the current resource state.","instance":"req_example1042"}}}},"422":{"description":"Problem Details response for HTTP 422. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/validation","title":"Validation failed","status":422,"detail":"Correct the invalid fields and send the request again.","instance":"req_example1042","errors":{"issues":[{"path":["body","worker","nationality"],"message":"Expected a two-letter country code."}]}}}}},"429":{"description":"Problem Details response for HTTP 429. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/rate-limit","title":"Too many requests","status":429,"detail":"Wait for the Retry-After interval before retrying.","instance":"req_example1042"}}}},"500":{"description":"Problem Details response for HTTP 500. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/internal","title":"Internal server error","status":500,"detail":"Retry the request safely or contact Dockt support with the request ID.","instance":"req_example1042"}}}}},"description":"Returns the workspace resolved from the active session scope or workspace-scoped API credential.","summary":"Get current workspace"}},"/v1/workspaces":{"get":{"tags":["Workspaces"],"operationId":"Workspaces.listWorkspaces","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":20,"example":20,"description":"Maximum number of resources to return. Defaults to 20 and cannot exceed 100."},"required":false,"description":"Maximum number of resources to return. Defaults to 20 and cannot exceed 100."},{"name":"cursor","in":"query","schema":{"type":"string","description":"Opaque next_cursor value returned by the previous page."},"required":false,"description":"Opaque next_cursor value returned by the previous page."},{"name":"status","in":"query","schema":{"$ref":"#/components/schemas/WorkspaceStatus"},"required":false},{"name":"external_id","in":"query","schema":{"type":"string"},"required":false}],"security":[{"bearerAuth":[]},{"sessionCookie":[]}],"responses":{"200":{"description":"Envelope for a paginated collection response.","content":{"application/json":{"schema":{"type":"object","required":["object","data","has_more","next_cursor"],"properties":{"object":{"type":"string","enum":["list"]},"data":{"type":"array","items":{"$ref":"#/components/schemas/Workspace"}},"has_more":{"type":"boolean"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}]}},"additionalProperties":false,"description":"Envelope for a paginated collection response."}}}},"400":{"description":"The request did not match the expected schema","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/invalid-request","title":"Bad request","status":400,"detail":"The request did not match the expected schema.","instance":"req_example1042"}}}},"401":{"description":"Problem Details response for HTTP 401. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/missing-auth","title":"Unauthorized","status":401,"detail":"Send a valid bearer token or browser session.","instance":"req_example1042"}}}},"403":{"description":"Problem Details response for HTTP 403. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/forbidden","title":"Forbidden","status":403,"detail":"The authenticated principal does not have the required permission.","instance":"req_example1042"}}}},"404":{"description":"Problem Details response for HTTP 404. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/not-found","title":"Not found","status":404,"detail":"The requested resource was not found in the authenticated scope.","instance":"req_example1042"}}}},"409":{"description":"Problem Details response for HTTP 409. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/conflict","title":"Conflict","status":409,"detail":"The request conflicts with the current resource state.","instance":"req_example1042"}}}},"422":{"description":"Problem Details response for HTTP 422. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/validation","title":"Validation failed","status":422,"detail":"Correct the invalid fields and send the request again.","instance":"req_example1042","errors":{"issues":[{"path":["body","worker","nationality"],"message":"Expected a two-letter country code."}]}}}}},"429":{"description":"Problem Details response for HTTP 429. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/rate-limit","title":"Too many requests","status":429,"detail":"Wait for the Retry-After interval before retrying.","instance":"req_example1042"}}}},"500":{"description":"Problem Details response for HTTP 500. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/internal","title":"Internal server error","status":500,"detail":"Retry the request safely or contact Dockt support with the request ID.","instance":"req_example1042"}}}}},"description":"Lists workspaces available to the authenticated account principal.","summary":"List workspaces"},"post":{"tags":["Workspaces"],"operationId":"Workspaces.createWorkspace","parameters":[{"name":"idempotency-key","in":"header","schema":{"type":"string","description":"Caller-generated retry key for duplicate-sensitive create and resend operations. Keys are scoped to the authenticated principal, method, and route and are retained for 24 hours.","title":"minLength(1)","minLength":1},"required":false,"description":"Caller-generated retry key for duplicate-sensitive create and resend operations. Keys are scoped to the authenticated principal, method, and route and are retained for 24 hours."}],"security":[{"bearerAuth":[]},{"sessionCookie":[]}],"responses":{"201":{"description":"Envelope for a single resource response.","content":{"application/json":{"schema":{"type":"object","required":["object","data"],"properties":{"object":{"type":"string","enum":["single"]},"data":{"$ref":"#/components/schemas/Workspace"}},"additionalProperties":false,"description":"Envelope for a single resource response."}}}},"400":{"description":"The request did not match the expected schema","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/invalid-request","title":"Bad request","status":400,"detail":"The request did not match the expected schema.","instance":"req_example1042"}}}},"401":{"description":"Problem Details response for HTTP 401. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/missing-auth","title":"Unauthorized","status":401,"detail":"Send a valid bearer token or browser session.","instance":"req_example1042"}}}},"403":{"description":"Problem Details response for HTTP 403. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/forbidden","title":"Forbidden","status":403,"detail":"The authenticated principal does not have the required permission.","instance":"req_example1042"}}}},"404":{"description":"Problem Details response for HTTP 404. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/not-found","title":"Not found","status":404,"detail":"The requested resource was not found in the authenticated scope.","instance":"req_example1042"}}}},"409":{"description":"Problem Details response for HTTP 409. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/conflict","title":"Conflict","status":409,"detail":"The request conflicts with the current resource state.","instance":"req_example1042"}}}},"422":{"description":"Problem Details response for HTTP 422. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/validation","title":"Validation failed","status":422,"detail":"Correct the invalid fields and send the request again.","instance":"req_example1042","errors":{"issues":[{"path":["body","worker","nationality"],"message":"Expected a two-letter country code."}]}}}}},"429":{"description":"Problem Details response for HTTP 429. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/rate-limit","title":"Too many requests","status":429,"detail":"Wait for the Retry-After interval before retrying.","instance":"req_example1042"}}}},"500":{"description":"Problem Details response for HTTP 500. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/internal","title":"Internal server error","status":500,"detail":"Retry the request safely or contact Dockt support with the request ID.","instance":"req_example1042"}}}}},"description":"Creates a new workspace for an account-scoped principal.","summary":"Create workspace","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateWorkspaceBody"}}},"required":true}}},"/v1/workspaces/{workspaceId}":{"get":{"tags":["Workspaces"],"operationId":"Workspaces.getWorkspace","parameters":[{"name":"workspaceId","in":"path","schema":{"$ref":"#/components/schemas/WorkspaceId"},"required":true}],"security":[{"bearerAuth":[]},{"sessionCookie":[]}],"responses":{"200":{"description":"Envelope for a single resource response.","content":{"application/json":{"schema":{"type":"object","required":["object","data"],"properties":{"object":{"type":"string","enum":["single"]},"data":{"$ref":"#/components/schemas/Workspace"}},"additionalProperties":false,"description":"Envelope for a single resource response."}}}},"400":{"description":"The request did not match the expected schema","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/invalid-request","title":"Bad request","status":400,"detail":"The request did not match the expected schema.","instance":"req_example1042"}}}},"401":{"description":"Problem Details response for HTTP 401. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/missing-auth","title":"Unauthorized","status":401,"detail":"Send a valid bearer token or browser session.","instance":"req_example1042"}}}},"403":{"description":"Problem Details response for HTTP 403. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/forbidden","title":"Forbidden","status":403,"detail":"The authenticated principal does not have the required permission.","instance":"req_example1042"}}}},"404":{"description":"Problem Details response for HTTP 404. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/not-found","title":"Not found","status":404,"detail":"The requested resource was not found in the authenticated scope.","instance":"req_example1042"}}}},"409":{"description":"Problem Details response for HTTP 409. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/conflict","title":"Conflict","status":409,"detail":"The request conflicts with the current resource state.","instance":"req_example1042"}}}},"422":{"description":"Problem Details response for HTTP 422. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/validation","title":"Validation failed","status":422,"detail":"Correct the invalid fields and send the request again.","instance":"req_example1042","errors":{"issues":[{"path":["body","worker","nationality"],"message":"Expected a two-letter country code."}]}}}}},"429":{"description":"Problem Details response for HTTP 429. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/rate-limit","title":"Too many requests","status":429,"detail":"Wait for the Retry-After interval before retrying.","instance":"req_example1042"}}}},"500":{"description":"Problem Details response for HTTP 500. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/internal","title":"Internal server error","status":500,"detail":"Retry the request safely or contact Dockt support with the request ID.","instance":"req_example1042"}}}}},"description":"Returns a specific workspace owned by the authenticated account.","summary":"Get workspace"},"patch":{"tags":["Workspaces"],"operationId":"Workspaces.updateWorkspace","parameters":[{"name":"workspaceId","in":"path","schema":{"$ref":"#/components/schemas/WorkspaceId"},"required":true}],"security":[{"bearerAuth":[]},{"sessionCookie":[]}],"responses":{"200":{"description":"Envelope for a single resource response.","content":{"application/json":{"schema":{"type":"object","required":["object","data"],"properties":{"object":{"type":"string","enum":["single"]},"data":{"$ref":"#/components/schemas/Workspace"}},"additionalProperties":false,"description":"Envelope for a single resource response."}}}},"400":{"description":"The request did not match the expected schema","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/invalid-request","title":"Bad request","status":400,"detail":"The request did not match the expected schema.","instance":"req_example1042"}}}},"401":{"description":"Problem Details response for HTTP 401. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/missing-auth","title":"Unauthorized","status":401,"detail":"Send a valid bearer token or browser session.","instance":"req_example1042"}}}},"403":{"description":"Problem Details response for HTTP 403. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/forbidden","title":"Forbidden","status":403,"detail":"The authenticated principal does not have the required permission.","instance":"req_example1042"}}}},"404":{"description":"Problem Details response for HTTP 404. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/not-found","title":"Not found","status":404,"detail":"The requested resource was not found in the authenticated scope.","instance":"req_example1042"}}}},"409":{"description":"Problem Details response for HTTP 409. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/conflict","title":"Conflict","status":409,"detail":"The request conflicts with the current resource state.","instance":"req_example1042"}}}},"422":{"description":"Problem Details response for HTTP 422. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/validation","title":"Validation failed","status":422,"detail":"Correct the invalid fields and send the request again.","instance":"req_example1042","errors":{"issues":[{"path":["body","worker","nationality"],"message":"Expected a two-letter country code."}]}}}}},"429":{"description":"Problem Details response for HTTP 429. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/rate-limit","title":"Too many requests","status":429,"detail":"Wait for the Retry-After interval before retrying.","instance":"req_example1042"}}}},"500":{"description":"Problem Details response for HTTP 500. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/internal","title":"Internal server error","status":500,"detail":"Retry the request safely or contact Dockt support with the request ID.","instance":"req_example1042"}}}}},"description":"Updates a specific workspace owned by the authenticated account.","summary":"Update workspace","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateWorkspaceBody"}}},"required":true}}},"/v1/account/api-credentials":{"get":{"tags":["ApiCredentials"],"operationId":"ApiCredentials.listAccountApiCredentials","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":20,"example":20,"description":"Maximum number of resources to return. Defaults to 20 and cannot exceed 100."},"required":false,"description":"Maximum number of resources to return. Defaults to 20 and cannot exceed 100."},{"name":"cursor","in":"query","schema":{"type":"string","description":"Opaque next_cursor value returned by the previous page."},"required":false,"description":"Opaque next_cursor value returned by the previous page."}],"security":[{"bearerAuth":[]},{"sessionCookie":[]}],"responses":{"200":{"description":"Envelope for a paginated collection response.","content":{"application/json":{"schema":{"type":"object","required":["object","data","has_more","next_cursor"],"properties":{"object":{"type":"string","enum":["list"]},"data":{"type":"array","items":{"$ref":"#/components/schemas/ApiCredential"}},"has_more":{"type":"boolean"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}]}},"additionalProperties":false,"description":"Envelope for a paginated collection response."}}}},"400":{"description":"The request did not match the expected schema","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/invalid-request","title":"Bad request","status":400,"detail":"The request did not match the expected schema.","instance":"req_example1042"}}}},"401":{"description":"Problem Details response for HTTP 401. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/missing-auth","title":"Unauthorized","status":401,"detail":"Send a valid bearer token or browser session.","instance":"req_example1042"}}}},"403":{"description":"Problem Details response for HTTP 403. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/forbidden","title":"Forbidden","status":403,"detail":"The authenticated principal does not have the required permission.","instance":"req_example1042"}}}},"404":{"description":"Problem Details response for HTTP 404. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/not-found","title":"Not found","status":404,"detail":"The requested resource was not found in the authenticated scope.","instance":"req_example1042"}}}},"409":{"description":"Problem Details response for HTTP 409. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/conflict","title":"Conflict","status":409,"detail":"The request conflicts with the current resource state.","instance":"req_example1042"}}}},"422":{"description":"Problem Details response for HTTP 422. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/validation","title":"Validation failed","status":422,"detail":"Correct the invalid fields and send the request again.","instance":"req_example1042","errors":{"issues":[{"path":["body","worker","nationality"],"message":"Expected a two-letter country code."}]}}}}},"429":{"description":"Problem Details response for HTTP 429. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/rate-limit","title":"Too many requests","status":429,"detail":"Wait for the Retry-After interval before retrying.","instance":"req_example1042"}}}},"500":{"description":"Problem Details response for HTTP 500. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/internal","title":"Internal server error","status":500,"detail":"Retry the request safely or contact Dockt support with the request ID.","instance":"req_example1042"}}}}},"description":"Lists machine credentials that act at account scope.","summary":"List account API credentials"},"post":{"tags":["ApiCredentials"],"operationId":"ApiCredentials.createAccountApiCredential","parameters":[{"name":"idempotency-key","in":"header","schema":{"type":"string","description":"Caller-generated retry key for duplicate-sensitive create and resend operations. Keys are scoped to the authenticated principal, method, and route and are retained for 24 hours.","title":"minLength(1)","minLength":1},"required":false,"description":"Caller-generated retry key for duplicate-sensitive create and resend operations. Keys are scoped to the authenticated principal, method, and route and are retained for 24 hours."}],"security":[{"bearerAuth":[]},{"sessionCookie":[]}],"responses":{"201":{"description":"Envelope for a single resource response.","content":{"application/json":{"schema":{"type":"object","required":["object","data"],"properties":{"object":{"type":"string","enum":["single"]},"data":{"$ref":"#/components/schemas/ProvisionedApiCredential"}},"additionalProperties":false,"description":"Envelope for a single resource response."}}}},"400":{"description":"The request did not match the expected schema","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/invalid-request","title":"Bad request","status":400,"detail":"The request did not match the expected schema.","instance":"req_example1042"}}}},"401":{"description":"Problem Details response for HTTP 401. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/missing-auth","title":"Unauthorized","status":401,"detail":"Send a valid bearer token or browser session.","instance":"req_example1042"}}}},"403":{"description":"Problem Details response for HTTP 403. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/forbidden","title":"Forbidden","status":403,"detail":"The authenticated principal does not have the required permission.","instance":"req_example1042"}}}},"404":{"description":"Problem Details response for HTTP 404. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/not-found","title":"Not found","status":404,"detail":"The requested resource was not found in the authenticated scope.","instance":"req_example1042"}}}},"409":{"description":"Problem Details response for HTTP 409. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/conflict","title":"Conflict","status":409,"detail":"The request conflicts with the current resource state.","instance":"req_example1042"}}}},"422":{"description":"Problem Details response for HTTP 422. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/validation","title":"Validation failed","status":422,"detail":"Correct the invalid fields and send the request again.","instance":"req_example1042","errors":{"issues":[{"path":["body","worker","nationality"],"message":"Expected a two-letter country code."}]}}}}},"429":{"description":"Problem Details response for HTTP 429. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/rate-limit","title":"Too many requests","status":429,"detail":"Wait for the Retry-After interval before retrying.","instance":"req_example1042"}}}},"500":{"description":"Problem Details response for HTTP 500. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/internal","title":"Internal server error","status":500,"detail":"Retry the request safely or contact Dockt support with the request ID.","instance":"req_example1042"}}}}},"description":"Creates an account-scoped machine credential. The returned secret is shown once and cannot be retrieved later.","summary":"Create account API credential","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateAccountApiCredentialBody"}}},"required":true}}},"/v1/account/api-credentials/{credentialId}":{"patch":{"tags":["ApiCredentials"],"operationId":"ApiCredentials.updateAccountApiCredential","parameters":[{"name":"credentialId","in":"path","schema":{"$ref":"#/components/schemas/ApiCredentialId"},"required":true}],"security":[{"bearerAuth":[]},{"sessionCookie":[]}],"responses":{"200":{"description":"Envelope for a single resource response.","content":{"application/json":{"schema":{"type":"object","required":["object","data"],"properties":{"object":{"type":"string","enum":["single"]},"data":{"$ref":"#/components/schemas/ApiCredential"}},"additionalProperties":false,"description":"Envelope for a single resource response."}}}},"400":{"description":"The request did not match the expected schema","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/invalid-request","title":"Bad request","status":400,"detail":"The request did not match the expected schema.","instance":"req_example1042"}}}},"401":{"description":"Problem Details response for HTTP 401. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/missing-auth","title":"Unauthorized","status":401,"detail":"Send a valid bearer token or browser session.","instance":"req_example1042"}}}},"403":{"description":"Problem Details response for HTTP 403. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/forbidden","title":"Forbidden","status":403,"detail":"The authenticated principal does not have the required permission.","instance":"req_example1042"}}}},"404":{"description":"Problem Details response for HTTP 404. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/not-found","title":"Not found","status":404,"detail":"The requested resource was not found in the authenticated scope.","instance":"req_example1042"}}}},"409":{"description":"Problem Details response for HTTP 409. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/conflict","title":"Conflict","status":409,"detail":"The request conflicts with the current resource state.","instance":"req_example1042"}}}},"422":{"description":"Problem Details response for HTTP 422. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/validation","title":"Validation failed","status":422,"detail":"Correct the invalid fields and send the request again.","instance":"req_example1042","errors":{"issues":[{"path":["body","worker","nationality"],"message":"Expected a two-letter country code."}]}}}}},"429":{"description":"Problem Details response for HTTP 429. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/rate-limit","title":"Too many requests","status":429,"detail":"Wait for the Retry-After interval before retrying.","instance":"req_example1042"}}}},"500":{"description":"Problem Details response for HTTP 500. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/internal","title":"Internal server error","status":500,"detail":"Retry the request safely or contact Dockt support with the request ID.","instance":"req_example1042"}}}}},"description":"Updates account-scoped credential metadata or disables the credential.","summary":"Update account API credential","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateApiCredentialBody"}}},"required":true}},"delete":{"tags":["ApiCredentials"],"operationId":"ApiCredentials.deleteAccountApiCredential","parameters":[{"name":"credentialId","in":"path","schema":{"$ref":"#/components/schemas/ApiCredentialId"},"required":true}],"security":[{"bearerAuth":[]},{"sessionCookie":[]}],"responses":{"200":{"description":"Envelope for a single resource response.","content":{"application/json":{"schema":{"type":"object","required":["object","data"],"properties":{"object":{"type":"string","enum":["single"]},"data":{"$ref":"#/components/schemas/DeletedApiCredential"}},"additionalProperties":false,"description":"Envelope for a single resource response."}}}},"400":{"description":"The request did not match the expected schema","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/invalid-request","title":"Bad request","status":400,"detail":"The request did not match the expected schema.","instance":"req_example1042"}}}},"401":{"description":"Problem Details response for HTTP 401. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/missing-auth","title":"Unauthorized","status":401,"detail":"Send a valid bearer token or browser session.","instance":"req_example1042"}}}},"403":{"description":"Problem Details response for HTTP 403. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/forbidden","title":"Forbidden","status":403,"detail":"The authenticated principal does not have the required permission.","instance":"req_example1042"}}}},"404":{"description":"Problem Details response for HTTP 404. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/not-found","title":"Not found","status":404,"detail":"The requested resource was not found in the authenticated scope.","instance":"req_example1042"}}}},"409":{"description":"Problem Details response for HTTP 409. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/conflict","title":"Conflict","status":409,"detail":"The request conflicts with the current resource state.","instance":"req_example1042"}}}},"422":{"description":"Problem Details response for HTTP 422. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/validation","title":"Validation failed","status":422,"detail":"Correct the invalid fields and send the request again.","instance":"req_example1042","errors":{"issues":[{"path":["body","worker","nationality"],"message":"Expected a two-letter country code."}]}}}}},"429":{"description":"Problem Details response for HTTP 429. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/rate-limit","title":"Too many requests","status":429,"detail":"Wait for the Retry-After interval before retrying.","instance":"req_example1042"}}}},"500":{"description":"Problem Details response for HTTP 500. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/internal","title":"Internal server error","status":500,"detail":"Retry the request safely or contact Dockt support with the request ID.","instance":"req_example1042"}}}}},"description":"Deletes an account-scoped credential and prevents future use.","summary":"Delete account API credential"}},"/v1/api-credentials":{"get":{"tags":["ApiCredentials"],"operationId":"ApiCredentials.listWorkspaceApiCredentials","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":20,"example":20,"description":"Maximum number of resources to return. Defaults to 20 and cannot exceed 100."},"required":false,"description":"Maximum number of resources to return. Defaults to 20 and cannot exceed 100."},{"name":"cursor","in":"query","schema":{"type":"string","description":"Opaque next_cursor value returned by the previous page."},"required":false,"description":"Opaque next_cursor value returned by the previous page."}],"security":[{"bearerAuth":[]},{"sessionCookie":[]}],"responses":{"200":{"description":"Envelope for a paginated collection response.","content":{"application/json":{"schema":{"type":"object","required":["object","data","has_more","next_cursor"],"properties":{"object":{"type":"string","enum":["list"]},"data":{"type":"array","items":{"$ref":"#/components/schemas/ApiCredential"}},"has_more":{"type":"boolean"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}]}},"additionalProperties":false,"description":"Envelope for a paginated collection response."}}}},"400":{"description":"The request did not match the expected schema","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/invalid-request","title":"Bad request","status":400,"detail":"The request did not match the expected schema.","instance":"req_example1042"}}}},"401":{"description":"Problem Details response for HTTP 401. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/missing-auth","title":"Unauthorized","status":401,"detail":"Send a valid bearer token or browser session.","instance":"req_example1042"}}}},"403":{"description":"Problem Details response for HTTP 403. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/forbidden","title":"Forbidden","status":403,"detail":"The authenticated principal does not have the required permission.","instance":"req_example1042"}}}},"404":{"description":"Problem Details response for HTTP 404. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/not-found","title":"Not found","status":404,"detail":"The requested resource was not found in the authenticated scope.","instance":"req_example1042"}}}},"409":{"description":"Problem Details response for HTTP 409. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/conflict","title":"Conflict","status":409,"detail":"The request conflicts with the current resource state.","instance":"req_example1042"}}}},"422":{"description":"Problem Details response for HTTP 422. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/validation","title":"Validation failed","status":422,"detail":"Correct the invalid fields and send the request again.","instance":"req_example1042","errors":{"issues":[{"path":["body","worker","nationality"],"message":"Expected a two-letter country code."}]}}}}},"429":{"description":"Problem Details response for HTTP 429. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/rate-limit","title":"Too many requests","status":429,"detail":"Wait for the Retry-After interval before retrying.","instance":"req_example1042"}}}},"500":{"description":"Problem Details response for HTTP 500. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/internal","title":"Internal server error","status":500,"detail":"Retry the request safely or contact Dockt support with the request ID.","instance":"req_example1042"}}}}},"description":"Lists machine credentials scoped to the active workspace.","summary":"List workspace API credentials"},"post":{"tags":["ApiCredentials"],"operationId":"ApiCredentials.createWorkspaceApiCredential","parameters":[{"name":"idempotency-key","in":"header","schema":{"type":"string","description":"Caller-generated retry key for duplicate-sensitive create and resend operations. Keys are scoped to the authenticated principal, method, and route and are retained for 24 hours.","title":"minLength(1)","minLength":1},"required":false,"description":"Caller-generated retry key for duplicate-sensitive create and resend operations. Keys are scoped to the authenticated principal, method, and route and are retained for 24 hours."}],"security":[{"bearerAuth":[]},{"sessionCookie":[]}],"responses":{"201":{"description":"Envelope for a single resource response.","content":{"application/json":{"schema":{"type":"object","required":["object","data"],"properties":{"object":{"type":"string","enum":["single"]},"data":{"$ref":"#/components/schemas/ProvisionedApiCredential"}},"additionalProperties":false,"description":"Envelope for a single resource response."}}}},"400":{"description":"The request did not match the expected schema","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/invalid-request","title":"Bad request","status":400,"detail":"The request did not match the expected schema.","instance":"req_example1042"}}}},"401":{"description":"Problem Details response for HTTP 401. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/missing-auth","title":"Unauthorized","status":401,"detail":"Send a valid bearer token or browser session.","instance":"req_example1042"}}}},"403":{"description":"Problem Details response for HTTP 403. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/forbidden","title":"Forbidden","status":403,"detail":"The authenticated principal does not have the required permission.","instance":"req_example1042"}}}},"404":{"description":"Problem Details response for HTTP 404. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/not-found","title":"Not found","status":404,"detail":"The requested resource was not found in the authenticated scope.","instance":"req_example1042"}}}},"409":{"description":"Problem Details response for HTTP 409. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/conflict","title":"Conflict","status":409,"detail":"The request conflicts with the current resource state.","instance":"req_example1042"}}}},"422":{"description":"Problem Details response for HTTP 422. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/validation","title":"Validation failed","status":422,"detail":"Correct the invalid fields and send the request again.","instance":"req_example1042","errors":{"issues":[{"path":["body","worker","nationality"],"message":"Expected a two-letter country code."}]}}}}},"429":{"description":"Problem Details response for HTTP 429. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/rate-limit","title":"Too many requests","status":429,"detail":"Wait for the Retry-After interval before retrying.","instance":"req_example1042"}}}},"500":{"description":"Problem Details response for HTTP 500. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/internal","title":"Internal server error","status":500,"detail":"Retry the request safely or contact Dockt support with the request ID.","instance":"req_example1042"}}}}},"description":"Creates a machine credential for the active workspace. The returned secret is shown once and cannot be retrieved later.","summary":"Create workspace API credential","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateWorkspaceApiCredentialBody"}}},"required":true}}},"/v1/api-credentials/{credentialId}":{"patch":{"tags":["ApiCredentials"],"operationId":"ApiCredentials.updateWorkspaceApiCredential","parameters":[{"name":"credentialId","in":"path","schema":{"$ref":"#/components/schemas/ApiCredentialId"},"required":true}],"security":[{"bearerAuth":[]},{"sessionCookie":[]}],"responses":{"200":{"description":"Envelope for a single resource response.","content":{"application/json":{"schema":{"type":"object","required":["object","data"],"properties":{"object":{"type":"string","enum":["single"]},"data":{"$ref":"#/components/schemas/ApiCredential"}},"additionalProperties":false,"description":"Envelope for a single resource response."}}}},"400":{"description":"The request did not match the expected schema","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/invalid-request","title":"Bad request","status":400,"detail":"The request did not match the expected schema.","instance":"req_example1042"}}}},"401":{"description":"Problem Details response for HTTP 401. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/missing-auth","title":"Unauthorized","status":401,"detail":"Send a valid bearer token or browser session.","instance":"req_example1042"}}}},"403":{"description":"Problem Details response for HTTP 403. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/forbidden","title":"Forbidden","status":403,"detail":"The authenticated principal does not have the required permission.","instance":"req_example1042"}}}},"404":{"description":"Problem Details response for HTTP 404. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/not-found","title":"Not found","status":404,"detail":"The requested resource was not found in the authenticated scope.","instance":"req_example1042"}}}},"409":{"description":"Problem Details response for HTTP 409. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/conflict","title":"Conflict","status":409,"detail":"The request conflicts with the current resource state.","instance":"req_example1042"}}}},"422":{"description":"Problem Details response for HTTP 422. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/validation","title":"Validation failed","status":422,"detail":"Correct the invalid fields and send the request again.","instance":"req_example1042","errors":{"issues":[{"path":["body","worker","nationality"],"message":"Expected a two-letter country code."}]}}}}},"429":{"description":"Problem Details response for HTTP 429. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/rate-limit","title":"Too many requests","status":429,"detail":"Wait for the Retry-After interval before retrying.","instance":"req_example1042"}}}},"500":{"description":"Problem Details response for HTTP 500. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/internal","title":"Internal server error","status":500,"detail":"Retry the request safely or contact Dockt support with the request ID.","instance":"req_example1042"}}}}},"description":"Updates workspace-scoped credential metadata or disables the credential.","summary":"Update workspace API credential","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateApiCredentialBody"}}},"required":true}},"delete":{"tags":["ApiCredentials"],"operationId":"ApiCredentials.deleteWorkspaceApiCredential","parameters":[{"name":"credentialId","in":"path","schema":{"$ref":"#/components/schemas/ApiCredentialId"},"required":true}],"security":[{"bearerAuth":[]},{"sessionCookie":[]}],"responses":{"200":{"description":"Envelope for a single resource response.","content":{"application/json":{"schema":{"type":"object","required":["object","data"],"properties":{"object":{"type":"string","enum":["single"]},"data":{"$ref":"#/components/schemas/DeletedApiCredential"}},"additionalProperties":false,"description":"Envelope for a single resource response."}}}},"400":{"description":"The request did not match the expected schema","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/invalid-request","title":"Bad request","status":400,"detail":"The request did not match the expected schema.","instance":"req_example1042"}}}},"401":{"description":"Problem Details response for HTTP 401. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/missing-auth","title":"Unauthorized","status":401,"detail":"Send a valid bearer token or browser session.","instance":"req_example1042"}}}},"403":{"description":"Problem Details response for HTTP 403. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/forbidden","title":"Forbidden","status":403,"detail":"The authenticated principal does not have the required permission.","instance":"req_example1042"}}}},"404":{"description":"Problem Details response for HTTP 404. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/not-found","title":"Not found","status":404,"detail":"The requested resource was not found in the authenticated scope.","instance":"req_example1042"}}}},"409":{"description":"Problem Details response for HTTP 409. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/conflict","title":"Conflict","status":409,"detail":"The request conflicts with the current resource state.","instance":"req_example1042"}}}},"422":{"description":"Problem Details response for HTTP 422. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/validation","title":"Validation failed","status":422,"detail":"Correct the invalid fields and send the request again.","instance":"req_example1042","errors":{"issues":[{"path":["body","worker","nationality"],"message":"Expected a two-letter country code."}]}}}}},"429":{"description":"Problem Details response for HTTP 429. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/rate-limit","title":"Too many requests","status":429,"detail":"Wait for the Retry-After interval before retrying.","instance":"req_example1042"}}}},"500":{"description":"Problem Details response for HTTP 500. The type URI is the stable machine-readable error code.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"},"example":{"type":"https://docs.dockt.com/errors/internal","title":"Internal server error","status":500,"detail":"Retry the request safely or contact Dockt support with the request ID.","instance":"req_example1042"}}}}},"description":"Deletes a workspace-scoped credential and prevents future use.","summary":"Delete workspace API credential"}}},"components":{"schemas":{"WebhookEvent":{"anyOf":[{"$ref":"#/components/schemas/DocumentEvent"},{"$ref":"#/components/schemas/AssessmentCompletedEvent"},{"$ref":"#/components/schemas/WebhookTestEvent"}],"description":"Webhook event envelope delivered by Dockt."},"DocumentEvent":{"type":"object","required":["object","id","type","created_at","data"],"properties":{"object":{"type":"string","enum":["event"]},"id":{"$ref":"#/components/schemas/EventId"},"type":{"type":"string","enum":["document.completed","document.failed"]},"created_at":{"$ref":"#/components/schemas/DateTimeString"},"data":{"$ref":"#/components/schemas/DocumentEventData"}},"additionalProperties":false,"description":"Webhook event envelope for document lifecycle events."},"EventId":{"type":"string","description":"Unique Dockt event identifier.","pattern":"^evt_[A-Za-z0-9]+$"},"DateTimeString":{"type":"string","format":"date-time","description":"ISO 8601 date-time string.","examples":["2026-08-06T09:30:00Z"]},"DocumentEventData":{"type":"object","required":["document"],"properties":{"document":{"$ref":"#/components/schemas/DocumentSummary"}},"additionalProperties":false,"description":"Compact document summary for a lifecycle event. Fetch the canonical Document for evidence detail."},"DocumentSummary":{"type":"object","required":["object","id","workspace_id","assessment_id","status","document_result","filename","classified_as","issues","uploaded_at","completed_at"],"properties":{"object":{"type":"string","enum":["document"]},"id":{"$ref":"#/components/schemas/DocumentResourceId"},"workspace_id":{"$ref":"#/components/schemas/WorkspaceId"},"assessment_id":{"anyOf":[{"$ref":"#/components/schemas/DocumentAssessmentId"},{"type":"null"}]},"status":{"$ref":"#/components/schemas/DocumentStatus"},"document_result":{"anyOf":[{"$ref":"#/components/schemas/DocumentResult"},{"type":"null"}]},"filename":{"type":"string","description":"a string at least 1 character(s) long","title":"minLength(1)","minLength":1},"classified_as":{"anyOf":[{"$ref":"#/components/schemas/ClassifiedDocument"},{"type":"null"}]},"issues":{"type":"array","items":{"$ref":"#/components/schemas/DocumentIssue"}},"uploaded_at":{"$ref":"#/components/schemas/DateTimeString"},"completed_at":{"anyOf":[{"$ref":"#/components/schemas/DateTimeString"},{"type":"null"}]}},"additionalProperties":false,"description":"Compact document representation returned from collection reads."},"DocumentResourceId":{"type":"string","pattern":"^doc_[A-Za-z0-9_]+$","description":"Unique Dockt document identifier.","examples":["doc_example"]},"WorkspaceId":{"type":"string","pattern":"^wsp_[A-Za-z0-9_]+$","description":"Unique Dockt workspace identifier.","examples":["wsp_example"]},"DocumentAssessmentId":{"type":"string","pattern":"^ast_[A-Za-z0-9_]+$","description":"Assessment identifier associated with a document.","examples":["ast_example"]},"DocumentStatus":{"type":"string","enum":["uploaded","processing","completed","failed","withdrawn"],"description":"Processing lifecycle state for a workspace document."},"DocumentResult":{"type":"string","enum":["valid","review_required","invalid"],"description":"Document-intrinsic verdict produced after processing completes."},"ClassifiedDocument":{"type":"object","required":["family","type","variant"],"properties":{"family":{"type":"string","description":"a string at least 1 character(s) long","title":"minLength(1)","minLength":1},"type":{"type":"string","description":"a string at least 1 character(s) long","title":"minLength(1)","minLength":1},"variant":{"anyOf":[{"type":"string","description":"a string at least 1 character(s) long","title":"minLength(1)","minLength":1},{"type":"null"}]}},"additionalProperties":false,"description":"Dockt document classification assigned after processing."},"DocumentIssue":{"type":"object","required":["code","reason"],"properties":{"code":{"type":"string","description":"a string at least 1 character(s) long","title":"minLength(1)","minLength":1},"reason":{"type":"string","description":"a string at least 1 character(s) long","title":"minLength(1)","minLength":1}},"additionalProperties":false,"description":"Machine-readable document issue with a human-readable reason."},"AssessmentCompletedEvent":{"type":"object","required":["object","id","type","created_at","data"],"properties":{"object":{"type":"string","enum":["event"]},"id":{"$ref":"#/components/schemas/EventId"},"type":{"type":"string","enum":["assessment.completed"]},"created_at":{"$ref":"#/components/schemas/DateTimeString"},"data":{"$ref":"#/components/schemas/AssessmentCompletedEventData"}},"additionalProperties":false,"description":"Webhook event envelope for assessment completion events."},"AssessmentCompletedEventData":{"type":"object","required":["assessment_id","decision_id","decision","signal"],"properties":{"assessment_id":{"$ref":"#/components/schemas/AssessmentResourceId"},"decision_id":{"$ref":"#/components/schemas/DecisionId"},"decision":{"$ref":"#/components/schemas/AssessmentOutcome"},"signal":{"$ref":"#/components/schemas/PublicSignal"}},"additionalProperties":false,"description":"Webhook payload data for assessment completion events."},"AssessmentResourceId":{"type":"string","pattern":"^ast_[A-Za-z0-9_]+$","description":"Unique Dockt assessment identifier.","examples":["ast_example"]},"DecisionId":{"type":"string","pattern":"^dec_[A-Za-z0-9_]+$","description":"Unique Dockt decision identifier.","examples":["dec_example"]},"AssessmentOutcome":{"type":"string","enum":["incomplete","compliant","non_compliant","review_required"],"description":"Dockt decision for an assessment based on available worker context and evidence."},"PublicSignal":{"type":"string","enum":["green","yellow","red"],"description":"Customer-facing traffic-light signal derived from the semantic decision."},"WebhookTestEvent":{"type":"object","required":["object","id","type","created_at","data"],"properties":{"object":{"type":"string","enum":["event"]},"id":{"$ref":"#/components/schemas/EventId"},"type":{"type":"string","enum":["webhook.test"]},"created_at":{"$ref":"#/components/schemas/DateTimeString"},"data":{"type":"object","required":["webhook_id"],"properties":{"webhook_id":{"$ref":"#/components/schemas/WebhookId"}},"additionalProperties":false}},"additionalProperties":false,"description":"Developer-initiated test event delivered to one webhook endpoint."},"WebhookId":{"type":"string","description":"Unique Dockt webhook endpoint identifier.","pattern":"^whk_[A-Za-z0-9]+$"},"ProblemDetails":{"type":"object","required":["type","title","status","detail","instance"],"properties":{"type":{"type":"string"},"title":{"type":"string"},"status":{"type":"number"},"detail":{"type":"string"},"instance":{"anyOf":[{"$ref":"#/components/schemas/RequestId"},{"type":"null"}]},"errors":{"$ref":"#/components/schemas/ProblemErrors"}},"additionalProperties":false,"description":"Standard error response with a stable status, human-readable detail, and optional validation errors."},"RequestId":{"type":"string","description":"Request identifier that Dockt support can use to trace an API call.","examples":["req_example1042"]},"ProblemErrors":{"type":"object","required":["issues"],"properties":{"issues":{"type":"array","items":{"$ref":"#/components/schemas/ProblemIssue"}}},"additionalProperties":false,"description":"Structured request validation issues."},"ProblemIssue":{"type":"object","required":["path","message"],"properties":{"path":{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"}]}},"message":{"type":"string"}},"additionalProperties":false,"description":"One request validation issue with a stable field path and human-readable message."},"UploadDocumentBody":{"type":"object","required":["file"],"additionalProperties":false,"properties":{"file":{"type":"string","format":"binary","description":"One PDF or image file, no larger than 10 MB."}},"description":"One standalone document upload."},"Document":{"type":"object","required":["object","id","workspace_id","assessment_id","status","document_result","filename","classified_as","facts","verifications","enrichment","credential_assertions","issues","fraud_signals","findings","uploaded_at","completed_at"],"properties":{"object":{"type":"string","enum":["document"]},"id":{"$ref":"#/components/schemas/DocumentResourceId"},"workspace_id":{"$ref":"#/components/schemas/WorkspaceId"},"assessment_id":{"anyOf":[{"$ref":"#/components/schemas/DocumentAssessmentId"},{"type":"null"}]},"status":{"$ref":"#/components/schemas/DocumentStatus"},"document_result":{"anyOf":[{"$ref":"#/components/schemas/DocumentResult"},{"type":"null"}]},"filename":{"type":"string","description":"a string at least 1 character(s) long","title":"minLength(1)","minLength":1},"classified_as":{"anyOf":[{"$ref":"#/components/schemas/ClassifiedDocument"},{"type":"null"}]},"facts":{"$ref":"#/components/schemas/DocumentFacts"},"verifications":{"type":"array","items":{"$ref":"#/components/schemas/DocumentVerification"}},"enrichment":{"$ref":"#/components/schemas/DocumentEnrichment"},"credential_assertions":{"type":"array","items":{"$ref":"#/components/schemas/CredentialAssertion"}},"issues":{"type":"array","items":{"$ref":"#/components/schemas/DocumentIssue"}},"fraud_signals":{"type":"array","items":{"$ref":"#/components/schemas/FraudSignal"}},"findings":{"type":"array","items":{"$ref":"#/components/schemas/DocumentFinding"}},"uploaded_at":{"$ref":"#/components/schemas/DateTimeString"},"completed_at":{"anyOf":[{"$ref":"#/components/schemas/DateTimeString"},{"type":"null"}]}},"additionalProperties":false,"description":"Canonical workspace document and public document-intelligence projection."},"DocumentFacts":{"type":"object","description":"Public extracted facts keyed by normalized claim key. Empty keys and raw_text are omitted.","propertyNames":{"not":{"const":"raw_text"}},"additionalProperties":{"type":"array","minItems":1,"items":{"$ref":"#/components/schemas/DocumentFactEntry"}}},"DocumentFactEntry":{"type":"object","required":["value","confidence"],"properties":{"value":{"$ref":"#/components/schemas/DocumentFactValue"},"confidence":{"anyOf":[{"type":"number","description":"a number less than or equal to 1","title":"lessThanOrEqualTo(1)","minimum":0,"maximum":1},{"type":"null"}]}},"additionalProperties":false,"description":"One extracted value for a public document fact key."},"DocumentFactValue":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object","required":[],"properties":{},"additionalProperties":{"$id":"/schemas/unknown","title":"unknown"}},{"type":"null"}],"description":"Public extracted document fact value."},"DocumentVerification":{"type":"object","required":["status","source","reason"],"properties":{"status":{"$ref":"#/components/schemas/DocumentVerificationStatus"},"source":{"anyOf":[{"type":"string","description":"a string at least 1 character(s) long","title":"minLength(1)","minLength":1},{"type":"null"}]},"reason":{"anyOf":[{"type":"string","description":"a string at least 1 character(s) long","title":"minLength(1)","minLength":1},{"type":"null"}]}},"additionalProperties":false,"description":"One authority or registry check. An empty verifications array means no check applies only when the document status is completed; before completion it means no result is available."},"DocumentVerificationStatus":{"type":"string","enum":["verified","not_found","invalid","expired","error","not_checked"],"description":"Status for one authority or registry verification check."},"DocumentEnrichment":{"type":"object","required":["status","checks","issues"],"properties":{"status":{"type":"string","enum":["pending","completed","completed_with_warnings","failed"]},"checks":{"type":"array","items":{"$ref":"#/components/schemas/DocumentEnrichmentCheck"}},"issues":{"type":"array","items":{"$ref":"#/components/schemas/DocumentIssue"}}},"additionalProperties":false,"description":"Document enrichment outcome, kept separate from the intrinsic document verdict."},"DocumentEnrichmentCheck":{"type":"object","required":["code","status","source","reason"],"properties":{"code":{"type":"string","description":"a string at least 1 character(s) long","title":"minLength(1)","minLength":1},"status":{"type":"string","enum":["completed","not_found","ambiguous","unsupported","unavailable"]},"source":{"anyOf":[{"type":"string","description":"a string at least 1 character(s) long","title":"minLength(1)","minLength":1},{"type":"null"}]},"reason":{"anyOf":[{"type":"string","description":"a string at least 1 character(s) long","title":"minLength(1)","minLength":1},{"type":"null"}]}},"additionalProperties":false,"description":"One safe, customer-visible evidence-discovery outcome from document enrichment."},"CredentialAssertion":{"type":"object","required":["scheme_code","definition_code","source","status","holder_name","certificate_number","valid_from","valid_until"],"properties":{"scheme_code":{"type":"string","description":"a string at least 1 character(s) long","title":"minLength(1)","minLength":1},"definition_code":{"type":"string","description":"a string at least 1 character(s) long","title":"minLength(1)","minLength":1},"source":{"type":"string","description":"a string at least 1 character(s) long","title":"minLength(1)","minLength":1},"status":{"type":"string","description":"a string at least 1 character(s) long","title":"minLength(1)","minLength":1},"holder_name":{"anyOf":[{"type":"string","description":"a string at least 1 character(s) long","title":"minLength(1)","minLength":1},{"type":"null"}]},"certificate_number":{"anyOf":[{"type":"string","description":"a string at least 1 character(s) long","title":"minLength(1)","minLength":1},{"type":"null"}]},"valid_from":{"anyOf":[{"type":"string","description":"a string at least 1 character(s) long","title":"minLength(1)","minLength":1},{"type":"null"}]},"valid_until":{"anyOf":[{"type":"string","description":"a string at least 1 character(s) long","title":"minLength(1)","minLength":1},{"type":"null"}]}},"additionalProperties":false,"description":"Customer-safe registry-backed credential assertion derived from a document or lookup."},"FraudSignal":{"type":"object","required":["code","reason"],"properties":{"code":{"type":"string","description":"a string at least 1 character(s) long","title":"minLength(1)","minLength":1},"reason":{"type":"string","description":"a string at least 1 character(s) long","title":"minLength(1)","minLength":1}},"additionalProperties":false,"description":"Machine-readable fraud signal with a human-readable reason."},"DocumentFinding":{"type":"object","required":["id","code","scope","impact","title","explanation","document_ids","requirement_codes"],"properties":{"id":{"type":"string","description":"a string at least 1 character(s) long","title":"minLength(1)","minLength":1},"code":{"type":"string","enum":["document.intrinsic_issue"]},"scope":{"type":"string","enum":["document"]},"impact":{"type":"string","enum":["informational","review_required","non_compliant"]},"title":{"type":"string","description":"a string at least 1 character(s) long","title":"minLength(1)","minLength":1},"explanation":{"type":"string","description":"a string at least 1 character(s) long","title":"minLength(1)","minLength":1},"document_ids":{"type":"array","items":{"$ref":"#/components/schemas/DocumentResourceId"}},"requirement_codes":{"type":"array","items":{"type":"string","description":"a string at least 1 character(s) long","title":"minLength(1)","minLength":1}}},"additionalProperties":false,"description":"Public intrinsic Finding produced from this document alone."},"DeletedDocument":{"type":"object","required":["id","object","deleted"],"properties":{"id":{"$ref":"#/components/schemas/DocumentResourceId"},"object":{"type":"string","enum":["document"]},"deleted":{"type":"boolean","enum":[true]}},"additionalProperties":false,"description":"Deletion confirmation for a removed resource."},"CreateAssessmentBody":{"type":"object","required":["worker"],"properties":{"external_id":{"type":"string"},"external_profile":{"type":"string","description":"a string at least 1 character(s) long","title":"minLength(1)","minLength":1},"worker":{"$ref":"#/components/schemas/WorkerIdentity"},"context":{"type":"array","items":{"$ref":"#/components/schemas/AssessmentContextValue"}}},"additionalProperties":false,"description":"Creates an assessment in the active workspace. Dockt resolves workspace Features and evidence requirements from the authenticated principal and provided worker context."},"WorkerIdentity":{"type":"object","required":["first_name","last_name","date_of_birth","nationality"],"properties":{"first_name":{"type":"string","description":"Worker legal first name.","title":"minLength(1)","minLength":1},"last_name":{"type":"string","description":"Worker legal last name.","title":"minLength(1)","minLength":1},"date_of_birth":{"type":"string","format":"date","description":"ISO 8601 calendar date string.","examples":["1990-05-17"]},"nationality":{"type":"string","description":"Worker nationality as an ISO 3166-1 alpha-2 country code.","title":"maxLength(2)","minLength":2,"maxLength":2}},"additionalProperties":false,"description":"Portable worker identity snapshot. Policy and assignment context is supplied separately."},"AssessmentContextValue":{"type":"object","required":["code","value"],"properties":{"code":{"type":"string","description":"a string at least 1 character(s) long","title":"minLength(1)","minLength":1},"value":{"$ref":"#/components/schemas/AssessmentContextScalar"}},"additionalProperties":false,"description":"Package-independent employment, assignment, employer, project, or evaluation context."},"AssessmentContextScalar":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}],"description":"Scalar value validated against its Dockt-owned assessment context definition."},"Assessment":{"type":"object","required":["object","id","workspace_id","features_id","external_id","external_profile","resolved_job_profile_id","status","worker","context","input_requests","applied_packages","requirements","advisories","documents","review","latest_decision","created_at","updated_at"],"properties":{"object":{"type":"string","enum":["assessment"]},"id":{"$ref":"#/components/schemas/AssessmentResourceId"},"workspace_id":{"$ref":"#/components/schemas/WorkspaceId"},"features_id":{"$ref":"#/components/schemas/FeaturesId"},"external_id":{"anyOf":[{"type":"string"},{"type":"null"}]},"external_profile":{"anyOf":[{"type":"string"},{"type":"null"}]},"resolved_job_profile_id":{"anyOf":[{"type":"string"},{"type":"null"}]},"status":{"$ref":"#/components/schemas/AssessmentStatus"},"worker":{"$ref":"#/components/schemas/WorkerIdentity"},"context":{"type":"array","items":{"$ref":"#/components/schemas/AssessmentContextValue"}},"input_requests":{"type":"array","items":{"$ref":"#/components/schemas/AssessmentInputRequest"}},"applied_packages":{"type":"array","items":{"$ref":"#/components/schemas/AppliedCompliancePackage"}},"requirements":{"type":"array","items":{"$ref":"#/components/schemas/EvidenceRequirement"}},"advisories":{"type":"array","items":{"$ref":"#/components/schemas/ComplianceAdvisory"}},"documents":{"type":"array","items":{"$ref":"#/components/schemas/EmbeddedDocumentSummary"}},"review":{"$ref":"#/components/schemas/AssessmentReviewSummary"},"latest_decision":{"anyOf":[{"$ref":"#/components/schemas/AssessmentDecision"},{"type":"null"}]},"created_at":{"$ref":"#/components/schemas/DateTimeString"},"updated_at":{"$ref":"#/components/schemas/DateTimeString"}},"additionalProperties":false,"description":"Workspace-scoped verification case for one worker. Workspace configuration selects policy; callers submit package-independent context."},"FeaturesId":{"type":"string","pattern":"^feat_[A-Za-z0-9_]+$","description":"Unique identifier for a version of workspace Features.","examples":["feat_example"]},"AssessmentStatus":{"type":"string","enum":["created","documents_pending","processing","assessed"],"description":"Lifecycle state for an assessment."},"AssessmentInputRequest":{"type":"object","required":["code","label","reason","value_type","options"],"properties":{"code":{"type":"string","description":"a string at least 1 character(s) long","title":"minLength(1)","minLength":1},"label":{"$ref":"#/components/schemas/Label"},"reason":{"type":"string","description":"a string at least 1 character(s) long","title":"minLength(1)","minLength":1},"value_type":{"$ref":"#/components/schemas/AssessmentInputValueType"},"options":{"type":"array","items":{"$ref":"#/components/schemas/AssessmentInputOption"}}},"additionalProperties":false,"description":"Additional package-independent context needed before a Decision can be created. While requests remain, latest_decision is null."},"Label":{"type":"string","description":"Human-readable name shown in Dockt and customer systems.","title":"maxLength(120)","minLength":1,"maxLength":120},"AssessmentInputValueType":{"type":"string","enum":["string","integer","boolean","date","country_code","single_select"]},"AssessmentInputOption":{"type":"object","required":["value","label"],"properties":{"value":{"type":"string","description":"a string at least 1 character(s) long","title":"minLength(1)","minLength":1},"label":{"$ref":"#/components/schemas/Label"}},"additionalProperties":false},"AppliedCompliancePackage":{"type":"object","required":["code","version"],"properties":{"code":{"type":"string","description":"a string at least 1 character(s) long","title":"minLength(1)","minLength":1},"version":{"type":"string","description":"a string at least 1 character(s) long","title":"minLength(1)","minLength":1}},"additionalProperties":false,"description":"Exact executable compliance-package release applied to an assessment."},"EvidenceRequirement":{"type":"object","required":["code","label","reason","status","required","source_domain","package","accepted_evidence_types","supporting_document_ids","pending_document_ids","review_document_ids","invalid_document_ids"],"properties":{"code":{"type":"string","description":"a string at least 1 character(s) long","title":"minLength(1)","minLength":1},"label":{"$ref":"#/components/schemas/Label"},"reason":{"anyOf":[{"type":"string","description":"a string at least 1 character(s) long","title":"minLength(1)","minLength":1},{"type":"null"}]},"status":{"$ref":"#/components/schemas/ComplianceRequirementStatus"},"required":{"type":"boolean"},"source_domain":{"type":"string","description":"a string at least 1 character(s) long","title":"minLength(1)","minLength":1},"package":{"anyOf":[{"$ref":"#/components/schemas/AppliedCompliancePackage"},{"type":"null"}]},"accepted_evidence_types":{"type":"array","items":{"type":"string","description":"a string at least 1 character(s) long","title":"minLength(1)","minLength":1}},"supporting_document_ids":{"type":"array","items":{"$ref":"#/components/schemas/DocumentResourceId"}},"pending_document_ids":{"type":"array","items":{"$ref":"#/components/schemas/DocumentResourceId"}},"review_document_ids":{"type":"array","items":{"$ref":"#/components/schemas/DocumentResourceId"}},"invalid_document_ids":{"type":"array","items":{"$ref":"#/components/schemas/DocumentResourceId"}}},"additionalProperties":false,"description":"Policy-neutral evidence requirement and its current assessment status."},"ComplianceRequirementStatus":{"type":"string","enum":["missing","not_required","satisfied"],"description":"Current result of evaluating one evidence requirement."},"ComplianceAdvisory":{"type":"object","required":["code","label","reason","severity","phase","package"],"properties":{"code":{"type":"string","description":"a string at least 1 character(s) long","title":"minLength(1)","minLength":1},"label":{"$ref":"#/components/schemas/Label"},"reason":{"type":"string","description":"a string at least 1 character(s) long","title":"minLength(1)","minLength":1},"severity":{"type":"string","enum":["info","mandatory_external","review_recommended"]},"phase":{"anyOf":[{"type":"string","enum":["pre_access","pre_start","during_assignment","payment_time","post_assignment","on_request"]},{"type":"null"}]},"package":{"$ref":"#/components/schemas/AppliedCompliancePackage"}},"additionalProperties":false,"description":"External or planning obligation signaled by an applied compliance package."},"EmbeddedDocumentSummary":{"type":"object","required":["object","id","status","document_result","match_status","filename","classified_as","issues","uploaded_at","completed_at"],"properties":{"object":{"type":"string","enum":["document"]},"id":{"$ref":"#/components/schemas/DocumentResourceId"},"status":{"$ref":"#/components/schemas/DocumentStatus"},"document_result":{"anyOf":[{"$ref":"#/components/schemas/DocumentResult"},{"type":"null"}]},"match_status":{"anyOf":[{"$ref":"#/components/schemas/DocumentMatchStatus"},{"type":"null"}]},"filename":{"type":"string","description":"a string at least 1 character(s) long","title":"minLength(1)","minLength":1},"classified_as":{"anyOf":[{"$ref":"#/components/schemas/ClassifiedDocument"},{"type":"null"}]},"issues":{"type":"array","items":{"$ref":"#/components/schemas/DocumentIssue"}},"uploaded_at":{"$ref":"#/components/schemas/DateTimeString"},"completed_at":{"anyOf":[{"$ref":"#/components/schemas/DateTimeString"},{"type":"null"}]}},"additionalProperties":false,"description":"Assessment-embedded summary of a canonical document, plus assessment-scoped match status."},"DocumentMatchStatus":{"type":"string","enum":["pending","valid","invalid","mismatch","no_profile","unknown","expired_no_profile"],"description":"How a document matched deterministic worker profile checks inside an assessment."},"AssessmentReviewSummary":{"type":"object","required":["review_required","reason_codes"],"properties":{"review_required":{"type":"boolean"},"reason_codes":{"type":"array","items":{"type":"string","description":"a string at least 1 character(s) long","title":"minLength(1)","minLength":1}}},"additionalProperties":false,"description":"Whether the assessment needs manual review and the machine-readable reasons."},"AssessmentDecision":{"type":"object","required":["decision_id","assessment_input_version","decision","signal","explanation","findings","recommendation","created_at"],"properties":{"decision_id":{"$ref":"#/components/schemas/DecisionId"},"assessment_input_version":{"type":"integer","description":"a number greater than or equal to 1","title":"greaterThanOrEqualTo(1)","minimum":1},"decision":{"$ref":"#/components/schemas/AssessmentOutcome"},"signal":{"$ref":"#/components/schemas/PublicSignal"},"explanation":{"type":"string","description":"a string at least 1 character(s) long","title":"minLength(1)","minLength":1},"findings":{"type":"array","items":{"$ref":"#/components/schemas/PublicFinding"}},"recommendation":{"anyOf":[{"$ref":"#/components/schemas/DecisionRecommendation"},{"type":"null"}]},"created_at":{"$ref":"#/components/schemas/DateTimeString"}},"additionalProperties":false,"description":"Compact current decision with actionable findings projected into an assessment detail response."},"PublicFinding":{"type":"object","required":["id","code","scope","impact","title","explanation","document_ids","requirement_codes"],"properties":{"id":{"type":"string","description":"a string at least 1 character(s) long","title":"minLength(1)","minLength":1},"code":{"type":"string","description":"a string at least 1 character(s) long","title":"minLength(1)","minLength":1},"scope":{"type":"string","enum":["assessment","document","requirement"]},"impact":{"type":"string","enum":["informational","incomplete","review_required","non_compliant"]},"title":{"type":"string","description":"a string at least 1 character(s) long","title":"minLength(1)","minLength":1},"explanation":{"type":"string","description":"a string at least 1 character(s) long","title":"minLength(1)","minLength":1},"document_ids":{"type":"array","items":{"type":"string","description":"a string at least 1 character(s) long","title":"minLength(1)","minLength":1}},"requirement_codes":{"type":"array","items":{"type":"string","description":"a string at least 1 character(s) long","title":"minLength(1)","minLength":1}}},"additionalProperties":false},"DecisionRecommendation":{"type":"object","required":["action","confidence","mode"],"properties":{"action":{"type":"string","enum":["approve","review","reject","request_update"]},"confidence":{"type":"number","description":"a number less than or equal to 1","title":"lessThanOrEqualTo(1)","minimum":0,"maximum":1},"mode":{"type":"string","enum":["shadow","review_assist"]}},"additionalProperties":false,"description":"Typed review-assistance recommendation captured with a decision."},"AssessmentSummary":{"type":"object","required":["object","id","external_id","external_profile","status","worker","input_request_count","review_required","latest_decision","created_at","updated_at"],"properties":{"object":{"type":"string","enum":["assessment"]},"id":{"$ref":"#/components/schemas/AssessmentResourceId"},"external_id":{"anyOf":[{"type":"string"},{"type":"null"}]},"external_profile":{"anyOf":[{"type":"string"},{"type":"null"}]},"status":{"$ref":"#/components/schemas/AssessmentStatus"},"worker":{"$ref":"#/components/schemas/WorkerIdentity"},"input_request_count":{"type":"integer","description":"a non-negative number","title":"greaterThanOrEqualTo(0)","minimum":0},"review_required":{"type":"boolean"},"latest_decision":{"anyOf":[{"$ref":"#/components/schemas/LatestDecisionSummary"},{"type":"null"}]},"created_at":{"$ref":"#/components/schemas/DateTimeString"},"updated_at":{"$ref":"#/components/schemas/DateTimeString"}},"additionalProperties":false,"description":"Compact assessment representation returned from collection reads."},"LatestDecisionSummary":{"type":"object","required":["decision_id","decision","signal","recommendation"],"properties":{"decision_id":{"$ref":"#/components/schemas/DecisionId"},"decision":{"$ref":"#/components/schemas/AssessmentOutcome"},"signal":{"$ref":"#/components/schemas/PublicSignal"},"recommendation":{"anyOf":[{"$ref":"#/components/schemas/DecisionRecommendation"},{"type":"null"}]}},"additionalProperties":false,"description":"Current decision summary for an assessed assessment."},"UpdateAssessmentBody":{"type":"object","required":[],"properties":{"external_id":{"type":"string"},"external_profile":{"type":"string","description":"a string at least 1 character(s) long","title":"minLength(1)","minLength":1},"worker":{"$ref":"#/components/schemas/WorkerIdentity"},"context":{"type":"array","items":{"$ref":"#/components/schemas/AssessmentContextValue"}}},"additionalProperties":false,"description":"Updates customer metadata or worker identity and merges context values by code."},"UploadAssessmentDocumentBody":{"type":"object","required":["file"],"additionalProperties":false,"properties":{"file":{"type":"string","format":"binary","description":"One PDF or image file, no larger than 10 MB."}},"description":"One assessment-linked document upload."},"Decision":{"type":"object","required":["object","id","assessment_id","workspace_id","features_id","assessment_input_version","decision","signal","explanation","findings","facts","documents","recommendation","authority_verification_status","fraud_signal_summary","applied_packages","requirements","model_version","created_at"],"properties":{"object":{"type":"string","enum":["decision"]},"id":{"$ref":"#/components/schemas/DecisionId"},"assessment_id":{"$ref":"#/components/schemas/AssessmentId"},"workspace_id":{"$ref":"#/components/schemas/DecisionWorkspaceId"},"features_id":{"$ref":"#/components/schemas/DecisionFeaturesId"},"assessment_input_version":{"type":"integer","description":"a number greater than or equal to 1","title":"greaterThanOrEqualTo(1)","minimum":1},"decision":{"$ref":"#/components/schemas/AssessmentOutcome"},"signal":{"$ref":"#/components/schemas/PublicSignal"},"explanation":{"type":"string","description":"a string at least 1 character(s) long","title":"minLength(1)","minLength":1},"findings":{"type":"array","items":{"$ref":"#/components/schemas/PublicFinding"}},"facts":{"type":"array","items":{"$ref":"#/components/schemas/PublicFact"}},"documents":{"type":"array","items":{"$ref":"#/components/schemas/DecisionDocumentResult"}},"recommendation":{"anyOf":[{"$ref":"#/components/schemas/DecisionRecommendation"},{"type":"null"}]},"authority_verification_status":{"anyOf":[{"type":"string"},{"type":"null"}]},"fraud_signal_summary":{"type":"array","items":{"type":"string"}},"applied_packages":{"type":"array","items":{"$ref":"#/components/schemas/AppliedCompliancePackage"}},"requirements":{"type":"array","items":{"$ref":"#/components/schemas/EvidenceRequirement"}},"model_version":{"anyOf":[{"type":"string"},{"type":"null"}]},"created_at":{"$ref":"#/components/schemas/DateTimeString"}},"additionalProperties":false,"description":"Immutable assessment decision with typed policy provenance and evidence requirements for one assessment input version."},"AssessmentId":{"type":"string","pattern":"^ast_[A-Za-z0-9_]+$","description":"Assessment identifier associated with a decision.","examples":["ast_example"]},"DecisionWorkspaceId":{"type":"string","pattern":"^wsp_[A-Za-z0-9_]+$","description":"Unique Dockt workspace identifier.","examples":["wsp_example"]},"DecisionFeaturesId":{"type":"string","pattern":"^feat_[A-Za-z0-9_]+$","description":"Features version used when the decision was created.","examples":["feat_example"]},"PublicFact":{"type":"object","required":["id","code","subject","value","resolution","assurance","sources"],"properties":{"id":{"type":"string","description":"a string at least 1 character(s) long","title":"minLength(1)","minLength":1},"code":{"type":"string","description":"a string at least 1 character(s) long","title":"minLength(1)","minLength":1},"subject":{"type":"object","required":["id","type"],"properties":{"id":{"type":"string","description":"a string at least 1 character(s) long","title":"minLength(1)","minLength":1},"type":{"type":"string","enum":["worker","employer","assignment","credential"]}},"additionalProperties":false},"value":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"array","items":{"type":"string"}}]},"resolution":{"type":"string","enum":["resolved","corroborated"]},"assurance":{"type":"string","enum":["low","medium","high"]},"sources":{"type":"array","items":{"$ref":"#/components/schemas/PublicFactSource"}}},"additionalProperties":false},"PublicFactSource":{"type":"object","required":["kind","code","document_ids","observed_at","fresh_until"],"properties":{"kind":{"type":"string","enum":["customer_input","document","external_source"]},"code":{"type":"string","description":"a string at least 1 character(s) long","title":"minLength(1)","minLength":1},"document_ids":{"type":"array","items":{"type":"string","description":"a string at least 1 character(s) long","title":"minLength(1)","minLength":1}},"observed_at":{"anyOf":[{"$ref":"#/components/schemas/DateTimeString"},{"type":"null"}]},"fresh_until":{"anyOf":[{"$ref":"#/components/schemas/DateTimeString"},{"type":"null"}]}},"additionalProperties":false},"DecisionDocumentResult":{"type":"object","required":["document_id","status","document_result","finding_ids"],"properties":{"document_id":{"type":"string","description":"a string at least 1 character(s) long","title":"minLength(1)","minLength":1},"status":{"type":"string","enum":["uploaded","processing","completed","failed","withdrawn"]},"document_result":{"anyOf":[{"type":"string","enum":["valid","review_required","invalid"]},{"type":"null"}]},"finding_ids":{"type":"array","items":{"type":"string","description":"a string at least 1 character(s) long","title":"minLength(1)","minLength":1}}},"additionalProperties":false},"CreateDecisionOutcomeBody":{"type":"object","required":["outcome","observed_at","source_system"],"properties":{"outcome":{"$ref":"#/components/schemas/DecisionOutcomeStatus"},"observed_at":{"$ref":"#/components/schemas/DateTimeString"},"source_system":{"type":"string","description":"a string at least 1 character(s) long","title":"minLength(1)","minLength":1},"notes":{"type":"string"}},"additionalProperties":false,"description":"Records what happened after a Dockt decision reached a customer workflow. This does not mutate the original decision."},"DecisionOutcomeStatus":{"type":"string","enum":["accepted","rejected","follow_up_requested","manual_review","unknown"],"description":"Customer-observed downstream result after receiving a Dockt decision."},"DecisionOutcome":{"type":"object","required":["object","decision_id","outcome","observed_at","source_system","notes"],"properties":{"object":{"type":"string","enum":["decision_outcome"]},"decision_id":{"$ref":"#/components/schemas/DecisionId"},"outcome":{"$ref":"#/components/schemas/DecisionOutcomeStatus"},"observed_at":{"$ref":"#/components/schemas/DateTimeString"},"source_system":{"type":"string","description":"a string at least 1 character(s) long","title":"minLength(1)","minLength":1},"notes":{"anyOf":[{"type":"string"},{"type":"null"}]}},"additionalProperties":false,"description":"Customer-reported downstream outcome for a decision, such as whether an operator accepted it or requested follow-up."},"CreateWebhookBody":{"type":"object","required":["label","url","events"],"properties":{"label":{"$ref":"#/components/schemas/Label"},"url":{"$ref":"#/components/schemas/UrlString"},"events":{"type":"array","items":{"$ref":"#/components/schemas/WebhookEventType"}}},"additionalProperties":false,"description":"Creates a webhook endpoint for the active workspace."},"UrlString":{"type":"string","format":"uri","description":"Absolute HTTP or HTTPS URI.","examples":["https://example.com/webhooks/dockt"]},"WebhookEventType":{"type":"string","enum":["document.completed","document.failed","assessment.completed"],"description":"Event type delivered to a webhook endpoint."},"ProvisionedWebhookSubscription":{"type":"object","required":["object","id","label","url","events","status","delivery","secret_last_rotated_at","created_at","updated_at","secret"],"properties":{"object":{"type":"string","enum":["webhook_endpoint"]},"id":{"$ref":"#/components/schemas/WebhookId"},"label":{"$ref":"#/components/schemas/Label"},"url":{"$ref":"#/components/schemas/UrlString"},"events":{"type":"array","items":{"$ref":"#/components/schemas/WebhookEventType"}},"status":{"$ref":"#/components/schemas/WebhookStatus"},"delivery":{"$ref":"#/components/schemas/WebhookDeliverySummary"},"secret_last_rotated_at":{"anyOf":[{"$ref":"#/components/schemas/DateTimeString"},{"type":"null"}]},"created_at":{"$ref":"#/components/schemas/DateTimeString"},"updated_at":{"$ref":"#/components/schemas/DateTimeString"},"secret":{"type":"string","description":"a string at least 16 character(s) long","title":"minLength(16)","minLength":16}},"additionalProperties":false,"description":"New webhook endpoint with one-time signing secret included in the response."},"WebhookStatus":{"type":"string","enum":["active","disabled"],"description":"Whether Dockt will deliver events to the webhook endpoint."},"WebhookDeliverySummary":{"type":"object","required":["last_event_type","last_delivery_status","last_attempted_at","last_succeeded_at"],"properties":{"last_event_type":{"anyOf":[{"$ref":"#/components/schemas/WebhookDeliveryEventType"},{"type":"null"}]},"last_delivery_status":{"anyOf":[{"$ref":"#/components/schemas/WebhookDeliveryStatus"},{"type":"null"}]},"last_attempted_at":{"anyOf":[{"$ref":"#/components/schemas/DateTimeString"},{"type":"null"}]},"last_succeeded_at":{"anyOf":[{"$ref":"#/components/schemas/DateTimeString"},{"type":"null"}]}},"additionalProperties":false,"description":"Latest persisted delivery health for a webhook endpoint. Fields are null before the first attempt."},"WebhookDeliveryEventType":{"anyOf":[{"$ref":"#/components/schemas/WebhookEventType"},{"type":"string","enum":["webhook.test"]}],"description":"Event type observed in a webhook delivery, including developer-initiated test events."},"WebhookDeliveryStatus":{"type":"string","enum":["succeeded","failed"],"description":"Outcome of the most recent delivery attempted for a webhook endpoint."},"WebhookSubscription":{"type":"object","required":["object","id","label","url","events","status","delivery","secret_last_rotated_at","created_at","updated_at"],"properties":{"object":{"type":"string","enum":["webhook_endpoint"]},"id":{"$ref":"#/components/schemas/WebhookId"},"label":{"$ref":"#/components/schemas/Label"},"url":{"$ref":"#/components/schemas/UrlString"},"events":{"type":"array","items":{"$ref":"#/components/schemas/WebhookEventType"}},"status":{"$ref":"#/components/schemas/WebhookStatus"},"delivery":{"$ref":"#/components/schemas/WebhookDeliverySummary"},"secret_last_rotated_at":{"anyOf":[{"$ref":"#/components/schemas/DateTimeString"},{"type":"null"}]},"created_at":{"$ref":"#/components/schemas/DateTimeString"},"updated_at":{"$ref":"#/components/schemas/DateTimeString"}},"additionalProperties":false,"description":"Workspace-scoped webhook endpoint that receives selected Dockt events."},"UpdateWebhookBody":{"type":"object","required":[],"properties":{"label":{"$ref":"#/components/schemas/Label"},"url":{"$ref":"#/components/schemas/UrlString"},"events":{"type":"array","items":{"$ref":"#/components/schemas/WebhookEventType"}}},"additionalProperties":false,"description":"Updates webhook label, destination URL, or subscribed event types."},"DeletedWebhook":{"type":"object","required":["id","object","deleted"],"properties":{"id":{"$ref":"#/components/schemas/WebhookId"},"object":{"type":"string","enum":["webhook_endpoint"]},"deleted":{"type":"boolean","enum":[true]}},"additionalProperties":false,"description":"Deletion confirmation for a removed resource."},"WebhookDeliveryRequest":{"type":"object","required":["object","webhook_id","trigger","accepted","created_at"],"properties":{"object":{"type":"string","enum":["webhook_delivery_request"]},"webhook_id":{"$ref":"#/components/schemas/WebhookId"},"trigger":{"type":"string","enum":["test"]},"accepted":{"type":"boolean","enum":[true]},"created_at":{"$ref":"#/components/schemas/DateTimeString"}},"additionalProperties":false,"description":"Confirmation that an asynchronous webhook delivery was accepted."},"Features":{"type":"object","required":["object","id","workspace_id","version","social_compliance_packages","created_at","updated_at"],"properties":{"object":{"type":"string","enum":["features"]},"id":{"$ref":"#/components/schemas/FeaturesId"},"workspace_id":{"$ref":"#/components/schemas/WorkspaceId"},"version":{"type":"number"},"social_compliance_packages":{"type":"array","items":{"$ref":"#/components/schemas/EnabledSocialCompliancePackage"}},"created_at":{"$ref":"#/components/schemas/DateTimeString"},"updated_at":{"$ref":"#/components/schemas/DateTimeString"}},"additionalProperties":false,"description":"Workspace configuration used when creating and evaluating assessments, including enabled compliance packages."},"EnabledSocialCompliancePackage":{"type":"object","required":["code","version"],"properties":{"code":{"type":"string","description":"a string at least 1 character(s) long","title":"minLength(1)","minLength":1},"version":{"anyOf":[{"type":"string"},{"type":"null"}]}},"additionalProperties":false,"description":"Social compliance package enabled for new assessments in the workspace."},"UpdateFeaturesBody":{"type":"object","required":[],"properties":{"social_compliance_packages":{"type":"array","items":{"type":"string","description":"a string at least 1 character(s) long","title":"minLength(1)","minLength":1}}},"additionalProperties":false,"description":"Updates the active workspace Features. Use social_compliance_packages to select package codes from the catalog."},"CompliancePackage":{"type":"object","required":["object","code","title","version","description","evidence_types"],"properties":{"object":{"type":"string","enum":["compliance_package"]},"code":{"type":"string","description":"a string at least 1 character(s) long","title":"minLength(1)","minLength":1},"title":{"$ref":"#/components/schemas/Label"},"version":{"type":"string","description":"a string at least 1 character(s) long","title":"minLength(1)","minLength":1},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"evidence_types":{"type":"array","items":{"$ref":"#/components/schemas/CompliancePackageEvidenceType"}}},"additionalProperties":false,"description":"Dockt-maintained social compliance package that defines the evidence expected for a compliance workflow."},"CompliancePackageEvidenceType":{"type":"object","required":["type","label","source_domain","accepted_evidence_types"],"properties":{"type":{"type":"string","description":"a string at least 1 character(s) long","title":"minLength(1)","minLength":1},"label":{"$ref":"#/components/schemas/Label"},"source_domain":{"type":"string","enum":["social"]},"accepted_evidence_types":{"type":"array","items":{"type":"string","description":"a string at least 1 character(s) long","title":"minLength(1)","minLength":1}}},"additionalProperties":false,"description":"Evidence type declared by a social compliance package catalog entry, before assessment-specific evaluation."},"AuthContext":{"type":"object","required":["object","auth_type","api_credential_type","principal_scope_type","permissions","active_scope","available_scopes","actor","onboarding_required","updated_at"],"properties":{"object":{"type":"string","enum":["auth_context"]},"auth_type":{"type":"string","enum":["session","api_credential"]},"api_credential_type":{"anyOf":[{"$ref":"#/components/schemas/AuthApiCredentialType"},{"type":"null"}]},"principal_scope_type":{"anyOf":[{"$ref":"#/components/schemas/PrincipalScopeType"},{"type":"null"}]},"permissions":{"type":"array","items":{"$ref":"#/components/schemas/ApiPermission"}},"active_scope":{"anyOf":[{"$ref":"#/components/schemas/PrincipalScopeSummary"},{"type":"null"}]},"available_scopes":{"type":"array","items":{"$ref":"#/components/schemas/PrincipalScopeSummary"}},"actor":{"anyOf":[{"$ref":"#/components/schemas/SessionActor"},{"type":"null"}]},"onboarding_required":{"type":"boolean"},"updated_at":{"$ref":"#/components/schemas/DateTimeString"}},"additionalProperties":false,"description":"Current authorization context for the request, including principal type, active scope, available scopes, and permissions."},"AuthApiCredentialType":{"type":"string","enum":["api_key","m2m"],"description":"Machine credential type used for the current request."},"PrincipalScopeType":{"type":"string","enum":["account","workspace"],"description":"Whether the authenticated principal is acting at account level or within one workspace."},"ApiPermission":{"type":"string","enum":["account:read","account:write","workspaces:read","workspaces:write","api-credentials:read","api-credentials:manage","features:read","features:write","social-compliance-packages:read","workspace:read","webhooks:manage","assessments:read","assessments:write","documents:read","documents:create","documents:delete","decisions:read","decisions:outcome"],"description":"Permission backed by an implemented public Dockt API operation."},"PrincipalScopeSummary":{"type":"object","required":["object","scope_type","scope_id","account_id","name","role","status"],"properties":{"object":{"type":"string","enum":["principal_scope"]},"scope_type":{"$ref":"#/components/schemas/PrincipalScopeType"},"scope_id":{"$ref":"#/components/schemas/PrincipalScopeId"},"account_id":{"$ref":"#/components/schemas/AccountId"},"name":{"$ref":"#/components/schemas/Label"},"role":{"anyOf":[{"$ref":"#/components/schemas/AuthUserRole"},{"type":"null"}]},"status":{"$ref":"#/components/schemas/AccountMembershipStatus"}},"additionalProperties":false,"description":"Account or workspace scope that a session can act within."},"PrincipalScopeId":{"anyOf":[{"$ref":"#/components/schemas/AccountId"},{"$ref":"#/components/schemas/WorkspaceId"}],"description":"Identifier for the active account or workspace scope."},"AccountId":{"type":"string","pattern":"^acc_[A-Za-z0-9_]+$","description":"Unique Dockt account identifier.","examples":["acc_example"]},"AuthUserRole":{"type":"string","enum":["owner","admin","developer","viewer"],"description":"Role used to authorize account and workspace actions."},"AccountMembershipStatus":{"type":"string","enum":["invited","active","disabled"],"description":"Membership state for a user within an account."},"SessionActor":{"type":"object","required":["object","id","auth_user_id","email","first_name","last_name","role","scope_type","scope_id"],"properties":{"object":{"type":"string","enum":["session_actor"]},"id":{"type":"string","description":"a string at least 1 character(s) long","title":"minLength(1)","minLength":1},"auth_user_id":{"type":"string","description":"a string at least 1 character(s) long","title":"minLength(1)","minLength":1},"email":{"type":"string","description":"a string at least 1 character(s) long","title":"minLength(1)","minLength":1},"first_name":{"type":"string","description":"a string at least 1 character(s) long","title":"minLength(1)","minLength":1},"last_name":{"type":"string","description":"a string at least 1 character(s) long","title":"minLength(1)","minLength":1},"role":{"$ref":"#/components/schemas/AuthUserRole"},"scope_type":{"$ref":"#/components/schemas/PrincipalScopeType"},"scope_id":{"$ref":"#/components/schemas/PrincipalScopeId"}},"additionalProperties":false,"description":"Signed-in user details for browser session requests."},"SelectPrincipalScopeBody":{"type":"object","required":["scope_type","scope_id"],"properties":{"scope_type":{"$ref":"#/components/schemas/PrincipalScopeType"},"scope_id":{"$ref":"#/components/schemas/PrincipalScopeId"}},"additionalProperties":false,"description":"Selects which available account or workspace a browser session should use for subsequent API calls."},"Account":{"type":"object","required":["object","id","name","external_id","status","default_workspace_id","created_at","updated_at"],"properties":{"object":{"type":"string","enum":["account"]},"id":{"$ref":"#/components/schemas/AccountId"},"name":{"$ref":"#/components/schemas/Label"},"external_id":{"anyOf":[{"type":"string"},{"type":"null"}]},"status":{"$ref":"#/components/schemas/AccountStatus"},"default_workspace_id":{"anyOf":[{"$ref":"#/components/schemas/WorkspaceId"},{"type":"null"}]},"created_at":{"$ref":"#/components/schemas/DateTimeString"},"updated_at":{"$ref":"#/components/schemas/DateTimeString"}},"additionalProperties":false,"description":"Top-level customer account that owns workspaces, account-scoped credentials, and billing or administration metadata."},"AccountStatus":{"type":"string","enum":["pending","active","suspended"],"description":"Lifecycle state for a customer account."},"UpdateAccountBody":{"type":"object","required":[],"properties":{"name":{"$ref":"#/components/schemas/Label"},"external_id":{"anyOf":[{"type":"string"},{"type":"null"}]}},"additionalProperties":false,"description":"Updates customer-facing account metadata. Set external_id to null to clear it."},"AccountUserStatus":{"type":"string","enum":["invited","active","disabled"],"description":"Account-user lifecycle state."},"AccountUser":{"type":"object","required":["object","id","account_id","email","first_name","last_name","role","status","created_at","updated_at"],"properties":{"object":{"type":"string","enum":["account_user"]},"id":{"$ref":"#/components/schemas/AccountUserId"},"account_id":{"$ref":"#/components/schemas/AccountId"},"email":{"$ref":"#/components/schemas/EmailAddress"},"first_name":{"type":"string"},"last_name":{"type":"string"},"role":{"$ref":"#/components/schemas/AccountUserRole"},"status":{"$ref":"#/components/schemas/AccountUserStatus"},"created_at":{"$ref":"#/components/schemas/DateTimeString"},"updated_at":{"$ref":"#/components/schemas/DateTimeString"}},"additionalProperties":false,"description":"Signed-in or invited human principal with access to an account."},"AccountUserId":{"type":"string","description":"Unique account-user identifier.","pattern":"^usr_[A-Za-z0-9_]+$"},"EmailAddress":{"type":"string","description":"Email address.","title":"maxLength(254)","minLength":3,"maxLength":254,"pattern":"^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$"},"AccountUserRole":{"type":"string","enum":["owner","admin","developer","viewer"],"description":"Role used to authorize account and workspace actions."},"UpdateAccountUserBody":{"type":"object","required":["role"],"properties":{"role":{"$ref":"#/components/schemas/AccountUserRole"}},"additionalProperties":false,"description":"Updates the account role assigned to a user."},"DeletedAccountUser":{"type":"object","required":["id","object","deleted"],"properties":{"id":{"$ref":"#/components/schemas/AccountUserId"},"object":{"type":"string","enum":["account_user"]},"deleted":{"type":"boolean","enum":[true]}},"additionalProperties":false,"description":"Deletion confirmation for a removed resource."},"AccountInvitationStatus":{"type":"string","enum":["pending","accepted","revoked","expired"],"description":"Invitation delivery and acceptance state."},"AccountInvitation":{"type":"object","required":["object","id","account_id","email","role","status","accepted_at","revoked_at","expires_at","created_at","updated_at"],"properties":{"object":{"type":"string","enum":["account_invitation"]},"id":{"$ref":"#/components/schemas/AccountInvitationId"},"account_id":{"$ref":"#/components/schemas/AccountId"},"email":{"$ref":"#/components/schemas/EmailAddress"},"role":{"$ref":"#/components/schemas/AccountUserRole"},"status":{"$ref":"#/components/schemas/AccountInvitationStatus"},"accepted_at":{"anyOf":[{"$ref":"#/components/schemas/DateTimeString"},{"type":"null"}]},"revoked_at":{"anyOf":[{"$ref":"#/components/schemas/DateTimeString"},{"type":"null"}]},"expires_at":{"anyOf":[{"$ref":"#/components/schemas/DateTimeString"},{"type":"null"}]},"created_at":{"$ref":"#/components/schemas/DateTimeString"},"updated_at":{"$ref":"#/components/schemas/DateTimeString"}},"additionalProperties":false,"description":"Invitation for a user to join an account."},"AccountInvitationId":{"type":"string","description":"Unique account invitation identifier.","pattern":"^inv_[A-Za-z0-9_]+$"},"CreateAccountInvitationBody":{"type":"object","required":["email"],"properties":{"email":{"$ref":"#/components/schemas/EmailAddress"},"role":{"$ref":"#/components/schemas/AccountUserRole"},"expires_in_days":{"type":"integer","description":"a number less than or equal to 30","title":"lessThanOrEqualTo(30)","minimum":1,"maximum":30}},"additionalProperties":false,"description":"Invites a user to join the current account. WorkOS sends the invitation email."},"DeletedAccountInvitation":{"type":"object","required":["id","object","deleted"],"properties":{"id":{"$ref":"#/components/schemas/AccountInvitationId"},"object":{"type":"string","enum":["account_invitation"]},"deleted":{"type":"boolean","enum":[true]}},"additionalProperties":false,"description":"Deletion confirmation for a removed resource."},"Workspace":{"type":"object","required":["object","id","account_id","name","external_id","status","data_region","default_features_id","created_at","updated_at"],"properties":{"object":{"type":"string","enum":["workspace"]},"id":{"$ref":"#/components/schemas/WorkspaceId"},"account_id":{"$ref":"#/components/schemas/AccountId"},"name":{"$ref":"#/components/schemas/Label"},"external_id":{"anyOf":[{"type":"string"},{"type":"null"}]},"status":{"$ref":"#/components/schemas/WorkspaceStatus"},"data_region":{"$ref":"#/components/schemas/DataRegion"},"default_features_id":{"anyOf":[{"type":"string"},{"type":"null"}]},"created_at":{"$ref":"#/components/schemas/DateTimeString"},"updated_at":{"$ref":"#/components/schemas/DateTimeString"}},"additionalProperties":false,"description":"Operational boundary for assessments, documents, decisions, Features, API credentials, and webhooks."},"WorkspaceStatus":{"type":"string","enum":["active","archived","suspended"],"description":"Lifecycle state for a workspace."},"DataRegion":{"type":"string","enum":["eu-west"],"description":"Data residency region used for workspace-owned data."},"CreateWorkspaceBody":{"type":"object","required":["name"],"properties":{"name":{"$ref":"#/components/schemas/Label"},"external_id":{"type":"string"},"data_region":{"$ref":"#/components/schemas/DataRegion"}},"additionalProperties":false,"description":"Creates a workspace under the authenticated account. data_region defaults to the supported region."},"UpdateWorkspaceBody":{"type":"object","required":[],"properties":{"name":{"$ref":"#/components/schemas/Label"},"external_id":{"anyOf":[{"type":"string"},{"type":"null"}]},"status":{"$ref":"#/components/schemas/WorkspaceStatus"}},"additionalProperties":false,"description":"Updates workspace metadata or lifecycle state. Set external_id to null to clear it."},"ApiCredential":{"type":"object","required":["object","id","account_id","workspace_id","display_name","description","credential_type","scope_type","client_id","token_url","api_key_hint","allowed_scopes","enabled","last_used_at","created_at","updated_at"],"properties":{"object":{"type":"string","enum":["api_credential"]},"id":{"$ref":"#/components/schemas/ApiCredentialId"},"account_id":{"anyOf":[{"$ref":"#/components/schemas/AccountId"},{"type":"null"}]},"workspace_id":{"anyOf":[{"$ref":"#/components/schemas/WorkspaceId"},{"type":"null"}]},"display_name":{"$ref":"#/components/schemas/Label"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"credential_type":{"$ref":"#/components/schemas/ApiCredentialType"},"scope_type":{"$ref":"#/components/schemas/ApiCredentialScopeType"},"client_id":{"anyOf":[{"type":"string","description":"a string at least 1 character(s) long","title":"minLength(1)","minLength":1},{"type":"null"}]},"token_url":{"anyOf":[{"$ref":"#/components/schemas/UrlString"},{"type":"null"}]},"api_key_hint":{"anyOf":[{"type":"string","description":"a string at least 1 character(s) long","title":"minLength(1)","minLength":1},{"type":"null"}]},"allowed_scopes":{"type":"array","items":{"$ref":"#/components/schemas/ApiPermission"}},"enabled":{"type":"boolean"},"last_used_at":{"anyOf":[{"$ref":"#/components/schemas/DateTimeString"},{"type":"null"}]},"created_at":{"$ref":"#/components/schemas/DateTimeString"},"updated_at":{"$ref":"#/components/schemas/DateTimeString"}},"additionalProperties":false,"description":"Machine credential metadata. Secret material is not returned after creation; store the created secret securely."},"ApiCredentialId":{"type":"string","description":"Unique Dockt API credential identifier.","pattern":"^cred_[A-Za-z0-9_]+$"},"ApiCredentialType":{"type":"string","enum":["api_key","m2m"],"description":"Credential format. API keys are bearer secrets; machine-to-machine credentials use a client credential exchange."},"ApiCredentialScopeType":{"type":"string","enum":["account","workspace"],"description":"Whether the credential acts across an account or only within one workspace."},"CreateAccountApiCredentialBody":{"type":"object","required":["display_name"],"properties":{"display_name":{"$ref":"#/components/schemas/Label"},"description":{"type":"string"},"credential_type":{"allOf":[{"$ref":"#/components/schemas/ApiCredentialType"}],"description":"Credential mechanism. Defaults to api_key when omitted.","default":"api_key"},"allowed_scopes":{"type":"array","items":{"$ref":"#/components/schemas/ApiPermission"},"description":"Permissions granted to the credential. Values must match the target scope type; omitting or sending an empty list applies Dockt's current least-privilege defaults for that scope."},"expires_at":{"allOf":[{"$ref":"#/components/schemas/DateTimeString"}],"description":"Optional API-key expiration timestamp. Omit to use the identity provider default. M2M access tokens are short-lived and refreshed through client credentials instead."}},"additionalProperties":false,"description":"Creates a machine credential that can manage account-level resources."},"ProvisionedApiCredential":{"type":"object","required":["object","id","account_id","workspace_id","display_name","description","credential_type","scope_type","client_id","token_url","api_key_hint","allowed_scopes","enabled","last_used_at","created_at","updated_at","client_secret","api_key"],"properties":{"object":{"type":"string","enum":["api_credential"]},"id":{"$ref":"#/components/schemas/ApiCredentialId"},"account_id":{"anyOf":[{"$ref":"#/components/schemas/AccountId"},{"type":"null"}]},"workspace_id":{"anyOf":[{"$ref":"#/components/schemas/WorkspaceId"},{"type":"null"}]},"display_name":{"$ref":"#/components/schemas/Label"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"credential_type":{"$ref":"#/components/schemas/ApiCredentialType"},"scope_type":{"$ref":"#/components/schemas/ApiCredentialScopeType"},"client_id":{"anyOf":[{"type":"string","description":"a string at least 1 character(s) long","title":"minLength(1)","minLength":1},{"type":"null"}]},"token_url":{"anyOf":[{"$ref":"#/components/schemas/UrlString"},{"type":"null"}]},"api_key_hint":{"anyOf":[{"type":"string","description":"a string at least 1 character(s) long","title":"minLength(1)","minLength":1},{"type":"null"}]},"allowed_scopes":{"type":"array","items":{"$ref":"#/components/schemas/ApiPermission"}},"enabled":{"type":"boolean"},"last_used_at":{"anyOf":[{"$ref":"#/components/schemas/DateTimeString"},{"type":"null"}]},"created_at":{"$ref":"#/components/schemas/DateTimeString"},"updated_at":{"$ref":"#/components/schemas/DateTimeString"},"client_secret":{"anyOf":[{"type":"string","description":"a string at least 1 character(s) long","title":"minLength(1)","minLength":1},{"type":"null"}]},"api_key":{"anyOf":[{"type":"string","description":"a string at least 1 character(s) long","title":"minLength(1)","minLength":1},{"type":"null"}]}},"additionalProperties":false,"description":"Newly created credential with one-time secret material included in the response."},"UpdateApiCredentialBody":{"type":"object","required":[],"properties":{"display_name":{"$ref":"#/components/schemas/Label"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"allowed_scopes":{"type":"array","items":{"$ref":"#/components/schemas/ApiPermission"}},"enabled":{"type":"boolean"}},"additionalProperties":false,"description":"Updates credential metadata, allowed scopes, or enabled state. Set description to null to clear it."},"DeletedApiCredential":{"type":"object","required":["id","object","deleted"],"properties":{"id":{"$ref":"#/components/schemas/ApiCredentialId"},"object":{"type":"string","enum":["api_credential"]},"deleted":{"type":"boolean","enum":[true]}},"additionalProperties":false,"description":"Deletion confirmation for a removed resource."},"CreateWorkspaceApiCredentialBody":{"type":"object","required":["display_name"],"properties":{"display_name":{"$ref":"#/components/schemas/Label"},"description":{"type":"string"},"credential_type":{"allOf":[{"$ref":"#/components/schemas/ApiCredentialType"}],"description":"Credential mechanism. Defaults to api_key when omitted.","default":"api_key"},"allowed_scopes":{"type":"array","items":{"$ref":"#/components/schemas/ApiPermission"},"description":"Permissions granted to the credential. Values must match the target scope type; omitting or sending an empty list applies Dockt's current least-privilege defaults for that scope."},"expires_at":{"allOf":[{"$ref":"#/components/schemas/DateTimeString"}],"description":"Optional API-key expiration timestamp. Omit to use the identity provider default. M2M access tokens are short-lived and refreshed through client credentials instead."}},"additionalProperties":false,"description":"Creates a machine credential scoped to the active workspace."}},"securitySchemes":{"bearerAuth":{"description":"Send either an opaque Dockt API key or a short-lived M2M access token as `Authorization: Bearer <token>`. Exchange M2M client credentials at the token_url returned when the credential is created.","type":"http","scheme":"bearer","bearerFormat":"Bearer"},"sessionCookie":{"type":"apiKey","in":"cookie","name":"dockt_session","description":"Browser session established by the /v1/auth login or signup flow. Backend integrations should use API-key or M2M authentication."}}},"security":[],"tags":[{"name":"Documents","description":"Create, list, read, and withdraw workspace-scoped documents."},{"name":"Assessments","description":"Create and manage workspace-scoped worker verification cases and their supporting documents."},{"name":"Decisions","description":"Read immutable assessment decisions and record downstream customer outcomes."},{"name":"Webhooks","description":"Configure workspace-scoped webhook endpoints for assessment and document lifecycle events."},{"name":"Features","description":"Current workspace configuration used when creating and evaluating assessments."},{"name":"CompliancePackages","description":"Read the Dockt-maintained social compliance package catalog. Enable packages through workspace Features."},{"name":"Auth","description":"Browser session helpers and authorization context discovery. Machine credentials authenticate directly with bearer tokens."},{"name":"Account","description":"Customer account profile and account-level administration metadata."},{"name":"AccountUsers","description":"Account-user membership and invitation management."},{"name":"Workspaces","description":"Manage operational workspaces owned by the authenticated account. Workspaces are the boundary for assessments, Features, documents, decisions, and webhooks."},{"name":"ApiCredentials","description":"Create and manage account-scoped and workspace-scoped machine credentials. Secret values are returned only when created."}],"servers":[{"url":"https://api.dockt.com","description":"Production"}],"webhooks":{"docktEvents":{"post":{"operationId":"Webhooks.receiveDocktEvent","tags":["Webhooks"],"summary":"Receive a Dockt webhook event","description":"Dockt delivers events at least once and does not guarantee ordering. Deduplicate by X-Dockt-Event-Id. Verify X-Dockt-Signature as the lowercase hexadecimal HMAC-SHA256 of `<timestamp>.<raw request body>` using the endpoint signing secret; the header value is prefixed with `v1=`. Compare signatures in constant time and reject timestamps outside a five-minute replay window. Any 2xx response acknowledges delivery; other responses and timeouts are retried up to 10 total attempts with exponential backoff capped at 60 seconds. The default delivery timeout is 10 seconds.","security":[],"parameters":[{"name":"X-Dockt-Event-Id","in":"header","required":true,"description":"Stable event id. Repeated deliveries of the same event use the same id.","schema":{"type":"string","pattern":"^evt_[A-Za-z0-9]+$","example":"evt_example1042"}},{"name":"X-Dockt-Event-Type","in":"header","required":true,"description":"Event type matching the JSON body type field.","schema":{"type":"string","enum":["assessment.completed","document.completed","document.failed","webhook.test"],"example":"assessment.completed"}},{"name":"X-Dockt-Timestamp","in":"header","required":true,"description":"ISO 8601 timestamp included in the signed message.","schema":{"type":"string","format":"date-time","example":"2026-08-06T09:35:00Z"}},{"name":"X-Dockt-Signature","in":"header","required":true,"description":"Signature formatted as v1=<lowercase hexadecimal HMAC-SHA256>.","schema":{"type":"string","pattern":"^v1=[0-9a-f]{64}$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEvent"}}}},"responses":{"200":{"description":"Event accepted."},"204":{"description":"Event accepted with no response body."}}}}}}