Skip to main content
A
Docs

Present API reference

Endpoints, request examples and errors for the Present API: generation, slide edits, templates, comments and export.

Authentication

Send a token as Authorization: Bearer <token>. Read API conventions.

Endpoints

MethodPathPurposeRole
POST/api/v1/presentations/generateMake a presentation from a promptAny
GET/api/v1/presentationsList presentationsAny
GET/api/v1/presentations/statsPresentation statisticsAny
GET/api/v1/presentations/{pres_id}Get a presentationAny
DELETE/api/v1/presentations/{pres_id}Delete a presentationadmin
POST/api/v1/presentations/batch-deleteDelete more than one presentationadmin
POST/api/v1/presentations/{pres_id}/duplicateCopy a presentationAny
POST/api/v1/presentations/{pres_id}/cloneCopy a presentationAny
PUT/api/v1/presentations/{pres_id}/reorderChange the order of the slidesAny
POST/api/v1/presentations/{pres_id}/slides/{slide_idx}/editChange one slide with an instructionAny
POST/api/v1/presentations/{pres_id}/export/pptxExport to PPTXAny
POST/api/v1/presentations/{pres_id}/export/pdfExport to PDFAny
POST/api/v1/presentations/{pres_id}/commentsAdd a commentAny
GET/api/v1/presentations/{pres_id}/commentsList commentsAny
GET/api/v1/templatesList templatesAny
POST/api/v1/templates/uploadUpload a PPTX templateadmin
POST/api/v1/templatesSave a presentation as a templateadmin
POST/api/v1/templates/{template_id}/useStart a presentation from a templateAny
GET/api/v1/healthHealth checkNone

Make a deck

curl https://present.example.gov/api/v1/presentations/generate \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"prompt": "Quarterly update on digital service adoption for the executive committee", "slide_count": 10, "language": "ar"}'
FieldTypeRequiredMeaning
promptstringYes1 to 5,000 characters
template_idstringNoThe template to use
slide_countintegerNo1 to 30. The default is 8.
languagestringNoen or ar. The default is en.

The call returns when the deck is ready. The response has the status ready.

Export

POST /api/v1/presentations/{pres_id}/export/pptx and POST /api/v1/presentations/{pres_id}/export/pdf return the file.

Errors

StatusCause
400The template file is not PPTX
403Your role cannot upload templates or delete decks
404The deck or template does not exist
502The model did not return a usable result. Try again later.
503Slide generation is not set up