Saltar al contenido 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.

Autorizaciones

Authorization
string
header
requerido

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

Parámetros de ruta

slug
string
requerido

Cuerpo

application/json
slides
object[]
requerido

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.

Respuesta

Slides created

slides
object[]
requerido

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

versionId
string
requerido

The new project version ID.