Documentation
Overview
Document APIs and embeddable editors for your application.
Moda Transform provides six APIs: Parse, Extract, Index, Convert, Generate, and Embed. Use them to read document data, make an archive searchable, change document formats, create files from structured input, or add an editor to your app.
Choose an API
Parse
One document to its full data representation.
Extract
One or more documents to selected data.
Index
An archive of documents to a searchable collection you can query or ask questions of, with page citations.
Convert
PDF or HTML to editable PPTX and DOCX; raster documents to editable layers.
Generate
JSON or XML document descriptions to PDF, PPTX, or DOCX files.
Embed
React-compatible document editors and a 2D vector canvas inside your application.
Which operation do I need?
Use Parse to read one whole document, or Extract when you only need particular fields or content. Choose Index when the unit of work is a whole archive rather than a file, and you need to search it or ask questions across it.
Choose Convert when you already have a file and need another representation. Choose Generate when your application supplies the document’s content and structure. Use Embed when users need to edit inside your application.
Using the examples
The request and response examples on these pages define a proposed Transform API contract. The endpoint paths and field names are drafts for the beta API.
Examples use https://api.moda.app with a server-side
MODA_API_KEY. A file_ref identifies an
uploaded file; replace sample references such as
file_report_pdf with your own. URLs on
files.example.com stand in for returned download URLs.
Document job lifecycle
Parse, Extract, Convert, Generate, and indexing a collection share
an asynchronous job model. A POST returns
202 Accepted with a job ID and polling URL:
{
"id": "job_convert_example",
"status": "queued",
"poll_url": "/v1/documents/jobs/job_convert_example",
"retry_after_ms": 1000
}
Poll the job with the same API key. Wait at least
retry_after_ms between requests while the job is queued
or running.
curl https://api.moda.app/v1/documents/jobs/job_convert_example \
-H "Authorization: Bearer $MODA_API_KEY"
-
queuedorrunning: the job is still processing. -
completed: read the operation-specificresult. -
failed: inspecterror; no successful result is returned.
Check result.warnings before using a completed result.
A job may finish while reporting content that could not be processed
as expected.
{
"id": "job_convert_example",
"status": "failed",
"error": {
"code": "unsupported_conversion",
"message": "This input and output format pair is not supported."
}
}
Two operations respond directly instead of starting a job. Index search and ask return their results in the response, and Embed returns a session. For Embed, your backend creates the session and returns the editor URL to your application.
Beta access
These pages describe Transform’s core capabilities. Contact us for access, integration details, and availability for your document formats.