# Mathpix integration

> OCR for math and STEM content: images, handwriting strokes and PDFs to LaTeX, Markdown, DOCX and more, plus the async Files API, conversions and usage queries.

- Authentication: apiKey

## Tools (37)

- **Convert Mathpix Markdown**: Convert an MMD document into DOCX, LaTeX, HTML, PDF, PPTX and other formats (POST /v3/converter).
- **Create App Token**: Mint a short-lived client-side app token (and optional strokes session) from the app key (POST /v3/app-tokens).
- **Delete Conversion**: Permanently delete a conversion's output files (DELETE /v3/converter/{conversion_id}).
- **Delete PDF**: Permanently delete a processed document's input and outputs (DELETE /v3/pdf/{pdf_id}).
- **Download Conversion Result**: Download a converted output file once its format status is completed (GET /v3/converter/{conversion_id}.{ext}).
- **Download PDF Result**: Download a processed document in a given format, e.g. mmd, docx, lines.json (GET /v3/pdf/{pdf_id}.{ext}).
- **Files API: Create Data Source**: Register an S3, GCS or Azure bucket as a data source for source_uri/destination_uri (POST /files/v1/data-sources).
- **Files API: Delete Data Source**: Remove a registered data source (DELETE /files/v1/data-sources/{id}).
- **Files API: Delete File**: Permanently delete a Files API document and its Mathpix-stored results (DELETE /files/v1/{file_id}).
- **Files API: Download File Result**: Download a converted Files API result in a requested format (GET /files/v1/{file_id}.{ext}).
- **Files API: Finalize Job**: Close a job to new submissions (POST /files/v1/jobs/{job_id}/finalize).
- **Files API: Get File Status**: Poll a Files API document's processing status and per-format conversion status (GET /files/v1/{file_id}).
- **Files API: Get Job**: Job status and counters (GET /files/v1/jobs/{job_id}).
- **Files API: Get Job File by Custom ID**: Fetch one file's status by your job_id and custom_id (GET /files/v1/jobs/{job_id}/files/{custom_id}).
- **Files API: Get Onboarding Identities**: Get the Mathpix AWS/Azure/GCP identities and your per-group external_id to grant bucket access (GET /files/v1/onboarding/identities).
- **Files API: Get Webhook Config**: Read the webhook signing secret, creating it on first call (GET /files/v1/webhook-config).
- **Files API: List Data Sources**: List the data sources registered for your group (GET /files/v1/data-sources).
- **Files API: List Job Files**: Paginated per-file listing of a job with optional status filter (GET /files/v1/jobs/{job_id}/files).
- **Files API: List Jobs**: Paginated list of Files API jobs, newest first (GET /files/v1/jobs).
- **Files API: Rotate Webhook Secret**: Replace the webhook signing secret, with an optional 24-hour grace period (POST /files/v1/webhook-config/secret).
- **Files API: Send Test Webhook**: Send one signed sample notification to a URL and report the outcome (POST /files/v1/webhook-config/test).
- **Files API: Submit Batch Job**: Submit up to 200,000 documents as one async job (POST /files/v1/jobs).
- **Files API: Submit Document by URI**: Submit one document by remote URI for async processing in the Files API (POST /files/v1/uri).
- **Files API: Test Data Source**: Probe read (and write) access to a registered bucket (POST /files/v1/data-sources/{id}/test).
- **Files API: Upload File**: Upload one document directly as multipart form data for async processing in the Files API (POST /files/v1).
- **Get Conversion Status**: Check per-format conversion status for a converter job or a PDF (GET /v3/converter/{conversion_id}).
- **Get Image Batch Results**: Retrieve the results of an image batch submitted with POST /v3/batch.
- **Get PDF Status**: Check the processing status of a document submitted with POST /v3/pdf.
- **List OCR Results**: Search stored results of past v3/text, v3/latex, v3/strokes and v3/pdf requests (GET /v3/ocr-results).
- **List PDF Results**: List past v3/pdf submissions with their status and page counts (GET /v3/pdf-results).
- **Process Equation Image (LaTeX)**: Recognize one equation image into LaTeX, MathML, AsciiMath or Wolfram formats (POST /v3/latex, legacy).
- **Process Image (OCR to Markdown)**: OCR one image of math, text, tables or chemistry into Mathpix Markdown, HTML or data formats (POST /v3/text).
- **Query OCR Usage**: Aggregated API usage counts over time, grouped by usage type, request args or app id (GET /v3/ocr-usage).
- **Recognize Handwriting Strokes**: Recognize handwritten math or text from digital-ink stroke coordinates (POST /v3/strokes).
- **Stream PDF Pages**: Stream per-page OCR results of a PDF as server-sent events (GET /v3/pdf/{pdf_id}/stream).
- **Submit Image Batch**: Submit many image URLs for asynchronous OCR and get a batch_id to poll (POST /v3/batch).
- **Submit PDF or Document**: Submit a PDF, DOCX, PPTX or ebook by URL or upload for async OCR and conversion (POST /v3/pdf).

Connect Mathpix in General Input: https://www.generalinput.com/apps/mathpix