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

Documentation Index

Fetch the complete documentation index at: https://docs.faces.app/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
name
string
requis

Display name for the new slide.

Exemple:

"Hero Section"

afterSlideId
string

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

editing
boolean

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

Réponse

Slide created

slideId
string
requis

The new slide ID.

name
string
requis
versionId
string
requis

The new project version ID.