Upload a carrier contract document. Opereit asynchronously extracts rate cards and surcharges from the file. The contract is created with status=PROCESSING; it transitions to ACTIVE once extraction completes (or FAILED if extraction errors out).
A carrier contract uploaded to Opereit. Rates and surcharges are extracted asynchronously.
Show child attributes
Last modified on August 25, 2026
{"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/contracts/upload","slug":"/api-reference/endpoint/contracts/upload","pageMetadata":{"title":"Upload contract","openapi":"POST /v1/contracts","description":"Upload a carrier contract document. Opereit asynchronously extracts rate cards and surcharges from the file. The contract is created with `status=PROCESSING`; it transitions to `ACTIVE` once extraction completes (or `FAILED` if extraction errors out).\n\nAccepted file formats: PDF, PNG, JPEG, CSV, XLS, XLSX.","href":"/api-reference/endpoint/contracts/upload"},"description":{"compiledSource":"\"use strict\";\nconst {Fragment: _Fragment, jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n code: \"code\",\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_Fragment, {\n children: [_jsxs(_components.p, {\n children: [\"Upload a carrier contract document. Opereit asynchronously extracts rate cards and surcharges from the file. The contract is created with \", _jsx(_components.code, {\n children: \"status=PROCESSING\"\n }), \"; it transitions to \", _jsx(_components.code, {\n children: \"ACTIVE\"\n }), \" once extraction completes (or \", _jsx(_components.code, {\n children: \"FAILED\"\n }), \" if extraction errors out).\"]\n }), \"\\n\", _jsx(_components.p, {\n children: \"Accepted file formats: PDF, PNG, JPEG, CSV, XLS, XLSX.\"\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{jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={p:`p`,..._provideComponents(),...props.components},{Note}=_components;if(!Note)_missingMdxReference(`Note`,true);return _jsx(Note,{children:_jsx(_components.p,{children:`Contracts needs to be activated on your account before you can use it. Reach out to your Opereit account manager to get it turned on.`})})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Upload contract","openapi":"POST /v1/contracts","description":"Upload a carrier contract document. Opereit asynchronously extracts rate cards and surcharges from the file. The contract is created with `status=PROCESSING`; it transitions to `ACTIVE` once extraction completes (or `FAILED` if extraction errors out).\n\nAccepted file formats: PDF, PNG, JPEG, CSV, XLS, XLSX.","href":"/api-reference/endpoint/contracts/upload"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"summary":"Upload a carrier contract","description":"Upload a carrier contract document. Opereit asynchronously extracts rate cards and surcharges from the file. The contract is created with `status=PROCESSING`; it transitions to `ACTIVE` once extraction completes (or `FAILED` if extraction errors out).\n\nAccepted file formats: PDF, PNG, JPEG, CSV, XLS, XLSX.","operationId":"uploadContract","requestBody":"5d437156-e4a4-4938-9404-f262b3b6b677","responses":{"201":"676977f1-a070-453b-b0df-722cc4b80981","400":"33efa64d-e901-4073-8321-35621878376e","401":"a491118b-fb40-4aee-954f-9f643e4ccfe7"},"method":"post","type":"path","servers":["079abe32-6f90-4e36-b59c-53f74a209f2b"],"security":["9e4f4253-6970-40b4-abf3-c4787f4d03df"],"path":"/v1/contracts","baseUrlOptions":["https://api.opereit.ai"],"title":"Upload a carrier contract","codeSamples":[],"requestExampleLanguages":["typescript",""],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{},"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","required":["file","carrier_name","signing_date"],"properties":{"file":{"type":"string","format":"binary","description":"The contract document. Accepted MIME types: `application/pdf`, `image/png`, `image/jpeg`, `text/csv`, `application/vnd.ms-excel`, `application/vnd.openxmlformats-officedocument.spreadsheetml.sheet`.","isRequired":true,"uniqueKey":"file","typeLabel":"file"},"carrier_name":{"type":"string","description":"The carrier this contract belongs to (e.g. `UPS`, `FedEx`, `DHL Express`).","isRequired":true,"uniqueKey":"carrier_name","typeLabel":"string"},"signing_date":{"type":"string","format":"date","description":"Date the contract was signed, in `YYYY-MM-DD` format.","isRequired":true,"uniqueKey":"signing_date","typeLabel":"string\u003cdate>"},"contract_number":{"type":"string","description":"Optional carrier-issued contract number.","uniqueKey":"contract_number","typeLabel":"string"},"account_number":{"type":"string","description":"Optional carrier account number this contract applies to.","uniqueKey":"account_number","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"file":"\u003cstring>","carrier_name":"\u003cstring>","signing_date":"2023-12-25","contract_number":"\u003cstring>","account_number":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"676977f1-a070-453b-b0df-722cc4b80981":{"description":"Contract created. Extraction runs asynchronously.","content":{"application/json":{"schema":{"type":"object","properties":{"contract":{"type":"object","description":"A carrier contract uploaded to Opereit. Rates and surcharges are extracted asynchronously.","required":["id","carrier_name","signing_date","status","rate_count","surcharge_count","created_at"],"properties":{"id":{"type":"string","description":"Unique identifier for the contract.","isRequired":true,"uniqueKey":"contract.id","typeLabel":"string"},"carrier_name":{"type":"string","description":"Carrier the contract belongs to.","example":"DHL Express","isRequired":true,"uniqueKey":"contract.carrier_name","typeLabel":"string"},"signing_date":{"type":"string","format":"date","description":"Date the contract was signed.","isRequired":true,"uniqueKey":"contract.signing_date","typeLabel":"string\u003cdate>"},"status":{"type":"string","enum":["PROCESSING","ACTIVE","EXPIRED","FAILED"],"description":"Contract lifecycle state.\n\n- `PROCESSING`: extraction in progress.\n- `ACTIVE`: extraction complete; rates and surcharges are available.\n- `EXPIRED`: contract expiration date has passed.\n- `FAILED`: extraction failed; see `status_reason`.","isRequired":true,"uniqueKey":"contract.status","typeLabel":"enum\u003cstring>"},"rate_count":{"type":"integer","description":"Number of rate-card entries extracted from the contract.","isRequired":true,"uniqueKey":"contract.rate_count","typeLabel":"integer"},"surcharge_count":{"type":"integer","description":"Number of surcharges extracted from the contract.","isRequired":true,"uniqueKey":"contract.surcharge_count","typeLabel":"integer"},"created_at":{"type":"string","format":"date-time","description":"When the contract was uploaded.","isRequired":true,"uniqueKey":"contract.created_at","typeLabel":"string\u003cdate-time>"},"contract_number":{"oneOf":[{"type":"string","description":"Carrier-issued contract number, if any.","uniqueKey":"contract.contract_number.oneOf.0","typeLabel":"string"},{"type":"null","description":"Carrier-issued contract number, if any.","uniqueKey":"contract.contract_number.oneOf.1","typeLabel":"null"}],"uniqueKey":"contract.contract_number","typeLabel":"string | null"},"account_number":{"oneOf":[{"type":"string","description":"Carrier account number this contract applies to, if any.","uniqueKey":"contract.account_number.oneOf.0","typeLabel":"string"},{"type":"null","description":"Carrier account number this contract applies to, if any.","uniqueKey":"contract.account_number.oneOf.1","typeLabel":"null"}],"uniqueKey":"contract.account_number","typeLabel":"string | null"},"effective_date":{"oneOf":[{"type":"string","format":"date","description":"Date the contracted rates take effect, if specified.","uniqueKey":"contract.effective_date.oneOf.0","typeLabel":"string\u003cdate>"},{"type":"null","format":"date","description":"Date the contracted rates take effect, if specified.","uniqueKey":"contract.effective_date.oneOf.1","typeLabel":"null"}],"uniqueKey":"contract.effective_date","typeLabel":"string\u003cdate> | null"},"expiration_date":{"oneOf":[{"type":"string","format":"date","description":"Date the contract expires, if specified.","uniqueKey":"contract.expiration_date.oneOf.0","typeLabel":"string\u003cdate>"},{"type":"null","format":"date","description":"Date the contract expires, if specified.","uniqueKey":"contract.expiration_date.oneOf.1","typeLabel":"null"}],"uniqueKey":"contract.expiration_date","typeLabel":"string\u003cdate> | null"},"status_reason":{"oneOf":[{"type":"string","description":"Explanation when `status=FAILED`.","uniqueKey":"contract.status_reason.oneOf.0","typeLabel":"string"},{"type":"null","description":"Explanation when `status=FAILED`.","uniqueKey":"contract.status_reason.oneOf.1","typeLabel":"null"}],"uniqueKey":"contract.status_reason","typeLabel":"string | null"},"file_url":{"type":"string","format":"uri","description":"Time-limited URL to download the original contract file.","uniqueKey":"contract.file_url","typeLabel":"string\u003curi>"}},"uniqueKey":"contract","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"contract":{"id":"\u003cstring>","carrier_name":"DHL Express","signing_date":"2023-12-25","status":"PROCESSING","rate_count":123,"surcharge_count":123,"created_at":"2023-11-07T05:31:56Z","contract_number":"\u003cstring>","account_number":"\u003cstring>","effective_date":"2023-12-25","expiration_date":"2023-12-25","status_reason":"\u003cstring>","file_url":"\u003cstring>"}}}},"exampleType":"generated"}},"exampleType":"generated"},"33efa64d-e901-4073-8321-35621878376e":{"description":"The request was malformed or failed validation.","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":"INVALID_REQUEST_BODY","error":"Invalid request body","details":{"formErrors":[],"fieldErrors":{}}},"examples":{"Example":{"title":"Example","value":{"statusCode":400,"statusReasonCode":"INVALID_REQUEST_BODY","error":"Invalid request body","details":{"formErrors":[],"fieldErrors":{}}}}},"exampleType":"examples"}},"exampleType":"examples"},"a491118b-fb40-4aee-954f-9f643e4ccfe7":{"description":"Authentication is missing or invalid.","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"}},"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":"Upload contract - Opereit for Developers","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-08-25T13:35:26.521Z","gitLastModified":"2026-08-25T13:35:05.000Z","originalFileLocation":"api-reference/endpoint/contracts/upload.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=\"Upload a carrier contract document. Opereit asynchronously extracts rate cards and surcharges from the file. The contract is created with status=PROCESSING; it transitions to ACTIVE once extraction completes (or FAILED if extraction errors out). Accepted file formats: PDF, PNG, JPEG, CSV, XLS, XLSX.\">\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=\"Upload contract - Opereit for Developers\">\u003cmeta data-mint-head property=\"og:description\" content=\"Upload a carrier contract document. Opereit asynchronously extracts rate cards and surcharges from the file. The contract is created with status=PROCESSING; it transitions to ACTIVE once extraction completes (or FAILED if extraction errors out). Accepted file formats: PDF, PNG, JPEG, CSV, XLS, XLSX.\">\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/contracts/upload\">\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=Contracts\u0026amp;title=Upload+contract\u0026amp;description=Upload+a+carrier+contract+document.+Opereit+asynchronously+extracts+rate+cards+and+surcharges+from+the+file.+The+contract+is+created+with+%60status%3DPROCESSING%60%3B+i\u0026amp;theme=f936422abecfeaf0fc9e3af5\u0026amp;signature=6285932753df697a7883d3336f00bc691b66c84e7a04b5ac116474663358a9b3\">\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=\"Upload contract - Opereit for Developers\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Upload a carrier contract document. Opereit asynchronously extracts rate cards and surcharges from the file. The contract is created with status=PROCESSING; it transitions to ACTIVE once extraction completes (or FAILED if extraction errors out). Accepted file formats: PDF, PNG, JPEG, CSV, XLS, XLSX.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://opereit.mintlify.app/_mintlify/api/og/v2?division=Contracts\u0026amp;title=Upload+contract\u0026amp;description=Upload+a+carrier+contract+document.+Opereit+asynchronously+extracts+rate+cards+and+surcharges+from+the+file.+The+contract+is+created+with+%60status%3DPROCESSING%60%3B+i\u0026amp;theme=f936422abecfeaf0fc9e3af5\u0026amp;signature=6285932753df697a7883d3336f00bc691b66c84e7a04b5ac116474663358a9b3\">\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/contracts/upload\">\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/contracts/upload.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/contracts/upload#webpage\",\"url\":\"https://developers.opereit.ai/api-reference/endpoint/contracts/upload\",\"name\":\"Upload contract\",\"description\":\"Upload a carrier contract document. Opereit asynchronously extracts rate cards and surcharges from the file. The contract is created with status=PROCESSING; it transitions to ACTIVE once extraction completes (or FAILED if extraction errors out). Accepted file formats: PDF, PNG, JPEG, CSV, XLS, XLSX.\",\"dateModified\":\"2026-08-25T13:35:05.000Z\",\"isPartOf\":{\"@id\":\"https://developers.opereit.ai#website\"},\"breadcrumb\":{\"@id\":\"https://developers.opereit.ai/api-reference/endpoint/contracts/upload#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://developers.opereit.ai/api-reference/endpoint/contracts/upload#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Opereit for Developers\",\"item\":\"https://developers.opereit.ai\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Upload contract\",\"item\":\"https://developers.opereit.ai/api-reference/endpoint/contracts/upload\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://developers.opereit.ai/api-reference/endpoint/contracts/upload#apireference\",\"headline\":\"Upload contract\",\"name\":\"Upload contract\",\"description\":\"Upload a carrier contract document. Opereit asynchronously extracts rate cards and surcharges from the file. The contract is created with status=PROCESSING; it transitions to ACTIVE once extraction completes (or FAILED if extraction errors out). Accepted file formats: PDF, PNG, JPEG, CSV, XLS, XLSX.\",\"url\":\"https://developers.opereit.ai/api-reference/endpoint/contracts/upload\",\"mainEntityOfPage\":{\"@id\":\"https://developers.opereit.ai/api-reference/endpoint/contracts/upload#webpage\"},\"dateModified\":\"2026-08-25T13:35:05.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}","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","description":"Returns a cursor-paginated list of contracts uploaded by your organization.","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":"Upload contract - 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"]}