> ## 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.

# Capturer une capture d'écran

> Rendez une diapositive en mode headless et obtenez une URL publique de la capture.



## OpenAPI

````yaml POST /projects/{slug}/slides/{slideId}/screenshot
openapi: 3.1.0
info:
  title: Faces API
  version: '1.0'
  description: >-
    Faces API for creating and managing presentations. Generate presentations
    from prompts, or read and write individual slides. Each slide is a React
    component (face.tsx) with content blocks (face.content.json) and editor
    controls (face.controls.json).
servers:
  - url: https://faces.app/api/v1
    description: API v1
security:
  - bearerAuth: []
paths:
  /projects/{slug}/slides/{slideId}/screenshot:
    post:
      tags:
        - Slides
      summary: Capture slide screenshot
      description: >-
        Take a screenshot of a slide as it currently renders. The slide is
        rendered headlessly in the cloud against the latest saved version of the
        project, and the JPEG is uploaded to a public CDN. Returns the
        screenshot URL. Use this to visually verify a slide after editing it.
        Pass isMobile=true to capture the mobile layout.
      operationId: captureSlideScreenshot
      parameters:
        - schema:
            type: string
          required: true
          name: slug
          in: path
        - schema:
            type: string
          required: true
          name: slideId
          in: path
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                isMobile:
                  type: boolean
                  description: >-
                    Capture the mobile layout instead of desktop. Defaults to
                    false.
      responses:
        '200':
          description: Screenshot captured
          content:
            application/json:
              schema:
                type: object
                properties:
                  slideId:
                    type: string
                  screenshotUrl:
                    type: string
                    format: uri
                    description: Public CDN URL of the captured JPEG.
                required:
                  - slideId
                  - screenshotUrl
        '404':
          description: Project or slide not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '503':
          description: Screenshots are not configured on the server
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - bearerAuth: []
components:
  schemas:
    Error:
      type: object
      properties:
        error:
          type: string
        hint:
          type: string
      required:
        - error
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: API key with "faces_" prefix. Create one at Settings > Developers.

````