Medsender AI Documents API
The AI Documents API from Medsender — 2 operation(s) for ai documents.
The AI Documents API from Medsender — 2 operation(s) for ai documents.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/medsender:medsender-ai-documents-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Medsender AI Documents API
version: '2'
description: Machine-readable representation of the existing Medsender developer documentation. Use Bearer API keys and the established direct API server below. The v3 fax operations (paths under /api/v3) name their own server, https://api.medsender.com, and require organization enrollment.
servers:
- url: https://api.medsender.com/api/v2
tags:
- name: AI Documents
paths:
/ai_documents:
get:
operationId: listAiDocuments
tags:
- AI Documents
summary: List AI documents
description: Lists AI document-processing records for the authenticated account.
security:
- bearerAuth: []
responses:
'200':
description: AI document results.
content:
application/json:
schema:
$ref: '#/components/schemas/AiDocumentList'
'400':
description: The request was invalid.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
'401':
description: The Bearer API key was missing or invalid.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
post:
operationId: createAiDocument
tags:
- AI Documents
summary: Run AI on a document
description: Uploads a PDF document up to 50 MB (52,428,800 bytes) for asynchronous AI extraction and classification.
security:
- bearerAuth: []
requestBody:
required: true
content:
multipart/form-data:
schema:
$ref: '#/components/schemas/AiDocumentCreateRequest'
responses:
'400':
description: The request was invalid.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
'401':
description: The Bearer API key was missing or invalid.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
2XX:
description: AI processing was initiated.
content:
application/json:
schema:
$ref: '#/components/schemas/AiDocumentQueued'
/ai_documents/{ai_token}:
get:
operationId: getAiDocument
tags:
- AI Documents
summary: Retrieve an AI document
description: Retrieves extracted fields and classification for one AI document token.
security:
- bearerAuth: []
parameters:
- name: ai_token
in: path
description: The AI document token returned when processing was started.
required: true
schema:
type: string
responses:
'200':
description: The requested AI document result.
content:
application/json:
schema:
$ref: '#/components/schemas/AiDocumentResponse'
'400':
description: The request was invalid.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
'401':
description: The Bearer API key was missing or invalid.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
components:
schemas:
AiDocumentQueued:
type: object
required:
- message
- aiToken
properties:
message:
type: string
aiToken:
type: string
AiDocumentResponse:
type: object
required:
- aiResult
properties:
aiResult:
$ref: '#/components/schemas/AiResult'
AiResult:
type: object
required:
- aiToken
properties:
aiToken:
type: string
patientName:
type:
- string
- 'null'
patientFirstName:
type:
- string
- 'null'
patientMiddleName:
type:
- string
- 'null'
patientLastName:
type:
- string
- 'null'
patientDob:
type:
- string
- 'null'
format: date
patientPhoneNumber:
type:
- string
- 'null'
patientGender:
type:
- string
- 'null'
patientAddress:
type:
- string
- 'null'
documentClassification:
type:
- string
- 'null'
documentSummary:
type:
- string
- 'null'
insurancePlanName:
type:
- string
- 'null'
insurancePayer:
type:
- string
- 'null'
insuranceGroupNumber:
type:
- string
- 'null'
insuranceMemberId:
type:
- string
- 'null'
insuranceSubscriberName:
type:
- string
- 'null'
insuranceMemberNames:
type:
- string
- 'null'
primaryInsurancePayorBranch:
type:
- string
- 'null'
primaryInsurancePayorAddress:
type:
- string
- 'null'
primaryInsurancePayorCity:
type:
- string
- 'null'
primaryInsurancePayorState:
type:
- string
- 'null'
primaryInsurancePayorZipCode:
type:
- string
- 'null'
primaryInsurancePayorPhoneNumber:
type:
- string
- 'null'
primaryInsurancePayorPoBoxNumber:
type:
- string
- 'null'
secondaryInsurancePlanName:
type:
- string
- 'null'
secondaryInsurancePayer:
type:
- string
- 'null'
secondaryInsuranceGroupNumber:
type:
- string
- 'null'
secondaryInsuranceMemberId:
type:
- string
- 'null'
secondarySubscriberName:
type:
- string
- 'null'
secondaryMemberNames:
type:
- string
- 'null'
secondaryInsurancePayorBranch:
type:
- string
- 'null'
secondaryInsurancePayorAddress:
type:
- string
- 'null'
secondaryInsurancePayorCity:
type:
- string
- 'null'
secondaryInsurancePayorState:
type:
- string
- 'null'
secondaryInsurancePayorZipCode:
type:
- string
- 'null'
secondaryInsurancePayorPhoneNumber:
type:
- string
- 'null'
secondaryInsurancePayorPoBoxNumber:
type:
- string
- 'null'
icdCodesJson:
type:
- array
- object
- string
- 'null'
items: {}
additionalProperties: true
cptCodesJson:
type:
- array
- object
- string
- 'null'
items: {}
additionalProperties: true
hcpcsCodesJson:
type:
- array
- object
- string
- 'null'
items: {}
additionalProperties: true
completedAt:
type:
- string
- 'null'
format: date-time
errorDetails:
type:
- string
- 'null'
AiDocumentList:
type: object
required:
- aiDocuments
properties:
aiDocuments:
type: array
items:
$ref: '#/components/schemas/AiDocumentResponse'
AiDocumentCreateRequest:
type: object
required:
- file
- callback_url
properties:
file:
type: string
format: binary
description: PDF document only, up to 50 MB (52,428,800 bytes).
callback_url:
type: string
format: uri
ErrorEnvelope:
type: object
required:
- error
properties:
error:
type: object
required:
- status
- title
- detail
properties:
status:
type: integer
title:
type: string
detail:
anyOf:
- type: string
- type: object
additionalProperties:
type: array
items:
type: string
securitySchemes:
bearerAuth:
type: http
scheme: bearer
description: Medsender API key. Test keys start with sk_test_; live keys start with sk_live_.
externalDocs:
description: API version and access guidance
url: https://developer.medsender.com/docs/versioning