GET/api/v1/usage/exports/{export_id}

使用量エクスポートのステータスを取得

ジョブの状態を読み取ります。ダウンロードリンクは発行しません。expires_atを過ぎたジョブは、クリーンアップ前でもexpiredと表示されます。

認証: AuthorizationヘッダーにBearer形式のAPIキー

パスパラメーター

  • export_idstring必須

    作成レスポンスのエクスポートジョブID(uuid)。

レスポンス

  • 200

    エクスポートジョブ。

    レスポンス
    • idstring
    • statusenum
      "queued""running""completed""failed""expired"
    • api_key_idstring
    • start_atstring
    • end_atstring
    • created_atstring
    • formatenum
      "jsonl"
    • compressionenum
      "gzip"
    • schema_versionenum
      1
    • snapshot_atstring | null
    • row_countinteger | null
    • byte_sizeinteger | null

      圧縮後のファイルサイズ(バイト)。

    • sha256string | null

      ファイルのSHA-256(16進)。

    • expires_atstring | null
    • error_codestring | null
  • 401

    APIキーがない、不明、または失効しています。

    レスポンス
    • errorstring必須

      人が読めるメッセージ。

    • codestring

      エンドポイントが定義している場合の、安定した機械可読の理由(例:pro_required)。

    • actionstring

      エンドポイントが定義している場合の、安定した対処アクション。

    • detailsobject

      呼び出し元が対処するために必要な、顧客に提示して安全な文字列情報(推奨される識別子など)。

  • 404

    お客様の組織にこのIDのエクスポートはありません。

    レスポンス
    • errorstring必須

      人が読めるメッセージ。

    • codestring

      エンドポイントが定義している場合の、安定した機械可読の理由(例:pro_required)。

    • actionstring

      エンドポイントが定義している場合の、安定した対処アクション。

    • detailsobject

      呼び出し元が対処するために必要な、顧客に提示して安全な文字列情報(推奨される識別子など)。

  • 422

    ボディまたはクエリの検証に失敗しました。

    レスポンス
    • detailarray<object>必須
      detail
      • typestring
      • locarray<string | integer>
      • msgstring

リクエスト

curl 'https://api.experientiallabs.ai/api/v1/usage/exports/6e2b9c14-7d3a-4f01-8b5e-2c9a1d7f4e63' \
  -H "Authorization: Bearer <YOUR_API_KEY>"

レスポンス

{
  "id": "6e2b9c14-7d3a-4f01-8b5e-2c9a1d7f4e63",
  "status": "completed",
  "api_key_id": "0b9d4f6e-2a1c-4e8b-9f37-5c6d2e1a8b40",
  "start_at": "2026-10-20T00:00:00Z",
  "end_at": "2026-11-19T00:00:00Z",
  "created_at": "2026-11-19T16:02:44.118Z",
  "format": "jsonl",
  "compression": "gzip",
  "schema_version": 1,
  "snapshot_at": "2026-11-19T16:02:51.004Z",
  "row_count": 48211,
  "byte_size": 3918442,
  "sha256": "9f2c4e81b7a05d3c6e1f8a2b4d7c9e0f1a3b5c7d9e2f4a6b8c0d1e3f5a7b9c2d",
  "expires_at": "2026-11-26T16:03:10.551Z",
  "error_code": null
}

https://api.experientiallabs.ai/api/v1/usage/exports/6e2b9c14-7d3a-4f01-8b5e-2c9a1d7f4e63