{"items":[{"type":"link","label":"Wisedocs API","link":"/api/openapi","routeSlug":"/api/openapi","content":{"contentType":"overview","meta":{"name":"Wisedocs API"},"children":[{"nodeType":"container","panels":[{"title":"Download OpenAPI description","titleTranslationKey":"download.description.title","children":[{"kind":"download","label":"openapi.json","url":"/_bundle/api/@v1/openapi.json?download"},{"kind":"download","label":"openapi.yaml","url":"/_bundle/api/@v1/openapi.yaml?download"}]},{"title":"Overview","titleTranslationKey":"info.title","children":[{"kind":"externallink","title":"License","titleTranslationKey":"info.license","label":"Proprietary","url":"https://wisedocs.ai"}]},{"title":"Languages","titleTranslationKey":"languages.title","children":[{"kind":"languages","options":[{"key":"curl","title":"curl","lang":"curl"},{"key":"javascript","title":"JavaScript","lang":"JavaScript"},{"key":"node","title":"Node.js","lang":"Node.js"},{"key":"python","title":"Python","lang":"Python"},{"key":"java","title":"Java","lang":"Java"},{"key":"csharp","title":"C#","lang":"C#"},{"key":"php","title":"PHP","lang":"PHP"},{"key":"go","title":"Go","lang":"Go"},{"key":"ruby","title":"Ruby","lang":"Ruby"},{"key":"r","title":"R","lang":"R"},{"key":"payload","title":"Payload","lang":"Payload"}]}]},{"title":"Servers","titleTranslationKey":"servers.title","children":[{"kind":"servers","servers":[{"url":"/_mock/api/openapi","description":"Mock server","isMockServer":true},{"url":"https://dev-api.wisedocs.ai","description":"Development server"},{"url":"https://staging-api.wisedocs.ai","description":"Staging server"},{"url":"https://api.wisedocs.ai","description":"Production server"}],"mode":"default"}]}],"children":[{"nodeType":"overview-section-wrapper","children":[{"nodeType":"header","level":1,"label":"Wisedocs API (1.0)","showPageActions":true},{"nodeType":"overview-section-wrapper","children":[{"nodeType":"markdoc","content":"REST API for integrating Wisedocs capabilities into diverse workflows and\nuse cases across claims, insurance, legal, and healthcare operations."}],"sectionId":"/"}],"sectionId":"/"}]}]}},{"type":"group","label":"Authentication","link":"/api/openapi/authentication","routeSlug":"/api/openapi/authentication","items":[{"label":"Get OAuth authorization server metadata","deprecated":false,"httpVerb":"get","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/api/openapi/authentication/getauthorizationservermetadata","routeSlug":"/api/openapi/authentication/getauthorizationservermetadata","metadata":{"seo":{"title":"Get OAuth authorization server metadata","description":"Returns the public OAuth endpoints and supported confidential-client authentication methods."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"getAuthorizationServerMetadata","name":"Get OAuth authorization server metadata","isWebhook":false,"pointer":"/paths/~1.well-known~1oauth-authorization-server/get","hasSamples":false},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Get OAuth authorization server metadata","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":"Returns the public OAuth endpoints and supported confidential-client authentication methods."}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"GET","path":"/.well-known/oauth-authorization-server","servers":[{"url":"/_mock/api/openapi","description":"Mock server","isMockServer":true},{"url":"https://dev-api.wisedocs.ai","description":"Development server"},{"url":"https://staging-api.wisedocs.ai","description":"Staging server"},{"url":"https://api.wisedocs.ai","description":"Production server"}],"parameters":{"path":[],"query":[],"querystring":[],"header":[],"cookie":[]},"security":[],"responseCodes":["200","429"],"pointer":"/.well-known/oauth-authorization-server","href":"authentication/getauthorizationservermetadata","openApiOperationId":"getAuthorizationServerMetadata","summary":"Get OAuth authorization server metadata"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"/_mock/api/openapi","description":"Mock server","isMockServer":true},{"url":"https://dev-api.wisedocs.ai","description":"Development server"},{"url":"https://staging-api.wisedocs.ai","description":"Staging server"},{"url":"https://api.wisedocs.ai","description":"Production server"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"Authorization server metadata.","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/AuthorizationServerMetadata"}},"schemaId":"components/schemas/AuthorizationServerMetadata"},{"code":"429","description":"Request rate limit exceeded.","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ErrorResponse"}},"schemaId":"components/schemas/ErrorResponse"}],"pointer":"/paths/~1.well-known~1oauth-authorization-server/get/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"components/schemas/AuthorizationServerMetadata","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/AuthorizationServerMetadata"}}},{"code":"429","schemaId":"components/schemas/ErrorResponse","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ErrorResponse"}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/authentication/getauthorizationservermetadata"}],"panels":[]}]},"httpPath":"/.well-known/oauth-authorization-server"},{"label":"Create an access token","deprecated":false,"httpVerb":"post","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/api/openapi/authentication/createaccesstoken","routeSlug":"/api/openapi/authentication/createaccesstoken","metadata":{"seo":{"title":"Create an access token","description":"Exchanges client credentials for an access token using the OAuth 2.0client credentials grant."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"createAccessToken","name":"Create an access token","isWebhook":false,"pointer":"/paths/~1oauth~1token/post","hasSamples":true},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Create an access token","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Exchanges client credentials for an access token using the OAuth 2.0"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"client credentials grant."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Authenticate with HTTP Basic using "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"client_id"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" as the username and"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"client_secret"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" as the password, and send "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"grant_type=client_credentials"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"as a form-encoded body."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Tokens cannot be refreshed; request a new one when "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"expires_in"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" elapses."},"children":[]}]}]}]},{"nodeType":"security","requirements":[{"schemes":[{"name":"clientSecretBasic","scopes":[],"type":"http","scheme":"basic","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"HTTP Basic authentication with "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"client_id"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" as the username and"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"client_secret"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" as the password."},"children":[]}]}]}]}]}]},{"nodeType":"item-content","variant":"body","label":"Request Body","labelTranslationKey":"body","required":true,"mediaTypes":["application/x-www-form-urlencoded"],"mediaTypeSchemas":{"application/x-www-form-urlencoded":{"schemaId":"components/schemas/TokenRequest","exampleIds":["paths/~1oauth~1token/post/requestBody/content/application~1x-www-form-urlencoded/example"]}},"schemaId":"components/schemas/TokenRequest","exampleIds":["paths/~1oauth~1token/post/requestBody/content/application~1x-www-form-urlencoded/example"],"pointer":"/paths/~1oauth~1token/post/requestBody"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"POST","path":"/oauth/token","servers":[{"url":"/_mock/api/openapi","description":"Mock server","isMockServer":true},{"url":"https://dev-api.wisedocs.ai","description":"Development server"},{"url":"https://staging-api.wisedocs.ai","description":"Staging server"},{"url":"https://api.wisedocs.ai","description":"Production server"}],"parameters":{"path":[],"query":[],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"clientSecretBasic","type":"http","scheme":"basic"}],"scopes":[]}],"requestBody":{"application/x-www-form-urlencoded":{"schemaId":"components/schemas/TokenRequest","exampleIds":["paths/~1oauth~1token/post/requestBody/content/application~1x-www-form-urlencoded/example"]}},"responseCodes":["200","400","401","404"],"pointer":"/oauth/token","href":"authentication/createaccesstoken","openApiOperationId":"createAccessToken","summary":"Create an access token"},"definitionSamples":[{"lang":"curl","source":"curl -i -X POST https://dev-api.wisedocs.ai/oauth/token \\\n  -u '<client_id>:<client_secret>' \\\n  -d grant_type=client_credentials\n"}],"isWebhook":false,"hideReplay":false,"servers":[{"url":"/_mock/api/openapi","description":"Mock server","isMockServer":true},{"url":"https://dev-api.wisedocs.ai","description":"Development server"},{"url":"https://staging-api.wisedocs.ai","description":"Staging server"},{"url":"https://api.wisedocs.ai","description":"Production server"}],"schemaId":"components/schemas/TokenRequest","exampleIds":["paths/~1oauth~1token/post/requestBody/content/application~1x-www-form-urlencoded/example"],"mediaTypes":["application/x-www-form-urlencoded"],"mediaTypeSchemas":{"application/x-www-form-urlencoded":{"schemaId":"components/schemas/TokenRequest","exampleIds":["paths/~1oauth~1token/post/requestBody/content/application~1x-www-form-urlencoded/example"]}},"examples":[{}]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"Access token issued.","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/TokenResponse"}},"schemaId":"components/schemas/TokenResponse","headers":{"Cache-Control":{"schema":{"type":"string","example":"no-store"}},"Pragma":{"schema":{"type":"string","example":"no-cache"}}},"headerSchemaId":"schema_0"},{"code":"400","description":"Invalid request or unsupported grant type.","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/OAuthError"}},"schemaId":"components/schemas/OAuthError"},{"code":"401","description":"Client authentication failed.","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/OAuthError"}},"schemaId":"components/schemas/OAuthError"},{"code":"404","description":"Client authentication failed.","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/OAuthError"}},"schemaId":"components/schemas/OAuthError"}],"pointer":"/paths/~1oauth~1token/post/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"components/schemas/TokenResponse","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/TokenResponse"}}},{"code":"400","schemaId":"components/schemas/OAuthError","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/OAuthError"}}},{"code":"401","schemaId":"components/schemas/OAuthError","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/OAuthError"}}},{"code":"404","schemaId":"components/schemas/OAuthError","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/OAuthError"}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/authentication/createaccesstoken"}],"panels":[]}]},"httpPath":"/oauth/token"},{"label":"Introspect an access token","deprecated":false,"httpVerb":"post","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/api/openapi/authentication/introspectaccesstoken","routeSlug":"/api/openapi/authentication/introspectaccesstoken","metadata":{"seo":{"title":"Introspect an access token","description":"Returns metadata for an active access token issued to the authenticatedclient. Inactive, expired, or revoked tokens return {\"active\": false}."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"introspectAccessToken","name":"Introspect an access token","isWebhook":false,"pointer":"/paths/~1oauth~1introspect/post","hasSamples":true},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Introspect an access token","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Returns metadata for an active access token issued to the authenticated"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"client. Inactive, expired, or revoked tokens return "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"{\"active\": false}"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"."},"children":[]}]}]}]},{"nodeType":"security","requirements":[{"schemes":[{"name":"clientSecretBasic","scopes":[],"type":"http","scheme":"basic","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"HTTP Basic authentication with "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"client_id"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" as the username and"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"client_secret"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" as the password."},"children":[]}]}]}]}]}]},{"nodeType":"item-content","variant":"body","label":"Request Body","labelTranslationKey":"body","required":true,"mediaTypes":["application/x-www-form-urlencoded","application/json"],"mediaTypeSchemas":{"application/x-www-form-urlencoded":{"schemaId":"components/schemas/TokenManagementRequest"},"application/json":{"schemaId":"components/schemas/TokenManagementRequest"}},"schemaId":"components/schemas/TokenManagementRequest","pointer":"/paths/~1oauth~1introspect/post/requestBody"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"POST","path":"/oauth/introspect","servers":[{"url":"/_mock/api/openapi","description":"Mock server","isMockServer":true},{"url":"https://dev-api.wisedocs.ai","description":"Development server"},{"url":"https://staging-api.wisedocs.ai","description":"Staging server"},{"url":"https://api.wisedocs.ai","description":"Production server"}],"parameters":{"path":[],"query":[],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"clientSecretBasic","type":"http","scheme":"basic"}],"scopes":[]}],"requestBody":{"application/x-www-form-urlencoded":{"schemaId":"components/schemas/TokenManagementRequest"},"application/json":{"schemaId":"components/schemas/TokenManagementRequest"}},"responseCodes":["200","400","401","503"],"pointer":"/oauth/introspect","href":"authentication/introspectaccesstoken","openApiOperationId":"introspectAccessToken","summary":"Introspect an access token"},"definitionSamples":[{"lang":"curl","source":"curl -i -X POST https://dev-api.wisedocs.ai/oauth/introspect \\\n  -u '<client_id>:<client_secret>' \\\n  -d token='<access_token>'\n"}],"isWebhook":false,"hideReplay":false,"servers":[{"url":"/_mock/api/openapi","description":"Mock server","isMockServer":true},{"url":"https://dev-api.wisedocs.ai","description":"Development server"},{"url":"https://staging-api.wisedocs.ai","description":"Staging server"},{"url":"https://api.wisedocs.ai","description":"Production server"}],"schemaId":"components/schemas/TokenManagementRequest","mediaTypes":["application/x-www-form-urlencoded","application/json"],"mediaTypeSchemas":{"application/x-www-form-urlencoded":{"schemaId":"components/schemas/TokenManagementRequest"},"application/json":{"schemaId":"components/schemas/TokenManagementRequest"}},"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"Token activity and metadata.","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/IntrospectionResponse"}},"schemaId":"components/schemas/IntrospectionResponse","headers":{"Cache-Control":{"schema":{"type":"string","example":"no-store"}},"Pragma":{"schema":{"type":"string","example":"no-cache"}}},"headerSchemaId":"schema_0"},{"code":"400","description":"The token field is missing.","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/OAuthClientError"}},"schemaId":"components/schemas/OAuthClientError"},{"code":"401","description":"Confidential-client authentication failed.","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/OAuthClientError"}},"schemaId":"components/schemas/OAuthClientError","headers":{"WWW-Authenticate":{"description":"HTTP Basic authentication challenge for an OAuth client.","schema":{"type":"string","example":"Basic realm=\"oauth-client\""}}},"headerSchemaId":"schema_1"},{"code":"503","description":"Token status cannot be checked or revocation cannot be confirmed.","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/OAuthClientError"}},"schemaId":"components/schemas/OAuthClientError"}],"pointer":"/paths/~1oauth~1introspect/post/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"components/schemas/IntrospectionResponse","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/IntrospectionResponse"}}},{"code":"400","schemaId":"components/schemas/OAuthClientError","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/OAuthClientError"}}},{"code":"401","schemaId":"components/schemas/OAuthClientError","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/OAuthClientError"}}},{"code":"503","schemaId":"components/schemas/OAuthClientError","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/OAuthClientError"}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/authentication/introspectaccesstoken"}],"panels":[]}]},"httpPath":"/oauth/introspect"},{"label":"Revoke an access token","deprecated":false,"httpVerb":"post","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/api/openapi/authentication/revokeaccesstoken","routeSlug":"/api/openapi/authentication/revokeaccesstoken","metadata":{"seo":{"title":"Revoke an access token","description":"Revokes an access token issued to the authenticated client. The operationis idempotent and returns 200 even if the token is already expired orrevoked."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"revokeAccessToken","name":"Revoke an access token","isWebhook":false,"pointer":"/paths/~1oauth~1revoke/post","hasSamples":true},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Revoke an access token","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Revokes an access token issued to the authenticated client. The operation"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"is idempotent and returns "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"200"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" even if the token is already expired or"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"revoked."},"children":[]}]}]}]},{"nodeType":"security","requirements":[{"schemes":[{"name":"clientSecretBasic","scopes":[],"type":"http","scheme":"basic","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"HTTP Basic authentication with "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"client_id"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" as the username and"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"client_secret"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" as the password."},"children":[]}]}]}]}]}]},{"nodeType":"item-content","variant":"body","label":"Request Body","labelTranslationKey":"body","required":true,"mediaTypes":["application/x-www-form-urlencoded","application/json"],"mediaTypeSchemas":{"application/x-www-form-urlencoded":{"schemaId":"components/schemas/TokenManagementRequest"},"application/json":{"schemaId":"components/schemas/TokenManagementRequest"}},"schemaId":"components/schemas/TokenManagementRequest","pointer":"/paths/~1oauth~1revoke/post/requestBody"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"POST","path":"/oauth/revoke","servers":[{"url":"/_mock/api/openapi","description":"Mock server","isMockServer":true},{"url":"https://dev-api.wisedocs.ai","description":"Development server"},{"url":"https://staging-api.wisedocs.ai","description":"Staging server"},{"url":"https://api.wisedocs.ai","description":"Production server"}],"parameters":{"path":[],"query":[],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"clientSecretBasic","type":"http","scheme":"basic"}],"scopes":[]}],"requestBody":{"application/x-www-form-urlencoded":{"schemaId":"components/schemas/TokenManagementRequest"},"application/json":{"schemaId":"components/schemas/TokenManagementRequest"}},"responseCodes":["200","400","401","503"],"pointer":"/oauth/revoke","href":"authentication/revokeaccesstoken","openApiOperationId":"revokeAccessToken","summary":"Revoke an access token"},"definitionSamples":[{"lang":"curl","source":"curl -i -X POST https://dev-api.wisedocs.ai/oauth/revoke \\\n  -u '<client_id>:<client_secret>' \\\n  -d token='<access_token>'\n"}],"isWebhook":false,"hideReplay":false,"servers":[{"url":"/_mock/api/openapi","description":"Mock server","isMockServer":true},{"url":"https://dev-api.wisedocs.ai","description":"Development server"},{"url":"https://staging-api.wisedocs.ai","description":"Staging server"},{"url":"https://api.wisedocs.ai","description":"Production server"}],"schemaId":"components/schemas/TokenManagementRequest","mediaTypes":["application/x-www-form-urlencoded","application/json"],"mediaTypeSchemas":{"application/x-www-form-urlencoded":{"schemaId":"components/schemas/TokenManagementRequest"},"application/json":{"schemaId":"components/schemas/TokenManagementRequest"}},"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"Revocation accepted.","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_2"}},"schemaId":"schema_2","headers":{"Cache-Control":{"schema":{"type":"string","example":"no-store"}},"Pragma":{"schema":{"type":"string","example":"no-cache"}}},"headerSchemaId":"schema_0"},{"code":"400","description":"The token field is missing.","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/OAuthClientError"}},"schemaId":"components/schemas/OAuthClientError"},{"code":"401","description":"Confidential-client authentication failed.","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/OAuthClientError"}},"schemaId":"components/schemas/OAuthClientError","headers":{"WWW-Authenticate":{"description":"HTTP Basic authentication challenge for an OAuth client.","schema":{"type":"string","example":"Basic realm=\"oauth-client\""}}},"headerSchemaId":"schema_1"},{"code":"503","description":"Token status cannot be checked or revocation cannot be confirmed.","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/OAuthClientError"}},"schemaId":"components/schemas/OAuthClientError"}],"pointer":"/paths/~1oauth~1revoke/post/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"schema_2","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_2"}}},{"code":"400","schemaId":"components/schemas/OAuthClientError","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/OAuthClientError"}}},{"code":"401","schemaId":"components/schemas/OAuthClientError","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/OAuthClientError"}}},{"code":"503","schemaId":"components/schemas/OAuthClientError","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/OAuthClientError"}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/authentication/revokeaccesstoken"}],"panels":[]}]},"httpPath":"/oauth/revoke"}],"content":{"contentType":"group","meta":{"name":"Authentication"},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Authentication","showPageActions":true},{"nodeType":"markdoc","content":"OAuth 2.0 client credentials"}],"panels":[{"children":[{"kind":"group-items","title":"Operations","titleTranslationKey":"operations","items":[{"title":"/.well-known/oauth-authorization-server","summary":"Get OAuth authorization server metadata","prefix":{"name":"get","color":"get"},"badges":[],"link":"/authentication/getauthorizationservermetadata","deprecated":false},{"title":"/oauth/token","summary":"Create an access token","prefix":{"name":"post","color":"post"},"badges":[],"link":"/authentication/createaccesstoken","deprecated":false},{"title":"/oauth/introspect","summary":"Introspect an access token","prefix":{"name":"post","color":"post"},"badges":[],"link":"/authentication/introspectaccesstoken","deprecated":false},{"title":"/oauth/revoke","summary":"Revoke an access token","prefix":{"name":"post","color":"post"},"badges":[],"link":"/authentication/revokeaccesstoken","deprecated":false}]}]}]}]}},{"type":"group","label":"Cases","link":"/api/openapi/cases","routeSlug":"/api/openapi/cases","items":[{"label":"Create a case","deprecated":false,"httpVerb":"post","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/api/openapi/cases/createcase","routeSlug":"/api/openapi/cases/createcase","metadata":{"seo":{"title":"Create a case","description":"Create a new case. Only claimant.firstName and claimant.lastName arerequired."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"createCase","name":"Create a case","isWebhook":false,"pointer":"/paths/~1api~1v1~1cases/post","hasSamples":true},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Create a case","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Create a new case. Only "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"claimant.firstName"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" and "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"claimant.lastName"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" are"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"required."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"When "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"case"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" is provided and "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"case.allowDuplication"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" is "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"false"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" (default),"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"returns "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"409"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" if a case with the same claimant name and "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"case.caseNumber"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"already exists."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Optionally set "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"case.createdBy"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" to the email of a Wisedocs user to show as"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"the case's \"Created by\". Returns "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"400"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" if the email does not belong to an"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"active user in your workspace or, when team visibility is enabled, to a"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"member of one of the "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"case.teams"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"."},"children":[]}]}]}]},{"nodeType":"security","requirements":[{"schemes":[{"name":"oauth2ClientCredentials","scopes":["cases:write"],"type":"oauth2","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"OAuth 2.0 client credentials. Send the issued access token as"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"Authorization: Bearer <access_token>"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":". Each operation requires the"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"scope listed for it; a token without that scope receives "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"403"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" with"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"error.code: \"insufficient_scope\""},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"."},"children":[]}]}]}],"flows":{"clientCredentials":{"tokenUrl":"/oauth/token","scopes":{"cases:read":"Read case lists, searches, and details.","cases:write":"Create and update cases and their related entities.","files:read":"Read file details.","files:write":"Create file upload URLs and complete uploads.","teams:read":"List teams that cases can be assigned to."}}}},{"name":"apiKeyAuth","scopes":[],"type":"apiKey","in":"header","paramName":"x-api-key","description":"API Gateway key required in addition to the Bearer token."}]}]},{"nodeType":"item-content","variant":"body","label":"Request Body","labelTranslationKey":"body","required":true,"mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/CaseCreateRequest","exampleIds":["paths/~1api~1v1~1cases/post/requestBody/content/application~1json/examples/minimal","paths/~1api~1v1~1cases/post/requestBody/content/application~1json/examples/full"]}},"schemaId":"components/schemas/CaseCreateRequest","exampleIds":["paths/~1api~1v1~1cases/post/requestBody/content/application~1json/examples/minimal","paths/~1api~1v1~1cases/post/requestBody/content/application~1json/examples/full"],"pointer":"/paths/~1api~1v1~1cases/post/requestBody"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"POST","path":"/api/v1/cases","servers":[{"url":"/_mock/api/openapi","description":"Mock server","isMockServer":true},{"url":"https://dev-api.wisedocs.ai","description":"Development server"},{"url":"https://staging-api.wisedocs.ai","description":"Staging server"},{"url":"https://api.wisedocs.ai","description":"Production server"}],"parameters":{"path":[],"query":[],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"oauth2ClientCredentials","type":"oauth2","flows":{"clientCredentials":{"tokenUrl":"/oauth/token","scopes":{"cases:read":"Read case lists, searches, and details.","cases:write":"Create and update cases and their related entities.","files:read":"Read file details.","files:write":"Create file upload URLs and complete uploads.","teams:read":"List teams that cases can be assigned to."}}}},{"id":"apiKeyAuth","type":"apiKey","name":"x-api-key","in":"header"}],"scopes":["cases:write"]}],"requestBody":{"application/json":{"schemaId":"components/schemas/CaseCreateRequest","exampleIds":["paths/~1api~1v1~1cases/post/requestBody/content/application~1json/examples/minimal","paths/~1api~1v1~1cases/post/requestBody/content/application~1json/examples/full"]}},"responseCodes":["201","400","401","403","409","500"],"pointer":"/api/v1/cases","href":"cases/createcase","openApiOperationId":"createCase","summary":"Create a case"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"/_mock/api/openapi","description":"Mock server","isMockServer":true},{"url":"https://dev-api.wisedocs.ai","description":"Development server"},{"url":"https://staging-api.wisedocs.ai","description":"Staging server"},{"url":"https://api.wisedocs.ai","description":"Production server"}],"schemaId":"components/schemas/CaseCreateRequest","exampleIds":["paths/~1api~1v1~1cases/post/requestBody/content/application~1json/examples/minimal","paths/~1api~1v1~1cases/post/requestBody/content/application~1json/examples/full"],"mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/CaseCreateRequest","exampleIds":["paths/~1api~1v1~1cases/post/requestBody/content/application~1json/examples/minimal","paths/~1api~1v1~1cases/post/requestBody/content/application~1json/examples/full"]}},"examples":[{},{}]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"201","description":"Case created.","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/CaseCreateResponse"}},"schemaId":"components/schemas/CaseCreateResponse"},{"code":"400","description":"Request validation failed.","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ErrorResponse"}},"schemaId":"components/schemas/ErrorResponse"},{"code":"401","description":"The Bearer token is missing, invalid, or expired.","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ErrorResponse"}},"schemaId":"components/schemas/ErrorResponse","headers":{"WWW-Authenticate":{"$ref":"#/components/headers/WWW-Authenticate"}},"headerSchemaId":"schema_3"},{"code":"403","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"The token is not permitted to perform this operation. When a required"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"scope is missing, "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"error.code"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" is "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"insufficient_scope"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" and"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"error.message"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" names the missing scope."},"children":[]}]}]}],"mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ErrorResponse"}},"schemaId":"components/schemas/ErrorResponse"},{"code":"409","description":"The request conflicts with an existing resource.","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ErrorResponse"}},"schemaId":"components/schemas/ErrorResponse"},{"code":"500","description":"The service failed while processing the request.","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ErrorResponse"}},"schemaId":"components/schemas/ErrorResponse"}],"pointer":"/paths/~1api~1v1~1cases/post/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"201","schemaId":"components/schemas/CaseCreateResponse","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/CaseCreateResponse"}}},{"code":"400","schemaId":"components/schemas/ErrorResponse","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ErrorResponse"}}},{"code":"401","schemaId":"components/schemas/ErrorResponse","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ErrorResponse"}}},{"code":"403","schemaId":"components/schemas/ErrorResponse","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ErrorResponse"}}},{"code":"409","schemaId":"components/schemas/ErrorResponse","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ErrorResponse"}}},{"code":"500","schemaId":"components/schemas/ErrorResponse","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ErrorResponse"}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/cases/createcase"}],"panels":[]}]},"httpPath":"/api/v1/cases"},{"label":"Search cases","deprecated":false,"httpVerb":"get","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/api/openapi/cases/searchcases","routeSlug":"/api/openapi/cases/searchcases","metadata":{"seo":{"title":"Search cases","description":"Return a paginated list of cases, optionally filtered by caseUuid,internalCaseNumber, and claimNumber (exact match, combined with AND)."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"searchCases","name":"Search cases","isWebhook":false,"pointer":"/paths/~1api~1v1~1cases/get","hasSamples":false},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Search cases","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Return a paginated list of cases, optionally filtered by "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"caseUuid"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":","},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"internalCaseNumber"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", and "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"claimNumber"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" (exact match, combined with AND)."},"children":[]}]}]}]},{"nodeType":"security","requirements":[{"schemes":[{"name":"oauth2ClientCredentials","scopes":["cases:read"],"type":"oauth2","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"OAuth 2.0 client credentials. Send the issued access token as"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"Authorization: Bearer <access_token>"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":". Each operation requires the"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"scope listed for it; a token without that scope receives "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"403"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" with"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"error.code: \"insufficient_scope\""},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"."},"children":[]}]}]}],"flows":{"clientCredentials":{"tokenUrl":"/oauth/token","scopes":{"cases:read":"Read case lists, searches, and details.","cases:write":"Create and update cases and their related entities.","files:read":"Read file details.","files:write":"Create file upload URLs and complete uploads.","teams:read":"List teams that cases can be assigned to."}}}},{"name":"apiKeyAuth","scopes":[],"type":"apiKey","in":"header","paramName":"x-api-key","description":"API Gateway key required in addition to the Bearer token."}]}]},{"nodeType":"item-content","variant":"query","label":"Query","labelTranslationKey":"query","parameters":[{"name":"caseUuid","in":"query","schemaId":"schema_4","description":"Filter by case UUID.","example":"123e4567-e89b-12d3-a456-426614174000"},{"name":"internalCaseNumber","in":"query","schemaId":"schema_5","description":"Filter by exact internal case number (case-insensitive).","example":"CASE-12345"},{"name":"claimNumber","in":"query","schemaId":"schema_5","description":"Filter by exact claim number (case-insensitive).","example":"CLM-12345"},{"name":"limit","in":"query","schemaId":"schema_6","description":"Page size.","example":10},{"name":"offset","in":"query","schemaId":"schema_7","description":"Number of results to skip.","example":0}],"pointer":"/paths/~1api~1v1~1cases/get/parameters"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"GET","path":"/api/v1/cases","servers":[{"url":"/_mock/api/openapi","description":"Mock server","isMockServer":true},{"url":"https://dev-api.wisedocs.ai","description":"Development server"},{"url":"https://staging-api.wisedocs.ai","description":"Staging server"},{"url":"https://api.wisedocs.ai","description":"Production server"}],"parameters":{"path":[],"query":[{"name":"caseUuid","in":"query","required":false,"example":"123e4567-e89b-12d3-a456-426614174000","schemaId":"schema_4"},{"name":"internalCaseNumber","in":"query","required":false,"example":"CASE-12345","schemaId":"schema_5"},{"name":"claimNumber","in":"query","required":false,"example":"CLM-12345","schemaId":"schema_5"},{"name":"limit","in":"query","required":false,"example":10,"schemaId":"schema_6"},{"name":"offset","in":"query","required":false,"example":0,"schemaId":"schema_7"}],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"oauth2ClientCredentials","type":"oauth2","flows":{"clientCredentials":{"tokenUrl":"/oauth/token","scopes":{"cases:read":"Read case lists, searches, and details.","cases:write":"Create and update cases and their related entities.","files:read":"Read file details.","files:write":"Create file upload URLs and complete uploads.","teams:read":"List teams that cases can be assigned to."}}}},{"id":"apiKeyAuth","type":"apiKey","name":"x-api-key","in":"header"}],"scopes":["cases:read"]}],"responseCodes":["200","400","401","403"],"pointer":"/api/v1/cases","href":"cases/searchcases","openApiOperationId":"searchCases","summary":"Search cases"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"/_mock/api/openapi","description":"Mock server","isMockServer":true},{"url":"https://dev-api.wisedocs.ai","description":"Development server"},{"url":"https://staging-api.wisedocs.ai","description":"Staging server"},{"url":"https://api.wisedocs.ai","description":"Production server"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"Matching cases returned.","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/CaseSearchResponse"}},"schemaId":"components/schemas/CaseSearchResponse"},{"code":"400","description":"Request validation failed.","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ErrorResponse"}},"schemaId":"components/schemas/ErrorResponse"},{"code":"401","description":"The Bearer token is missing, invalid, or expired.","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ErrorResponse"}},"schemaId":"components/schemas/ErrorResponse","headers":{"WWW-Authenticate":{"$ref":"#/components/headers/WWW-Authenticate"}},"headerSchemaId":"schema_3"},{"code":"403","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"The token is not permitted to perform this operation. When a required"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"scope is missing, "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"error.code"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" is "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"insufficient_scope"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" and"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"error.message"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" names the missing scope."},"children":[]}]}]}],"mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ErrorResponse"}},"schemaId":"components/schemas/ErrorResponse"}],"pointer":"/paths/~1api~1v1~1cases/get/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"components/schemas/CaseSearchResponse","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/CaseSearchResponse"}}},{"code":"400","schemaId":"components/schemas/ErrorResponse","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ErrorResponse"}}},{"code":"401","schemaId":"components/schemas/ErrorResponse","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ErrorResponse"}}},{"code":"403","schemaId":"components/schemas/ErrorResponse","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ErrorResponse"}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/cases/searchcases"}],"panels":[]}]},"httpPath":"/api/v1/cases"},{"label":"Get case information","deprecated":false,"httpVerb":"get","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/api/openapi/cases/getcase","routeSlug":"/api/openapi/cases/getcase","metadata":{"seo":{"title":"Get case information","description":"Return case details."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"getCase","name":"Get case information","isWebhook":false,"pointer":"/paths/~1api~1v1~1cases~1{caseUuid}/get","hasSamples":false},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Get case information","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":"Return case details."},{"nodeType":"security","requirements":[{"schemes":[{"name":"oauth2ClientCredentials","scopes":["cases:read"],"type":"oauth2","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"OAuth 2.0 client credentials. Send the issued access token as"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"Authorization: Bearer <access_token>"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":". Each operation requires the"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"scope listed for it; a token without that scope receives "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"403"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" with"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"error.code: \"insufficient_scope\""},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"."},"children":[]}]}]}],"flows":{"clientCredentials":{"tokenUrl":"/oauth/token","scopes":{"cases:read":"Read case lists, searches, and details.","cases:write":"Create and update cases and their related entities.","files:read":"Read file details.","files:write":"Create file upload URLs and complete uploads.","teams:read":"List teams that cases can be assigned to."}}}},{"name":"apiKeyAuth","scopes":[],"type":"apiKey","in":"header","paramName":"x-api-key","description":"API Gateway key required in addition to the Bearer token."}]}]},{"nodeType":"item-content","variant":"path","label":"Path","labelTranslationKey":"path","parameters":[{"name":"caseUuid","in":"path","schemaId":"schema_4","description":"Case UUID.","required":true}],"pointer":"/paths/~1api~1v1~1cases~1{caseUuid}/get/parameters"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"GET","path":"/api/v1/cases/{caseUuid}","servers":[{"url":"/_mock/api/openapi","description":"Mock server","isMockServer":true},{"url":"https://dev-api.wisedocs.ai","description":"Development server"},{"url":"https://staging-api.wisedocs.ai","description":"Staging server"},{"url":"https://api.wisedocs.ai","description":"Production server"}],"parameters":{"path":[{"name":"caseUuid","in":"path","required":true,"schemaId":"schema_4"}],"query":[],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"oauth2ClientCredentials","type":"oauth2","flows":{"clientCredentials":{"tokenUrl":"/oauth/token","scopes":{"cases:read":"Read case lists, searches, and details.","cases:write":"Create and update cases and their related entities.","files:read":"Read file details.","files:write":"Create file upload URLs and complete uploads.","teams:read":"List teams that cases can be assigned to."}}}},{"id":"apiKeyAuth","type":"apiKey","name":"x-api-key","in":"header"}],"scopes":["cases:read"]}],"responseCodes":["200","400","401","403","404"],"pointer":"/api/v1/cases/{caseUuid}","href":"cases/getcase","openApiOperationId":"getCase","summary":"Get case information"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"/_mock/api/openapi","description":"Mock server","isMockServer":true},{"url":"https://dev-api.wisedocs.ai","description":"Development server"},{"url":"https://staging-api.wisedocs.ai","description":"Staging server"},{"url":"https://api.wisedocs.ai","description":"Production server"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"Case returned.","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/CaseGetResponse","exampleIds":["paths/~1api~1v1~1cases~1{caseUuid}/get/responses/200/content/application~1json/examples/default"]}},"schemaId":"components/schemas/CaseGetResponse","exampleIds":["paths/~1api~1v1~1cases~1{caseUuid}/get/responses/200/content/application~1json/examples/default"]},{"code":"400","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"caseUuid"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" is not a valid UUID."},"children":[]}]}]}],"mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ErrorResponse","exampleIds":["paths/~1api~1v1~1cases~1{caseUuid}/get/responses/400/content/application~1json/example"]}},"schemaId":"components/schemas/ErrorResponse","exampleIds":["paths/~1api~1v1~1cases~1{caseUuid}/get/responses/400/content/application~1json/example"]},{"code":"401","description":"The Bearer token is missing, invalid, or expired.","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ErrorResponse"}},"schemaId":"components/schemas/ErrorResponse","headers":{"WWW-Authenticate":{"$ref":"#/components/headers/WWW-Authenticate"}},"headerSchemaId":"schema_3"},{"code":"403","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"The token is not permitted to perform this operation. When a required"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"scope is missing, "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"error.code"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" is "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"insufficient_scope"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" and"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"error.message"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" names the missing scope."},"children":[]}]}]}],"mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ErrorResponse"}},"schemaId":"components/schemas/ErrorResponse"},{"code":"404","description":"Resource not found.","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ErrorResponse"}},"schemaId":"components/schemas/ErrorResponse"}],"pointer":"/paths/~1api~1v1~1cases~1{caseUuid}/get/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"components/schemas/CaseGetResponse","exampleIds":["paths/~1api~1v1~1cases~1{caseUuid}/get/responses/200/content/application~1json/examples/default"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/CaseGetResponse","exampleIds":["paths/~1api~1v1~1cases~1{caseUuid}/get/responses/200/content/application~1json/examples/default"]}}},{"code":"400","schemaId":"components/schemas/ErrorResponse","exampleIds":["paths/~1api~1v1~1cases~1{caseUuid}/get/responses/400/content/application~1json/example"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ErrorResponse","exampleIds":["paths/~1api~1v1~1cases~1{caseUuid}/get/responses/400/content/application~1json/example"]}}},{"code":"401","schemaId":"components/schemas/ErrorResponse","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ErrorResponse"}}},{"code":"403","schemaId":"components/schemas/ErrorResponse","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ErrorResponse"}}},{"code":"404","schemaId":"components/schemas/ErrorResponse","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ErrorResponse"}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/cases/getcase"}],"panels":[]}]},"httpPath":"/api/v1/cases/{caseUuid}"},{"label":"Update case information","deprecated":false,"httpVerb":"patch","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/api/openapi/cases/updatecase","routeSlug":"/api/openapi/cases/updatecase","metadata":{"seo":{"title":"Update case information","description":"Update selected fields of a case. Send only the fields to change; omitted fields remain unchanged, and all updates are applied atomically."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"updateCase","name":"Update case information","isWebhook":false,"pointer":"/paths/~1api~1v1~1cases~1{caseUuid}/patch","hasSamples":true},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Update case information","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":"Update selected fields of a case. Send only the fields to change; omitted\nfields remain unchanged, and all updates are applied atomically.\n"},{"nodeType":"security","requirements":[{"schemes":[{"name":"oauth2ClientCredentials","scopes":["cases:write"],"type":"oauth2","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"OAuth 2.0 client credentials. Send the issued access token as"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"Authorization: Bearer <access_token>"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":". Each operation requires the"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"scope listed for it; a token without that scope receives "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"403"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" with"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"error.code: \"insufficient_scope\""},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"."},"children":[]}]}]}],"flows":{"clientCredentials":{"tokenUrl":"/oauth/token","scopes":{"cases:read":"Read case lists, searches, and details.","cases:write":"Create and update cases and their related entities.","files:read":"Read file details.","files:write":"Create file upload URLs and complete uploads.","teams:read":"List teams that cases can be assigned to."}}}},{"name":"apiKeyAuth","scopes":[],"type":"apiKey","in":"header","paramName":"x-api-key","description":"API Gateway key required in addition to the Bearer token."}]}]},{"nodeType":"item-content","variant":"path","label":"Path","labelTranslationKey":"path","parameters":[{"name":"caseUuid","in":"path","schemaId":"schema_4","description":"Case UUID.","required":true}],"pointer":"/paths/~1api~1v1~1cases~1{caseUuid}/patch/parameters"},{"nodeType":"item-content","variant":"body","label":"Request Body","labelTranslationKey":"body","required":true,"mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/CaseUpdateRequest","exampleIds":["paths/~1api~1v1~1cases~1{caseUuid}/patch/requestBody/content/application~1json/examples/claimant","paths/~1api~1v1~1cases~1{caseUuid}/patch/requestBody/content/application~1json/examples/case"]}},"schemaId":"components/schemas/CaseUpdateRequest","exampleIds":["paths/~1api~1v1~1cases~1{caseUuid}/patch/requestBody/content/application~1json/examples/claimant","paths/~1api~1v1~1cases~1{caseUuid}/patch/requestBody/content/application~1json/examples/case"],"pointer":"/paths/~1api~1v1~1cases~1{caseUuid}/patch/requestBody"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"PATCH","path":"/api/v1/cases/{caseUuid}","servers":[{"url":"/_mock/api/openapi","description":"Mock server","isMockServer":true},{"url":"https://dev-api.wisedocs.ai","description":"Development server"},{"url":"https://staging-api.wisedocs.ai","description":"Staging server"},{"url":"https://api.wisedocs.ai","description":"Production server"}],"parameters":{"path":[{"name":"caseUuid","in":"path","required":true,"schemaId":"schema_4"}],"query":[],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"oauth2ClientCredentials","type":"oauth2","flows":{"clientCredentials":{"tokenUrl":"/oauth/token","scopes":{"cases:read":"Read case lists, searches, and details.","cases:write":"Create and update cases and their related entities.","files:read":"Read file details.","files:write":"Create file upload URLs and complete uploads.","teams:read":"List teams that cases can be assigned to."}}}},{"id":"apiKeyAuth","type":"apiKey","name":"x-api-key","in":"header"}],"scopes":["cases:write"]}],"requestBody":{"application/json":{"schemaId":"components/schemas/CaseUpdateRequest","exampleIds":["paths/~1api~1v1~1cases~1{caseUuid}/patch/requestBody/content/application~1json/examples/claimant","paths/~1api~1v1~1cases~1{caseUuid}/patch/requestBody/content/application~1json/examples/case"]}},"responseCodes":["200","400","401","403","404"],"pointer":"/api/v1/cases/{caseUuid}","href":"cases/updatecase","openApiOperationId":"updateCase","summary":"Update case information"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"/_mock/api/openapi","description":"Mock server","isMockServer":true},{"url":"https://dev-api.wisedocs.ai","description":"Development server"},{"url":"https://staging-api.wisedocs.ai","description":"Staging server"},{"url":"https://api.wisedocs.ai","description":"Production server"}],"schemaId":"components/schemas/CaseUpdateRequest","exampleIds":["paths/~1api~1v1~1cases~1{caseUuid}/patch/requestBody/content/application~1json/examples/claimant","paths/~1api~1v1~1cases~1{caseUuid}/patch/requestBody/content/application~1json/examples/case"],"mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/CaseUpdateRequest","exampleIds":["paths/~1api~1v1~1cases~1{caseUuid}/patch/requestBody/content/application~1json/examples/claimant","paths/~1api~1v1~1cases~1{caseUuid}/patch/requestBody/content/application~1json/examples/case"]}},"examples":[{},{}]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"Case updated.","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/CaseGetResponse","exampleIds":["paths/~1api~1v1~1cases~1{caseUuid}/patch/responses/200/content/application~1json/examples/default"]}},"schemaId":"components/schemas/CaseGetResponse","exampleIds":["paths/~1api~1v1~1cases~1{caseUuid}/patch/responses/200/content/application~1json/examples/default"]},{"code":"400","description":"Request validation failed.","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ErrorResponse","exampleIds":["paths/~1api~1v1~1cases~1{caseUuid}/patch/responses/400/content/application~1json/examples/unknownField","paths/~1api~1v1~1cases~1{caseUuid}/patch/responses/400/content/application~1json/examples/notNullable","paths/~1api~1v1~1cases~1{caseUuid}/patch/responses/400/content/application~1json/examples/serviceValidation"]}},"schemaId":"components/schemas/ErrorResponse","exampleIds":["paths/~1api~1v1~1cases~1{caseUuid}/patch/responses/400/content/application~1json/examples/unknownField","paths/~1api~1v1~1cases~1{caseUuid}/patch/responses/400/content/application~1json/examples/notNullable","paths/~1api~1v1~1cases~1{caseUuid}/patch/responses/400/content/application~1json/examples/serviceValidation"]},{"code":"401","description":"The Bearer token is missing, invalid, or expired.","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ErrorResponse"}},"schemaId":"components/schemas/ErrorResponse","headers":{"WWW-Authenticate":{"$ref":"#/components/headers/WWW-Authenticate"}},"headerSchemaId":"schema_3"},{"code":"403","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"The token is not permitted to perform this operation. When a required"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"scope is missing, "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"error.code"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" is "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"insufficient_scope"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" and"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"error.message"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" names the missing scope."},"children":[]}]}]}],"mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ErrorResponse"}},"schemaId":"components/schemas/ErrorResponse"},{"code":"404","description":"Resource not found.","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ErrorResponse"}},"schemaId":"components/schemas/ErrorResponse"}],"pointer":"/paths/~1api~1v1~1cases~1{caseUuid}/patch/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"components/schemas/CaseGetResponse","exampleIds":["paths/~1api~1v1~1cases~1{caseUuid}/patch/responses/200/content/application~1json/examples/default"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/CaseGetResponse","exampleIds":["paths/~1api~1v1~1cases~1{caseUuid}/patch/responses/200/content/application~1json/examples/default"]}}},{"code":"400","schemaId":"components/schemas/ErrorResponse","exampleIds":["paths/~1api~1v1~1cases~1{caseUuid}/patch/responses/400/content/application~1json/examples/unknownField","paths/~1api~1v1~1cases~1{caseUuid}/patch/responses/400/content/application~1json/examples/notNullable","paths/~1api~1v1~1cases~1{caseUuid}/patch/responses/400/content/application~1json/examples/serviceValidation"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ErrorResponse","exampleIds":["paths/~1api~1v1~1cases~1{caseUuid}/patch/responses/400/content/application~1json/examples/unknownField","paths/~1api~1v1~1cases~1{caseUuid}/patch/responses/400/content/application~1json/examples/notNullable","paths/~1api~1v1~1cases~1{caseUuid}/patch/responses/400/content/application~1json/examples/serviceValidation"]}}},{"code":"401","schemaId":"components/schemas/ErrorResponse","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ErrorResponse"}}},{"code":"403","schemaId":"components/schemas/ErrorResponse","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ErrorResponse"}}},{"code":"404","schemaId":"components/schemas/ErrorResponse","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ErrorResponse"}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/cases/updatecase"}],"panels":[]}]},"httpPath":"/api/v1/cases/{caseUuid}"}],"content":{"contentType":"group","meta":{"name":"Cases"},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Cases","showPageActions":true},{"nodeType":"markdoc","content":"Case management operations"}],"panels":[{"children":[{"kind":"group-items","title":"Operations","titleTranslationKey":"operations","items":[{"title":"/api/v1/cases","summary":"Create a case","prefix":{"name":"post","color":"post"},"badges":[],"link":"/cases/createcase","deprecated":false},{"title":"/api/v1/cases","summary":"Search cases","prefix":{"name":"get","color":"get"},"badges":[],"link":"/cases/searchcases","deprecated":false},{"title":"/api/v1/cases/{caseUuid}","summary":"Get case information","prefix":{"name":"get","color":"get"},"badges":[],"link":"/cases/getcase","deprecated":false},{"title":"/api/v1/cases/{caseUuid}","summary":"Update case information","prefix":{"name":"patch","color":"patch"},"badges":[],"link":"/cases/updatecase","deprecated":false}]}]}]}]}},{"type":"group","label":"Files","link":"/api/openapi/files","routeSlug":"/api/openapi/files","items":[{"label":"Create file upload URLs","deprecated":false,"httpVerb":"post","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/api/openapi/files/uploadcasefiles","routeSlug":"/api/openapi/files/uploadcasefiles","metadata":{"seo":{"title":"Create file upload URLs","description":"Create file records in a case and return a presigned S3 PUT URL for each.Upload each file's bytes to its putUrl with an HTTP PUT, then reportthe upload with PATCH /api/v1/cases/{caseUuid}/files/{fileUuid}."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"uploadCaseFiles","name":"Create file upload URLs","isWebhook":false,"pointer":"/paths/~1api~1v1~1cases~1{caseUuid}~1files/post","hasSamples":true},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Create file upload URLs","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Create file records in a case and return a presigned S3 "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"PUT"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" URL for each."},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Upload each file's bytes to its "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"putUrl"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" with an HTTP "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"PUT"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", then report"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"the upload with "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"PATCH /api/v1/cases/{caseUuid}/files/{fileUuid}"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Every upload "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"PUT"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" must include:"},"children":[]}]}]},{"$$mdtype":"Node","type":"list","attributes":{"ordered":false,"marker":"-"},"children":[{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"x-amz-server-side-encryption: AES256"},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"Content-Type"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" set to the file's media type:"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"table","attributes":{},"children":[{"$$mdtype":"Node","type":"thead","attributes":{},"children":[{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"th","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Extension"},"children":[]}]}]},{"$$mdtype":"Node","type":"th","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"Content-Type"},"children":[]}]}]}]}]},{"$$mdtype":"Node","type":"tbody","attributes":{},"children":[{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":".pdf"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"application/pdf"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":".jpg"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":".jpeg"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"image/jpeg"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":".png"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"image/png"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":".tif"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":".tiff"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"image/tiff"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":".gif"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"image/gif"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":".doc"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"application/msword"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":".docx"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"application/vnd.openxmlformats-officedocument.wordprocessingml.document"},"children":[]}]}]}]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"For example:"},"children":[]}]}]},{"$$mdtype":"Node","type":"fence","attributes":{"content":"curl -X PUT \"$PUT_URL\" \\\n  -H \"x-amz-server-side-encryption: AES256\" \\\n  -H \"Content-Type: image/jpeg\" \\\n  --upload-file x-ray.jpg\n","language":"bash"},"children":[{"$$mdtype":"Node","type":"text","attributes":{"content":"curl -X PUT \"$PUT_URL\" \\\n  -H \"x-amz-server-side-encryption: AES256\" \\\n  -H \"Content-Type: image/jpeg\" \\\n  --upload-file x-ray.jpg\n"},"children":[]}]}]},{"nodeType":"security","requirements":[{"schemes":[{"name":"oauth2ClientCredentials","scopes":["files:write"],"type":"oauth2","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"OAuth 2.0 client credentials. Send the issued access token as"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"Authorization: Bearer <access_token>"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":". Each operation requires the"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"scope listed for it; a token without that scope receives "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"403"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" with"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"error.code: \"insufficient_scope\""},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"."},"children":[]}]}]}],"flows":{"clientCredentials":{"tokenUrl":"/oauth/token","scopes":{"cases:read":"Read case lists, searches, and details.","cases:write":"Create and update cases and their related entities.","files:read":"Read file details.","files:write":"Create file upload URLs and complete uploads.","teams:read":"List teams that cases can be assigned to."}}}},{"name":"apiKeyAuth","scopes":[],"type":"apiKey","in":"header","paramName":"x-api-key","description":"API Gateway key required in addition to the Bearer token."}]}]},{"nodeType":"item-content","variant":"path","label":"Path","labelTranslationKey":"path","parameters":[{"name":"caseUuid","in":"path","schemaId":"schema_4","description":"Case UUID.","required":true}],"pointer":"/paths/~1api~1v1~1cases~1{caseUuid}~1files/post/parameters"},{"nodeType":"item-content","variant":"body","label":"Request Body","labelTranslationKey":"body","required":true,"mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/FileUploadRequest","exampleIds":["paths/~1api~1v1~1cases~1{caseUuid}~1files/post/requestBody/content/application~1json/examples/single","paths/~1api~1v1~1cases~1{caseUuid}~1files/post/requestBody/content/application~1json/examples/multiple","paths/~1api~1v1~1cases~1{caseUuid}~1files/post/requestBody/content/application~1json/examples/priority"]}},"schemaId":"components/schemas/FileUploadRequest","exampleIds":["paths/~1api~1v1~1cases~1{caseUuid}~1files/post/requestBody/content/application~1json/examples/single","paths/~1api~1v1~1cases~1{caseUuid}~1files/post/requestBody/content/application~1json/examples/multiple","paths/~1api~1v1~1cases~1{caseUuid}~1files/post/requestBody/content/application~1json/examples/priority"],"pointer":"/paths/~1api~1v1~1cases~1{caseUuid}~1files/post/requestBody"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"POST","path":"/api/v1/cases/{caseUuid}/files","servers":[{"url":"/_mock/api/openapi","description":"Mock server","isMockServer":true},{"url":"https://dev-api.wisedocs.ai","description":"Development server"},{"url":"https://staging-api.wisedocs.ai","description":"Staging server"},{"url":"https://api.wisedocs.ai","description":"Production server"}],"parameters":{"path":[{"name":"caseUuid","in":"path","required":true,"schemaId":"schema_4"}],"query":[],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"oauth2ClientCredentials","type":"oauth2","flows":{"clientCredentials":{"tokenUrl":"/oauth/token","scopes":{"cases:read":"Read case lists, searches, and details.","cases:write":"Create and update cases and their related entities.","files:read":"Read file details.","files:write":"Create file upload URLs and complete uploads.","teams:read":"List teams that cases can be assigned to."}}}},{"id":"apiKeyAuth","type":"apiKey","name":"x-api-key","in":"header"}],"scopes":["files:write"]}],"requestBody":{"application/json":{"schemaId":"components/schemas/FileUploadRequest","exampleIds":["paths/~1api~1v1~1cases~1{caseUuid}~1files/post/requestBody/content/application~1json/examples/single","paths/~1api~1v1~1cases~1{caseUuid}~1files/post/requestBody/content/application~1json/examples/multiple","paths/~1api~1v1~1cases~1{caseUuid}~1files/post/requestBody/content/application~1json/examples/priority"]}},"responseCodes":["202","400","401","403","404","500"],"pointer":"/api/v1/cases/{caseUuid}/files","href":"files/uploadcasefiles","openApiOperationId":"uploadCaseFiles","summary":"Create file upload URLs"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"/_mock/api/openapi","description":"Mock server","isMockServer":true},{"url":"https://dev-api.wisedocs.ai","description":"Development server"},{"url":"https://staging-api.wisedocs.ai","description":"Staging server"},{"url":"https://api.wisedocs.ai","description":"Production server"}],"schemaId":"components/schemas/FileUploadRequest","exampleIds":["paths/~1api~1v1~1cases~1{caseUuid}~1files/post/requestBody/content/application~1json/examples/single","paths/~1api~1v1~1cases~1{caseUuid}~1files/post/requestBody/content/application~1json/examples/multiple","paths/~1api~1v1~1cases~1{caseUuid}~1files/post/requestBody/content/application~1json/examples/priority"],"mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/FileUploadRequest","exampleIds":["paths/~1api~1v1~1cases~1{caseUuid}~1files/post/requestBody/content/application~1json/examples/single","paths/~1api~1v1~1cases~1{caseUuid}~1files/post/requestBody/content/application~1json/examples/multiple","paths/~1api~1v1~1cases~1{caseUuid}~1files/post/requestBody/content/application~1json/examples/priority"]}},"examples":[{},{},{}]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"202","description":"File records and their presigned upload URLs created.","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/FileUploadResponse","exampleIds":["paths/~1api~1v1~1cases~1{caseUuid}~1files/post/responses/202/content/application~1json/example"]}},"schemaId":"components/schemas/FileUploadResponse","exampleIds":["paths/~1api~1v1~1cases~1{caseUuid}~1files/post/responses/202/content/application~1json/example"]},{"code":"400","description":"Request validation failed.","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ErrorResponse","exampleIds":["paths/~1api~1v1~1cases~1{caseUuid}~1files/post/responses/400/content/application~1json/examples/empty","paths/~1api~1v1~1cases~1{caseUuid}~1files/post/responses/400/content/application~1json/examples/unsupported","paths/~1api~1v1~1cases~1{caseUuid}~1files/post/responses/400/content/application~1json/examples/duplicate","paths/~1api~1v1~1cases~1{caseUuid}~1files/post/responses/400/content/application~1json/examples/invalidPriority","paths/~1api~1v1~1cases~1{caseUuid}~1files/post/responses/400/content/application~1json/examples/invalidCaseUuid"]}},"schemaId":"components/schemas/ErrorResponse","exampleIds":["paths/~1api~1v1~1cases~1{caseUuid}~1files/post/responses/400/content/application~1json/examples/empty","paths/~1api~1v1~1cases~1{caseUuid}~1files/post/responses/400/content/application~1json/examples/unsupported","paths/~1api~1v1~1cases~1{caseUuid}~1files/post/responses/400/content/application~1json/examples/duplicate","paths/~1api~1v1~1cases~1{caseUuid}~1files/post/responses/400/content/application~1json/examples/invalidPriority","paths/~1api~1v1~1cases~1{caseUuid}~1files/post/responses/400/content/application~1json/examples/invalidCaseUuid"]},{"code":"401","description":"The Bearer token is missing, invalid, or expired.","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ErrorResponse"}},"schemaId":"components/schemas/ErrorResponse","headers":{"WWW-Authenticate":{"$ref":"#/components/headers/WWW-Authenticate"}},"headerSchemaId":"schema_3"},{"code":"403","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"The token is not permitted to perform this operation. When a required"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"scope is missing, "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"error.code"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" is "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"insufficient_scope"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" and"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"error.message"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" names the missing scope."},"children":[]}]}]}],"mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ErrorResponse"}},"schemaId":"components/schemas/ErrorResponse"},{"code":"404","description":"The case does not exist.","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ErrorResponse","exampleIds":["paths/~1api~1v1~1cases~1{caseUuid}~1files/post/responses/404/content/application~1json/example"]}},"schemaId":"components/schemas/ErrorResponse","exampleIds":["paths/~1api~1v1~1cases~1{caseUuid}~1files/post/responses/404/content/application~1json/example"]},{"code":"500","description":"The service failed while processing the request.","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ErrorResponse"}},"schemaId":"components/schemas/ErrorResponse"}],"pointer":"/paths/~1api~1v1~1cases~1{caseUuid}~1files/post/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"202","schemaId":"components/schemas/FileUploadResponse","exampleIds":["paths/~1api~1v1~1cases~1{caseUuid}~1files/post/responses/202/content/application~1json/example"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/FileUploadResponse","exampleIds":["paths/~1api~1v1~1cases~1{caseUuid}~1files/post/responses/202/content/application~1json/example"]}}},{"code":"400","schemaId":"components/schemas/ErrorResponse","exampleIds":["paths/~1api~1v1~1cases~1{caseUuid}~1files/post/responses/400/content/application~1json/examples/empty","paths/~1api~1v1~1cases~1{caseUuid}~1files/post/responses/400/content/application~1json/examples/unsupported","paths/~1api~1v1~1cases~1{caseUuid}~1files/post/responses/400/content/application~1json/examples/duplicate","paths/~1api~1v1~1cases~1{caseUuid}~1files/post/responses/400/content/application~1json/examples/invalidPriority","paths/~1api~1v1~1cases~1{caseUuid}~1files/post/responses/400/content/application~1json/examples/invalidCaseUuid"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ErrorResponse","exampleIds":["paths/~1api~1v1~1cases~1{caseUuid}~1files/post/responses/400/content/application~1json/examples/empty","paths/~1api~1v1~1cases~1{caseUuid}~1files/post/responses/400/content/application~1json/examples/unsupported","paths/~1api~1v1~1cases~1{caseUuid}~1files/post/responses/400/content/application~1json/examples/duplicate","paths/~1api~1v1~1cases~1{caseUuid}~1files/post/responses/400/content/application~1json/examples/invalidPriority","paths/~1api~1v1~1cases~1{caseUuid}~1files/post/responses/400/content/application~1json/examples/invalidCaseUuid"]}}},{"code":"401","schemaId":"components/schemas/ErrorResponse","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ErrorResponse"}}},{"code":"403","schemaId":"components/schemas/ErrorResponse","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ErrorResponse"}}},{"code":"404","schemaId":"components/schemas/ErrorResponse","exampleIds":["paths/~1api~1v1~1cases~1{caseUuid}~1files/post/responses/404/content/application~1json/example"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ErrorResponse","exampleIds":["paths/~1api~1v1~1cases~1{caseUuid}~1files/post/responses/404/content/application~1json/example"]}}},{"code":"500","schemaId":"components/schemas/ErrorResponse","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ErrorResponse"}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/files/uploadcasefiles"}],"panels":[]}]},"httpPath":"/api/v1/cases/{caseUuid}/files"},{"label":"Get file information","deprecated":false,"httpVerb":"get","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/api/openapi/files/getfile","routeSlug":"/api/openapi/files/getfile","metadata":{"seo":{"title":"Get file information","description":"Return a file in the case: its processing status, page count, dates,and a presigned getUrl to download it once uploaded."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"getFile","name":"Get file information","isWebhook":false,"pointer":"/paths/~1api~1v1~1cases~1{caseUuid}~1files~1{fileUuid}/get","hasSamples":false},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Get file information","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Return a file in the case: its processing "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"status"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", page count, dates,"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"and a presigned "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"getUrl"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" to download it once uploaded."},"children":[]}]}]}]},{"nodeType":"security","requirements":[{"schemes":[{"name":"oauth2ClientCredentials","scopes":["files:read"],"type":"oauth2","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"OAuth 2.0 client credentials. Send the issued access token as"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"Authorization: Bearer <access_token>"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":". Each operation requires the"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"scope listed for it; a token without that scope receives "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"403"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" with"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"error.code: \"insufficient_scope\""},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"."},"children":[]}]}]}],"flows":{"clientCredentials":{"tokenUrl":"/oauth/token","scopes":{"cases:read":"Read case lists, searches, and details.","cases:write":"Create and update cases and their related entities.","files:read":"Read file details.","files:write":"Create file upload URLs and complete uploads.","teams:read":"List teams that cases can be assigned to."}}}},{"name":"apiKeyAuth","scopes":[],"type":"apiKey","in":"header","paramName":"x-api-key","description":"API Gateway key required in addition to the Bearer token."}]}]},{"nodeType":"item-content","variant":"path","label":"Path","labelTranslationKey":"path","parameters":[{"name":"caseUuid","in":"path","schemaId":"schema_4","description":"Case UUID.","required":true},{"name":"fileUuid","in":"path","schemaId":"schema_4","description":"File UUID.","required":true}],"pointer":"/paths/~1api~1v1~1cases~1{caseUuid}~1files~1{fileUuid}/get/parameters"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"GET","path":"/api/v1/cases/{caseUuid}/files/{fileUuid}","servers":[{"url":"/_mock/api/openapi","description":"Mock server","isMockServer":true},{"url":"https://dev-api.wisedocs.ai","description":"Development server"},{"url":"https://staging-api.wisedocs.ai","description":"Staging server"},{"url":"https://api.wisedocs.ai","description":"Production server"}],"parameters":{"path":[{"name":"caseUuid","in":"path","required":true,"schemaId":"schema_4"},{"name":"fileUuid","in":"path","required":true,"schemaId":"schema_4"}],"query":[],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"oauth2ClientCredentials","type":"oauth2","flows":{"clientCredentials":{"tokenUrl":"/oauth/token","scopes":{"cases:read":"Read case lists, searches, and details.","cases:write":"Create and update cases and their related entities.","files:read":"Read file details.","files:write":"Create file upload URLs and complete uploads.","teams:read":"List teams that cases can be assigned to."}}}},{"id":"apiKeyAuth","type":"apiKey","name":"x-api-key","in":"header"}],"scopes":["files:read"]}],"responseCodes":["200","400","401","403","404","500"],"pointer":"/api/v1/cases/{caseUuid}/files/{fileUuid}","href":"files/getfile","openApiOperationId":"getFile","summary":"Get file information"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"/_mock/api/openapi","description":"Mock server","isMockServer":true},{"url":"https://dev-api.wisedocs.ai","description":"Development server"},{"url":"https://staging-api.wisedocs.ai","description":"Staging server"},{"url":"https://api.wisedocs.ai","description":"Production server"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"File information returned.","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/FileInformationResponse"}},"schemaId":"components/schemas/FileInformationResponse"},{"code":"400","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"caseUuid"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" or "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"fileUuid"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" is not a valid UUID."},"children":[]}]}]}],"mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ErrorResponse","exampleIds":["paths/~1api~1v1~1cases~1{caseUuid}~1files~1{fileUuid}/get/responses/400/content/application~1json/example"]}},"schemaId":"components/schemas/ErrorResponse","exampleIds":["paths/~1api~1v1~1cases~1{caseUuid}~1files~1{fileUuid}/get/responses/400/content/application~1json/example"]},{"code":"401","description":"The Bearer token is missing, invalid, or expired.","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ErrorResponse"}},"schemaId":"components/schemas/ErrorResponse","headers":{"WWW-Authenticate":{"$ref":"#/components/headers/WWW-Authenticate"}},"headerSchemaId":"schema_3"},{"code":"403","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"The token is not permitted to perform this operation. When a required"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"scope is missing, "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"error.code"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" is "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"insufficient_scope"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" and"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"error.message"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" names the missing scope."},"children":[]}]}]}],"mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ErrorResponse"}},"schemaId":"components/schemas/ErrorResponse"},{"code":"404","description":"The case does not exist, or the file is not in the case.","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ErrorResponse","exampleIds":["paths/~1api~1v1~1cases~1{caseUuid}~1files~1{fileUuid}/get/responses/404/content/application~1json/example"]}},"schemaId":"components/schemas/ErrorResponse","exampleIds":["paths/~1api~1v1~1cases~1{caseUuid}~1files~1{fileUuid}/get/responses/404/content/application~1json/example"]},{"code":"500","description":"The service failed while processing the request.","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ErrorResponse"}},"schemaId":"components/schemas/ErrorResponse"}],"pointer":"/paths/~1api~1v1~1cases~1{caseUuid}~1files~1{fileUuid}/get/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"components/schemas/FileInformationResponse","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/FileInformationResponse"}}},{"code":"400","schemaId":"components/schemas/ErrorResponse","exampleIds":["paths/~1api~1v1~1cases~1{caseUuid}~1files~1{fileUuid}/get/responses/400/content/application~1json/example"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ErrorResponse","exampleIds":["paths/~1api~1v1~1cases~1{caseUuid}~1files~1{fileUuid}/get/responses/400/content/application~1json/example"]}}},{"code":"401","schemaId":"components/schemas/ErrorResponse","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ErrorResponse"}}},{"code":"403","schemaId":"components/schemas/ErrorResponse","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ErrorResponse"}}},{"code":"404","schemaId":"components/schemas/ErrorResponse","exampleIds":["paths/~1api~1v1~1cases~1{caseUuid}~1files~1{fileUuid}/get/responses/404/content/application~1json/example"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ErrorResponse","exampleIds":["paths/~1api~1v1~1cases~1{caseUuid}~1files~1{fileUuid}/get/responses/404/content/application~1json/example"]}}},{"code":"500","schemaId":"components/schemas/ErrorResponse","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ErrorResponse"}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/files/getfile"}],"panels":[]}]},"httpPath":"/api/v1/cases/{caseUuid}/files/{fileUuid}"},{"label":"Report a file upload complete","deprecated":false,"httpVerb":"patch","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/api/openapi/files/updatefile","routeSlug":"/api/openapi/files/updatefile","metadata":{"seo":{"title":"Report a file upload complete","description":"Notify Wisedocs that a file has been uploaded to its presigned putUrl sovalidation and processing can begin."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"updateFile","name":"Report a file upload complete","isWebhook":false,"pointer":"/paths/~1api~1v1~1cases~1{caseUuid}~1files~1{fileUuid}/patch","hasSamples":true},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Report a file upload complete","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Notify Wisedocs that a file has been uploaded to its presigned "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"putUrl"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" so"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"validation and processing can begin."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"The call is idempotent. If a file fails validation ("},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"INVALID"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"), re-upload"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"the file to its "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"putUrl"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" with the required headers and call this endpoint"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"again."},"children":[]}]}]}]},{"nodeType":"security","requirements":[{"schemes":[{"name":"oauth2ClientCredentials","scopes":["files:write"],"type":"oauth2","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"OAuth 2.0 client credentials. Send the issued access token as"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"Authorization: Bearer <access_token>"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":". Each operation requires the"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"scope listed for it; a token without that scope receives "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"403"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" with"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"error.code: \"insufficient_scope\""},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"."},"children":[]}]}]}],"flows":{"clientCredentials":{"tokenUrl":"/oauth/token","scopes":{"cases:read":"Read case lists, searches, and details.","cases:write":"Create and update cases and their related entities.","files:read":"Read file details.","files:write":"Create file upload URLs and complete uploads.","teams:read":"List teams that cases can be assigned to."}}}},{"name":"apiKeyAuth","scopes":[],"type":"apiKey","in":"header","paramName":"x-api-key","description":"API Gateway key required in addition to the Bearer token."}]}]},{"nodeType":"item-content","variant":"path","label":"Path","labelTranslationKey":"path","parameters":[{"name":"caseUuid","in":"path","schemaId":"schema_4","description":"Case UUID.","required":true},{"name":"fileUuid","in":"path","schemaId":"schema_4","description":"File UUID.","required":true}],"pointer":"/paths/~1api~1v1~1cases~1{caseUuid}~1files~1{fileUuid}/patch/parameters"},{"nodeType":"item-content","variant":"body","label":"Request Body","labelTranslationKey":"body","required":true,"mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/FileStatusUpdateRequest","exampleIds":["paths/~1api~1v1~1cases~1{caseUuid}~1files~1{fileUuid}/patch/requestBody/content/application~1json/example"]}},"schemaId":"components/schemas/FileStatusUpdateRequest","exampleIds":["paths/~1api~1v1~1cases~1{caseUuid}~1files~1{fileUuid}/patch/requestBody/content/application~1json/example"],"pointer":"/paths/~1api~1v1~1cases~1{caseUuid}~1files~1{fileUuid}/patch/requestBody"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"PATCH","path":"/api/v1/cases/{caseUuid}/files/{fileUuid}","servers":[{"url":"/_mock/api/openapi","description":"Mock server","isMockServer":true},{"url":"https://dev-api.wisedocs.ai","description":"Development server"},{"url":"https://staging-api.wisedocs.ai","description":"Staging server"},{"url":"https://api.wisedocs.ai","description":"Production server"}],"parameters":{"path":[{"name":"caseUuid","in":"path","required":true,"schemaId":"schema_4"},{"name":"fileUuid","in":"path","required":true,"schemaId":"schema_4"}],"query":[],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"oauth2ClientCredentials","type":"oauth2","flows":{"clientCredentials":{"tokenUrl":"/oauth/token","scopes":{"cases:read":"Read case lists, searches, and details.","cases:write":"Create and update cases and their related entities.","files:read":"Read file details.","files:write":"Create file upload URLs and complete uploads.","teams:read":"List teams that cases can be assigned to."}}}},{"id":"apiKeyAuth","type":"apiKey","name":"x-api-key","in":"header"}],"scopes":["files:write"]}],"requestBody":{"application/json":{"schemaId":"components/schemas/FileStatusUpdateRequest","exampleIds":["paths/~1api~1v1~1cases~1{caseUuid}~1files~1{fileUuid}/patch/requestBody/content/application~1json/example"]}},"responseCodes":["202","400","401","403","404","500"],"pointer":"/api/v1/cases/{caseUuid}/files/{fileUuid}","href":"files/updatefile","openApiOperationId":"updateFile","summary":"Report a file upload complete"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"/_mock/api/openapi","description":"Mock server","isMockServer":true},{"url":"https://dev-api.wisedocs.ai","description":"Development server"},{"url":"https://staging-api.wisedocs.ai","description":"Staging server"},{"url":"https://api.wisedocs.ai","description":"Production server"}],"schemaId":"components/schemas/FileStatusUpdateRequest","exampleIds":["paths/~1api~1v1~1cases~1{caseUuid}~1files~1{fileUuid}/patch/requestBody/content/application~1json/example"],"mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/FileStatusUpdateRequest","exampleIds":["paths/~1api~1v1~1cases~1{caseUuid}~1files~1{fileUuid}/patch/requestBody/content/application~1json/example"]}},"examples":[{}]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"202","description":"Upload reported, or already reported before.","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/FileStatusResponse","exampleIds":["paths/~1api~1v1~1cases~1{caseUuid}~1files~1{fileUuid}/patch/responses/202/content/application~1json/example"]}},"schemaId":"components/schemas/FileStatusResponse","exampleIds":["paths/~1api~1v1~1cases~1{caseUuid}~1files~1{fileUuid}/patch/responses/202/content/application~1json/example"]},{"code":"400","description":"Request validation failed, or the file has not been uploaded to its presigned URL yet.","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ErrorResponse","exampleIds":["paths/~1api~1v1~1cases~1{caseUuid}~1files~1{fileUuid}/patch/responses/400/content/application~1json/examples/invalidStatus","paths/~1api~1v1~1cases~1{caseUuid}~1files~1{fileUuid}/patch/responses/400/content/application~1json/examples/unknownField","paths/~1api~1v1~1cases~1{caseUuid}~1files~1{fileUuid}/patch/responses/400/content/application~1json/examples/invalidFileUuid","paths/~1api~1v1~1cases~1{caseUuid}~1files~1{fileUuid}/patch/responses/400/content/application~1json/examples/notUploaded"]}},"schemaId":"components/schemas/ErrorResponse","exampleIds":["paths/~1api~1v1~1cases~1{caseUuid}~1files~1{fileUuid}/patch/responses/400/content/application~1json/examples/invalidStatus","paths/~1api~1v1~1cases~1{caseUuid}~1files~1{fileUuid}/patch/responses/400/content/application~1json/examples/unknownField","paths/~1api~1v1~1cases~1{caseUuid}~1files~1{fileUuid}/patch/responses/400/content/application~1json/examples/invalidFileUuid","paths/~1api~1v1~1cases~1{caseUuid}~1files~1{fileUuid}/patch/responses/400/content/application~1json/examples/notUploaded"]},{"code":"401","description":"The Bearer token is missing, invalid, or expired.","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ErrorResponse"}},"schemaId":"components/schemas/ErrorResponse","headers":{"WWW-Authenticate":{"$ref":"#/components/headers/WWW-Authenticate"}},"headerSchemaId":"schema_3"},{"code":"403","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"The token is not permitted to perform this operation. When a required"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"scope is missing, "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"error.code"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" is "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"insufficient_scope"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" and"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"error.message"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" names the missing scope."},"children":[]}]}]}],"mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ErrorResponse"}},"schemaId":"components/schemas/ErrorResponse"},{"code":"404","description":"The case does not exist, or the file is not in the case.","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ErrorResponse","exampleIds":["paths/~1api~1v1~1cases~1{caseUuid}~1files~1{fileUuid}/patch/responses/404/content/application~1json/example"]}},"schemaId":"components/schemas/ErrorResponse","exampleIds":["paths/~1api~1v1~1cases~1{caseUuid}~1files~1{fileUuid}/patch/responses/404/content/application~1json/example"]},{"code":"500","description":"The service failed while processing the request.","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ErrorResponse"}},"schemaId":"components/schemas/ErrorResponse"}],"pointer":"/paths/~1api~1v1~1cases~1{caseUuid}~1files~1{fileUuid}/patch/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"202","schemaId":"components/schemas/FileStatusResponse","exampleIds":["paths/~1api~1v1~1cases~1{caseUuid}~1files~1{fileUuid}/patch/responses/202/content/application~1json/example"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/FileStatusResponse","exampleIds":["paths/~1api~1v1~1cases~1{caseUuid}~1files~1{fileUuid}/patch/responses/202/content/application~1json/example"]}}},{"code":"400","schemaId":"components/schemas/ErrorResponse","exampleIds":["paths/~1api~1v1~1cases~1{caseUuid}~1files~1{fileUuid}/patch/responses/400/content/application~1json/examples/invalidStatus","paths/~1api~1v1~1cases~1{caseUuid}~1files~1{fileUuid}/patch/responses/400/content/application~1json/examples/unknownField","paths/~1api~1v1~1cases~1{caseUuid}~1files~1{fileUuid}/patch/responses/400/content/application~1json/examples/invalidFileUuid","paths/~1api~1v1~1cases~1{caseUuid}~1files~1{fileUuid}/patch/responses/400/content/application~1json/examples/notUploaded"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ErrorResponse","exampleIds":["paths/~1api~1v1~1cases~1{caseUuid}~1files~1{fileUuid}/patch/responses/400/content/application~1json/examples/invalidStatus","paths/~1api~1v1~1cases~1{caseUuid}~1files~1{fileUuid}/patch/responses/400/content/application~1json/examples/unknownField","paths/~1api~1v1~1cases~1{caseUuid}~1files~1{fileUuid}/patch/responses/400/content/application~1json/examples/invalidFileUuid","paths/~1api~1v1~1cases~1{caseUuid}~1files~1{fileUuid}/patch/responses/400/content/application~1json/examples/notUploaded"]}}},{"code":"401","schemaId":"components/schemas/ErrorResponse","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ErrorResponse"}}},{"code":"403","schemaId":"components/schemas/ErrorResponse","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ErrorResponse"}}},{"code":"404","schemaId":"components/schemas/ErrorResponse","exampleIds":["paths/~1api~1v1~1cases~1{caseUuid}~1files~1{fileUuid}/patch/responses/404/content/application~1json/example"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ErrorResponse","exampleIds":["paths/~1api~1v1~1cases~1{caseUuid}~1files~1{fileUuid}/patch/responses/404/content/application~1json/example"]}}},{"code":"500","schemaId":"components/schemas/ErrorResponse","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ErrorResponse"}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/files/updatefile"}],"panels":[]}]},"httpPath":"/api/v1/cases/{caseUuid}/files/{fileUuid}"}],"content":{"contentType":"group","meta":{"name":"Files"},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Files","showPageActions":true},{"nodeType":"markdoc","content":"File management operations"}],"panels":[{"children":[{"kind":"group-items","title":"Operations","titleTranslationKey":"operations","items":[{"title":"/api/v1/cases/{caseUuid}/files","summary":"Create file upload URLs","prefix":{"name":"post","color":"post"},"badges":[],"link":"/files/uploadcasefiles","deprecated":false},{"title":"/api/v1/cases/{caseUuid}/files/{fileUuid}","summary":"Get file information","prefix":{"name":"get","color":"get"},"badges":[],"link":"/files/getfile","deprecated":false},{"title":"/api/v1/cases/{caseUuid}/files/{fileUuid}","summary":"Report a file upload complete","prefix":{"name":"patch","color":"patch"},"badges":[],"link":"/files/updatefile","deprecated":false}]}]}]}]}},{"type":"group","label":"Teams","link":"/api/openapi/teams","routeSlug":"/api/openapi/teams","items":[{"label":"List teams","deprecated":false,"httpVerb":"get","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/api/openapi/teams/listteams","routeSlug":"/api/openapi/teams/listteams","metadata":{"seo":{"title":"List teams","description":"Return the teams that cases can be assigned to, for use in case.teamswhen creating a case. Filters are combined with AND; unknown queryparameters are rejected."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"listTeams","name":"List teams","isWebhook":false,"pointer":"/paths/~1api~1v1~1teams/get","hasSamples":false},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"List teams","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Return the teams that cases can be assigned to, for use in "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"case.teams"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"when creating a case. Filters are combined with AND; unknown query"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"parameters are rejected."},"children":[]}]}]}]},{"nodeType":"security","requirements":[{"schemes":[{"name":"oauth2ClientCredentials","scopes":["teams:read"],"type":"oauth2","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"OAuth 2.0 client credentials. Send the issued access token as"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"Authorization: Bearer <access_token>"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":". Each operation requires the"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"scope listed for it; a token without that scope receives "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"403"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" with"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"error.code: \"insufficient_scope\""},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"."},"children":[]}]}]}],"flows":{"clientCredentials":{"tokenUrl":"/oauth/token","scopes":{"cases:read":"Read case lists, searches, and details.","cases:write":"Create and update cases and their related entities.","files:read":"Read file details.","files:write":"Create file upload URLs and complete uploads.","teams:read":"List teams that cases can be assigned to."}}}},{"name":"apiKeyAuth","scopes":[],"type":"apiKey","in":"header","paramName":"x-api-key","description":"API Gateway key required in addition to the Bearer token."}]}]},{"nodeType":"item-content","variant":"query","label":"Query","labelTranslationKey":"query","parameters":[{"name":"name","in":"query","schemaId":"schema_8","description":"Only teams whose name contains this text (case-insensitive)."},{"name":"username","in":"query","schemaId":"schema_9","description":"Only teams with an active member that has this username (case-insensitive exact match)."},{"name":"email","in":"query","schemaId":"schema_10","description":"Only teams with an active member that has this email (case-insensitive exact match)."},{"name":"limit","in":"query","schemaId":"schema_11","description":"Page size."},{"name":"offset","in":"query","schemaId":"schema_12","description":"Number of teams to skip."}],"pointer":"/paths/~1api~1v1~1teams/get/parameters"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"GET","path":"/api/v1/teams","servers":[{"url":"/_mock/api/openapi","description":"Mock server","isMockServer":true},{"url":"https://dev-api.wisedocs.ai","description":"Development server"},{"url":"https://staging-api.wisedocs.ai","description":"Staging server"},{"url":"https://api.wisedocs.ai","description":"Production server"}],"parameters":{"path":[],"query":[{"name":"name","in":"query","required":false,"example":"Claims","schemaId":"schema_8"},{"name":"username","in":"query","required":false,"example":"jane.doe","schemaId":"schema_9"},{"name":"email","in":"query","required":false,"example":"jane.doe@example.com","schemaId":"schema_10"},{"name":"limit","in":"query","required":false,"example":10,"schemaId":"schema_11"},{"name":"offset","in":"query","required":false,"example":0,"schemaId":"schema_12"}],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"oauth2ClientCredentials","type":"oauth2","flows":{"clientCredentials":{"tokenUrl":"/oauth/token","scopes":{"cases:read":"Read case lists, searches, and details.","cases:write":"Create and update cases and their related entities.","files:read":"Read file details.","files:write":"Create file upload URLs and complete uploads.","teams:read":"List teams that cases can be assigned to."}}}},{"id":"apiKeyAuth","type":"apiKey","name":"x-api-key","in":"header"}],"scopes":["teams:read"]}],"responseCodes":["200","400","401","403"],"pointer":"/api/v1/teams","href":"teams/listteams","openApiOperationId":"listTeams","summary":"List teams"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"/_mock/api/openapi","description":"Mock server","isMockServer":true},{"url":"https://dev-api.wisedocs.ai","description":"Development server"},{"url":"https://staging-api.wisedocs.ai","description":"Staging server"},{"url":"https://api.wisedocs.ai","description":"Production server"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"Matching teams.","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_13"}},"schemaId":"schema_13"},{"code":"400","description":"Request validation failed.","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ErrorResponse"}},"schemaId":"components/schemas/ErrorResponse"},{"code":"401","description":"The Bearer token is missing, invalid, or expired.","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ErrorResponse"}},"schemaId":"components/schemas/ErrorResponse","headers":{"WWW-Authenticate":{"$ref":"#/components/headers/WWW-Authenticate"}},"headerSchemaId":"schema_3"},{"code":"403","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"The token is not permitted to perform this operation. When a required"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"scope is missing, "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"error.code"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" is "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"insufficient_scope"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" and"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"error.message"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" names the missing scope."},"children":[]}]}]}],"mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ErrorResponse"}},"schemaId":"components/schemas/ErrorResponse"}],"pointer":"/paths/~1api~1v1~1teams/get/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"schema_13","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_13"}}},{"code":"400","schemaId":"components/schemas/ErrorResponse","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ErrorResponse"}}},{"code":"401","schemaId":"components/schemas/ErrorResponse","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ErrorResponse"}}},{"code":"403","schemaId":"components/schemas/ErrorResponse","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ErrorResponse"}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/teams/listteams"}],"panels":[]}]},"httpPath":"/api/v1/teams"}],"content":{"contentType":"group","meta":{"name":"Teams"},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Teams","showPageActions":true},{"nodeType":"markdoc","content":"Teams that cases can be assigned to"}],"panels":[{"children":[{"kind":"group-items","title":"Operations","titleTranslationKey":"operations","items":[{"title":"/api/v1/teams","summary":"List teams","prefix":{"name":"get","color":"get"},"badges":[],"link":"/teams/listteams","deprecated":false}]}]}]}]}}],"store":{"schemaStore":{"components/schemas/AuthorizationServerMetadata":{"id":"components/schemas/AuthorizationServerMetadata","kind":"json-schema","title":"AuthorizationServerMetadata","data":{"type":"object","required":["issuer","token_endpoint","revocation_endpoint","introspection_endpoint","grant_types_supported","token_endpoint_auth_methods_supported","revocation_endpoint_auth_methods_supported","introspection_endpoint_auth_methods_supported"],"properties":{"issuer":{"type":"string","format":"uri","example":"https://api.wisedocs.ai"},"token_endpoint":{"type":"string","format":"uri","example":"https://api.wisedocs.ai/oauth/token"},"revocation_endpoint":{"type":"string","format":"uri","example":"https://api.wisedocs.ai/oauth/revoke"},"introspection_endpoint":{"type":"string","format":"uri","example":"https://api.wisedocs.ai/oauth/introspect"},"grant_types_supported":{"type":"array","items":{"type":"string"},"example":["client_credentials"]},"token_endpoint_auth_methods_supported":{"type":"array","items":{"type":"string"},"example":["client_secret_basic","client_secret_post"]},"revocation_endpoint_auth_methods_supported":{"type":"array","items":{"type":"string"},"example":["client_secret_basic"]},"introspection_endpoint_auth_methods_supported":{"type":"array","items":{"type":"string"},"example":["client_secret_basic"]}}}},"components/schemas/ErrorResponse":{"id":"components/schemas/ErrorResponse","kind":"json-schema","title":"ErrorResponse","data":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["message"],"properties":{"message":{"description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Error message. Request validation failures return an array of validation error objects ("},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"loc"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"msg"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"type"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":")."},"children":[]}]}]}],"oneOf":[{"type":"string","example":"Request body is not valid JSON"},{"type":"array","items":{"type":"object","properties":{"loc":{"type":"array","description":"Path to the invalid value: field names, and zero-based indexes for list items.","items":{"oneOf":[{"type":"string"},{"type":"integer"}]},"example":["claimant","firstName"]},"msg":{"type":"string","example":"field required"},"type":{"type":"string","example":"value_error.missing"}}}}]},"details":{"type":"object","additionalProperties":true,"description":"Field-level validation or domain error details, grouped by the request's top-level fields.","example":{"claim":{"dateOfLoss":["Date cannot be in the future."]},"claimant":{"gender":["\"male\" is not a valid choice."]}}},"code":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Optional machine-readable error code, e.g. "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"insufficient_scope"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" on a "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"403"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" caused by a missing OAuth scope."},"children":[]}]}]}],"example":"insufficient_scope"}}}}}},"components/schemas/TokenRequest":{"id":"components/schemas/TokenRequest","kind":"json-schema","title":"TokenRequest","data":{"type":"object","description":"OAuth 2.0 client credentials token request.","required":["grant_type"],"properties":{"grant_type":{"type":"string","enum":["client_credentials"],"example":"client_credentials"}}}},"components/schemas/TokenResponse":{"id":"components/schemas/TokenResponse","kind":"json-schema","title":"TokenResponse","data":{"type":"object","required":["access_token","token_type"],"properties":{"access_token":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Raw JWT to send as "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"Authorization: Bearer <access_token>"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"."},"children":[]}]}]}],"example":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.example.signature"},"token_type":{"type":"string","enum":["Bearer"],"example":"Bearer"},"expires_in":{"type":"integer","minimum":0,"description":"Seconds until the token expires.","example":300},"scope":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Space-delimited scopes granted to this API client. Supported scopes"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"are "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"cases:read"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"cases:write"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"files:read"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"files:write"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", and"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"teams:read"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"."},"children":[]}]}]}],"example":"cases:read files:read"}}}},"components/schemas/OAuthError":{"id":"components/schemas/OAuthError","kind":"json-schema","title":"OAuthError","data":{"type":"object","required":["error","error_description"],"properties":{"error":{"type":"string","enum":["invalid_request","invalid_client","unsupported_grant_type"],"example":"invalid_client"},"error_description":{"type":"string","example":"invalid client credentials"}}}},"components/schemas/TokenManagementRequest":{"id":"components/schemas/TokenManagementRequest","kind":"json-schema","title":"TokenManagementRequest","data":{"type":"object","required":["token"],"properties":{"token":{"type":"string","description":"Access token to inspect or revoke.","example":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.example.signature"}}}},"components/schemas/IntrospectionResponse":{"id":"components/schemas/IntrospectionResponse","kind":"json-schema","title":"IntrospectionResponse","data":{"type":"object","required":["active"],"properties":{"active":{"type":"boolean","description":"Whether the token is active.","example":true},"exp":{"type":"integer","description":"Token expiry as a Unix timestamp. Present only for an active token.","example":1791907200},"tenant":{"type":"string","description":"Tenant identifier. Present only for an active token.","example":"example-tenant"},"uuid":{"type":"string","format":"uuid","description":"API client UUID. Present only for an active token.","example":"5ae8db5d-f7e7-473d-92b3-eb51d8bac0d2"},"scope":{"type":"string","description":"Space-delimited scopes granted to the token.","example":"cases:read files:read"}}}},"components/schemas/OAuthClientError":{"id":"components/schemas/OAuthClientError","kind":"json-schema","title":"OAuthClientError","data":{"type":"object","required":["detail"],"properties":{"detail":{"type":"string","example":"Invalid client credentials."}}}},"components/schemas/CaseSearchResult":{"id":"components/schemas/CaseSearchResult","kind":"json-schema","title":"CaseSearchResult","data":{"type":"object","required":["caseUuid","internalCaseNumber","claimNumber","claimantFullName","status","created"],"properties":{"caseUuid":{"type":"string","format":"uuid","example":"123e4567-e89b-12d3-a456-426614174000"},"internalCaseNumber":{"type":"string","nullable":true,"example":"CASE-12345"},"claimNumber":{"type":"string","nullable":true,"example":"CLM-12345"},"claimantFullName":{"type":"string","nullable":true,"example":"John Doe"},"status":{"type":"string","example":"OPENED"},"created":{"type":"string","format":"date-time","example":"2026-01-15T14:30:00Z"}}}},"components/schemas/CaseSearchResponse":{"id":"components/schemas/CaseSearchResponse","kind":"json-schema","title":"CaseSearchResponse","data":{"type":"object","properties":{"data":{"type":"object","properties":{"count":{"type":"integer","description":"Total number of matching cases, across all pages.","example":1},"results":{"type":"array","items":{"$ref":"#/components/schemas/CaseSearchResult"}}}},"status":{"type":"string","example":"success"}}}},"components/schemas/Claim":{"id":"components/schemas/Claim","kind":"json-schema","title":"Claim","data":{"type":"object","properties":{"claimNumber":{"type":"string","example":"CLM-12345"},"dateOfLoss":{"type":"string","format":"date","description":"Cannot be in the future.","example":"2026-01-15"},"policyNumber":{"type":"string","example":"POL-12345"}}}},"components/schemas/Claimant":{"id":"components/schemas/Claimant","kind":"json-schema","title":"Claimant","data":{"type":"object","required":["firstName","lastName"],"properties":{"firstName":{"type":"string","minLength":1,"maxLength":100,"example":"John"},"lastName":{"type":"string","minLength":1,"maxLength":100,"example":"Doe"},"email":{"type":"string","format":"email","example":"john.doe@example.com"},"dateOfBirth":{"type":"string","format":"date","description":"Cannot be in the future.","example":"1980-01-15"},"gender":{"type":"string","enum":["M","F","NB","UN"],"description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"M"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" male, "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"F"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" female, "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"NB"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" non-binary, "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"UN"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" unknown."},"children":[]}]}]}],"example":"M"},"mobilePhone":{"type":"string","example":"+15551234567"},"officePhone":{"type":"string","example":"+15551234567"},"allowDuplication":{"type":"boolean","default":true,"deprecated":true,"description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Ignored when creating a case. Use "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"case.allowDuplication"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"."},"children":[]}]}]}],"example":true}}}},"components/schemas/CaseDetails":{"id":"components/schemas/CaseDetails","kind":"json-schema","title":"CaseDetails","data":{"type":"object","properties":{"allowDuplication":{"type":"boolean","default":false,"example":false},"caseNumber":{"type":"string","example":"CASE-12345"},"caseType":{"type":"string","example":"personal-injury"},"status":{"type":"string","default":"OPENED","example":"OPENED"},"teams":{"type":"array","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Team UUIDs (from "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"GET /api/v1/teams"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":") to assign the case to. Required when team visibility is enabled on the account."},"children":[]}]}]}],"items":{"type":"string","format":"uuid"},"example":["0b6e1e8a-6b0e-4f5c-9a7e-1f2a3b4c5d6e"]},"createdBy":{"type":"string","format":"email","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Email of the Wisedocs user to show as the case's \"Created by\". Must belong to an active user in your workspace. When team visibility is enabled, the user must also be a member of at least one team in "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"case.teams"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":". Otherwise the request fails with "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"400"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"; the error is the same for every reason. Naming a user does not grant them access to the case. Create-only: not accepted by "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"updateCase"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" and not returned in responses."},"children":[]}]}]}],"example":"jane.smith@example.com"}}}},"components/schemas/ClaimantAddress":{"id":"components/schemas/ClaimantAddress","kind":"json-schema","title":"ClaimantAddress","data":{"type":"object","properties":{"street1":{"type":"string","example":"123 Example Street"},"street2":{"type":"string","example":"Suite 100"},"city":{"type":"string","example":"Toronto"},"postal":{"type":"string","example":"M5V 1A1"},"province":{"type":"string","example":"ON"},"country":{"type":"string","example":"Canada"}}}},"components/schemas/ReferringOrganization":{"id":"components/schemas/ReferringOrganization","kind":"json-schema","title":"ReferringOrganization","data":{"type":"object","properties":{"name":{"type":"string","example":"Example Organization"}}}},"components/schemas/ReferrerContactProfile":{"id":"components/schemas/ReferrerContactProfile","kind":"json-schema","title":"ReferrerContactProfile","data":{"type":"object","properties":{"email":{"type":"string","format":"email","example":"referrer@example.com"},"firstName":{"type":"string","example":"Jane"}}}},"components/schemas/CaseCreateRequest":{"id":"components/schemas/CaseCreateRequest","kind":"json-schema","title":"CaseCreateRequest","data":{"type":"object","required":["claimant"],"properties":{"claim":{"$ref":"#/components/schemas/Claim"},"claimant":{"$ref":"#/components/schemas/Claimant"},"case":{"$ref":"#/components/schemas/CaseDetails"},"claimantsAddress":{"$ref":"#/components/schemas/ClaimantAddress"},"referringorganization":{"$ref":"#/components/schemas/ReferringOrganization"},"referrercontactprofile":{"$ref":"#/components/schemas/ReferrerContactProfile"},"defaultWorkflowUuid":{"type":"string","format":"uuid","deprecated":true,"description":"No longer used. Accepted for compatibility and ignored.","example":"123e4567-e89b-12d3-a456-426614174000"},"autoWorkflowConfig":{"type":"string","deprecated":true,"description":"No longer used. Accepted for compatibility and ignored.","example":"calendar_day_upload_group"}}}},"components/schemas/CaseCreateResponse":{"id":"components/schemas/CaseCreateResponse","kind":"json-schema","title":"CaseCreateResponse","data":{"type":"object","properties":{"data":{"type":"object","properties":{"caseUuid":{"type":"string","format":"uuid","example":"123e4567-e89b-12d3-a456-426614174000"},"status":{"type":"string","example":"OPENED"}}},"status":{"type":"string","example":"success"}}}},"components/schemas/CaseDetailsResponse":{"id":"components/schemas/CaseDetailsResponse","kind":"json-schema","title":"CaseDetailsResponse","data":{"type":"object","properties":{"internalCaseNumber":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"case.caseNumber"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" sent to "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"createCase"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"."},"children":[]}]}]}],"example":"CASE-12345"},"caseType":{"type":"string","example":"personal-injury"},"status":{"type":"string","example":"OPENED"},"teams":{"type":"array","description":"UUIDs of the teams that can see the case.","items":{"type":"string","format":"uuid"},"example":["0b6e1e8a-6b0e-4f5c-9a7e-1f2a3b4c5d6e"]}}}},"components/schemas/ClaimantResponse":{"id":"components/schemas/ClaimantResponse","kind":"json-schema","title":"ClaimantResponse","data":{"type":"object","properties":{"firstName":{"type":"string","example":"John"},"lastName":{"type":"string","example":"Doe"},"email":{"type":"string","example":"john.doe@example.com"},"dateOfBirth":{"type":"string","format":"date","nullable":true,"example":"1980-01-15"},"gender":{"type":"string","example":"M"},"mobilePhone":{"type":"string","example":"+15551234567"},"officePhone":{"type":"string","example":"+15551234567"}}}},"components/schemas/CaseView":{"id":"components/schemas/CaseView","kind":"json-schema","title":"CaseView","data":{"type":"object","description":"Case details.","required":["caseUuid","created","case","claim","claimant"],"properties":{"caseUuid":{"type":"string","format":"uuid","example":"123e4567-e89b-12d3-a456-426614174000"},"created":{"type":"string","format":"date-time","example":"2026-01-15T14:30:00Z"},"case":{"$ref":"#/components/schemas/CaseDetailsResponse"},"claim":{"$ref":"#/components/schemas/Claim"},"claimant":{"$ref":"#/components/schemas/ClaimantResponse"},"claimantsAddress":{"type":"object","nullable":true,"allOf":[{"$ref":"#/components/schemas/ClaimantAddress"}]},"referringorganization":{"type":"object","nullable":true,"allOf":[{"$ref":"#/components/schemas/ReferringOrganization"}]},"referrercontactprofile":{"type":"object","nullable":true,"allOf":[{"$ref":"#/components/schemas/ReferrerContactProfile"}]}}}},"components/schemas/CaseGetResponse":{"id":"components/schemas/CaseGetResponse","kind":"json-schema","title":"CaseGetResponse","data":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/CaseView"},"status":{"type":"string","example":"success"}}}},"components/schemas/CaseUpdateDetails":{"id":"components/schemas/CaseUpdateDetails","kind":"json-schema","title":"CaseUpdateDetails","data":{"type":"object","additionalProperties":false,"properties":{"caseNumber":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Returned as "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"case.internalCaseNumber"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"."},"children":[]}]}]}],"example":"CASE-12345"},"caseType":{"type":"string","example":"personal-injury"},"status":{"type":"string","enum":["OPENED","INACT","CLOSED"],"description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"OPENED"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"INACT"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" (inactive) or "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"CLOSED"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"."},"children":[]}]}]}],"example":"CLOSED"}}}},"components/schemas/ClaimUpdate":{"id":"components/schemas/ClaimUpdate","kind":"json-schema","title":"ClaimUpdate","data":{"type":"object","additionalProperties":false,"properties":{"claimNumber":{"type":"string","example":"CLM-12345"},"dateOfLoss":{"type":"string","format":"date","nullable":true,"description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Cannot be in the future. "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"null"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" clears it."},"children":[]}]}]}],"example":"2026-01-15"},"policyNumber":{"type":"string","example":"POL-12345"}}}},"components/schemas/ClaimantUpdate":{"id":"components/schemas/ClaimantUpdate","kind":"json-schema","title":"ClaimantUpdate","data":{"type":"object","additionalProperties":false,"properties":{"firstName":{"type":"string","minLength":1,"maxLength":100,"example":"John"},"lastName":{"type":"string","minLength":1,"maxLength":100,"example":"Doe"},"email":{"type":"string","format":"email","example":"john.doe@example.com"},"dateOfBirth":{"type":"string","format":"date","nullable":true,"description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Cannot be in the future. "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"null"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" clears it."},"children":[]}]}]}],"example":"1980-01-15"},"gender":{"type":"string","enum":["M","F","NB","UN"],"description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"M"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" male, "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"F"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" female, "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"NB"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" non-binary, "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"UN"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" unknown."},"children":[]}]}]}],"example":"M"},"mobilePhone":{"type":"string","example":"+15551234567"},"officePhone":{"type":"string","example":"+15551234567"}}}},"components/schemas/ClaimantAddressUpdate":{"id":"components/schemas/ClaimantAddressUpdate","kind":"json-schema","title":"ClaimantAddressUpdate","data":{"type":"object","additionalProperties":false,"properties":{"street1":{"type":"string","example":"123 Example Street"},"street2":{"type":"string","example":"Suite 100"},"city":{"type":"string","example":"Toronto"},"postal":{"type":"string","example":"M5V 1A1"},"province":{"type":"string","example":"ON"},"country":{"type":"string","example":"Canada"}}}},"components/schemas/ReferringOrganizationUpdate":{"id":"components/schemas/ReferringOrganizationUpdate","kind":"json-schema","title":"ReferringOrganizationUpdate","data":{"type":"object","additionalProperties":false,"properties":{"name":{"type":"string","example":"Example Organization"}}}},"components/schemas/ReferrerContactProfileUpdate":{"id":"components/schemas/ReferrerContactProfileUpdate","kind":"json-schema","title":"ReferrerContactProfileUpdate","data":{"type":"object","additionalProperties":false,"properties":{"email":{"type":"string","format":"email","example":"referrer@example.com"},"firstName":{"type":"string","example":"Jane"}}}},"components/schemas/CaseUpdateRequest":{"id":"components/schemas/CaseUpdateRequest","kind":"json-schema","title":"CaseUpdateRequest","data":{"type":"object","additionalProperties":false,"minProperties":1,"description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Partial update payload. Send only the fields to change:"},"children":[]}]}]},{"$$mdtype":"Node","type":"list","attributes":{"ordered":false,"marker":"-"},"children":[{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Omitted fields remain unchanged."},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Send "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"null"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" to clear "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"claim.dateOfLoss"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" or "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"claimant.dateOfBirth"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", or "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"\"\""},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" to clear a text field."},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"claimantsAddress"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"referringorganization"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", and "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"referrercontactprofile"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" are updated only if already present on the case."},"children":[]}]}]}]}],"properties":{"case":{"$ref":"#/components/schemas/CaseUpdateDetails"},"claim":{"$ref":"#/components/schemas/ClaimUpdate"},"claimant":{"$ref":"#/components/schemas/ClaimantUpdate"},"claimantsAddress":{"$ref":"#/components/schemas/ClaimantAddressUpdate"},"referringorganization":{"$ref":"#/components/schemas/ReferringOrganizationUpdate"},"referrercontactprofile":{"$ref":"#/components/schemas/ReferrerContactProfileUpdate"}}}},"components/schemas/FileUploadRequest":{"id":"components/schemas/FileUploadRequest","kind":"json-schema","title":"FileUploadRequest","data":{"type":"object","additionalProperties":false,"required":["fileNames"],"properties":{"fileNames":{"type":"array","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Unique file names to upload (1 to 100). Supported extensions: "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":".pdf"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":".jpg"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":".jpeg"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":".png"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":".tif"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":".tiff"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":".gif"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":".doc"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":".docx"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"."},"children":[]}]}]}],"minItems":1,"maxItems":100,"uniqueItems":true,"items":{"type":"string","minLength":1,"maxLength":255},"example":["medical-record.pdf","x-ray.png"]},"priority":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"SLA priority for the files, from "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"P0"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" (highest) to "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"P4"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" (lowest). When omitted, your workspace's default priority applies. Wisedocs counts each file's pages after upload; if they are past the priority's page limit, the file is moved to the next lower priority that fits, and its due date follows that priority."},"children":[]}]}]}],"enum":["P0","P1","P2","P3","P4"],"example":"P1"}}}},"components/schemas/FileUploadData":{"id":"components/schemas/FileUploadData","kind":"json-schema","title":"FileUploadData","data":{"type":"object","required":["fileName","putUrl","fileUuid","s3PutKey"],"properties":{"fileName":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"The file name, as sent in "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"fileNames"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"."},"children":[]}]}]}],"example":"medical-record.pdf"},"putUrl":{"type":"string","format":"uri","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Presigned S3 URL for uploading the file via HTTP "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"PUT"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" with "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"x-amz-server-side-encryption: AES256"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" and the file's "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"Content-Type"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"."},"children":[]}]}]}],"example":"https://s3.amazonaws.com/example/presigned-upload"},"fileUuid":{"type":"string","format":"uuid","description":"The new file's UUID.","example":"323e4567-e89b-12d3-a456-426614174000"},"s3PutKey":{"type":"string","description":"S3 object key for the upload.","example":"323e4567-e89b-12d3-a456-426614174000/k3Jd9sLm2QpXa7Vb-original"}}}},"components/schemas/FileUploadResponse":{"id":"components/schemas/FileUploadResponse","kind":"json-schema","title":"FileUploadResponse","data":{"type":"object","required":["data","status"],"properties":{"data":{"type":"object","required":["fileData"],"properties":{"fileData":{"type":"array","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"One item per requested file, in the order of "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"fileNames"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"."},"children":[]}]}]}],"items":{"$ref":"#/components/schemas/FileUploadData"}}}},"status":{"type":"string","example":"success"}}}},"components/schemas/FileInformationResponse":{"id":"components/schemas/FileInformationResponse","kind":"json-schema","title":"FileInformationResponse","data":{"type":"object","required":["data","status"],"properties":{"data":{"type":"object","required":["fileUuid","caseUuid","fileName","status","uploadDate"],"properties":{"fileUuid":{"type":"string","format":"uuid","example":"323e4567-e89b-12d3-a456-426614174000"},"caseUuid":{"type":"string","format":"uuid","example":"123e4567-e89b-12d3-a456-426614174000"},"fileName":{"type":"string","example":"medical-record.pdf"},"status":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"The file's processing status, for example "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"NOTAVAIL"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" (not uploaded yet), "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"PENDING_VALIDATE"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"VALIDATED"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"QUEUED"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"PROCESSED"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", or "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"INVALID"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" (validation failed)."},"children":[]}]}]}],"example":"QUEUED"},"pageCount":{"type":"integer","nullable":true,"description":"Set once validation counts the pages.","example":42},"uploadDate":{"type":"string","format":"date-time","description":"When the file record was created.","example":"2026-01-15T14:30:00Z"},"dueDate":{"type":"string","format":"date-time","nullable":true,"example":"2026-01-22T14:30:00Z"},"reviewDate":{"type":"string","format":"date-time","nullable":true,"example":null},"getUrl":{"type":"string","format":"uri","nullable":true,"description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Presigned download URL; "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"null"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" until the file is uploaded."},"children":[]}]}]}],"example":"https://s3.amazonaws.com/example/presigned-download"}}},"status":{"type":"string","example":"success"}}}},"components/schemas/FileStatusUpdateRequest":{"id":"components/schemas/FileStatusUpdateRequest","kind":"json-schema","title":"FileStatusUpdateRequest","data":{"type":"object","additionalProperties":false,"required":["status"],"properties":{"status":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"UPLOADED"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" once the file has been uploaded to its "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"putUrl"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"."},"children":[]}]}]}],"enum":["UPLOADED"],"example":"UPLOADED"}}}},"components/schemas/FileStatusResponse":{"id":"components/schemas/FileStatusResponse","kind":"json-schema","title":"FileStatusResponse","data":{"type":"object","required":["data","status"],"properties":{"data":{"type":"object","required":["fileUuid","caseUuid","status"],"properties":{"fileUuid":{"type":"string","format":"uuid","example":"323e4567-e89b-12d3-a456-426614174000"},"caseUuid":{"type":"string","format":"uuid","example":"123e4567-e89b-12d3-a456-426614174000"},"status":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"The file's processing status after the call: "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"PENDING_VALIDATE"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" right after the first report, or a later status when the upload was already reported."},"children":[]}]}]}],"example":"PENDING_VALIDATE"}}},"status":{"type":"string","example":"success"}}}},"components/schemas/Team":{"id":"components/schemas/Team","kind":"json-schema","title":"Team","data":{"type":"object","required":["uuid","name"],"properties":{"uuid":{"type":"string","format":"uuid","example":"0b6e1e8a-6b0e-4f5c-9a7e-1f2a3b4c5d6e"},"name":{"type":"string","example":"Claims"}}}},"components/schemas/TeamList":{"id":"components/schemas/TeamList","kind":"json-schema","title":"TeamList","data":{"type":"object","required":["count","results"],"properties":{"count":{"type":"integer","description":"Total number of matching teams.","example":1},"results":{"type":"array","items":{"$ref":"#/components/schemas/Team"}}}}},"schema_0":{"kind":"json-schema","data":{"type":"object","properties":{"Cache-Control":{"type":"string","example":"no-store"},"Pragma":{"type":"string","example":"no-cache"}}},"id":"schema_0"},"schema_1":{"kind":"json-schema","data":{"type":"object","properties":{"WWW-Authenticate":{"type":"string","example":"Basic realm=\"oauth-client\"","description":"HTTP Basic authentication challenge for an OAuth client."}}},"id":"schema_1"},"schema_2":{"kind":"json-schema","data":{"type":"object","additionalProperties":false,"example":{}},"id":"schema_2"},"schema_3":{"kind":"json-schema","data":{"type":"object","properties":{"WWW-Authenticate":{"type":"string","example":"Bearer realm=\"api.wisedocs.ai\", error=\"invalid_token\", error_description=\"The access token is invalid or has expired\"","description":"RFC 6750 Bearer authentication challenge."}}},"id":"schema_3"},"schema_4":{"kind":"json-schema","data":{"type":"string","format":"uuid"},"id":"schema_4"},"schema_5":{"kind":"json-schema","data":{"type":"string","minLength":1,"maxLength":254},"id":"schema_5"},"schema_6":{"kind":"json-schema","data":{"type":"integer","minimum":1,"maximum":100,"default":10},"id":"schema_6"},"schema_7":{"kind":"json-schema","data":{"type":"integer","minimum":0,"default":0},"id":"schema_7"},"schema_8":{"kind":"json-schema","data":{"type":"string","minLength":1,"maxLength":254,"example":"Claims"},"id":"schema_8"},"schema_9":{"kind":"json-schema","data":{"type":"string","minLength":1,"maxLength":254,"example":"jane.doe"},"id":"schema_9"},"schema_10":{"kind":"json-schema","data":{"type":"string","minLength":1,"maxLength":254,"example":"jane.doe@example.com"},"id":"schema_10"},"schema_11":{"kind":"json-schema","data":{"type":"integer","minimum":1,"maximum":100,"default":10,"example":10},"id":"schema_11"},"schema_12":{"kind":"json-schema","data":{"type":"integer","minimum":0,"default":0,"example":0},"id":"schema_12"},"schema_13":{"kind":"json-schema","data":{"type":"object","required":["status","data"],"properties":{"status":{"type":"string","enum":["success"],"example":"success"},"data":{"$ref":"#/components/schemas/TeamList"}}},"id":"schema_13"}},"exampleStore":{"paths/~1oauth~1token/post/requestBody/content/application~1x-www-form-urlencoded/example":{"value":{"grant_type":"client_credentials"},"id":"paths/~1oauth~1token/post/requestBody/content/application~1x-www-form-urlencoded/example"},"paths/~1api~1v1~1cases/post/requestBody/content/application~1json/examples/minimal":{"value":{"claimant":{"firstName":"John","lastName":"Doe"}},"key":"minimal","summary":"Minimal request","id":"paths/~1api~1v1~1cases/post/requestBody/content/application~1json/examples/minimal"},"paths/~1api~1v1~1cases/post/requestBody/content/application~1json/examples/full":{"value":{"claim":{"claimNumber":"CLM-12345","dateOfLoss":"2026-01-15","policyNumber":"POL-12345"},"claimant":{"firstName":"John","lastName":"Doe","email":"john.doe@example.com","dateOfBirth":"1980-01-15","gender":"M","mobilePhone":"+15551234567","officePhone":"+15551234567"},"case":{"caseNumber":"CASE-12345","caseType":"personal-injury","allowDuplication":false,"teams":["0b6e1e8a-6b0e-4f5c-9a7e-1f2a3b4c5d6e"]},"claimantsAddress":{"street1":"123 Example Street","street2":"Suite 100","city":"Toronto","postal":"M5V 1A1","province":"ON","country":"Canada"},"referringorganization":{"name":"Example Organization"},"referrercontactprofile":{"firstName":"Jane","email":"referrer@example.com"}},"key":"full","summary":"Full request","id":"paths/~1api~1v1~1cases/post/requestBody/content/application~1json/examples/full"},"paths/~1api~1v1~1cases~1{caseUuid}/get/responses/200/content/application~1json/examples/default":{"value":{"status":"success","data":{"caseUuid":"123e4567-e89b-12d3-a456-426614174000","created":"2026-01-15T14:30:00Z","case":{"internalCaseNumber":"CASE-12345","caseType":"personal-injury","status":"OPENED","teams":["0b6e1e8a-6b0e-4f5c-9a7e-1f2a3b4c5d6e"]},"claim":{"claimNumber":"CLM-12345","dateOfLoss":"2026-01-15","policyNumber":"POL-12345"},"claimant":{"firstName":"John","lastName":"Doe","email":"john.doe@example.com","dateOfBirth":"1980-01-15","gender":"M","mobilePhone":"+15551234567","officePhone":"+15551234567"},"claimantsAddress":{"street1":"123 Example Street","street2":"Suite 100","city":"Toronto","postal":"M5V 1A1","province":"ON","country":"Canada"},"referringorganization":{"name":"Example Organization"},"referrercontactprofile":{"firstName":"Jane","email":"referrer@example.com"}}},"key":"default","summary":"Default","id":"paths/~1api~1v1~1cases~1{caseUuid}/get/responses/200/content/application~1json/examples/default"},"paths/~1api~1v1~1cases~1{caseUuid}/get/responses/400/content/application~1json/example":{"value":{"error":{"message":"`caseUuid` must be a valid UUID"}},"id":"paths/~1api~1v1~1cases~1{caseUuid}/get/responses/400/content/application~1json/example"},"paths/~1api~1v1~1cases~1{caseUuid}/patch/requestBody/content/application~1json/examples/claimant":{"value":{"claimant":{"lastName":"Doe-Smith","dateOfBirth":null},"claimantsAddress":{"street1":"456 New Street","street2":""}},"key":"claimant","summary":"Update the claimant and their address","id":"paths/~1api~1v1~1cases~1{caseUuid}/patch/requestBody/content/application~1json/examples/claimant"},"paths/~1api~1v1~1cases~1{caseUuid}/patch/requestBody/content/application~1json/examples/case":{"value":{"case":{"status":"CLOSED"},"claim":{"claimNumber":"CLM-67890"}},"key":"case","summary":"Close a case and change its claim number","id":"paths/~1api~1v1~1cases~1{caseUuid}/patch/requestBody/content/application~1json/examples/case"},"paths/~1api~1v1~1cases~1{caseUuid}/patch/responses/200/content/application~1json/examples/default":{"value":{"status":"success","data":{"caseUuid":"123e4567-e89b-12d3-a456-426614174000","created":"2026-01-15T14:30:00Z","case":{"internalCaseNumber":"CASE-12345","caseType":"personal-injury","status":"CLOSED","teams":["0b6e1e8a-6b0e-4f5c-9a7e-1f2a3b4c5d6e"]},"claim":{"claimNumber":"CLM-12345","dateOfLoss":"2026-01-15","policyNumber":"POL-12345"},"claimant":{"firstName":"John","lastName":"Doe","email":"john.doe@example.com","dateOfBirth":"1980-01-15","gender":"M","mobilePhone":"+15551234567","officePhone":"+15551234567"},"claimantsAddress":{"street1":"456 New Street","street2":"","city":"Toronto","postal":"M5V 1A1","province":"ON","country":"Canada"},"referringorganization":{"name":"Example Organization"},"referrercontactprofile":{"firstName":"Jane","email":"referrer@example.com"}}},"key":"default","summary":"Default","id":"paths/~1api~1v1~1cases~1{caseUuid}/patch/responses/200/content/application~1json/examples/default"},"paths/~1api~1v1~1cases~1{caseUuid}/patch/responses/400/content/application~1json/examples/unknownField":{"value":{"error":{"message":[{"loc":["case","teams"],"msg":"extra fields not permitted","type":"value_error.extra"}]}},"key":"unknownField","summary":"Unknown field","id":"paths/~1api~1v1~1cases~1{caseUuid}/patch/responses/400/content/application~1json/examples/unknownField"},"paths/~1api~1v1~1cases~1{caseUuid}/patch/responses/400/content/application~1json/examples/notNullable":{"value":{"error":{"message":[{"loc":["claimant","firstName"],"msg":"may not be null","type":"value_error"}]}},"key":"notNullable","summary":"Null for a field that cannot be cleared","id":"paths/~1api~1v1~1cases~1{caseUuid}/patch/responses/400/content/application~1json/examples/notNullable"},"paths/~1api~1v1~1cases~1{caseUuid}/patch/responses/400/content/application~1json/examples/serviceValidation":{"value":{"error":{"message":"Bad Request Error","details":{"claimant":{"firstName":["Ensure this field has at least 1 characters."]}}}},"key":"serviceValidation","summary":"Field validation error","id":"paths/~1api~1v1~1cases~1{caseUuid}/patch/responses/400/content/application~1json/examples/serviceValidation"},"paths/~1api~1v1~1cases~1{caseUuid}~1files/post/requestBody/content/application~1json/examples/single":{"value":{"fileNames":["medical-record.pdf"]},"key":"single","summary":"One file","id":"paths/~1api~1v1~1cases~1{caseUuid}~1files/post/requestBody/content/application~1json/examples/single"},"paths/~1api~1v1~1cases~1{caseUuid}~1files/post/requestBody/content/application~1json/examples/multiple":{"value":{"fileNames":["medical-record.pdf","x-ray.png","referral-letter.docx"]},"key":"multiple","summary":"Several files","id":"paths/~1api~1v1~1cases~1{caseUuid}~1files/post/requestBody/content/application~1json/examples/multiple"},"paths/~1api~1v1~1cases~1{caseUuid}~1files/post/requestBody/content/application~1json/examples/priority":{"value":{"fileNames":["medical-record.pdf"],"priority":"P1"},"key":"priority","summary":"With an SLA priority","id":"paths/~1api~1v1~1cases~1{caseUuid}~1files/post/requestBody/content/application~1json/examples/priority"},"paths/~1api~1v1~1cases~1{caseUuid}~1files/post/responses/202/content/application~1json/example":{"value":{"data":{"fileData":[{"fileName":"medical-record.pdf","putUrl":"https://s3.amazonaws.com/example/presigned-upload-1","fileUuid":"323e4567-e89b-12d3-a456-426614174000","s3PutKey":"323e4567-e89b-12d3-a456-426614174000/k3Jd9sLm2QpXa7Vb-original"},{"fileName":"x-ray.png","putUrl":"https://s3.amazonaws.com/example/presigned-upload-2","fileUuid":"423e4567-e89b-12d3-a456-426614174001","s3PutKey":"423e4567-e89b-12d3-a456-426614174001/Wq8Zr2Tn5YcFh1Ld-original"}]},"status":"success"},"id":"paths/~1api~1v1~1cases~1{caseUuid}~1files/post/responses/202/content/application~1json/example"},"paths/~1api~1v1~1cases~1{caseUuid}~1files/post/responses/400/content/application~1json/examples/empty":{"value":{"error":{"message":[{"loc":["fileNames"],"msg":"ensure this value has at least 1 items","type":"value_error.list.min_items","ctx":{"limit_value":1}}]}},"key":"empty","summary":"No file names","id":"paths/~1api~1v1~1cases~1{caseUuid}~1files/post/responses/400/content/application~1json/examples/empty"},"paths/~1api~1v1~1cases~1{caseUuid}~1files/post/responses/400/content/application~1json/examples/unsupported":{"value":{"error":{"message":[{"loc":["fileNames",1],"msg":"File extension not supported; use one of .pdf, .jpg, .jpeg, .png, .tif, .tiff, .gif, .doc, .docx","type":"value_error"}]}},"key":"unsupported","summary":"Unsupported file extension","id":"paths/~1api~1v1~1cases~1{caseUuid}~1files/post/responses/400/content/application~1json/examples/unsupported"},"paths/~1api~1v1~1cases~1{caseUuid}~1files/post/responses/400/content/application~1json/examples/duplicate":{"value":{"error":{"message":[{"loc":["fileNames"],"msg":"Duplicate file names: medical-record.pdf","type":"value_error"}]}},"key":"duplicate","summary":"Duplicate file name","id":"paths/~1api~1v1~1cases~1{caseUuid}~1files/post/responses/400/content/application~1json/examples/duplicate"},"paths/~1api~1v1~1cases~1{caseUuid}~1files/post/responses/400/content/application~1json/examples/invalidPriority":{"value":{"error":{"message":[{"loc":["priority"],"msg":"value is not a valid enumeration member; permitted: 'P0', 'P1', 'P2', 'P3', 'P4'","type":"type_error.enum","ctx":{"enum_values":["P0","P1","P2","P3","P4"]}}]}},"key":"invalidPriority","summary":"Unknown priority","id":"paths/~1api~1v1~1cases~1{caseUuid}~1files/post/responses/400/content/application~1json/examples/invalidPriority"},"paths/~1api~1v1~1cases~1{caseUuid}~1files/post/responses/400/content/application~1json/examples/invalidCaseUuid":{"value":{"error":{"message":"`caseUuid` must be a valid UUID"}},"key":"invalidCaseUuid","summary":"Malformed case UUID","id":"paths/~1api~1v1~1cases~1{caseUuid}~1files/post/responses/400/content/application~1json/examples/invalidCaseUuid"},"paths/~1api~1v1~1cases~1{caseUuid}~1files/post/responses/404/content/application~1json/example":{"value":{"error":{"message":"Not Found Error","details":{"detail":"No Case matches the given query."}}},"id":"paths/~1api~1v1~1cases~1{caseUuid}~1files/post/responses/404/content/application~1json/example"},"paths/~1api~1v1~1cases~1{caseUuid}~1files~1{fileUuid}/get/responses/400/content/application~1json/example":{"value":{"error":{"message":"`fileUuid` must be a valid UUID"}},"id":"paths/~1api~1v1~1cases~1{caseUuid}~1files~1{fileUuid}/get/responses/400/content/application~1json/example"},"paths/~1api~1v1~1cases~1{caseUuid}~1files~1{fileUuid}/get/responses/404/content/application~1json/example":{"value":{"error":{"message":"Not Found Error","details":{"detail":"No File matches the given query."}}},"id":"paths/~1api~1v1~1cases~1{caseUuid}~1files~1{fileUuid}/get/responses/404/content/application~1json/example"},"paths/~1api~1v1~1cases~1{caseUuid}~1files~1{fileUuid}/patch/requestBody/content/application~1json/example":{"value":{"status":"UPLOADED"},"id":"paths/~1api~1v1~1cases~1{caseUuid}~1files~1{fileUuid}/patch/requestBody/content/application~1json/example"},"paths/~1api~1v1~1cases~1{caseUuid}~1files~1{fileUuid}/patch/responses/202/content/application~1json/example":{"value":{"data":{"fileUuid":"323e4567-e89b-12d3-a456-426614174000","caseUuid":"123e4567-e89b-12d3-a456-426614174000","status":"PENDING_VALIDATE"},"status":"success"},"id":"paths/~1api~1v1~1cases~1{caseUuid}~1files~1{fileUuid}/patch/responses/202/content/application~1json/example"},"paths/~1api~1v1~1cases~1{caseUuid}~1files~1{fileUuid}/patch/responses/400/content/application~1json/examples/invalidStatus":{"value":{"error":{"message":[{"loc":["status"],"msg":"value is not a valid enumeration member; permitted: 'UPLOADED'","type":"type_error.enum","ctx":{"enum_values":["UPLOADED"]}}]}},"key":"invalidStatus","summary":"Unsupported status","id":"paths/~1api~1v1~1cases~1{caseUuid}~1files~1{fileUuid}/patch/responses/400/content/application~1json/examples/invalidStatus"},"paths/~1api~1v1~1cases~1{caseUuid}~1files~1{fileUuid}/patch/responses/400/content/application~1json/examples/unknownField":{"value":{"error":{"message":[{"loc":["s3PutKey"],"msg":"extra fields not permitted","type":"value_error.extra"}]}},"key":"unknownField","summary":"Unknown field","id":"paths/~1api~1v1~1cases~1{caseUuid}~1files~1{fileUuid}/patch/responses/400/content/application~1json/examples/unknownField"},"paths/~1api~1v1~1cases~1{caseUuid}~1files~1{fileUuid}/patch/responses/400/content/application~1json/examples/invalidFileUuid":{"value":{"error":{"message":"`fileUuid` must be a valid UUID"}},"key":"invalidFileUuid","summary":"Malformed file UUID","id":"paths/~1api~1v1~1cases~1{caseUuid}~1files~1{fileUuid}/patch/responses/400/content/application~1json/examples/invalidFileUuid"},"paths/~1api~1v1~1cases~1{caseUuid}~1files~1{fileUuid}/patch/responses/400/content/application~1json/examples/notUploaded":{"value":{"error":{"message":"Bad Request Error","details":{"status":["File with uuid '323e4567-e89b-12d3-a456-426614174000' could not find s3 object"]}}},"key":"notUploaded","summary":"The file's bytes are not uploaded","id":"paths/~1api~1v1~1cases~1{caseUuid}~1files~1{fileUuid}/patch/responses/400/content/application~1json/examples/notUploaded"},"paths/~1api~1v1~1cases~1{caseUuid}~1files~1{fileUuid}/patch/responses/404/content/application~1json/example":{"value":{"error":{"message":"Not Found Error","details":{"detail":"No File matches the given query."}}},"id":"paths/~1api~1v1~1cases~1{caseUuid}~1files~1{fileUuid}/patch/responses/404/content/application~1json/example"}},"securitySchemeStore":{"bearerAuth":{"id":"bearerAuth","type":"http","scheme":"bearer","bearerFormat":"JWT","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Raw JWT returned in "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"access_token"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" by "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"POST /oauth/token"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"."},"children":[]}]}]}]},"apiKeyAuth":{"id":"apiKeyAuth","type":"apiKey","description":"API Gateway key required in addition to the Bearer token.","in":"header","paramName":"x-api-key"},"oauth2ClientCredentials":{"id":"oauth2ClientCredentials","type":"oauth2","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"OAuth 2.0 client credentials. Send the issued access token as"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"Authorization: Bearer <access_token>"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":". Each operation requires the"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"scope listed for it; a token without that scope receives "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"403"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" with"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"error.code: \"insufficient_scope\""},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"."},"children":[]}]}]}],"flows":{"clientCredentials":{"tokenUrl":"/oauth/token","scopes":{"cases:read":"Read case lists, searches, and details.","cases:write":"Create and update cases and their related entities.","files:read":"Read file details.","files:write":"Create file upload URLs and complete uploads.","teams:read":"List teams that cases can be assigned to."}}}},"clientSecretBasic":{"id":"clientSecretBasic","type":"http","scheme":"basic","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"HTTP Basic authentication with "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"client_id"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" as the username and"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"client_secret"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" as the password."},"children":[]}]}]}]}},"specVersion":"3.0.3","servers":[{"url":"/_mock/api/openapi","isMockServer":true,"description":"Mock server"},{"url":"https://dev-api.wisedocs.ai","description":"Development server"},{"url":"https://staging-api.wisedocs.ai","description":"Staging server"},{"url":"https://api.wisedocs.ai","description":"Production server"}],"specType":"openapi"},"options":{"mockServer":{"url":"/_mock/api/openapi","position":"first","description":"Mock server"},"disableRouter":true,"downloadUrls":[{"url":"/_bundle/api/@v1/openapi.json?download"},{"url":"/_bundle/api/@v1/openapi.yaml?download"}],"excludeFromSearch":false,"replayFeatures":{"graphql":false},"specType":"openapi","markdocOptions":{"tags":{},"nodes":{},"components":{}},"metadata":{"title":"Wisedocs API","description":"REST API for integrating Wisedocs capabilities into diverse workflows and\nuse cases across claims, insurance, legal, and healthcare operations.\n"}},"baseSlug":"/api/openapi","routesMapping":{}}