{
"statusCode": 404,
"statusReasonCode": "CLAIM_NOT_FOUND",
"error": "Claim not found"
}
{
"statusCode": 500,
"statusReasonCode": "INTERNAL_ERROR",
"error": "Internal server error"
}
Claim documents
Initiate document upload
Start uploading a supporting document (e.g. proof of damage, an invoice) for an existing claim. This doesn’t upload the file itself — it registers the document and gives you back a URL to upload the file to. See Uploading a document for an existing claim.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Opereit for Developers","colors":{"primary":"#0C55C4","light":"#0C55C4","dark":"#0C55C4"},"logo":{"light":"https://mintcdn.com/opereit/9j1Urm3fK_DUvypy/logo/light.svg?fit=max\u0026auto=format\u0026n=9j1Urm3fK_DUvypy\u0026q=85\u0026s=4608af95a88861de68b83c03ce59241a","dark":"https://mintcdn.com/opereit/9j1Urm3fK_DUvypy/logo/dark.svg?fit=max\u0026auto=format\u0026n=9j1Urm3fK_DUvypy\u0026q=85\u0026s=fb62fc24ca6459562d8c48eceafe81b3"},"favicon":"https://mintcdn.com/opereit/9j1Urm3fK_DUvypy/favicon.png?fit=max\u0026auto=format\u0026n=9j1Urm3fK_DUvypy\u0026q=85\u0026s=9c40a05d586bc0e2b398bdf62372e2c8","api":{"examples":{"languages":["typescript",""]}},"appearance":{"default":"system"},"background":{"decoration":"grid"},"navbar":{"links":[{"href":"mailto:hello@opereit.ai","label":"Support"}],"primary":{"type":"button","label":"Dashboard","href":"https://dashboard.opereit.ai"}},"footer":{"socials":{"github":"https://github.com/opereit","linkedin":"https://linkedin.com/company/obsydian-ai"}},"fonts":{"family":"Inter","weight":400},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"metadata":{"timestamp":true},"styling":{"latex":false},"navigation":{"global":{"anchors":[]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"opereit","hasAudioNarration":false,"actualSubdomain":"opereit","customDomains":["developers.opereit.ai"],"gitSource":{"type":"github","owner":"opereit","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6ae1fe510ab3938238c99c46","collectionId":"bdb10b3b-8346-4926-85cd-4f01028dc315","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6ae1fe510ab3938238c99c46"},"entitlements":{},"buildId":"6ae1fe510ab3938238c99c46","clientVersion":"0.0.4021","searchFilterCounts":[{"language":"default","tag":"API reference","count":16},{"language":"default","tag":"Guides","count":6},{"language":"default","tag":"Claim Management","count":5},{"language":"default","tag":"Contracts","count":4},{"language":"default","tag":"Invoice Audits","count":4},{"language":"default","tag":"Claim documents","count":2},{"language":"default","tag":"Start here","count":2},{"language":"default","tag":"Connectors","count":2},{"language":"default","tag":"Getting started","count":2},{"language":"default","tag":"Webhooks","count":1}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"byok-sep-25","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"api-reference/endpoint/claims/documents/initiate","slug":"/api-reference/endpoint/claims/documents/initiate","pageMetadata":{"title":"Initiate document upload","openapi":"POST /v1/claims/{id}/documents","description":"Start uploading a supporting document (e.g. proof of damage, an invoice) for an existing claim. This doesn't upload the file itself — it registers the document and gives you back a URL to upload the file to. See [Uploading a document for an existing claim](/guides/claim-documents).","href":"/api-reference/endpoint/claims/documents/initiate"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n a: \"a\",\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_components.p, {\n children: [\"Start uploading a supporting document (e.g. proof of damage, an invoice) for an existing claim. This doesn’t upload the file itself — it registers the document and gives you back a URL to upload the file to. See \", _jsx(_components.a, {\n href: \"/guides/claim-documents\",\n children: \"Uploading a document for an existing claim\"\n }), \".\"]\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Initiate document upload","openapi":"POST /v1/claims/{id}/documents","description":"Start uploading a supporting document (e.g. proof of damage, an invoice) for an existing claim. This doesn't upload the file itself — it registers the document and gives you back a URL to upload the file to. See [Uploading a document for an existing claim](/guides/claim-documents).","href":"/api-reference/endpoint/claims/documents/initiate"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"summary":"Initiate a document upload","description":"Start uploading a supporting document (e.g. proof of damage, an invoice) for an existing claim. This doesn't upload the file itself — it registers the document and gives you back a URL to upload the file to. See [Uploading a document for an existing claim](/guides/claim-documents).","operationId":"initiateClaimDocumentUpload","parameters":["e3303b9c-718d-4633-9a25-5b176baf2399"],"requestBody":"5521ea81-1626-449b-8564-a21068a602e1","responses":{"201":"a5c99682-ba12-4460-9514-13c0b118b3d8","400":"21c3452c-7a1a-41f8-9350-4d6628c24a98","401":"c1724271-3922-44be-b1bb-bfcd819ca7f9","404":"b3e5a9df-467d-4eed-bd01-3ef2cb2360d1","500":"7f18a950-8c9f-4b98-9e20-09c6a88a36a0"},"method":"post","type":"path","servers":["079abe32-6f90-4e36-b59c-53f74a209f2b"],"security":["9e4f4253-6970-40b4-abf3-c4787f4d03df"],"path":"/v1/claims/{id}/documents","baseUrlOptions":["https://api.opereit.ai"],"title":"Initiate a document upload","codeSamples":[],"requestExampleLanguages":["typescript",""],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"e3303b9c-718d-4633-9a25-5b176baf2399":{"name":"id","in":"path","required":true,"description":"ID of the claim.","schema":{"type":"string","isRequired":true,"description":"ID of the claim.","uniqueKey":"","typeLabel":"string"}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["content_type","file_name"],"properties":{"content_type":{"type":"string","enum":["application/pdf","image/jpeg","image/png","image/webp"],"description":"MIME type of the file you're about to upload.","isRequired":true,"uniqueKey":"content_type","typeLabel":"enum\u003cstring>"},"file_name":{"type":"string","description":"Original file name, including its extension. Truncated to 100 characters in the response if longer.","isRequired":true,"uniqueKey":"file_name","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"file_name":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"a5c99682-ba12-4460-9514-13c0b118b3d8":{"description":"Document registered. Upload the file to `metadata.upload_url`, then confirm it.","content":{"application/json":{"schema":{"type":"object","description":"A claim document, as returned right after you initiate its upload.","required":["id","claim_id","name","type","status","uploaded_by","created_at","organization_id","metadata"],"properties":{"id":{"type":"string","description":"Unique document ID. Hold onto this — you need it to confirm the upload.","isRequired":true,"uniqueKey":"id","typeLabel":"string"},"claim_id":{"type":"string","isRequired":true,"uniqueKey":"claim_id","typeLabel":"string"},"name":{"type":"string","description":"The file name you sent, truncated to 100 characters if longer (the extension is preserved).","isRequired":true,"uniqueKey":"name","typeLabel":"string"},"type":{"type":"string","description":"File extension, derived from `content_type` (e.g. `pdf`, `jpeg`, `png`, `webp`).","isRequired":true,"uniqueKey":"type","typeLabel":"string"},"status":{"type":"string","enum":["PENDING_UPLOAD","CONFIRMED"],"description":"Always `PENDING_UPLOAD` on this response — it only becomes `CONFIRMED` once you upload the file and confirm it.","isRequired":true,"uniqueKey":"status","typeLabel":"enum\u003cstring>"},"uploaded_by":{"type":"string","description":"Always `external` for documents created through this API.","isRequired":true,"uniqueKey":"uploaded_by","typeLabel":"string"},"created_at":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"created_at","typeLabel":"string\u003cdate-time>"},"organization_id":{"type":"string","isRequired":true,"uniqueKey":"organization_id","typeLabel":"string"},"metadata":{"type":"object","required":["upload_url"],"properties":{"upload_url":{"type":"string","description":"URL to upload the file to. Use an HTTP `PUT` with a `Content-Type` header matching the `content_type` you sent above. See [Uploading a document for an existing claim](/guides/claim-documents).","isRequired":true,"uniqueKey":"metadata.upload_url","typeLabel":"string"}},"isRequired":true,"uniqueKey":"metadata","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"id":"\u003cstring>","claim_id":"\u003cstring>","name":"\u003cstring>","type":"\u003cstring>","status":"PENDING_UPLOAD","uploaded_by":"\u003cstring>","created_at":"2023-11-07T05:31:56Z","organization_id":"\u003cstring>","metadata":{"upload_url":"\u003cstring>"}}}},"exampleType":"generated"}},"exampleType":"generated"},"21c3452c-7a1a-41f8-9350-4d6628c24a98":{"description":"The request body failed validation. Either `content_type`/`file_name` are missing or malformed (`statusReasonCode` `INVALID_REQUEST_BODY`, with `details.fieldErrors`), or `content_type` is well-formed but isn't one of the accepted MIME types (`statusReasonCode` `UNSUPPORTED_DOCUMENT_CONTENT_TYPE`).","content":{"application/json":{"schema":{"type":"object","description":"Error envelope returned by every endpoint.","required":["statusCode","statusReasonCode","error"],"properties":{"statusCode":{"type":"integer","description":"HTTP status code — same value as the response status.","isRequired":true,"uniqueKey":"statusCode","typeLabel":"integer"},"statusReasonCode":{"type":"string","enum":["INVALID_REQUEST_BODY","INVALID_QUERY_PARAMETERS","UNSUPPORTED_DOCUMENT_CONTENT_TYPE","CLAIM_NOT_FOUND","CLAIM_ALREADY_EXISTS","CONTRACT_NOT_FOUND","INVOICE_AUDIT_NOT_FOUND","INTERNAL_ERROR","AUTHENTICATION_REQUIRED","INVALID_CREDENTIALS_FORMAT","INVALID_CREDENTIALS_ENCODING","INVALID_CREDENTIALS"],"description":"Machine-readable error code.","isRequired":true,"uniqueKey":"statusReasonCode","typeLabel":"enum\u003cstring>"},"error":{"type":"string","description":"Human-readable error message.","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"details":{"type":"object","description":"Present on `400` responses. `formErrors` holds errors not tied to a specific field; `fieldErrors` maps a top-level request field to the list of validation messages raised under it.","properties":{"formErrors":{"type":"array","items":{"type":"string","uniqueKey":"details.formErrors.items.[INDEX]","typeLabel":"string"},"uniqueKey":"details.formErrors","typeLabel":"string[]"},"fieldErrors":{"type":"object","additionalProperties":{"type":"array","items":{"type":"string","uniqueKey":"details.fieldErrors.additionalProperties.items.[INDEX]","typeLabel":"string"},"uniqueKey":"details.fieldErrors.additionalProperties","typeLabel":"string[]"},"uniqueKey":"details.fieldErrors","typeLabel":"object"}},"uniqueKey":"details","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"statusCode":400,"statusReasonCode":"UNSUPPORTED_DOCUMENT_CONTENT_TYPE","error":"Unsupported content type: text/plain. Expected pdf, jpeg, or png."},"examples":{"Example":{"title":"Example","value":{"statusCode":400,"statusReasonCode":"UNSUPPORTED_DOCUMENT_CONTENT_TYPE","error":"Unsupported content type: text/plain. Expected pdf, jpeg, or png."}}},"exampleType":"examples"}},"exampleType":"examples"},"c1724271-3922-44be-b1bb-bfcd819ca7f9":{"description":"Authentication is missing or invalid. Also returned as `WWW-Authenticate: Basic realm=\"Opereit API\"` on the response headers.","content":{"application/json":{"schema":{"type":"object","description":"Error envelope returned by every endpoint.","required":["statusCode","statusReasonCode","error"],"properties":{"statusCode":{"type":"integer","description":"HTTP status code — same value as the response status.","isRequired":true,"uniqueKey":"statusCode","typeLabel":"integer"},"statusReasonCode":{"type":"string","enum":["INVALID_REQUEST_BODY","INVALID_QUERY_PARAMETERS","UNSUPPORTED_DOCUMENT_CONTENT_TYPE","CLAIM_NOT_FOUND","CLAIM_ALREADY_EXISTS","CONTRACT_NOT_FOUND","INVOICE_AUDIT_NOT_FOUND","INTERNAL_ERROR","AUTHENTICATION_REQUIRED","INVALID_CREDENTIALS_FORMAT","INVALID_CREDENTIALS_ENCODING","INVALID_CREDENTIALS"],"description":"Machine-readable error code.","isRequired":true,"uniqueKey":"statusReasonCode","typeLabel":"enum\u003cstring>"},"error":{"type":"string","description":"Human-readable error message.","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"details":{"type":"object","description":"Present on `400` responses. `formErrors` holds errors not tied to a specific field; `fieldErrors` maps a top-level request field to the list of validation messages raised under it.","properties":{"formErrors":{"type":"array","items":{"type":"string","uniqueKey":"details.formErrors.items.[INDEX]","typeLabel":"string"},"uniqueKey":"details.formErrors","typeLabel":"string[]"},"fieldErrors":{"type":"object","additionalProperties":{"type":"array","items":{"type":"string","uniqueKey":"details.fieldErrors.additionalProperties.items.[INDEX]","typeLabel":"string"},"uniqueKey":"details.fieldErrors.additionalProperties","typeLabel":"string[]"},"uniqueKey":"details.fieldErrors","typeLabel":"object"}},"uniqueKey":"details","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"statusCode":401,"statusReasonCode":"AUTHENTICATION_REQUIRED","error":"Authentication required"},"examples":{"Example":{"title":"Example","value":{"statusCode":401,"statusReasonCode":"AUTHENTICATION_REQUIRED","error":"Authentication required"}}},"exampleType":"examples"}},"exampleType":"examples"},"b3e5a9df-467d-4eed-bd01-3ef2cb2360d1":{"description":"The claim does not exist, or belongs to a different organization.","content":{"application/json":{"schema":{"type":"object","description":"Error envelope returned by every endpoint.","required":["statusCode","statusReasonCode","error"],"properties":{"statusCode":{"type":"integer","description":"HTTP status code — same value as the response status.","isRequired":true,"uniqueKey":"statusCode","typeLabel":"integer"},"statusReasonCode":{"type":"string","enum":["INVALID_REQUEST_BODY","INVALID_QUERY_PARAMETERS","UNSUPPORTED_DOCUMENT_CONTENT_TYPE","CLAIM_NOT_FOUND","CLAIM_ALREADY_EXISTS","CONTRACT_NOT_FOUND","INVOICE_AUDIT_NOT_FOUND","INTERNAL_ERROR","AUTHENTICATION_REQUIRED","INVALID_CREDENTIALS_FORMAT","INVALID_CREDENTIALS_ENCODING","INVALID_CREDENTIALS"],"description":"Machine-readable error code.","isRequired":true,"uniqueKey":"statusReasonCode","typeLabel":"enum\u003cstring>"},"error":{"type":"string","description":"Human-readable error message.","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"details":{"type":"object","description":"Present on `400` responses. `formErrors` holds errors not tied to a specific field; `fieldErrors` maps a top-level request field to the list of validation messages raised under it.","properties":{"formErrors":{"type":"array","items":{"type":"string","uniqueKey":"details.formErrors.items.[INDEX]","typeLabel":"string"},"uniqueKey":"details.formErrors","typeLabel":"string[]"},"fieldErrors":{"type":"object","additionalProperties":{"type":"array","items":{"type":"string","uniqueKey":"details.fieldErrors.additionalProperties.items.[INDEX]","typeLabel":"string"},"uniqueKey":"details.fieldErrors.additionalProperties","typeLabel":"string[]"},"uniqueKey":"details.fieldErrors","typeLabel":"object"}},"uniqueKey":"details","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"statusCode":404,"statusReasonCode":"CLAIM_NOT_FOUND","error":"Claim not found"},"examples":{"Example":{"title":"Example","value":{"statusCode":404,"statusReasonCode":"CLAIM_NOT_FOUND","error":"Claim not found"}}},"exampleType":"examples"}},"exampleType":"examples"},"7f18a950-8c9f-4b98-9e20-09c6a88a36a0":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"type":"object","description":"Error envelope returned by every endpoint.","required":["statusCode","statusReasonCode","error"],"properties":{"statusCode":{"type":"integer","description":"HTTP status code — same value as the response status.","isRequired":true,"uniqueKey":"statusCode","typeLabel":"integer"},"statusReasonCode":{"type":"string","enum":["INVALID_REQUEST_BODY","INVALID_QUERY_PARAMETERS","UNSUPPORTED_DOCUMENT_CONTENT_TYPE","CLAIM_NOT_FOUND","CLAIM_ALREADY_EXISTS","CONTRACT_NOT_FOUND","INVOICE_AUDIT_NOT_FOUND","INTERNAL_ERROR","AUTHENTICATION_REQUIRED","INVALID_CREDENTIALS_FORMAT","INVALID_CREDENTIALS_ENCODING","INVALID_CREDENTIALS"],"description":"Machine-readable error code.","isRequired":true,"uniqueKey":"statusReasonCode","typeLabel":"enum\u003cstring>"},"error":{"type":"string","description":"Human-readable error message.","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"details":{"type":"object","description":"Present on `400` responses. `formErrors` holds errors not tied to a specific field; `fieldErrors` maps a top-level request field to the list of validation messages raised under it.","properties":{"formErrors":{"type":"array","items":{"type":"string","uniqueKey":"details.formErrors.items.[INDEX]","typeLabel":"string"},"uniqueKey":"details.formErrors","typeLabel":"string[]"},"fieldErrors":{"type":"object","additionalProperties":{"type":"array","items":{"type":"string","uniqueKey":"details.fieldErrors.additionalProperties.items.[INDEX]","typeLabel":"string"},"uniqueKey":"details.fieldErrors.additionalProperties","typeLabel":"string[]"},"uniqueKey":"details.fieldErrors","typeLabel":"object"}},"uniqueKey":"details","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"statusCode":500,"statusReasonCode":"INTERNAL_ERROR","error":"Internal server error"},"examples":{"Example":{"title":"Example","value":{"statusCode":500,"statusReasonCode":"INTERNAL_ERROR","error":"Internal server error"}}},"exampleType":"examples"}},"exampleType":"examples"}},"security":{"9e4f4253-6970-40b4-abf3-c4787f4d03df":{"apiKey":{"type":"http","scheme":"basic","description":"HTTP Basic Auth using your API key. Send `Authorization: Basic base64(key_id:key_secret)`.","scopes":[],"schemeName":"apiKey"}}},"servers":{"079abe32-6f90-4e36-b59c-53f74a209f2b":{"url":"https://api.opereit.ai","description":"Production"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"basic","description":"HTTP Basic Auth using your API key. Send `Authorization: Basic base64(key_id:key_secret)`.","scopes":[],"schemeName":"apiKey"},"schema":{"title":"Basic Auth","type":"object","description":"HTTP Basic Auth using your API key. Send `Authorization: Basic base64(key_id:key_secret)`.","isRequired":true,"properties":{"username":{"type":"string","uniqueKey":"username","isRequired":true,"typeLabel":"string","deprecated":false},"password":{"type":"string","uniqueKey":"password","isRequired":true,"typeLabel":"string","deprecated":false}},"additionalProperties":false,"deprecated":false},"schemeName":"apiKey","name":"Authorization"}],"title":"apiKey"}]},"originalFileLocation":"api-reference/openapi.json"},"subdomain":"opereit","siteName":"Opereit for Developers","title":"Initiate document upload - Opereit for Developers","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-09-14T14:42:40.774Z","gitLastModified":"2026-09-14T14:42:17.000Z","originalFileLocation":"api-reference/endpoint/claims/documents/initiate.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Start uploading a supporting document (e.g. proof of damage, an invoice) for an existing claim. This doesn\u0026#x27;t upload the file itself — it registers the document and gives you back a URL to upload the file to. See Uploading a document for an existing claim.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Opereit for Developers\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/opereit/KKL-I9qKEVNYIEaR/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/opereit/KKL-I9qKEVNYIEaR/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/opereit/KKL-I9qKEVNYIEaR/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/opereit/KKL-I9qKEVNYIEaR/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/opereit/KKL-I9qKEVNYIEaR/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/opereit/KKL-I9qKEVNYIEaR/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/opereit/KKL-I9qKEVNYIEaR/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/opereit/KKL-I9qKEVNYIEaR/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/opereit/KKL-I9qKEVNYIEaR/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Initiate document upload - Opereit for Developers\">\u003cmeta data-mint-head property=\"og:description\" content=\"Start uploading a supporting document (e.g. proof of damage, an invoice) for an existing claim. This doesn\u0026#x27;t upload the file itself — it registers the document and gives you back a URL to upload the file to. See Uploading a document for an existing claim.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Opereit for Developers\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://developers.opereit.ai/api-reference/endpoint/claims/documents/initiate\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://opereit.mintlify.app/_mintlify/api/og/v2?division=Claim+documents\u0026amp;title=Initiate+document+upload\u0026amp;description=Start+uploading+a+supporting+document+%28e.g.+proof+of+damage%2C+an+invoice%29+for+an+existing+claim.+This+doesn%27t+upload+the+file+itself+%E2%80%94+it+registers+the+document+\u0026amp;theme=f936422abecfeaf0fc9e3af5\u0026amp;signature=53f4483fce036b9edffb7c4a12ae83d7c30985730e47bf57b4024fab29a06829\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Initiate document upload - Opereit for Developers\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Start uploading a supporting document (e.g. proof of damage, an invoice) for an existing claim. This doesn\u0026#x27;t upload the file itself — it registers the document and gives you back a URL to upload the file to. See Uploading a document for an existing claim.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://opereit.mintlify.app/_mintlify/api/og/v2?division=Claim+documents\u0026amp;title=Initiate+document+upload\u0026amp;description=Start+uploading+a+supporting+document+%28e.g.+proof+of+damage%2C+an+invoice%29+for+an+existing+claim.+This+doesn%27t+upload+the+file+itself+%E2%80%94+it+registers+the+document+\u0026amp;theme=f936422abecfeaf0fc9e3af5\u0026amp;signature=53f4483fce036b9edffb7c4a12ae83d7c30985730e47bf57b4024fab29a06829\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/opereit/KKL-I9qKEVNYIEaR/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Opereit for Developers\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#0C55C4\">\u003clink data-mint-head rel=\"canonical\" href=\"https://developers.opereit.ai/api-reference/endpoint/claims/documents/initiate\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/endpoint/claims/documents/initiate.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://developers.opereit.ai/#organization\",\"name\":\"Opereit for Developers\",\"url\":\"https://developers.opereit.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/opereit/9j1Urm3fK_DUvypy/logo/light.svg?fit=max\u0026auto=format\u0026n=9j1Urm3fK_DUvypy\u0026q=85\u0026s=4608af95a88861de68b83c03ce59241a\"}},{\"@type\":\"WebSite\",\"@id\":\"https://developers.opereit.ai#website\",\"name\":\"Opereit for Developers\",\"url\":\"https://developers.opereit.ai\",\"publisher\":{\"@id\":\"https://developers.opereit.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://developers.opereit.ai/api-reference/endpoint/claims/documents/initiate#webpage\",\"url\":\"https://developers.opereit.ai/api-reference/endpoint/claims/documents/initiate\",\"name\":\"Initiate document upload\",\"description\":\"Start uploading a supporting document (e.g. proof of damage, an invoice) for an existing claim. This doesn't upload the file itself — it registers the document and gives you back a URL to upload the file to. See Uploading a document for an existing claim.\",\"dateModified\":\"2026-09-14T14:42:17.000Z\",\"isPartOf\":{\"@id\":\"https://developers.opereit.ai#website\"},\"breadcrumb\":{\"@id\":\"https://developers.opereit.ai/api-reference/endpoint/claims/documents/initiate#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://developers.opereit.ai/api-reference/endpoint/claims/documents/initiate#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Opereit for Developers\",\"item\":\"https://developers.opereit.ai\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Initiate document upload\",\"item\":\"https://developers.opereit.ai/api-reference/endpoint/claims/documents/initiate\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://developers.opereit.ai/api-reference/endpoint/claims/documents/initiate#apireference\",\"headline\":\"Initiate document upload\",\"name\":\"Initiate document upload\",\"description\":\"Start uploading a supporting document (e.g. proof of damage, an invoice) for an existing claim. This doesn't upload the file itself — it registers the document and gives you back a URL to upload the file to. See Uploading a document for an existing claim.\",\"url\":\"https://developers.opereit.ai/api-reference/endpoint/claims/documents/initiate\",\"mainEntityOfPage\":{\"@id\":\"https://developers.opereit.ai/api-reference/endpoint/claims/documents/initiate#webpage\"},\"dateModified\":\"2026-09-14T14:42:17.000Z\",\"publisher\":{\"@id\":\"https://developers.opereit.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://developers.opereit.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Opereit for Developers\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Opereit for Developers","nav":{"global":{"anchors":[]},"tabs":[{"tab":"Guides","pages":[{"title":"Guides","href":""}]},{"tab":"API reference","groups":[{"group":"Start here","pages":[{"title":"Introduction","href":"/api-reference/introduction"},{"title":"Check your API key","openapi":"GET /v1/ping","href":"/api-reference/endpoint/ping"}]},{"group":"Claim Management","pages":[{"title":"List claims","openapi":"GET /v1/claims","href":"/api-reference/endpoint/claims/list"},{"title":"Create a claim","openapi":"POST /v1/claims","href":"/api-reference/endpoint/claims/create"},{"title":"Get a claim","openapi":"GET /v1/claims/{id}","description":"Retrieve a single claim by ID, including its full shipment and incidence details.","href":"/api-reference/endpoint/claims/get"}]},{"group":"Claim documents","pages":[{"title":"Initiate document upload","openapi":"POST /v1/claims/{id}/documents","href":"/api-reference/endpoint/claims/documents/initiate"},{"title":"Confirm document upload","openapi":"POST /v1/claims/{id}/documents/complete","description":"After uploading the file(s) to their `upload_url`, call this to confirm the upload went through. Returns a per-document result so you know exactly which ones succeeded and why any others failed. See [Uploading a document for an existing claim](/guides/claim-documents).","href":"/api-reference/endpoint/claims/documents/complete"}]},{"group":"Contracts","pages":[{"title":"Upload contract","openapi":"POST /v1/contracts","href":"/api-reference/endpoint/contracts/upload"},{"title":"List contracts","openapi":"GET /v1/contracts","href":"/api-reference/endpoint/contracts/list"},{"title":"List contract rates","openapi":"GET /v1/contracts/{contract_id}/rates","href":"/api-reference/endpoint/contracts/list-rates"},{"title":"List contract surcharges","openapi":"GET /v1/contracts/{contract_id}/surcharges","href":"/api-reference/endpoint/contracts/list-surcharges"}]},{"group":"Invoice Audits","pages":[{"title":"Create invoice audit","openapi":"POST /v1/invoice-audits","href":"/api-reference/endpoint/invoice-audits/create"},{"title":"List invoice audits","openapi":"GET /v1/invoice-audits","href":"/api-reference/endpoint/invoice-audits/list"},{"title":"List line items","openapi":"GET /v1/invoice-audits/{audit_id}/line-items","href":"/api-reference/endpoint/invoice-audits/list-line-items"},{"title":"List findings","openapi":"GET /v1/invoice-audits/{audit_id}/findings","href":"/api-reference/endpoint/invoice-audits/list-findings"}]},{"group":"Webhooks","pages":[{"title":"Webhooks","href":"/api-reference/webhooks"}]}]}]},"title":"Initiate document upload - Opereit for Developers","buildId":"dpl_EnxDqhjaNc9a8MVa833TGULPd9uJ","deploymentId":"dpl_EnxDqhjaNc9a8MVa833TGULPd9uJ","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-26-lDe7V.js","utils-CWQmgYtH.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-4-Aw3rSD.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-C2zjXYA5.js","snippetPresets-DFmpFA7C.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-FJpQavWq.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-D_GvPF7k.js","shallow-Bs2ZB0NO.js","getApiPlaygroundDisplay-DCcqJJk-.js","CodeSnippet-DzDxawVe.js","CodeSnippets-aUr7fU-7.js","Page-CT9uE8Ip.js","getPastedJson-Y1fKsj_I.js","icon-DI4zTsDr.js","MethodPill-C0nDlmSQ.js","DuplicateIcon-NUXbx2nQ.js","createIcon-BdTHrPAi.js","DynamicMarkdown-CtpgKJwj.js","SectionHeading-B3x35tOt.js","axios-vUo_bRtp.js","Markdown-3OmurJMP.js","clsx-DMKzROTp.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-1ms6tsT-.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-Ke9xIMFx.js"]}