POST
/
v1
/
documents
/
pptx
curl --request POST \
  --url https://api.flashdocs.ai/v1/documents/pptx \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form document_type=template \
  --form 'name=Presentation Name' \
  --form 'description=Add presentation description here...' \
  --form reset_text_boxes=false
{
  "success": true,
  "document_id": "abc-defghi-1234-5"
}

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Body

multipart/form-data
file
file
required

The PowerPoint (.ppt or .pptx) file to upload.

document_type
enum<string>
default:template

Specify the type of document to create. Possible values: "template", "library".

Available options:
template,
library
name
string
default:Presentation Name

The name to assign to the uploaded presentation.

description
string
default:Add presentation description here...

A brief description of the presentation.

reset_text_boxes
boolean
default:false
            Determines how text boxes are handled during upload.
            - **true**: Converts all text boxes into placeholders.
            - **false**: Only identifies and captures text enclosed in brackets (`[`, `]`) as placeholders.
        

Response

200
application/json
Document uploaded successfully

The response is of type any.