Skip to main content
POST
/
api
/
v1
/
ppt
/
presentation
/
derive
Derive Presentation From Existing One
curl --request POST \
  --url https://api.presenton.ai/api/v1/ppt/presentation/derive \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "presentation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "slides": [
    {
      "index": 123,
      "content": {}
    }
  ]
}
'
import requests

url = "https://api.presenton.ai/api/v1/ppt/presentation/derive"

payload = {
"presentation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"slides": [
{
"index": 123,
"content": {}
}
]
}
headers = {
"Authorization": "<authorization>",
"Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
const options = {
method: 'POST',
headers: {Authorization: '<authorization>', 'Content-Type': 'application/json'},
body: JSON.stringify({
presentation_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
slides: [{index: 123, content: {}}]
})
};

fetch('https://api.presenton.ai/api/v1/ppt/presentation/derive', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
{
  "presentation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "path": "<string>",
  "edit_path": "<string>",
  "credits_consumed": 123
}
{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}

Headers

Authorization
string
required

The bearer token to authenticate with

Body

application/json
presentation_id
string<uuid>
required

The id of the presentation to use

slides
SlideContentUpdate · object[]
required

The data to update the slides with

export_as
enum<string>
default:pptx

The format to export the presentation as

Available options:
pptx,
pdf,
png

Response

Successful Response

presentation_id
string<uuid>
required
path
string
required
edit_path
string
required
credits_consumed
number
required