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

# Score a transcript and return the moments worth cutting — chosen on meaning, not clock position.



## OpenAPI

````yaml /openapi.json post /v1/video/moments
openapi: 3.1.0
info:
  title: Sigmora API
  version: 1.0.0
  description: >-
    The priced, versioned public API. Every call authenticates with a workspace
    API key (`Authorization: Bearer sk_live_…`), names the project it files its
    output under, and reports what it cost. `GET /v1/capabilities` answers what
    this deployment can serve right now and at what price; anything it reports
    as unavailable answers 503 `capability_unavailable` rather than 404.
servers:
  - url: https://api.sigmora.org
security:
  - bearerAuth: []
paths:
  /v1/video/moments:
    post:
      summary: >-
        Score a transcript and return the moments worth cutting — chosen on
        meaning, not clock position.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $schema: https://json-schema.org/draft/2020-12/schema
              type: object
              properties:
                transcript:
                  description: >-
                    The segments to score. Send exactly one of `transcript` or
                    `assetId`.
                  minItems: 1
                  maxItems: 20000
                  type: array
                  items:
                    type: object
                    properties:
                      id:
                        type: string
                        minLength: 1
                        maxLength: 120
                      start:
                        type: number
                        minimum: 0
                      end:
                        type: number
                        minimum: 0
                      text:
                        type: string
                        minLength: 1
                        maxLength: 10000
                    required:
                      - id
                      - start
                      - end
                      - text
                assetId:
                  description: >-
                    Score a transcript this workspace has already had
                    transcribed instead of sending one. Send exactly one of
                    `transcript` or `assetId`. An asset in another workspace is
                    reported as not found.
                  type: string
                  minLength: 1
                  maxLength: 200
                channel:
                  type: string
                  minLength: 1
                  maxLength: 120
                niche:
                  type: string
                  minLength: 1
                  maxLength: 200
                thresholds:
                  type: object
                  properties:
                    standalone:
                      type: number
                      minimum: 0
                      maximum: 1
                    hook:
                      type: number
                      minimum: 0
                      maximum: 1
                    payoff:
                      type: number
                      minimum: 0
                      maximum: 1
                projectId:
                  type: string
                  minLength: 1
                  maxLength: 200
                  description: >-
                    The project to file this work under. Required — create one
                    with POST /v1/projects. A project this workspace does not
                    own answers not_found; the work is never silently filed
                    somewhere else.
              required:
                - projectId
      responses:
        '200':
          description: Success.
          content:
            application/json:
              schema:
                $schema: https://json-schema.org/draft/2020-12/schema
                type: object
                properties:
                  success:
                    type: boolean
                    const: true
                required:
                  - success
                additionalProperties: {}
        '400':
          description: 'Failure. `code` is one of: invalid_request.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: 'Failure. `code` is one of: unauthorized.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '402':
          description: 'Failure. `code` is one of: insufficient_credits, budget_capped.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: 'Failure. `code` is one of: forbidden, origin_not_allowed.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: 'Failure. `code` is one of: not_found.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: 'Failure. `code` is one of: conflict.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '413':
          description: 'Failure. `code` is one of: payload_too_large.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: 'Failure. `code` is one of: rate_limited.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          description: 'Failure. `code` is one of: internal_error.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '502':
          description: 'Failure. `code` is one of: upstream_error.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '503':
          description: >-
            Failure. `code` is one of: capability_unavailable,
            upstream_unavailable.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    Error:
      type: object
      required:
        - success
        - error
        - code
      properties:
        success:
          const: false
        error:
          type: string
          description: >-
            Human-readable. Copy may change between releases — do not match on
            it.
        code:
          type: string
          enum:
            - invalid_request
            - unauthorized
            - forbidden
            - origin_not_allowed
            - not_found
            - conflict
            - payload_too_large
            - insufficient_credits
            - budget_capped
            - rate_limited
            - capability_unavailable
            - upstream_unavailable
            - upstream_error
            - internal_error
          description: Stable machine-readable cause. Branch on this.
        details:
          description: Optional structured context, e.g. the credits shortfall.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: A workspace API key.

````