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, PDF, plain text and markdown 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.

Headers


Content-Type: string
multipart/form-data
X-API-Key: string
The API key to use for the request.
<YOUR_API_KEY>

Body Parameters


file: file
The document you wish to upload.
Supported file types: .pptx, .ppt, .docx, .doc, .xlsx, .pdf, .txt, .md

Code Examples


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"

Response


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