> ## Documentation Index
> Fetch the complete documentation index at: https://help.statisfy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Create a clip

> Cuts `start_time_seconds` to `end_time_seconds` (1 to 900 seconds) out of an activity's recording. Answers 201 with the clip pending, before the cut is made: get the clip until `status` is completed or failed. The activity must have a video recording (else a 422); an unknown activity is a 404. A 503 means the cut could not be queued and nothing was kept: retry. A create costs 10 rate-limit units. Send an Idempotency-Key so a retry cannot make a second clip.



## OpenAPI

````yaml /api/statisfy-api.openapi.json post /v1/clips
openapi: 3.1.0
info:
  description: >-
    The agent-first Statisfy API. Authenticate with an API key (`Authorization:
    Bearer stfy_live_…`), then call `GET /v1/meta/capabilities` to discover
    every operation and its schemas.
  title: Statisfy API
  version: 1.0.0
servers:
  - url: https://api.statisfy.com
    description: Production
security: []
paths:
  /v1/clips:
    post:
      tags:
        - clips
      summary: Create a clip
      description: >-
        Cuts `start_time_seconds` to `end_time_seconds` (1 to 900 seconds) out
        of an activity's recording. Answers 201 with the clip pending, before
        the cut is made: get the clip until `status` is completed or failed. The
        activity must have a video recording (else a 422); an unknown activity
        is a 404. A 503 means the cut could not be queued and nothing was kept:
        retry. A create costs 10 rate-limit units. Send an Idempotency-Key so a
        retry cannot make a second clip.
      operationId: clips_create
      requestBody:
        content:
          application/json:
            schema:
              additionalProperties: false
              properties:
                activity_id:
                  description: The activity whose recording to cut
                  maxLength: 255
                  minLength: 1
                  title: Activity Id
                  type: string
                description:
                  anyOf:
                    - maxLength: 5000
                      type: string
                    - type: 'null'
                  default: null
                  description: Up to 5,000 characters
                  title: Description
                end_time_seconds:
                  description: >-
                    Where the clip ends, in seconds: 1 to 900 seconds after the
                    start
                  exclusiveMinimum: 0
                  title: End Time Seconds
                  type: number
                start_time_seconds:
                  description: Where the clip starts in the recording, in seconds
                  minimum: 0
                  title: Start Time Seconds
                  type: number
                tags:
                  anyOf:
                    - items:
                        maxLength: 50
                        minLength: 1
                        type: string
                      maxItems: 20
                      type: array
                    - type: 'null'
                  default: null
                  description: >-
                    Up to 20 tags of 1 to 50 characters each; repeats are
                    removed
                  title: Tags
                title:
                  description: 1 to 500 characters; spaces at either end are removed
                  maxLength: 500
                  minLength: 1
                  title: Title
                  type: string
              required:
                - activity_id
                - title
                - start_time_seconds
                - end_time_seconds
              type: object
        required: true
      responses:
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Clip'
          description: Successful Response
      security:
        - HTTPBearer: []
components:
  schemas:
    Clip:
      properties:
        activity_id:
          description: The activity whose recording the clip cuts
          title: Activity Id
          type: string
        created_at:
          title: Created At
          type: string
        created_by:
          description: >-
            The user_id of the member who made it (as GET
            /v1/objects/user/records gives it), or apikey:<key_id> for a key
          title: Created By
          type: string
        description:
          anyOf:
            - type: string
            - type: 'null'
          title: Description
        end_time_seconds:
          title: End Time Seconds
          type: number
        id:
          title: Id
          type: string
        links_expire_at:
          anyOf:
            - type: string
            - type: 'null'
          description: When video_url and thumbnail_url stop working
          title: Links Expire At
        share_expires_at:
          anyOf:
            - type: string
            - type: 'null'
          description: When share_url closes; null when it is not shared
          title: Share Expires At
        share_url:
          anyOf:
            - type: string
            - type: 'null'
          description: >-
            The clip's public page in the app, open to anyone until
            share_expires_at
          title: Share Url
        start_time_seconds:
          title: Start Time Seconds
          type: number
        status:
          description: >-
            pending (waiting to be cut), processing (being cut), completed (the
            video is ready) or failed
          enum:
            - pending
            - processing
            - completed
            - failed
          title: Status
          type: string
        tags:
          items:
            type: string
          title: Tags
          type: array
        thumbnail_url:
          anyOf:
            - type: string
            - type: 'null'
          description: >-
            A signed link to the clip's JPEG thumbnail, as video_url; null when
            there is none
          title: Thumbnail Url
        title:
          title: Title
          type: string
        transcript_snippet:
          anyOf:
            - type: string
            - type: 'null'
          description: >-
            The transcript lines in the clip's range, one `Speaker: text` line
            each
          title: Transcript Snippet
        updated_at:
          title: Updated At
          type: string
        video_url:
          anyOf:
            - type: string
            - type: 'null'
          description: >-
            A signed link that downloads the clip's MP4 with a plain GET until
            links_expire_at; anyone holding it can. Null until the clip is
            completed
          title: Video Url
      required:
        - id
        - activity_id
        - title
        - start_time_seconds
        - end_time_seconds
        - status
        - created_by
        - created_at
        - updated_at
      title: Clip
      type: object
  securitySchemes:
    HTTPBearer:
      scheme: bearer
      type: http
      description: >-
        An API key, sent as `Authorization: Bearer stfy_live_…`. See
        [Authentication](/rest-api/authentication) for how to get one and which
        scopes it needs.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.