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

# 動画を一覧表示

> 認証されたチームの非同期動画生成ジョブを一覧表示します。

ワークスペースのプレビュー機能へのアクセスが必要です。設定、Webhook、結果の処理については、[動画とバッチのジョブ](../../guides/async-video-and-batch.mdx)を参照してください。


## OpenAPI

````yaml ja/openapi/v1/openapi.localized.yaml GET /videos
openapi: 3.0.3
info:
  title: Phaseo Gateway API
  description: OpenAI互換のエンドポイントを通じて、さまざまなAIモデルにアクセスするためのゲートウェイAPI。
  version: 1.0.0
  contact:
    name: Phaseo
    url: https://phaseo.app
    email: danielbutler500@gmail.com
servers:
  - url: https://api.phaseo.app/v1
    description: グローバルルーティング
security:
  - BearerAuth: []
tags:
  - name: Gateway
    description: Core Phaseo Gateway operations.
paths:
  /videos:
    get:
      tags:
        - Gateway
      summary: 動画を一覧表示
      description: 認証されたチームの非同期動画生成ジョブを一覧表示します。
      operationId: listVideos
      parameters:
        - name: limit
          in: query
          description: 返す動画ジョブの最大数。既定値は50、上限は200です。
          schema:
            type: integer
            minimum: 1
            maximum: 200
        - name: status
          in: query
          description: 動画のライフサイクル状態フィルター。パラメーターを繰り返すか、カンマ区切りの値を指定します。
          style: form
          explode: true
          schema:
            type: array
            items:
              type: string
        - name: offset
          in: query
          description: ページを返す前にスキップする動画ジョブの数。
          schema:
            type: integer
            minimum: 0
            maximum: 10000
        - name: after
          in: query
          description: 選択した順序で、この動画IDより後の動画ジョブを返します。
          schema:
            type: string
        - name: order
          in: query
          description: 動画ジョブを作成時刻で並べ替えます。
          schema:
            type: string
            enum:
              - asc
              - desc
      responses:
        '200':
          description: 動画一覧のレスポンス
          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: 非同期ジョブの正規化されたライフサイクル更新を購読するWebSocket URL。
        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: ポーリング、WebSocket、Webhookの利用側向けに正規化された非同期ライフサイクル状態。
        cancel_url:
          type: string
          format: uri
          nullable: true
          description: 互換性のために予約されています。現在は常に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と異なる場合の、プロバイダー固有の動画／ジョブID。
        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: output_accessにbytesが含まれる場合に存在します（認証が必要なエンドポイント）。
        download_url:
          type: string
          nullable: true
          description: 状態がcompletedの場合の、直接ダウンロード用のファーストパーティ署名付きURL。
        expires_at:
          type: integer
          nullable: true
          description: 署名付きdownload_urlが失効するUnixタイムスタンプ（秒）。
        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: ユーザーWebhookの次回再試行のISOタイムスタンプ（キューに登録されている場合）。
        last_webhook_progress:
          type: number
          nullable: true
          description: Webhookの利用側に最後に送信した大まかな進捗区分。
        last_webhook_progress_at:
          type: string
          nullable: true
          description: 直近のWebhook進捗区分が送信されたISOタイムスタンプ。
        last_webhook_dispatched_at:
          type: string
          nullable: true
          description: 直近のWebhook送信試行のISOタイムスタンプ。
        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: output_accessにbytesが含まれる場合に存在します。
        download_url:
          type: string
          description: この出力用のファーストパーティ署名付きURL。
        expires_at:
          type: integer
          description: この出力URLが失効するUnixタイムスタンプ（秒）。
    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: >-
        機密情報を除去した非同期Webhook設定と配信状態。シークレットは返されません。`has_secret`は署名付き配信が有効かを示します。署名付き配信にはx-phaseo-signature、x-phaseo-timestamp、x-phaseo-event-id、x-phaseo-event-type、x-phaseo-delivery-key、x-phaseo-attempt、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: ゲートウェイ管理の非同期Webhookの公開配信サマリー。ジョブの実行状態とWebhook配信の正常性を区別するために使用します。
      properties:
        total_attempts:
          type: integer
          description: このジョブで記録された配信試行の総数。
        delivered_events:
          type: integer
          description: 配信済み状態に達した配信キーの数。
        delivered_event_types:
          type: array
          description: 少なくとも1回配信された配信キー。
          items:
            type: string
          example:
            - video.completed
        pending_retries:
          type: integer
          description: 現在再試行が予定されている配信キーの数。
        next_retry_at:
          type: string
          nullable: true
          description: 次の予定された再試行のISOタイムスタンプ（存在する場合）。
        last_attempt_at:
          type: string
          nullable: true
          description: 直近の配信試行のISOタイムスタンプ。
        last_attempt_status:
          type: string
          nullable: true
          enum:
            - delivered
            - scheduled_retry
            - failed_permanently
          description: 直近の配信試行の結果。
        last_response_status:
          type: integer
          nullable: true
          description: Webhookの送信先が返したHTTPステータス（取得できる場合）。
        last_delivered_at:
          type: string
          nullable: true
          description: 直近の成功した配信のISOタイムスタンプ。
        last_failure_at:
          type: string
          nullable: true
          description: 直近の失敗した、または再試行中の試行のISOタイムスタンプ。
        last_error_message:
          type: string
          nullable: true
          description: 直近の配信エラーメッセージ（取得できる場合）。
    AsyncWebhookDeliveryAttempt:
      type: object
      description: ゲートウェイ管理の非同期Webhookの最近の配信試行。
      properties:
        id:
          type: string
          description: 監査とデバッグ用の安定した試行識別子。
        delivery_key:
          type: string
          description: このイベント配信用の冪等性キー。
          example: video.completed
        event_type:
          type: string
          description: Webhookの送信先に配信されたイベントの種類。
          example: video.completed
        status:
          type: string
          enum:
            - delivered
            - scheduled_retry
            - failed_permanently
        attempt_number:
          type: integer
          description: この配信キーの1から始まる試行番号。
        max_attempts:
          type: integer
          description: 配信を恒久的な失敗としてマークするまでの最大試行回数。
        tried_at:
          type: string
          description: この試行を行ったISOタイムスタンプ。
        delivered_at:
          type: string
          nullable: true
          description: この試行が正常に配信されたISOタイムスタンプ。
        next_retry_at:
          type: string
          nullable: true
          description: この試行後の次回再試行のISOタイムスタンプ（予定されている場合）。
        response_status:
          type: integer
          nullable: true
          description: Webhookの送信先が返したHTTPステータス（取得できる場合）。
        error_message:
          type: string
          nullable: true
          description: 配信エラーメッセージ（取得できる場合）。
        response_body_preview:
          type: string
          nullable: true
          description: Webhookの送信先からのレスポンス本文の、機密情報を伏せたプレビュー。
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: Bearer トークンによる認証

````

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