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

# List all videos

> Returns a paginated list of all videos for the authenticated user. Use playlistId query parameter to filter videos by playlist.



## OpenAPI

````yaml /openapi.json get /v1/videos
openapi: 3.0.3
info:
  description: >-
    The Tella Public API allows you to programmatically access your videos and
    playlists, including transcripts, chapters, and thumbnails.


    ## Authentication


    All requests require a Bearer token in the Authorization header:

    ```

    Authorization: Bearer tella_pk_xxxxx...

    ```


    API keys can be generated in your Tella workspace settings.


    ## Rate Limiting


    The API is rate-limited to 100 requests per minute per organization.

    Rate limit information is returned in response headers:

    - `X-RateLimit-Limit`: Maximum requests per window

    - `X-RateLimit-Remaining`: Remaining requests in current window

    - `X-RateLimit-Reset`: Unix timestamp when the window resets
  title: Tella Public API
  version: 1.0.0
servers:
  - description: Production
    url: https://api.tella.com
security: []
tags:
  - description: Video operations
    name: Videos
  - description: Sections of a video
    name: Clips
  - description: Playlist operations
    name: Playlists
  - description: Sidebar groups for organizing playlists
    name: Playlist Groups
  - description: Tags for categorizing and filtering videos
    name: Tags
  - description: Webhook endpoint management
    name: Webhooks
paths:
  /v1/videos:
    get:
      tags:
        - Videos
      summary: List all videos
      description: >-
        Returns a paginated list of all videos for the authenticated user. Use
        playlistId query parameter to filter videos by playlist.
      operationId: listVideos
      parameters:
        - description: Pagination cursor from previous response
          in: query
          name: cursor
          schema:
            description: Pagination cursor from previous response
            example: eyJpZCI6InZpZF94eXoifQ
            type: string
        - description: 'Items per page (default: 20, max: 100)'
          in: query
          name: limit
          schema:
            description: 'Items per page (default: 20, max: 100)'
            example: 20
            maximum: 100
            minimum: 1
            type: integer
        - description: Filter videos by playlist ID
          in: query
          name: playlistId
          schema:
            description: Filter videos by playlist ID
            example: pl_xyz789ghi012
            type: string
        - description: >-
            Filter videos by tag IDs, comma-separated. Multiple tags are
            combined with AND. Ignored when playlistId is set.
          in: query
          name: tagIds
          schema:
            description: >-
              Filter videos by tag IDs, comma-separated. Multiple tags are
              combined with AND. Ignored when playlistId is set.
            example: tag_abc123def456,tag_ghi789jkl012
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                additionalProperties: false
                properties:
                  pagination:
                    $ref: '#/components/schemas/Pagination'
                  videos:
                    description: List of videos
                    items:
                      $ref: '#/components/schemas/VideoListItem'
                    type: array
                required:
                  - videos
                  - pagination
                type: object
          description: OK
        '400':
          content:
            application/json:
              example:
                error:
                  code: bad_request
                  doc_url: https://tella.tv/docs/api-reference/errors#bad-request
                  message: The request was malformed or contained invalid parameters.
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: The request was malformed or contained invalid parameters.
        '401':
          content:
            application/json:
              example:
                error:
                  code: unauthorized
                  doc_url: https://tella.tv/docs/api-reference/errors#unauthorized
                  message: Authentication is required. Provide a valid API key.
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Authentication is required. Provide a valid API key.
        '403':
          content:
            application/json:
              example:
                error:
                  code: forbidden
                  doc_url: https://tella.tv/docs/api-reference/errors#forbidden
                  message: You don't have permission to access this resource.
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: You don't have permission to access this resource.
        '404':
          content:
            application/json:
              example:
                error:
                  code: not_found
                  doc_url: https://tella.tv/docs/api-reference/errors#not-found
                  message: The requested resource was not found.
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: The requested resource was not found.
        '422':
          content:
            application/json:
              example:
                error:
                  code: unprocessable_entity
                  doc_url: >-
                    https://tella.tv/docs/api-reference/errors#unprocessable-entity
                  message: The request was well-formed but contained semantic errors.
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: The request was well-formed but contained semantic errors.
        '429':
          content:
            application/json:
              example:
                error:
                  code: rate_limit_exceeded
                  doc_url: >-
                    https://tella.tv/docs/api-reference/errors#rate-limit-exceeded
                  message: You have exceeded the rate limit. Please slow down.
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: You have exceeded the rate limit. Please slow down.
        '500':
          content:
            application/json:
              example:
                error:
                  code: internal_server_error
                  doc_url: >-
                    https://tella.tv/docs/api-reference/errors#internal-server-error
                  message: An unexpected error occurred on the server.
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: An unexpected error occurred on the server.
      security:
        - BearerAuth: []
components:
  schemas:
    Pagination:
      additionalProperties: false
      description: >-
        Pagination metadata for list responses. Results are sorted by updatedAt
        descending.
      properties:
        hasMore:
          description: Whether there are more items to fetch
          example: true
          type: boolean
        nextCursor:
          description: >-
            Cursor for next page. Pass this value as the 'cursor' query
            parameter to fetch the next page. Null if no more pages. This is an
            opaque value - do not decode or modify it.
          example: eyJpZCI6IjEyMyJ9
          nullable: true
          type: string
      required:
        - nextCursor
        - hasMore
      type: object
    VideoListItem:
      additionalProperties: false
      description: Video item in a list response
      properties:
        aspectRatio:
          description: Video aspect ratio (e.g., '16:9', '9:16')
          example: '16:9'
          type: string
        createdAt:
          description: ISO 8601 datetime
          example: '2024-01-15T10:30:00.000Z'
          format: date-time
          type: string
        description:
          description: Video description
          example: Learn how to create and share your first video
          maxLength: 5000
          type: string
        dimensions:
          additionalProperties: false
          description: Canvas size in pixels
          example:
            height: 1080
            width: 1920
          properties:
            height:
              type: number
            width:
              type: number
          required:
            - width
            - height
          type: object
        id:
          description: Unique video identifier
          example: vid_abc123def456
          type: string
        links:
          allOf:
            - $ref: '#/components/schemas/VideoLinks'
          description: Related URLs for the video
        name:
          description: Video title
          example: Getting Started with Tella
          maxLength: 255
          minLength: 1
          type: string
        updatedAt:
          description: ISO 8601 datetime
          example: '2024-01-15T14:45:00.000Z'
          format: date-time
          type: string
        views:
          description: Total view count
          example: 1234
          maximum: 9007199254740991
          minimum: 0
          type: integer
      required:
        - id
        - name
        - description
        - views
        - aspectRatio
        - dimensions
        - createdAt
        - updatedAt
        - links
      type: object
    ErrorResponse:
      additionalProperties: false
      description: Standard error response format
      properties:
        error:
          additionalProperties: false
          description: Error details
          properties:
            code:
              description: Machine-readable error code
              enum:
                - bad_request
                - unauthorized
                - forbidden
                - not_found
                - unprocessable_entity
                - rate_limit_exceeded
                - internal_server_error
              example: not_found
              type: string
            doc_url:
              description: Link to documentation for this error
              example: https://tella.tv/docs/api-reference/errors#not-found
              format: uri
              type: string
            message:
              description: Human-readable error message
              example: The requested resource was not found.
              type: string
          required:
            - code
            - message
            - doc_url
          type: object
      required:
        - error
      type: object
    VideoLinks:
      additionalProperties: false
      description: URLs related to a video
      properties:
        embedPage:
          description: URL for embedding the video
          example: https://www.tella.tv/video/vid_abc123def456/embed
          format: uri
          type: string
        viewPage:
          description: URL to view the video on Tella
          example: https://www.tella.tv/video/vid_abc123def456/view
          format: uri
          type: string
      required:
        - viewPage
        - embedPage
      type: object
  securitySchemes:
    BearerAuth:
      description: API key obtained from your Tella account settings
      scheme: bearer
      type: http

````