Skip to content

Upload a Document

POST https://api.slidespeak.co/api/v1/document/upload

Uploads a document file to SlideSpeak for later use in presentation generation. Supported file types include PowerPoint, Word, Excel, and PDF formats. Once uploaded, the document can be referenced in other API endpoints to generate presentations. This endpoint is typically the first step in workflows that require extracting content or converting documents into presentations.


Content-Type: string

multipart/form-data

X-API-Key: string

The API key to use for the request.


<YOUR_API_KEY>


file: file

The document you wish to upload.


Supported file types: .pptx, .ppt, .docx, .doc, .xlsx, .pdf


Terminal window
curl -X POST "https://api.slidespeak.co/api/v1/document/upload" -H "x-api-key: YOUR_API_KEY" -F "file=@path/to/your-document"

{
"task_id": "353509d6-8efe-401c-a8a9-53ca64b520a3"
}

{
"task_id": "353509d6-8efe-401c-a8a9-53ca64b520a3",
"task_status": "SUCCESS",
"task_result": "e1f3ea4d-39f0-45e4-9cce-044ec63f8a5b",
"task_info": "e1f3ea4d-39f0-45e4-9cce-044ec63f8a5b"
}