Passer au contenu principal
POST
/
projects
/
{slug}
/
slides
Create one or more slides
curl --request POST \
  --url https://faces.app/api/v1/projects/{slug}/slides \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "slides": [
    {
      "name": "Hero Section"
    }
  ],
  "afterSlideId": "<string>",
  "editing": true
}
'
{
  "slides": [
    {
      "slideId": "<string>",
      "name": "<string>"
    }
  ],
  "versionId": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://faces.app/docs/llms.txt

Use this file to discover all available pages before exploring further.

Autorisations

Authorization
string
header
requis

API key with "faces_" prefix. Create one at Settings > Developers.

Paramètres de chemin

slug
string
requis

Corps

application/json
slides
object[]
requis

Ordered list of slides to create. The first entry is inserted immediately after afterSlideId (or at the end if omitted); each subsequent entry is inserted after the previous one.

Minimum array length: 1
afterSlideId
string

Insert the new slides immediately after this slide ID. Omit to append at the end.

editing
boolean

If true, immediately shows the loading gradient on every new slide. Call finishSlideEditing on each when done.

Réponse

Slides created

slides
object[]
requis

The newly created slides, in the same order they were requested.

versionId
string
requis

The new project version ID.