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

# Listar vídeos

> Lista os trabalhos de geração assíncrona de vídeo da equipe autenticada.

Requer acesso à prévia no espaço de trabalho. Consulte [Tarefas de vídeo e processamento em lote](../../guides/async-video-and-batch.mdx) para configuração, webhooks e tratamento de resultados.


## OpenAPI

````yaml pt-BR/openapi/v1/openapi.localized.yaml GET /videos
openapi: 3.0.3
info:
  title: Phaseo Gateway API
  description: >-
    Uma API de gateway para acessar diversos modelos de IA por meio de endpoints
    compatíveis com OpenAI.
  version: 1.0.0
  contact:
    name: Phaseo
    url: https://phaseo.app
    email: danielbutler500@gmail.com
servers:
  - url: https://api.phaseo.app/v1
    description: Roteamento global
security:
  - BearerAuth: []
tags:
  - name: Gateway
    description: Core Phaseo Gateway operations.
paths:
  /videos:
    get:
      tags:
        - Gateway
      summary: Listar vídeos
      description: Lista os trabalhos de geração assíncrona de vídeo da equipe autenticada.
      operationId: listVideos
      parameters:
        - name: limit
          in: query
          description: >-
            Número máximo de trabalhos de vídeo a retornar. O padrão é 50 e o
            limite é 200.
          schema:
            type: integer
            minimum: 1
            maximum: 200
        - name: status
          in: query
          description: >-
            Filtro de status do ciclo de vida do vídeo. Repita o parâmetro ou
            forneça valores separados por vírgulas.
          style: form
          explode: true
          schema:
            type: array
            items:
              type: string
        - name: offset
          in: query
          description: Número de trabalhos de vídeo a ignorar antes de retornar a página.
          schema:
            type: integer
            minimum: 0
            maximum: 10000
        - name: after
          in: query
          description: >-
            Retorna os trabalhos de vídeo após este ID de vídeo na ordem
            selecionada.
          schema:
            type: string
        - name: order
          in: query
          description: Ordena os trabalhos de vídeo por data de criação.
          schema:
            type: string
            enum:
              - asc
              - desc
      responses:
        '200':
          description: Resposta da lista de vídeos
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/VideoListResponse'
components:
  schemas:
    VideoListResponse:
      type: object
      properties:
        object:
          type: string
          example: list
        data:
          type: array
          items:
            $ref: '#/components/schemas/VideoGenerationResponse'
        first_id:
          type: string
          nullable: true
        last_id:
          type: string
          nullable: true
        has_more:
          type: boolean
    VideoGenerationResponse:
      type: object
      properties:
        id:
          type: string
        polling_url:
          type: string
        websocket_url:
          type: string
          format: uri
          description: >-
            URL de WebSocket para assinar atualizações normalizadas do ciclo de
            vida de trabalhos assíncronos.
        model:
          type: string
        request_id:
          type: string
        session_id:
          type: string
        status:
          type: string
          enum:
            - queued
            - processing
            - completed
            - failed
            - cancelled
            - expired
        lifecycle_status:
          type: string
          enum:
            - pending
            - running
            - completed
            - failed
            - cancelled
            - expired
          description: >-
            Status normalizado do ciclo de vida assíncrono para consumidores de
            polling, WebSocket e webhooks.
        cancel_url:
          type: string
          format: uri
          nullable: true
          description: Reservado para compatibilidade; atualmente sempre null.
        output_access:
          type: string
          enum:
            - bytes
            - signed_url
            - both
        generation_id:
          type: string
          nullable: true
        native_video_id:
          type: string
          nullable: true
          description: >-
            ID nativo de vídeo/trabalho do provedor quando difere do ID do
            gateway.
        created_at:
          oneOf:
            - type: integer
            - type: string
        started_at:
          nullable: true
          oneOf:
            - type: integer
            - type: string
        completed_at:
          nullable: true
          oneOf:
            - type: integer
            - type: string
        object:
          type: string
          example: video
        poll_after_seconds:
          type: integer
          example: 20
        provider:
          type: string
        seconds:
          type: number
        size:
          type: string
        audio:
          type: boolean
        content_url:
          type: string
          description: Presente quando output_access inclui bytes (endpoint autenticado).
        download_url:
          type: string
          nullable: true
          description: >-
            URL assinada de primeira parte para download direto quando o status
            é completed.
        expires_at:
          type: integer
          nullable: true
          description: Timestamp Unix (segundos) de expiração da download_url assinada.
        progress:
          type: integer
          nullable: true
        progress_source:
          type: string
        asset:
          type: object
          nullable: true
          properties:
            id:
              type: string
            mime_type:
              type: string
            bytes:
              type: integer
            sha256:
              type: string
            width:
              type: integer
            height:
              type: integer
            duration_seconds:
              type: number
        outputs:
          type: array
          items:
            $ref: '#/components/schemas/VideoOutput'
        billing:
          $ref: '#/components/schemas/VideoBillingSummary'
        webhook:
          $ref: '#/components/schemas/AsyncWebhookPublicState'
        next_webhook_retry_at:
          type: string
          nullable: true
          description: >-
            Timestamp ISO da próxima tentativa agendada do webhook do usuário,
            quando enfileirada.
        last_webhook_progress:
          type: number
          nullable: true
          description: >-
            Última faixa aproximada de progresso enviada aos consumidores de
            webhooks.
        last_webhook_progress_at:
          type: string
          nullable: true
          description: >-
            Timestamp ISO do envio da faixa de progresso mais recente do
            webhook.
        last_webhook_dispatched_at:
          type: string
          nullable: true
          description: Timestamp ISO da tentativa de envio do webhook mais recente.
        usage:
          type: object
          properties:
            cost:
              type: number
            is_byok:
              type: boolean
          additionalProperties: true
        error:
          nullable: true
    VideoOutput:
      type: object
      properties:
        index:
          type: integer
        mime_type:
          type: string
        bytes_available:
          type: boolean
        content_url:
          type: string
          description: Presente quando output_access inclui bytes.
        download_url:
          type: string
          description: URL assinada de primeira parte para esta saída.
        expires_at:
          type: integer
          description: Timestamp Unix (segundos) de expiração desta URL de saída.
    VideoBillingSummary:
      type: object
      properties:
        currency:
          type: string
        estimated_provider_cost:
          type: string
          nullable: true
        estimated_user_cost:
          type: string
          nullable: true
        settled_provider_cost:
          type: string
          nullable: true
        settled_user_cost:
          type: string
          nullable: true
        state:
          type: string
          enum:
            - pending
            - estimated
            - settled
            - void
        billable:
          type: boolean
        total_nanos:
          type: integer
          nullable: true
        estimated_nanos:
          type: integer
          nullable: true
        reserved_nanos:
          type: integer
          nullable: true
        reservation_id:
          type: string
          nullable: true
        reservation_status:
          type: string
          nullable: true
        charge_reason:
          type: string
          nullable: true
        charged:
          type: boolean
          nullable: true
        billed_at:
          type: string
      additionalProperties: true
    AsyncWebhookPublicState:
      type: object
      description: >-
        Configuração sanitizada do webhook assíncrono e estado de entrega.
        Segredos nunca são retornados; `has_secret` indica se entregas assinadas
        estão habilitadas. Entregas assinadas incluem os cabeçalhos
        x-phaseo-signature, x-phaseo-timestamp, x-phaseo-event-id,
        x-phaseo-event-type, x-phaseo-delivery-key, x-phaseo-attempt e
        x-phaseo-max-attempts.
      properties:
        url:
          type: string
          format: uri
          nullable: true
        events:
          type: array
          items:
            type: string
        has_secret:
          type: boolean
        delivery:
          $ref: '#/components/schemas/AsyncWebhookDeliverySummary'
        attempts:
          type: array
          items:
            $ref: '#/components/schemas/AsyncWebhookDeliveryAttempt'
    AsyncWebhookDeliverySummary:
      type: object
      description: >-
        Resumo público de entrega de webhooks assíncronos gerenciados pelo
        gateway. Use-o para distinguir o estado de execução do trabalho da saúde
        da entrega do webhook.
      properties:
        total_attempts:
          type: integer
          description: Total de tentativas de entrega registradas para este trabalho.
        delivered_events:
          type: integer
          description: Número de chaves de entrega que alcançaram o estado entregue.
        delivered_event_types:
          type: array
          description: Chaves de entrega entregues pelo menos uma vez.
          items:
            type: string
          example:
            - video.completed
        pending_retries:
          type: integer
          description: >-
            Número de chaves de entrega com uma nova tentativa agendada
            atualmente.
        next_retry_at:
          type: string
          nullable: true
          description: Timestamp ISO da próxima tentativa agendada, quando houver.
        last_attempt_at:
          type: string
          nullable: true
          description: Timestamp ISO da tentativa de entrega mais recente.
        last_attempt_status:
          type: string
          nullable: true
          enum:
            - delivered
            - scheduled_retry
            - failed_permanently
          description: Resultado da tentativa de entrega mais recente.
        last_response_status:
          type: integer
          nullable: true
          description: Status HTTP retornado pelo destino do webhook, quando disponível.
        last_delivered_at:
          type: string
          nullable: true
          description: Timestamp ISO da entrega bem-sucedida mais recente.
        last_failure_at:
          type: string
          nullable: true
          description: Timestamp ISO da tentativa com falha ou em repetição mais recente.
        last_error_message:
          type: string
          nullable: true
          description: Mensagem de erro de entrega mais recente, quando disponível.
    AsyncWebhookDeliveryAttempt:
      type: object
      description: >-
        Tentativa recente de entrega de webhook assíncrono gerenciado pelo
        gateway.
      properties:
        id:
          type: string
          description: Identificador estável da tentativa para auditoria e depuração.
        delivery_key:
          type: string
          description: Chave de idempotência para a entrega deste evento.
          example: video.completed
        event_type:
          type: string
          description: Tipo de evento entregue ao destino do webhook.
          example: video.completed
        status:
          type: string
          enum:
            - delivered
            - scheduled_retry
            - failed_permanently
        attempt_number:
          type: integer
          description: Número da tentativa para esta chave de entrega, começando em um.
        max_attempts:
          type: integer
          description: >-
            Máximo de tentativas antes de marcar a entrega como falha
            permanente.
        tried_at:
          type: string
          description: Timestamp ISO desta tentativa.
        delivered_at:
          type: string
          nullable: true
          description: Timestamp ISO da entrega bem-sucedida desta tentativa.
        next_retry_at:
          type: string
          nullable: true
          description: Timestamp ISO da próxima tentativa após esta, quando agendada.
        response_status:
          type: integer
          nullable: true
          description: Status HTTP retornado pelo destino do webhook, quando disponível.
        error_message:
          type: string
          nullable: true
          description: Mensagem de erro de entrega, quando disponível.
        response_body_preview:
          type: string
          nullable: true
          description: >-
            Prévia do corpo da resposta do destino do webhook com dados
            sensíveis ocultos.
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: Autenticação com token Bearer

````

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