Request body
sourceUrl— HTTPS or signed URL to the presentation file. Required iffileis not provided.file— Optional uploaded presentation (.pptx,.key, exported slides) viamultipart/form-data.sourceName— Optional label stored with the extracted slides.options— Optional object. Supported keys:includeSpeakerNotes— Boolean; include slide notes (defaulttrue).includeImages— Boolean; capture image captions/alt text (defaulttrue).segmentLength— Target characters per chunk (default700).language— ISO language hint for OCR inside images.
webhookUrl— Optional HTTPS URL Horizon should call when the extraction finishes.
Sample request
Response
Returns202 Accepted with jobId, status, statusUrl, and optional etaSeconds. Completed jobs emit one chunk per slide including the slide index, title, and hierarchy.
Notes
- Export Keynote and Google Slides to
.pptxbefore submitting. - OCR runs automatically on embedded text when
includeImagesis true. - Slides are chunked individually; use downstream aggregation if you need combined sections.
- Poll
GET /jobs/{jobId}(identical tostatusUrl) to follow progress or pull the slide chunks later. - To upload the deck directly, send
multipart/form-datawith afilefield instead ofsourceUrl.
x402 flow
Presentation extraction is billed through Coinbase’s x402 protocol. When payment is needed, Horizon returns:accepts object to your facilitator, perform /verify and /settle, then replay the request with the Base64 payload in X-PAYMENT. Horizon resumes the job and includes X-PAYMENT-RESPONSE on success.Body
application/json
Provide either sourceUrl or file.
Extraction hints such as language, segmentLength, transcriptionModel, or sheet preferences depending on the endpoint.
Webhook to call when the extraction completes.
Upload the raw file instead of providing sourceUrl.
Response
Extraction job accepted
Example:
"job_01hx9q9"
Available options:
queued, processing, completed, failed Canonical link to GET /jobs/{jobId} for this job.
Example:
"extract/pdf"
Present when the job completes synchronously.
Estimated seconds until completion.