跳转到正文
中文
获取 API 密钥
浏览文档

API 参考文档

Management API 参考文档

浏览面向程序化接入的 API 权限、用量、任务、Bulk 批处理、Agent 接入与公开目录端点。

本页内容

Markdown 版本

使用 API Key 读取账户

管理 API 地址为 https://api.flashdata.dev/v2。以下免费读取返回当前 Key 与账户的标识及归属信息。先设置 FLASHDATA_API_KEY,再执行命令。

检查当前 Key · Bash
curl --fail-with-body --silent --show-error --max-time 20 \
  --header "X-API-Key: ${FLASHDATA_API_KEY:?Set FLASHDATA_API_KEY first}" \
  'https://api.flashdata.dev/v2/api-access/identity'

成功时返回 HTTP 200。程序化端点使用 X-API-Key(dataApiKey)或 Agent 接入凭据;公开目录与状态端点无需认证。 身份响应结构

下载客户 OpenAPI 规范。包含数据 API 查询、任务、Bulk 批处理、API 权限、用量与 Agent 接入端点。

21 / 21

查询参数和请求代码详见 Google 和 YouTube API 参考文档。

身份验证方案

协议要求
dataApiKey

X-API-Key · header

FlashData API 密钥。任务访问受该密钥的数据源权限范围限制。

agentRegistrationProof

发送前必须持久保存使用安全随机算法生成的 32 字节 base64url 凭证及确切请求;恢复时只能复用相同凭证与正文。此凭证不是 OAuth 令牌。

agentSetupCredential

临时设置凭据,仅用于读取状态和创建认领。不是 Data API 密钥。

agentIdentityKey

普通 FlashData API Key,仅在智能体身份验证端点使用 Authorization Bearer。数据查询使用 X-API-Key。

agentHandoffProof

用于恢复所有者密钥并确认安装的凭证,绝不发送到数据查询。

API 密钥

GET/api-access/identity

验证当前 API Key 的所有权及定时任务就绪状态

免费读取,仅使用请求头中的 API Key。返回公开的账户和密钥 ID 及权威所有权信息,不接受请求正文,不改变现有 /api-access 元数据响应。共用每分钟 120 次的账户读取限制。不可用时应停止,不得从密钥前缀、套餐或本地状态推断所有权。不接受查询参数,响应禁止缓存。

身份验证: dataApiKey

服务器: https://api.flashdata.dev/v2

响应

200 验证当前 API Key 的所有权及定时任务就绪状态

200 响应 · application/json

APIKeyIdentity

200 响应
{
  "$ref": "#/components/schemas/APIKeyIdentity"
}

400 请求被拒绝,请检查 Problem 错误码。切勿盲目重试修改操作。

400 响应 · application/problem+json

Problem

400 响应
{
  "$ref": "#/components/schemas/Problem"
}

401 请求被拒绝,请检查 Problem 错误码。切勿盲目重试修改操作。

401 响应 · application/problem+json

Problem

401 响应
{
  "$ref": "#/components/schemas/Problem"
}

403 请求被拒绝,请检查 Problem 错误码。切勿盲目重试修改操作。

403 响应 · application/problem+json

Problem

403 响应
{
  "$ref": "#/components/schemas/Problem"
}

409 请求被拒绝,请检查 Problem 错误码。切勿盲目重试修改操作。

409 响应 · application/problem+json

Problem

409 响应
{
  "$ref": "#/components/schemas/Problem"
}

410 请求被拒绝,请检查 Problem 错误码。切勿盲目重试修改操作。

410 响应 · application/problem+json

Problem

410 响应
{
  "$ref": "#/components/schemas/Problem"
}

422 请求被拒绝,请检查 Problem 错误码。切勿盲目重试修改操作。

422 响应 · application/problem+json

Problem

422 响应
{
  "$ref": "#/components/schemas/Problem"
}

429 请求被拒绝,请检查 Problem 错误码。切勿盲目重试修改操作。

429 响应 · application/problem+json

Problem

429 响应
{
  "$ref": "#/components/schemas/Problem"
}

503 请求被拒绝,请检查 Problem 错误码。切勿盲目重试修改操作。

503 响应 · application/problem+json

Problem

503 响应
{
  "$ref": "#/components/schemas/Problem"
}
GET/api-access

读取调用所用 API 密钥获准访问的数据源及结果来源

免费,仅通过请求头中的 X-API-Key 进行身份验证。仅返回获授权的公开数据源名称,以及配置的签名结果存储源站(不可用时为 null)。不返回账户 ID、密钥 ID、密钥值或存储凭据。本地 MCP 在每次发现工具和调用工具前都会重新验证此端点,包括读取缓存结果时。不接受查询参数或请求体。所有 /api-access 路由共用每个客户端 IP 每分钟 120 次请求的限额,并返回 Cache-Control private, no-store。仍会正常记录密钥的最近使用情况。

身份验证: dataApiKey

服务器: https://api.flashdata.dev/v2

响应

200 获授权的公开数据源和结果来源

200 响应 · application/json

ApiAccess

200 响应
{
  "$ref": "#/components/schemas/ApiAccess"
}

401 需要身份验证,或身份验证无效

401 响应 · application/problem+json

Problem

401 响应
{
  "$ref": "#/components/schemas/Problem"
}

422 请求校验失败

422 响应 · application/problem+json

Problem

422 响应
{
  "$ref": "#/components/schemas/Problem"
}

429 账户读取次数过多;请在限流窗口结束后重试

503 必需的依赖项或目录暂时不可用

503 响应 · application/problem+json

Problem

503 响应
{
  "$ref": "#/components/schemas/Problem"
}

积分

GET/api-access/balance

使用 API 密钥读取账户实时余额

读取账户内所有 API Key 共用的当前 Credits 余额。正在进行的额度预留可能减少可用余额。此请求不消耗 Credits,无需查询参数或请求体。响应为私有且不缓存,并受账户读取速率限制。

身份验证: dataApiKey

服务器: https://api.flashdata.dev/v2

响应

200 可为负数的余额和非负的可用积分

200 响应 · application/json

ApiAccessBalance

200 响应
{
  "$ref": "#/components/schemas/ApiAccessBalance"
}

401 需要身份验证,或身份验证无效

401 响应 · application/problem+json

Problem

401 响应
{
  "$ref": "#/components/schemas/Problem"
}

422 请求校验失败

422 响应 · application/problem+json

Problem

422 响应
{
  "$ref": "#/components/schemas/Problem"
}

429 账户读取次数过多;请在限流窗口结束后重试

503 必需的依赖项或目录暂时不可用

503 响应 · application/problem+json

Problem

503 响应
{
  "$ref": "#/components/schemas/Problem"
}
GET/api-access/pricing

读取 API 密钥获准访问的数据源的实际账户价格

读取 API Key 允许访问的接口所对应的账户费率。价格为 null 表示该接口不可用。request_count 统计查询次数而非返回条数;下载费率按 TB(10^12 字节)计算。估算不会预留 Credits 或容量。此请求不消耗 Credits,响应为私有且不缓存,并受账户读取速率限制。

身份验证: dataApiKey

服务器: https://api.flashdata.dev/v2

参数

source · query · 可选

此密钥获授权的数据源;省略时读取所有获授权的数据源。

结构定义

ApiAccessSource

结构定义
{
  "$ref": "#/components/schemas/ApiAccessSource"
}

request_count · query · 可选

十进制整数形式的调用次数;不估算下载大小。

结构定义
结构定义
{
  "type": "integer",
  "minimum": 1,
  "maximum": 100000,
  "default": 1
}

响应

200 账户套餐和各数据源价格

200 响应 · application/json

ApiAccessPricing

200 响应
{
  "$ref": "#/components/schemas/ApiAccessPricing"
}

401 需要身份验证,或身份验证无效

401 响应 · application/problem+json

Problem

401 响应
{
  "$ref": "#/components/schemas/Problem"
}

403 已通过身份验证但无权限,或 CSRF 验证失败

403 响应 · application/problem+json

Problem

403 响应
{
  "$ref": "#/components/schemas/Problem"
}

422 请求校验失败

422 响应 · application/problem+json

Problem

422 响应
{
  "$ref": "#/components/schemas/Problem"
}

429 账户读取次数过多;请在限流窗口结束后重试

503 必需的依赖项或目录暂时不可用

503 响应 · application/problem+json

Problem

503 响应
{
  "$ref": "#/components/schemas/Problem"
}
GET/api-access/limits

使用 API 密钥读取账户套餐限制和当前待处理任务

读取并发、批量大小、待处理任务上限及当前待处理数量。这些值可用于规划请求,但不会预留容量。此请求不消耗 Credits,无需查询参数或请求体。响应为私有且不缓存,并受账户读取速率限制。

身份验证: dataApiKey

服务器: https://api.flashdata.dev/v2

响应

200 套餐上限和当前待处理数量

200 响应 · application/json

ApiAccessLimits

200 响应
{
  "$ref": "#/components/schemas/ApiAccessLimits"
}

401 需要身份验证,或身份验证无效

401 响应 · application/problem+json

Problem

401 响应
{
  "$ref": "#/components/schemas/Problem"
}

422 请求校验失败

422 响应 · application/problem+json

Problem

422 响应
{
  "$ref": "#/components/schemas/Problem"
}

429 账户读取次数过多;请在限流窗口结束后重试

503 必需的依赖项或目录暂时不可用

503 响应 · application/problem+json

Problem

503 响应
{
  "$ref": "#/components/schemas/Problem"
}
GET/usage

读取 API 密钥获准访问的数据源的账户用量

免费读取,仅通过 X-API-Key 进行身份验证。包含账户所有密钥的数据,但仅限调用密钥获授权的数据源。不返回查询文本、密钥、支付详情或其他账户的数据。默认查询七天,最长 31 天。日期必须使用 UTC Z 时间戳。From 包含起始时间,to 不包含结束时间;两者均向下取整到分钟。仅提供 from 时,to 默认为 from + 7 days。两者均未提供时,to 为下一分钟的起始时间。汇总数据具有最终一致性;即使 updating=false,也不保证所有近期事件都已写入。读取限额:每个客户端 IP 每分钟 60 次请求。 分钟级用量保留 90 天,每日用量保留 365 天。超过 90 天的时间边界必须使用 00:00:00Z。不支持的时间范围会根据具体情况返回 HTTP 422,错误码为 usage_daily_range_required 或 usage_range_expired。

身份验证: dataApiKey

服务器: https://api.flashdata.dev/v2

参数

source · query · 可选

调用密钥获授权的确切目录数据源;省略时表示所有获授权的数据源。

结构定义
结构定义
{
  "type": "string",
  "enum": [
    "google_search",
    "google_images",
    "google_news",
    "google_shopping",
    "google_videos",
    "google_places",
    "youtube_search",
    "youtube_search_extended",
    "youtube_metadata",
    "youtube_transcript",
    "youtube_captions",
    "youtube_trainability",
    "youtube_channel",
    "youtube_suggestions",
    "youtube_download"
  ]
}

from · query · 可选

结构定义
结构定义
{
  "type": "string",
  "format": "date-time"
}

to · query · 可选

结构定义
结构定义
{
  "type": "string",
  "format": "date-time"
}

响应

200 指定范围内的请求数量和已扣除积分,附带数据时效信息

200 响应 · application/json

ApiKeyUsage

200 响应
{
  "$ref": "#/components/schemas/ApiKeyUsage"
}

401 需要身份验证,或身份验证无效

401 响应 · application/problem+json

Problem

401 响应
{
  "$ref": "#/components/schemas/Problem"
}

403 已通过身份验证但无权限,或 CSRF 验证失败

403 响应 · application/problem+json

Problem

403 响应
{
  "$ref": "#/components/schemas/Problem"
}

422 请求校验失败

422 响应 · application/problem+json

Problem

422 响应
{
  "$ref": "#/components/schemas/Problem"
}

429 用量读取次数过多;请在限流窗口结束后重试

503 必需的依赖项或目录暂时不可用

503 响应 · application/problem+json

Problem

503 响应
{
  "$ref": "#/components/schemas/Problem"
}

任务

提交、状态与结果示例:实时与异步 · Batch 请求.

GET/jobs/{jobId}

读取一个 Data API 任务

通过 job.status 查看进度,处理失败时通过 job.error 查看原因。默认返回 JSON;可用 Accept: text/plain 获取可读文本。此接口忽略 X-Respond-With。再次查询前,请按 Retry-After 提示等待。

身份验证: dataApiKey

服务器: https://api.flashdata.dev/v2

参数

Accept · header · 可选

application/json 返回原有结构化响应;text/plain 使用缩进纯文本展示相同字段。支持标准媒体范围和 q 权重;省略 Accept 或使用 */* 时默认返回 JSON。提交和任务状态接口忽略 X-Respond-With。错误保持结构化 JSON。 两种响应均使用 UTF-8,支持显式 charset=utf-8 参数。

结构定义
结构定义
{
  "type": "string"
}

jobId · path · 必填

结构定义
结构定义
{
  "type": "string",
  "pattern": "^job_[A-Za-z0-9_-]+$"
}

响应

200 任务详情

200 响应 · application/json

ConsoleJob

200 响应
{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "job"
  ],
  "properties": {
    "job": {
      "$ref": "#/components/schemas/ConsoleJob"
    }
  }
}
200 响应 · text/plain
200 响应
{
  "type": "string"
}

401 需要身份验证,或身份验证无效

401 响应 · application/problem+json

Problem

401 响应
{
  "$ref": "#/components/schemas/Problem"
}

404 未找到资源,或资源不属于调用者

404 响应 · application/problem+json

Problem

404 响应
{
  "$ref": "#/components/schemas/Problem"
}

406 客户端不接受 application/json 或 text/plain;返回 JSON 错误

406 响应 · application/json

QueryRepresentationError

406 响应
{
  "$ref": "#/components/schemas/QueryRepresentationError"
}
GET/jobs/{jobId}/results

下载已完成的异步结果

默认验证访问权限并跳转到短期有效的私有 R2 URL,由 R2 直接返回原始 JSON。Accept: text/plain 可独立选择缩进纯文本,直接以 HTTP 200 返回原始结果字段。X-Respond-With: markdown 选择 Markdown 内容:application/json 用 content 承载正文,替换 results,并保留原始元数据;text/plain 返回元数据和 Markdown。省略 Accept 或使用全局通配符时默认返回 JSON。格式化不会再次提交查询或收取查询 Credits。结果在完成 24 小时后过期,错误保持结构化 JSON。

身份验证: dataApiKey

服务器: https://api.flashdata.dev/v2

参数

X-Respond-With · header · 可选

设置为 markdown 可将结果内容转为 Markdown;省略时保留原始字段。Accept 独立选择 JSON 或纯文本。此请求头仅用于实时查询及已完成结果读取,不用于提交回执、任务状态、账户接口、回调、Bulk 文件、媒体文件或 MCP 响应。

结构定义
结构定义
{
  "type": "string",
  "enum": [
    "markdown"
  ]
}

Accept · header · 可选

通过 Accept 独立选择 application/json 或 text/plain。省略 X-Respond-With 时保留原始字段;默认 JSON 的完成结果读取会跳转到存储。选择 markdown 时,JSON 返回 content 及元数据,纯文本返回元数据及 Markdown。支持媒体范围和 q 权重;省略 Accept 或使用通配符时默认返回 JSON。两种响应均使用 UTF-8,并支持 charset=utf-8。

结构定义
结构定义
{
  "type": "string"
}

jobId · path · 必填

结构定义
结构定义
{
  "type": "string",
  "pattern": "^job_[A-Za-z0-9_-]+$"
}

响应

200 直接返回原始字段的纯文本或 Markdown;原始 JSON 在跟随默认跳转后由 R2 返回

200 响应 · application/json

MarkdownQueryResult

200 响应
{
  "anyOf": [
    {
      "$ref": "#/components/schemas/MarkdownQueryResult"
    },
    {
      "type": "object",
      "additionalProperties": true
    }
  ]
}
200 响应 · text/plain
200 响应
{
  "type": "string"
}

302 未指定 X-Respond-With 且选择 JSON 时,跳转到私有 R2 存储中的原始 JSON

请求头: Location

400 不支持的 X-Respond-With 值;返回 JSON 错误

400 响应 · application/json

QueryRepresentationError

400 响应
{
  "$ref": "#/components/schemas/QueryRepresentationError"
}

401 需要身份验证,或身份验证无效

401 响应 · application/problem+json

Problem

401 响应
{
  "$ref": "#/components/schemas/Problem"
}

404 未找到资源,或资源不属于调用者

404 响应 · application/problem+json

Problem

404 响应
{
  "$ref": "#/components/schemas/Problem"
}

406 客户端不接受 application/json 或 text/plain;返回 JSON 错误

406 响应 · application/json

QueryRepresentationError

406 响应
{
  "$ref": "#/components/schemas/QueryRepresentationError"
}

409 资源状态或幂等性冲突

409 响应 · application/problem+json

Problem

409 响应
{
  "$ref": "#/components/schemas/Problem"
}

410 结果已过期

410 响应 · application/problem+json

Problem

410 响应
{
  "$ref": "#/components/schemas/Problem"
}

422 任务失败。若已保存失败原因,响应会在 detail 字段中返回该原因。

422 响应 · application/problem+json

Problem

422 响应
{
  "$ref": "#/components/schemas/Problem"
}

503 必需的依赖项或目录暂时不可用

503 响应 · application/problem+json

Problem

503 响应
{
  "$ref": "#/components/schemas/Problem"
}

Bulk 处理 API

Bulk 端点的参数、请求示例和响应结构位于独立参考页面。 打开 Bulk 处理 API

系统

GET/health

服务健康状况

身份验证: 公开访问

服务器: https://api.flashdata.dev/v2

响应

200 正常

200 响应 · application/json

Health

200 响应
{
  "$ref": "#/components/schemas/Health"
}
GET/status

读取公开的组件状态摘要

身份验证: 公开访问

服务器: https://api.flashdata.dev/v2

响应

200 公开状态摘要

请求头: Cache-Control

200 响应 · application/json

PublicStatus

200 响应
{
  "$ref": "#/components/schemas/PublicStatus"
}

智能体连接

GET/agent-connections/capabilities

查询协议 2 智能体接入是否可用

不接受查询参数,响应禁止缓存。智能体路由仅由管理服务提供并受功能开关控制;关闭时可能返回 404。智能体路由禁止使用 X-API-Key。

身份验证: 公开访问

服务器: https://api.flashdata.dev/v2

响应

200 查询协议 2 智能体接入是否可用

200 响应 · application/json

AgentCapabilities

200 响应
{
  "$ref": "#/components/schemas/AgentCapabilities"
}

400 请求被拒绝,请检查 Problem 错误码。切勿盲目重试修改操作。

400 响应 · application/problem+json

Problem

400 响应
{
  "$ref": "#/components/schemas/Problem"
}

401 请求被拒绝,请检查 Problem 错误码。切勿盲目重试修改操作。

401 响应 · application/problem+json

Problem

401 响应
{
  "$ref": "#/components/schemas/Problem"
}

403 请求被拒绝,请检查 Problem 错误码。切勿盲目重试修改操作。

403 响应 · application/problem+json

Problem

403 响应
{
  "$ref": "#/components/schemas/Problem"
}

409 请求被拒绝,请检查 Problem 错误码。切勿盲目重试修改操作。

409 响应 · application/problem+json

Problem

409 响应
{
  "$ref": "#/components/schemas/Problem"
}

410 请求被拒绝,请检查 Problem 错误码。切勿盲目重试修改操作。

410 响应 · application/problem+json

Problem

410 响应
{
  "$ref": "#/components/schemas/Problem"
}

422 请求被拒绝,请检查 Problem 错误码。切勿盲目重试修改操作。

422 响应 · application/problem+json

Problem

422 响应
{
  "$ref": "#/components/schemas/Problem"
}

429 请求被拒绝,请检查 Problem 错误码。切勿盲目重试修改操作。

429 响应 · application/problem+json

Problem

429 响应
{
  "$ref": "#/components/schemas/Problem"
}

503 请求被拒绝,请检查 Problem 错误码。切勿盲目重试修改操作。

503 响应 · application/problem+json

Problem

503 响应
{
  "$ref": "#/components/schemas/Problem"
}
POST/agent-connections/registrations

创建或恢复临时 API Key 连接

POST 前持久保存注册凭证与确切输入。相同凭证与正文恢复同一试用,更改输入将产生冲突。临时试用为 1 Credit、72 小时、每秒 1 次请求、批大小 1。来源权限以服务器为准。不接受查询参数,响应禁止缓存。智能体路由仅由管理服务提供并受功能开关控制;关闭时可能返回 404。智能体路由禁止使用 X-API-Key。

身份验证: agentRegistrationProof

服务器: https://api.flashdata.dev/v2

请求体 · 必填

结构定义 · application/json

AgentRegistrationRequest

结构定义
{
  "$ref": "#/components/schemas/AgentRegistrationRequest"
}

响应

201 创建或恢复临时 API Key 连接

201 响应 · application/json

AgentRegistration

201 响应
{
  "$ref": "#/components/schemas/AgentRegistration"
}

400 请求被拒绝,请检查 Problem 错误码。切勿盲目重试修改操作。

400 响应 · application/problem+json

Problem

400 响应
{
  "$ref": "#/components/schemas/Problem"
}

401 请求被拒绝,请检查 Problem 错误码。切勿盲目重试修改操作。

401 响应 · application/problem+json

Problem

401 响应
{
  "$ref": "#/components/schemas/Problem"
}

403 请求被拒绝,请检查 Problem 错误码。切勿盲目重试修改操作。

403 响应 · application/problem+json

Problem

403 响应
{
  "$ref": "#/components/schemas/Problem"
}

409 请求被拒绝,请检查 Problem 错误码。切勿盲目重试修改操作。

409 响应 · application/problem+json

Problem

409 响应
{
  "$ref": "#/components/schemas/Problem"
}

410 请求被拒绝,请检查 Problem 错误码。切勿盲目重试修改操作。

410 响应 · application/problem+json

Problem

410 响应
{
  "$ref": "#/components/schemas/Problem"
}

422 请求被拒绝,请检查 Problem 错误码。切勿盲目重试修改操作。

422 响应 · application/problem+json

Problem

422 响应
{
  "$ref": "#/components/schemas/Problem"
}

429 请求被拒绝,请检查 Problem 错误码。切勿盲目重试修改操作。

429 响应 · application/problem+json

Problem

429 响应
{
  "$ref": "#/components/schemas/Problem"
}

503 请求被拒绝,请检查 Problem 错误码。切勿盲目重试修改操作。

503 响应 · application/problem+json

Problem

503 响应
{
  "$ref": "#/components/schemas/Problem"
}
GET/agent-connections/{connectionId}

读取临时连接状态

不接受查询参数,响应禁止缓存。智能体路由仅由管理服务提供并受功能开关控制;关闭时可能返回 404。智能体路由禁止使用 X-API-Key。

身份验证: agentSetupCredential

服务器: https://api.flashdata.dev/v2

参数

connectionId · path · 必填

结构定义
结构定义
{
  "type": "string",
  "pattern": "^acn_[A-Za-z0-9_-]{8,100}$"
}

响应

200 读取临时连接状态

200 响应 · application/json

AgentConnectionResponse

200 响应
{
  "$ref": "#/components/schemas/AgentConnectionResponse"
}

400 请求被拒绝,请检查 Problem 错误码。切勿盲目重试修改操作。

400 响应 · application/problem+json

Problem

400 响应
{
  "$ref": "#/components/schemas/Problem"
}

401 请求被拒绝,请检查 Problem 错误码。切勿盲目重试修改操作。

401 响应 · application/problem+json

Problem

401 响应
{
  "$ref": "#/components/schemas/Problem"
}

403 请求被拒绝,请检查 Problem 错误码。切勿盲目重试修改操作。

403 响应 · application/problem+json

Problem

403 响应
{
  "$ref": "#/components/schemas/Problem"
}

409 请求被拒绝,请检查 Problem 错误码。切勿盲目重试修改操作。

409 响应 · application/problem+json

Problem

409 响应
{
  "$ref": "#/components/schemas/Problem"
}

410 请求被拒绝,请检查 Problem 错误码。切勿盲目重试修改操作。

410 响应 · application/problem+json

Problem

410 响应
{
  "$ref": "#/components/schemas/Problem"
}

422 请求被拒绝,请检查 Problem 错误码。切勿盲目重试修改操作。

422 响应 · application/problem+json

Problem

422 响应
{
  "$ref": "#/components/schemas/Problem"
}

429 请求被拒绝,请检查 Problem 错误码。切勿盲目重试修改操作。

429 响应 · application/problem+json

Problem

429 响应
{
  "$ref": "#/components/schemas/Problem"
}

503 请求被拒绝,请检查 Problem 错误码。切勿盲目重试修改操作。

503 响应 · application/problem+json

Problem

503 响应
{
  "$ref": "#/components/schemas/Problem"
}
GET/agent-connections/{connectionId}/identity

验证连接当前的 Data API 密钥

不接受查询参数,响应禁止缓存。智能体路由仅由管理服务提供并受功能开关控制;关闭时可能返回 404。智能体路由禁止使用 X-API-Key。

身份验证: agentIdentityKey

服务器: https://api.flashdata.dev/v2

参数

connectionId · path · 必填

结构定义
结构定义
{
  "type": "string",
  "pattern": "^acn_[A-Za-z0-9_-]{8,100}$"
}

响应

200 验证连接当前的 Data API 密钥

200 响应 · application/json

AgentConnectionResponse

200 响应
{
  "$ref": "#/components/schemas/AgentConnectionResponse"
}

400 请求被拒绝,请检查 Problem 错误码。切勿盲目重试修改操作。

400 响应 · application/problem+json

Problem

400 响应
{
  "$ref": "#/components/schemas/Problem"
}

401 请求被拒绝,请检查 Problem 错误码。切勿盲目重试修改操作。

401 响应 · application/problem+json

Problem

401 响应
{
  "$ref": "#/components/schemas/Problem"
}

403 请求被拒绝,请检查 Problem 错误码。切勿盲目重试修改操作。

403 响应 · application/problem+json

Problem

403 响应
{
  "$ref": "#/components/schemas/Problem"
}

409 请求被拒绝,请检查 Problem 错误码。切勿盲目重试修改操作。

409 响应 · application/problem+json

Problem

409 响应
{
  "$ref": "#/components/schemas/Problem"
}

410 请求被拒绝,请检查 Problem 错误码。切勿盲目重试修改操作。

410 响应 · application/problem+json

Problem

410 响应
{
  "$ref": "#/components/schemas/Problem"
}

422 请求被拒绝,请检查 Problem 错误码。切勿盲目重试修改操作。

422 响应 · application/problem+json

Problem

422 响应
{
  "$ref": "#/components/schemas/Problem"
}

429 请求被拒绝,请检查 Problem 错误码。切勿盲目重试修改操作。

429 响应 · application/problem+json

Problem

429 响应
{
  "$ref": "#/components/schemas/Problem"
}

503 请求被拒绝,请检查 Problem 错误码。切勿盲目重试修改操作。

503 响应 · application/problem+json

Problem

503 响应
{
  "$ref": "#/components/schemas/Problem"
}
GET/agent-connections/{connectionId}/onboarding

读取可恢复的接入状态

不接受查询参数,响应禁止缓存。智能体路由仅由管理服务提供并受功能开关控制;关闭时可能返回 404。智能体路由禁止使用 X-API-Key。

身份验证: agentHandoffProof

服务器: https://api.flashdata.dev/v2

参数

connectionId · path · 必填

结构定义
结构定义
{
  "type": "string",
  "pattern": "^acn_[A-Za-z0-9_-]{8,100}$"
}

响应

200 读取可恢复的接入状态

200 响应 · application/json

AgentOnboardingStatus

200 响应
{
  "$ref": "#/components/schemas/AgentOnboardingStatus"
}

400 请求被拒绝,请检查 Problem 错误码。切勿盲目重试修改操作。

400 响应 · application/problem+json

Problem

400 响应
{
  "$ref": "#/components/schemas/Problem"
}

401 请求被拒绝,请检查 Problem 错误码。切勿盲目重试修改操作。

401 响应 · application/problem+json

Problem

401 响应
{
  "$ref": "#/components/schemas/Problem"
}

403 请求被拒绝,请检查 Problem 错误码。切勿盲目重试修改操作。

403 响应 · application/problem+json

Problem

403 响应
{
  "$ref": "#/components/schemas/Problem"
}

409 请求被拒绝,请检查 Problem 错误码。切勿盲目重试修改操作。

409 响应 · application/problem+json

Problem

409 响应
{
  "$ref": "#/components/schemas/Problem"
}

410 请求被拒绝,请检查 Problem 错误码。切勿盲目重试修改操作。

410 响应 · application/problem+json

Problem

410 响应
{
  "$ref": "#/components/schemas/Problem"
}

422 请求被拒绝,请检查 Problem 错误码。切勿盲目重试修改操作。

422 响应 · application/problem+json

Problem

422 响应
{
  "$ref": "#/components/schemas/Problem"
}

429 请求被拒绝,请检查 Problem 错误码。切勿盲目重试修改操作。

429 响应 · application/problem+json

Problem

429 响应
{
  "$ref": "#/components/schemas/Problem"
}

503 请求被拒绝,请检查 Problem 错误码。切勿盲目重试修改操作。

503 响应 · application/problem+json

Problem

503 响应
{
  "$ref": "#/components/schemas/Problem"
}
POST/agent-connections/{connectionId}/claims

创建浏览器授权认领

在可信的 FlashData 网站来源打开 claimPath,并单独展示确认码。切勿将凭据或确认码放入 URL。不接受查询参数,响应禁止缓存。智能体路由仅由管理服务提供并受功能开关控制;关闭时可能返回 404。智能体路由禁止使用 X-API-Key。

身份验证: agentSetupCredential

服务器: https://api.flashdata.dev/v2

参数

connectionId · path · 必填

结构定义
结构定义
{
  "type": "string",
  "pattern": "^acn_[A-Za-z0-9_-]{8,100}$"
}

请求体 · 必填

结构定义 · application/json
结构定义
{
  "type": "object",
  "additionalProperties": false,
  "properties": {},
  "required": []
}

响应

201 创建浏览器授权认领

201 响应 · application/json

AgentClaim

201 响应
{
  "$ref": "#/components/schemas/AgentClaim"
}

400 请求被拒绝,请检查 Problem 错误码。切勿盲目重试修改操作。

400 响应 · application/problem+json

Problem

400 响应
{
  "$ref": "#/components/schemas/Problem"
}

401 请求被拒绝,请检查 Problem 错误码。切勿盲目重试修改操作。

401 响应 · application/problem+json

Problem

401 响应
{
  "$ref": "#/components/schemas/Problem"
}

403 请求被拒绝,请检查 Problem 错误码。切勿盲目重试修改操作。

403 响应 · application/problem+json

Problem

403 响应
{
  "$ref": "#/components/schemas/Problem"
}

409 请求被拒绝,请检查 Problem 错误码。切勿盲目重试修改操作。

409 响应 · application/problem+json

Problem

409 响应
{
  "$ref": "#/components/schemas/Problem"
}

410 请求被拒绝,请检查 Problem 错误码。切勿盲目重试修改操作。

410 响应 · application/problem+json

Problem

410 响应
{
  "$ref": "#/components/schemas/Problem"
}

422 请求被拒绝,请检查 Problem 错误码。切勿盲目重试修改操作。

422 响应 · application/problem+json

Problem

422 响应
{
  "$ref": "#/components/schemas/Problem"
}

429 请求被拒绝,请检查 Problem 错误码。切勿盲目重试修改操作。

429 响应 · application/problem+json

Problem

429 响应
{
  "$ref": "#/components/schemas/Problem"
}

503 请求被拒绝,请检查 Problem 错误码。切勿盲目重试修改操作。

503 响应 · application/problem+json

Problem

503 响应
{
  "$ref": "#/components/schemas/Problem"
}
POST/agent-connections/{connectionId}/handoff

恢复已获批准的所有者 API Key

候选密钥在安装确认前有效期为 24 小时。原子保存后,从新进程重新读取并验证身份,再确认安装。重复交付返回同一候选密钥;已确认的交付仅返回回执,不含凭据。不接受查询参数,响应禁止缓存。智能体路由仅由管理服务提供并受功能开关控制;关闭时可能返回 404。智能体路由禁止使用 X-API-Key。

身份验证: agentHandoffProof

服务器: https://api.flashdata.dev/v2

参数

connectionId · path · 必填

结构定义
结构定义
{
  "type": "string",
  "pattern": "^acn_[A-Za-z0-9_-]{8,100}$"
}

请求体 · 必填

结构定义 · application/json
结构定义
{
  "type": "object",
  "additionalProperties": false,
  "properties": {},
  "required": []
}

响应

200 恢复已获批准的所有者 API Key

200 响应 · application/json

AgentHandoff

200 响应
{
  "$ref": "#/components/schemas/AgentHandoff"
}

400 请求被拒绝,请检查 Problem 错误码。切勿盲目重试修改操作。

400 响应 · application/problem+json

Problem

400 响应
{
  "$ref": "#/components/schemas/Problem"
}

401 请求被拒绝,请检查 Problem 错误码。切勿盲目重试修改操作。

401 响应 · application/problem+json

Problem

401 响应
{
  "$ref": "#/components/schemas/Problem"
}

403 请求被拒绝,请检查 Problem 错误码。切勿盲目重试修改操作。

403 响应 · application/problem+json

Problem

403 响应
{
  "$ref": "#/components/schemas/Problem"
}

409 请求被拒绝,请检查 Problem 错误码。切勿盲目重试修改操作。

409 响应 · application/problem+json

Problem

409 响应
{
  "$ref": "#/components/schemas/Problem"
}

410 请求被拒绝,请检查 Problem 错误码。切勿盲目重试修改操作。

410 响应 · application/problem+json

Problem

410 响应
{
  "$ref": "#/components/schemas/Problem"
}

422 请求被拒绝,请检查 Problem 错误码。切勿盲目重试修改操作。

422 响应 · application/problem+json

Problem

422 响应
{
  "$ref": "#/components/schemas/Problem"
}

429 请求被拒绝,请检查 Problem 错误码。切勿盲目重试修改操作。

429 响应 · application/problem+json

Problem

429 响应
{
  "$ref": "#/components/schemas/Problem"
}

503 请求被拒绝,请检查 Problem 错误码。切勿盲目重试修改操作。

503 响应 · application/problem+json

Problem

503 响应
{
  "$ref": "#/components/schemas/Problem"
}
POST/agent-connections/{connectionId}/handoff/ack

确认已验证的所有者密钥安装

调用前必须已保存候选密钥,并从新进程独立验证。成功确认后标记为已安装,移除候选密钥有效期,并删除可恢复的凭据材料。重复确认具有幂等性。不接受查询参数,响应禁止缓存。智能体路由仅由管理服务提供并受功能开关控制;关闭时可能返回 404。智能体路由禁止使用 X-API-Key。

身份验证: agentHandoffProof

服务器: https://api.flashdata.dev/v2

参数

connectionId · path · 必填

结构定义
结构定义
{
  "type": "string",
  "pattern": "^acn_[A-Za-z0-9_-]{8,100}$"
}

请求体 · 必填

结构定义 · application/json
结构定义
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "apiKey": {
      "type": "string"
    }
  },
  "required": [
    "apiKey"
  ]
}

响应

200 确认已验证的所有者密钥安装

200 响应 · application/json

AgentHandoff

200 响应
{
  "$ref": "#/components/schemas/AgentHandoff"
}

400 请求被拒绝,请检查 Problem 错误码。切勿盲目重试修改操作。

400 响应 · application/problem+json

Problem

400 响应
{
  "$ref": "#/components/schemas/Problem"
}

401 请求被拒绝,请检查 Problem 错误码。切勿盲目重试修改操作。

401 响应 · application/problem+json

Problem

401 响应
{
  "$ref": "#/components/schemas/Problem"
}

403 请求被拒绝,请检查 Problem 错误码。切勿盲目重试修改操作。

403 响应 · application/problem+json

Problem

403 响应
{
  "$ref": "#/components/schemas/Problem"
}

409 请求被拒绝,请检查 Problem 错误码。切勿盲目重试修改操作。

409 响应 · application/problem+json

Problem

409 响应
{
  "$ref": "#/components/schemas/Problem"
}

410 请求被拒绝,请检查 Problem 错误码。切勿盲目重试修改操作。

410 响应 · application/problem+json

Problem

410 响应
{
  "$ref": "#/components/schemas/Problem"
}

422 请求被拒绝,请检查 Problem 错误码。切勿盲目重试修改操作。

422 响应 · application/problem+json

Problem

422 响应
{
  "$ref": "#/components/schemas/Problem"
}

429 请求被拒绝,请检查 Problem 错误码。切勿盲目重试修改操作。

429 响应 · application/problem+json

Problem

429 响应
{
  "$ref": "#/components/schemas/Problem"
}

503 请求被拒绝,请检查 Problem 错误码。切勿盲目重试修改操作。

503 响应 · application/problem+json

Problem

503 响应
{
  "$ref": "#/components/schemas/Problem"
}

目录

GET/catalog/sources

列出公开数据源能力,不包含账户专属价格

身份验证: 公开访问

服务器: https://api.flashdata.dev/v2

响应

200 公开数据源目录

请求头: Cache-Control

200 响应 · application/json

DataSource

200 响应
{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "data"
  ],
  "properties": {
    "data": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/DataSource"
      }
    }
  }
}
GET/plans

列出公开的美元套餐与价格

身份验证: 公开访问

服务器: https://api.flashdata.dev/v2

响应

200 公开套餐目录

请求头: Cache-Control

200 响应 · application/json

PlanCatalog

200 响应
{
  "$ref": "#/components/schemas/PlanCatalog"
}
GET/legal/current

读取注册所需的当前服务条款和隐私政策版本

身份验证: 公开访问

服务器: https://api.flashdata.dev/v2

响应

200 当前法律文件版本目录

请求头: Cache-Control

200 响应 · application/json

PublicLegalVersions

200 响应
{
  "$ref": "#/components/schemas/PublicLegalVersions"
}

Schema 定义

APIKeyIdentity
APIKeyIdentity
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "apiKeyId": {
      "type": "string"
    },
    "accountId": {
      "type": "string"
    },
    "accountType": {
      "type": "string",
      "enum": [
        "owned",
        "temporary"
      ]
    },
    "ownership": {
      "type": "string",
      "enum": [
        "owned",
        "unowned"
      ]
    },
    "access": {
      "type": "string",
      "enum": [
        "ready",
        "blocked"
      ]
    },
    "installed": {
      "type": "boolean"
    },
    "recurringAllowed": {
      "type": "boolean"
    },
    "connectionId": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "scopes": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "expiresAt": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ]
    },
    "verifiedAt": {
      "type": "string",
      "format": "date-time"
    }
  },
  "required": [
    "apiKeyId",
    "accountId",
    "accountType",
    "ownership",
    "access",
    "installed",
    "recurringAllowed",
    "connectionId",
    "scopes",
    "expiresAt",
    "verifiedAt"
  ],
  "description": "Authoritative current-record ownership and readiness. Public IDs only. recurringAllowed requires a verified active owner and, for agent-issued keys, server-confirmed installation. It is a point-in-time check, not an authorization token or permission to reuse cached data after revocation."
}
AgentCapabilities
AgentCapabilities
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "protocolVersion": {
      "const": 2
    },
    "available": {
      "type": "boolean"
    },
    "flow": {
      "const": "temporary_account_api_key"
    },
    "dataOrigin": {
      "type": "string"
    },
    "queryPath": {
      "const": "/v1/queries/realtime"
    },
    "credentialType": {
      "const": "api_key"
    },
    "permissions": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/AgentPermission"
      }
    },
    "owner": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "scopes"
      ],
      "properties": {
        "scopes": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "trial": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "scopes": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "credits": {
          "type": "number"
        },
        "lifetimeHours": {
          "type": "integer",
          "minimum": 0
        },
        "requestsPerSecond": {
          "type": "integer",
          "minimum": 0
        },
        "maxBatchSize": {
          "type": "integer",
          "minimum": 0
        },
        "requestCounts": {}
      },
      "required": [
        "credits",
        "lifetimeHours",
        "requestsPerSecond",
        "maxBatchSize",
        "requestCounts"
      ]
    },
    "recurringRequires": {
      "const": "owned_key_installed"
    },
    "replayProtection": {
      "const": "client_local_only"
    }
  },
  "required": [
    "protocolVersion",
    "available"
  ]
}
AgentClaim
AgentClaim
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "claimId": {
      "type": "string"
    },
    "claimPath": {
      "type": "string"
    },
    "confirmationCode": {
      "type": "string",
      "pattern": "^\\d{8}$"
    },
    "expiresAt": {
      "type": "string",
      "format": "date-time"
    },
    "pollAfterSeconds": {
      "type": "integer",
      "minimum": 0
    }
  },
  "required": [
    "claimId",
    "claimPath",
    "confirmationCode",
    "expiresAt",
    "pollAfterSeconds"
  ]
}
AgentConnectionResponse
AgentConnectionResponse
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "connection": {
      "$ref": "#/components/schemas/AgentConnection"
    }
  },
  "required": [
    "connection"
  ]
}
AgentConnection
AgentConnection
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "id": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "audience": {
      "type": "string",
      "enum": [
        "coding",
        "personal",
        "unspecified"
      ]
    },
    "ownership": {
      "type": "string",
      "enum": [
        "owned",
        "unowned"
      ]
    },
    "lifecycle": {
      "type": "string",
      "enum": [
        "valid",
        "revoked",
        "expired"
      ]
    },
    "access": {
      "type": "string",
      "enum": [
        "ready",
        "fenced",
        "blocked"
      ]
    },
    "scopes": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Actual scopes on the current API key. May be empty on an unowned claim-only connection; every data-source request is then forbidden."
    },
    "requestedScopes": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Original owner-access request. Claim approval can only reduce this set. Legacy connections retain their original scopes."
    },
    "trialScopes": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Saved subset eligible for the temporary key. Never expanded by catalog changes."
    },
    "permissions": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/AgentPermission"
      }
    },
    "generation": {
      "type": "integer",
      "minimum": 0
    },
    "installed": {
      "type": "boolean"
    },
    "trialExpiresAt": {
      "type": "string",
      "format": "date-time"
    },
    "fundingMode": {
      "type": "string",
      "enum": [
        "trial",
        "account_balance"
      ]
    },
    "trialCredits": {
      "type": "number"
    },
    "trialRequestCounts": {}
  },
  "required": [
    "id",
    "name",
    "audience",
    "ownership",
    "lifecycle",
    "access",
    "scopes",
    "generation",
    "installed",
    "trialExpiresAt",
    "fundingMode",
    "trialCredits",
    "trialRequestCounts"
  ]
}
AgentHandoff
AgentHandoff
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "status": {
      "type": "string",
      "enum": [
        "delivered",
        "confirmed"
      ]
    },
    "connection": {
      "$ref": "#/components/schemas/AgentConnection"
    },
    "credentials": {
      "$ref": "#/components/schemas/AgentCredentials"
    },
    "generation": {
      "type": "integer",
      "minimum": 0
    }
  },
  "required": [
    "status"
  ]
}
AgentCredentials
AgentCredentials
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "connectionId": {
      "type": "string"
    },
    "apiKey": {
      "type": "string"
    },
    "setupCredential": {
      "type": "string"
    },
    "handoffProof": {
      "type": "string"
    },
    "generation": {
      "type": "integer",
      "minimum": 0
    }
  },
  "required": [
    "connectionId",
    "apiKey",
    "generation"
  ],
  "description": "Sensitive ordinary API-key credentials. Never log or put in browser URLs. Proofs are returned on temporary registration; handoff returns the owned candidate key."
}
AgentOnboardingStatus
AgentOnboardingStatus
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "status": {
      "type": "string",
      "enum": [
        "awaiting_claim",
        "claim_processing",
        "handoff_ready",
        "installed",
        "handoff_expired",
        "expired",
        "revoked",
        "blocked"
      ]
    },
    "connection": {
      "$ref": "#/components/schemas/AgentConnection"
    },
    "expiresAt": {
      "type": "string",
      "format": "date-time"
    },
    "nextAction": {
      "type": "string"
    },
    "pollAfterSeconds": {
      "type": "integer",
      "minimum": 0
    }
  },
  "required": [
    "status"
  ]
}
AgentPermission
AgentPermission
{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "source",
    "name",
    "product",
    "trialEligible",
    "ownerAllowed",
    "requiresStorageDestination"
  ],
  "properties": {
    "source": {
      "type": "string",
      "pattern": "^[a-z_]{1,80}$"
    },
    "name": {
      "type": "string"
    },
    "product": {
      "type": "string"
    },
    "trialEligible": {
      "type": "boolean"
    },
    "ownerAllowed": {
      "type": "boolean"
    },
    "requiresStorageDestination": {
      "type": "boolean"
    }
  },
  "description": "Catalog-derived agent permissions. Trial eligibility is an explicit opt-in independent of owner approval. Storage and variable-price sources require owner access."
}
AgentRegistration
AgentRegistration
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "connection": {
      "$ref": "#/components/schemas/AgentConnection"
    },
    "credentials": {
      "$ref": "#/components/schemas/AgentCredentials"
    },
    "dataOrigin": {
      "type": "string"
    },
    "deniedScopes": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "limits": {
      "type": "object",
      "additionalProperties": true
    },
    "nextAction": {
      "type": "string",
      "enum": [
        "query_or_claim",
        "claim"
      ],
      "description": "Claim before the first data request when no requested source is trial eligible."
    }
  },
  "required": [
    "connection",
    "credentials",
    "dataOrigin",
    "deniedScopes",
    "limits"
  ]
}
AgentRegistrationRequest
AgentRegistrationRequest
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 80
    },
    "audience": {
      "type": "string",
      "enum": [
        "coding",
        "personal"
      ]
    },
    "scopes": {
      "type": "array",
      "minItems": 1,
      "maxItems": 30,
      "uniqueItems": true,
      "items": {
        "type": "string",
        "pattern": "^[a-z_]{1,80}$"
      }
    },
    "client": {
      "type": "string",
      "pattern": "^[a-z0-9][a-z0-9_-]{0,63}$"
    },
    "transport": {
      "type": "string",
      "enum": [
        "api",
        "cli",
        "mcp"
      ]
    }
  },
  "required": [
    "name",
    "scopes"
  ]
}
ApiAccess
ApiAccess
{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "sources",
    "result_origin"
  ],
  "properties": {
    "sources": {
      "type": "array",
      "uniqueItems": true,
      "items": {
        "$ref": "#/components/schemas/ApiAccessSource"
      }
    },
    "result_origin": {
      "type": [
        "string",
        "null"
      ],
      "format": "uri",
      "description": "Configured signed-result storage origin, without credentials, path, query or fragment. Not an access token or a media URL."
    }
  }
}
ApiAccessBalance
ApiAccessBalance
{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "scope",
    "unit",
    "balanceCredits",
    "availableCredits",
    "updatedAt",
    "note"
  ],
  "properties": {
    "scope": {
      "type": "string",
      "const": "account"
    },
    "unit": {
      "type": "string",
      "const": "Credits"
    },
    "balanceCredits": {
      "type": "number",
      "description": "Signed live balance; in-flight reservations may already be reflected."
    },
    "availableCredits": {
      "type": "number",
      "minimum": 0,
      "description": "max(balanceCredits, 0)."
    },
    "updatedAt": {
      "type": [
        "string",
        "null"
      ]
    },
    "note": {
      "type": "string"
    }
  }
}
ApiAccessLimits
ApiAccessLimits
{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "scope",
    "plan",
    "limits",
    "current",
    "note"
  ],
  "properties": {
    "scope": {
      "type": "string",
      "const": "account"
    },
    "plan": {
      "$ref": "#/components/schemas/ApiAccessPlan"
    },
    "limits": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "concurrency": {
          "type": "integer",
          "minimum": 0
        },
        "batchSize": {
          "type": "integer",
          "minimum": 0
        },
        "pendingJobs": {
          "type": "integer",
          "minimum": 0
        }
      }
    },
    "current": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "pendingJobs"
      ],
      "properties": {
        "pendingJobs": {
          "type": "integer",
          "minimum": 0
        }
      }
    },
    "note": {
      "type": "string"
    }
  }
}
ApiAccessPlan
ApiAccessPlan
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "name": {
      "type": "string"
    },
    "type": {
      "type": "string"
    },
    "billingMode": {
      "type": "string"
    },
    "status": {
      "type": "string"
    }
  }
}
ApiAccessPricing
ApiAccessPricing
{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "unit",
    "plan",
    "requestCount",
    "prices",
    "note"
  ],
  "properties": {
    "unit": {
      "type": "string",
      "const": "Credits"
    },
    "plan": {
      "$ref": "#/components/schemas/ApiAccessPlan"
    },
    "requestCount": {
      "type": "integer",
      "minimum": 1,
      "maximum": 100000
    },
    "prices": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "source",
          "available",
          "estimatedCredits"
        ],
        "properties": {
          "source": {
            "$ref": "#/components/schemas/ApiAccessSource"
          },
          "available": {
            "type": "boolean"
          },
          "creditsPerRequest": {
            "type": [
              "number",
              "null"
            ],
            "minimum": 0
          },
          "estimatedCredits": {
            "type": [
              "number",
              "null"
            ],
            "minimum": 0,
            "description": "Null for downloads or missing pricing."
          },
          "billingUnit": {
            "type": "string",
            "const": "TB"
          },
          "bytesPerUnit": {
            "type": "integer",
            "const": 1000000000000
          },
          "creditsPerTb": {
            "type": [
              "number",
              "null"
            ],
            "minimum": 0
          },
          "note": {
            "type": "string"
          }
        }
      }
    },
    "note": {
      "type": "string"
    }
  }
}
ApiAccessSource
ApiAccessSource
{
  "type": "string",
  "enum": [
    "google_search",
    "google_images",
    "google_news",
    "google_shopping",
    "google_videos",
    "google_places",
    "youtube_search",
    "youtube_search_extended",
    "youtube_metadata",
    "youtube_transcript",
    "youtube_captions",
    "youtube_trainability",
    "youtube_channel",
    "youtube_suggestions",
    "youtube_download"
  ]
}
ApiKeyUsage
ApiKeyUsage
{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "scope",
    "unit",
    "from",
    "to",
    "observedAt",
    "totals",
    "bySource",
    "updating",
    "note"
  ],
  "properties": {
    "scope": {
      "type": "string",
      "const": "account_authorized_sources"
    },
    "unit": {
      "type": "string",
      "const": "Credits"
    },
    "from": {
      "type": "string",
      "format": "date-time"
    },
    "to": {
      "type": "string",
      "format": "date-time"
    },
    "observedAt": {
      "type": "string",
      "format": "date-time"
    },
    "totals": {
      "$ref": "#/components/schemas/UsageCounts"
    },
    "bySource": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "source",
          "requests",
          "completed",
          "failed",
          "credits"
        ],
        "properties": {
          "source": {
            "type": "string"
          },
          "requests": {
            "type": "integer",
            "minimum": 0
          },
          "completed": {
            "type": "integer",
            "minimum": 0
          },
          "failed": {
            "type": "integer",
            "minimum": 0
          },
          "credits": {
            "type": "number",
            "minimum": 0
          }
        }
      }
    },
    "updating": {
      "type": "boolean"
    },
    "note": {
      "type": "string"
    }
  }
}
BulkJobCreated
BulkJobCreated
{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "job",
    "upload"
  ],
  "properties": {
    "job": {
      "$ref": "#/components/schemas/BulkJob"
    },
    "upload": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "href",
        "method",
        "expiresAt",
        "contentType"
      ],
      "properties": {
        "href": {
          "type": "string",
          "format": "uri"
        },
        "method": {
          "type": "string",
          "const": "PUT"
        },
        "expiresAt": {
          "type": "string",
          "format": "date-time"
        },
        "contentType": {
          "type": "string",
          "const": "text/plain; charset=utf-8"
        }
      }
    }
  }
}
BulkJob
BulkJob
{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "id",
    "source",
    "status",
    "input",
    "counts",
    "delivery",
    "pauseReason",
    "error",
    "createdAt",
    "startedAt",
    "completedAt",
    "expiresAt",
    "links"
  ],
  "properties": {
    "id": {
      "type": "string",
      "pattern": "^bulk_[A-Za-z0-9_-]{8,}$"
    },
    "source": {
      "type": "string",
      "enum": [
        "youtube_metadata",
        "youtube_transcript",
        "youtube_captions",
        "youtube_trainability",
        "youtube_download"
      ]
    },
    "status": {
      "type": "string",
      "enum": [
        "awaiting_upload",
        "running",
        "paused",
        "finalizing",
        "completed",
        "failed",
        "cancelled"
      ]
    },
    "input": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "bytes",
        "complete",
        "scannedBytes",
        "scannedLines"
      ],
      "properties": {
        "bytes": {
          "type": "integer",
          "minimum": 0
        },
        "complete": {
          "type": "boolean"
        },
        "scannedBytes": {
          "type": "integer",
          "minimum": 0
        },
        "scannedLines": {
          "type": "integer",
          "minimum": 0
        }
      }
    },
    "counts": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "accepted",
        "completed",
        "failed",
        "invalid",
        "results"
      ],
      "properties": {
        "accepted": {
          "type": "integer",
          "minimum": 0
        },
        "completed": {
          "type": "integer",
          "minimum": 0
        },
        "failed": {
          "type": "integer",
          "minimum": 0
        },
        "invalid": {
          "type": "integer",
          "minimum": 0
        },
        "results": {
          "type": "integer",
          "minimum": 0
        }
      }
    },
    "pauseReason": {
      "type": [
        "string",
        "null"
      ]
    },
    "delivery": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "customerStorage",
        "storageType",
        "uploadedParts",
        "retryCount"
      ],
      "properties": {
        "customerStorage": {
          "type": "boolean"
        },
        "storageType": {
          "type": [
            "string",
            "null"
          ],
          "enum": [
            "s3",
            "s3_compatible",
            "oss",
            "gcs",
            "azure",
            "cos",
            "bos",
            "tos",
            null
          ]
        },
        "uploadedParts": {
          "type": "integer",
          "minimum": 0
        },
        "retryCount": {
          "type": "integer",
          "minimum": 0
        }
      }
    },
    "error": {
      "oneOf": [
        {
          "type": "null"
        },
        {
          "type": "object",
          "additionalProperties": false,
          "required": [
            "code",
            "detail"
          ],
          "properties": {
            "code": {
              "type": "string"
            },
            "detail": {
              "type": [
                "string",
                "null"
              ]
            }
          }
        }
      ]
    },
    "createdAt": {
      "type": "string",
      "format": "date-time"
    },
    "startedAt": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "completedAt": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "expiresAt": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "links": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/JobLink"
      }
    }
  }
}
BulkJobPage
BulkJobPage
{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "data",
    "pagination"
  ],
  "properties": {
    "data": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/BulkJob"
      }
    },
    "pagination": {
      "$ref": "#/components/schemas/Pagination"
    }
  }
}
BulkJobResponse
BulkJobResponse
{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "job"
  ],
  "properties": {
    "job": {
      "$ref": "#/components/schemas/BulkJob"
    }
  }
}
ConsoleJob
ConsoleJob
{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "createdAt",
    "credits",
    "durationMs",
    "error",
    "id",
    "params",
    "progress",
    "result",
    "source",
    "status",
    "updatedAt",
    "videoId"
  ],
  "properties": {
    "createdAt": {
      "type": "string",
      "format": "date-time"
    },
    "credits": {
      "type": "number",
      "multipleOf": 0.001
    },
    "durationMs": {
      "type": [
        "number",
        "null"
      ],
      "minimum": 0
    },
    "error": {
      "type": [
        "string",
        "null"
      ]
    },
    "id": {
      "type": "string"
    },
    "params": {
      "type": "object",
      "additionalProperties": true
    },
    "progress": {
      "type": "integer",
      "minimum": 0
    },
    "result": {
      "type": [
        "object",
        "null"
      ],
      "additionalProperties": true
    },
    "source": {
      "type": "string"
    },
    "status": {
      "type": "string",
      "enum": [
        "completed",
        "failed",
        "pending",
        "processing"
      ]
    },
    "updatedAt": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "videoId": {
      "type": [
        "string",
        "null"
      ]
    },
    "links": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/JobLink"
      }
    }
  }
}
CreateBulkJobRequest
CreateBulkJobRequest
{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "source"
  ],
  "properties": {
    "source": {
      "type": "string",
      "enum": [
        "youtube_metadata",
        "youtube_transcript",
        "youtube_captions",
        "youtube_trainability",
        "youtube_download"
      ]
    },
    "options": {
      "type": "object",
      "additionalProperties": true,
      "description": "Reused for every ID. Metadata accepts include_formats and include_chapters. Transcript and captions accept language (one code or an array of 1–10 distinct codes) and auto (applies to all requested languages). Omitted language targets English. Use \"default\" for the marked playback language or \"original\" for the original audio language. With auto=true, try these sources in the target language: native YouTube speech recognition, uploader captions, automatic captions of unknown type, then YouTube translations. auto=false is uploader-only; codes with or without -orig select matching captions in the requested language, including named uploader tracks. Generic codes also match regional and script variants; explicit variants stay specific. captionSource and isAutoGenerated report the delivered track, not the request. languageCode identifies the actual track; requestedLanguageCode is included when the selector differs. A language array returns tracks and per-language errors for each video with at least one retrieved track. If no track is retrieved, the video job fails and its reserved credits are refunded. Bulk exports use one JSONL record per video. Trainability accepts no source options. These four data sources optionally accept result_storage. Supported storage_type values are s3, s3_compatible, oss, gcs, azure, cos, bos, and tos. storage_url is the bucket name (Azure container name); object_prefix is optional. S3, S3-compatible, OSS, COS, BOS, and TOS use access_key and secret_key. S3, S3-compatible storage, OSS, COS, BOS, and TOS optionally accept session_token with the matching temporary key pair issued by that storage provider. Use AWS/BOS/TOS SessionToken, OSS SecurityToken, or COS Token (with TmpSecretId and TmpSecretKey). The provider must support temporary credentials. These credentials must remain valid through queueing, processing, upload and retries; FlashData does not refresh them. S3-compatible and OSS also require a public HTTPS endpoint_url. COS, BOS, and TOS require region and use fixed provider endpoints. COS bucket names include the APPID. BOS S3-compatible HTTPS delivery supports bj, su, and hkg. GCS requires service_account with project_id, client_email, and private_key. Azure requires account_name and a container SAS sas_token with write permission. Default object_prefix is YYYYMMDD, frozen to the UTC bulk creation date. Files are written to <prefix>/<source>/<bulkId>/results/part-NNNNNNNN.jsonl.gz; manifest.json in the same bulk directory is written last. Each JSONL row includes its input index and completed, failed, or invalid status. Internal R2 results remain available through the result links for 24 hours. Download accepts the normal YouTube download parameters, requires customer storage, and does not permit browser_delivery. Download storage supports the same eight provider types and credential shapes listed above under the storage field. Download storage may include object_prefix; YYYYMMDD tokens resolve to the UTC upload date, while literal prefixes are unchanged. Download credentials must allow simple uploads, multipart initialization, part upload, completion and abort cleanup for the destination prefix, including optional metadata files. See [per-provider upload permissions](https://flashdata.dev/docs/sources/youtube_download#storage-permissions) for all eight storage types, temporary credentials, overwrite and encryption requirements."
    },
    "callback_url": {
      "type": "string",
      "format": "uri",
      "maxLength": 2048,
      "description": "Optional public HTTPS endpoint notified once after manifest publication."
    }
  }
}
DataSource
DataSource
{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "id",
    "name",
    "category",
    "product",
    "modes",
    "inputSchema",
    "estimatedCredits",
    "requiresStorageDestination"
  ],
  "properties": {
    "id": {
      "type": "string",
      "enum": [
        "google_search",
        "google_images",
        "google_news",
        "google_shopping",
        "google_videos",
        "google_places",
        "youtube_search",
        "youtube_search_extended",
        "youtube_metadata",
        "youtube_transcript",
        "youtube_captions",
        "youtube_trainability",
        "youtube_channel",
        "youtube_suggestions",
        "youtube_download"
      ]
    },
    "name": {
      "type": "string"
    },
    "category": {
      "type": "string",
      "enum": [
        "google",
        "youtube"
      ]
    },
    "product": {
      "type": "string",
      "enum": [
        "google_search",
        "youtube_data",
        "youtube_download"
      ]
    },
    "modes": {
      "type": "array",
      "minItems": 1,
      "uniqueItems": true,
      "description": "Only modes backed by a real adapter or consumer in the current release",
      "items": {
        "type": "string",
        "enum": [
          "realtime",
          "async",
          "batch"
        ]
      }
    },
    "inputSchema": {
      "type": "object",
      "additionalProperties": true,
      "description": "JSON Schema used by the Playground and generated clients"
    },
    "estimatedCredits": {
      "type": "number",
      "minimum": 0,
      "multipleOf": 0.001
    },
    "requiresStorageDestination": {
      "type": "boolean",
      "description": "Whether query submission must include per-request storage configuration."
    }
  }
}
Health
Health
{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "status",
    "service",
    "version",
    "time"
  ],
  "properties": {
    "status": {
      "type": "string",
      "enum": [
        "healthy",
        "degraded"
      ]
    },
    "service": {
      "type": "string"
    },
    "version": {
      "type": "string"
    },
    "time": {
      "type": "string",
      "format": "date-time"
    }
  }
}
MarkdownQueryResult
MarkdownQueryResult
{
  "type": "object",
  "required": [
    "source",
    "status",
    "content"
  ],
  "additionalProperties": true,
  "description": "Markdown result content. content replaces the results array; other response fields such as id, source, status, usage and timestamps are preserved. No generated summary is added. Source URLs and transcript segment start/end times are retained.",
  "properties": {
    "source": {
      "type": "string"
    },
    "status": {
      "type": "string"
    },
    "content": {
      "type": "string",
      "description": "Deterministic Markdown derived from the retrieved source result."
    },
    "usage": {
      "type": "object",
      "additionalProperties": true
    }
  }
}
Pagination
Pagination
{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "hasMore",
    "limit"
  ],
  "properties": {
    "nextCursor": {
      "type": [
        "string",
        "null"
      ]
    },
    "previousCursor": {
      "type": [
        "string",
        "null"
      ]
    },
    "hasMore": {
      "type": "boolean"
    },
    "limit": {
      "type": "integer",
      "minimum": 1,
      "maximum": 100
    }
  }
}
PlanCatalog
PlanCatalog
{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "data",
    "currency",
    "billingAvailability",
    "creditValueUsd"
  ],
  "properties": {
    "trialOffer": {
      "description": "Current one-time trial allowance expressed as alternative PAYG usage amounts. Eligibility and approval are required. The amounts share one balance and are not additive. Null when a reliable estimate is unavailable. This is not an account eligibility decision or a promise of immediate credit issuance.",
      "oneOf": [
        {
          "$ref": "#/components/schemas/PublicTrialOffer"
        },
        {
          "type": "null"
        }
      ]
    },
    "data": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/Plan"
      }
    },
    "currency": {
      "type": "string",
      "const": "USD"
    },
    "creditValueUsd": {
      "type": "number",
      "exclusiveMinimum": 0,
      "description": "Fixed USD value of one credit, used to preview custom top-ups. The server computes the credited amount."
    },
    "billingAvailability": {
      "type": "string",
      "enum": [
        "available",
        "unconfigured",
        "unavailable"
      ]
    },
    "billingMessage": {
      "type": [
        "string",
        "null"
      ],
      "description": "Stable, non-sensitive explanation suitable for the Pricing and Billing UI."
    }
  }
}
Plan
Plan
{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "id",
    "slug",
    "name",
    "description",
    "includedCredits",
    "limits",
    "prices",
    "features",
    "usagePrices"
  ],
  "properties": {
    "id": {
      "type": "string",
      "pattern": "^plan_"
    },
    "slug": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "description": {
      "type": "string"
    },
    "includedCredits": {
      "type": "number",
      "minimum": 0,
      "multipleOf": 0.001,
      "description": "Credits included in each paid subscription cycle; zero for Pay As You Go."
    },
    "limits": {
      "$ref": "#/components/schemas/PlanLimits"
    },
    "prices": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/PlanPrice"
      }
    },
    "features": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "usagePrices": {
      "$ref": "#/components/schemas/PlanUsagePrices"
    }
  }
}
PlanLimits
PlanLimits
{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "concurrency",
    "maxBatchSize",
    "maxPendingJobs"
  ],
  "properties": {
    "concurrency": {
      "type": "integer",
      "minimum": 1
    },
    "maxBatchSize": {
      "type": "integer",
      "minimum": 1
    },
    "maxPendingJobs": {
      "type": "integer",
      "minimum": 1
    }
  }
}
PlanPrice
PlanPrice
{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "id",
    "currency",
    "unitAmount",
    "credits",
    "type",
    "interval"
  ],
  "properties": {
    "id": {
      "type": "string",
      "pattern": "^prc_"
    },
    "currency": {
      "type": "string",
      "const": "USD"
    },
    "unitAmount": {
      "type": "integer",
      "minimum": 0,
      "description": "USD cents"
    },
    "credits": {
      "type": "number",
      "minimum": 0,
      "multipleOf": 0.001,
      "description": "Credits granted by a successful one-time top-up; zero for recurring prices."
    },
    "type": {
      "type": "string",
      "enum": [
        "recurring",
        "one_time"
      ]
    },
    "interval": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "month",
        "year",
        null
      ]
    }
  }
}
PlanUsagePrices
PlanUsagePrices
{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "googlePer1kCents",
    "youtubePer1kCents",
    "downloadPerTbCents"
  ],
  "properties": {
    "googlePer1kCents": {
      "type": "integer",
      "minimum": 0,
      "description": "Google request price per 1,000 successful requests, in USD cents."
    },
    "youtubePer1kCents": {
      "type": "integer",
      "minimum": 0,
      "description": "Standard YouTube request price per 1,000 successful requests, in USD cents."
    },
    "downloadPerTbCents": {
      "type": "integer",
      "minimum": 0,
      "description": "Download price per decimal TB (1,000,000,000,000 bytes), in USD cents."
    },
    "downloadClipCreditsPer30Seconds": {
      "type": "number",
      "minimum": 0,
      "description": "Additional Credits per started 30 seconds of completed clip duration, on top of byte charges. Zero disables the surcharge."
    }
  }
}
Problem
Problem
{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "type",
    "title",
    "status",
    "code",
    "requestId"
  ],
  "properties": {
    "type": {
      "type": "string",
      "format": "uri-reference"
    },
    "title": {
      "type": "string"
    },
    "status": {
      "type": "integer",
      "minimum": 400,
      "maximum": 599
    },
    "code": {
      "type": "string",
      "pattern": "^[a-z0-9_]+$"
    },
    "detail": {
      "type": "string"
    },
    "requestId": {
      "type": "string",
      "pattern": "^req_"
    },
    "fieldErrors": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/FieldError"
      }
    }
  }
}
FieldError
FieldError
{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "field",
    "code",
    "message"
  ],
  "properties": {
    "field": {
      "type": "string"
    },
    "code": {
      "type": "string"
    },
    "message": {
      "type": "string"
    }
  }
}
PublicLegalVersions
PublicLegalVersions
{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "availability",
    "termsVersion",
    "privacyVersion"
  ],
  "properties": {
    "availability": {
      "type": "string",
      "enum": [
        "configured",
        "unconfigured"
      ]
    },
    "termsVersion": {
      "type": [
        "string",
        "null"
      ],
      "minLength": 1,
      "maxLength": 64
    },
    "privacyVersion": {
      "type": [
        "string",
        "null"
      ],
      "minLength": 1,
      "maxLength": 64
    }
  }
}
PublicStatus
PublicStatus
{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "status",
    "updatedAt",
    "components"
  ],
  "properties": {
    "status": {
      "type": "string",
      "enum": [
        "healthy",
        "degraded",
        "outage"
      ]
    },
    "updatedAt": {
      "type": "string",
      "format": "date-time"
    },
    "components": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/PublicStatusComponent"
      }
    }
  }
}
PublicStatusComponent
PublicStatusComponent
{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "id",
    "name",
    "status"
  ],
  "properties": {
    "id": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "status": {
      "type": "string",
      "enum": [
        "operational",
        "degraded",
        "outage"
      ]
    }
  }
}
PublicTrialOffer
PublicTrialOffer
{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "googleSearchRequests",
    "youtubeDataRequests",
    "downloadGigabytes"
  ],
  "properties": {
    "maxApiRequests": {
      "type": "integer",
      "minimum": 0,
      "description": "Maximum free API calls when the entire trial grant is spent on the lowest-cost per-request API at current Pay as you go rates. Other APIs may allow fewer calls. Downloads are billed by delivered bytes and excluded from this count."
    },
    "googleSearchRequests": {
      "type": "integer",
      "minimum": 0,
      "description": "Requests if the entire grant is spent on Google sources, using the highest current source rate."
    },
    "youtubeDataRequests": {
      "type": "integer",
      "minimum": 0,
      "description": "Standard YouTube requests, excluding Extended Search, using the highest current source rate."
    },
    "downloadGigabytes": {
      "type": "number",
      "minimum": 0,
      "description": "Approximate delivered media volume in decimal GB (1 GB = 1000000000 bytes). Zero when the grant cannot cover the initial download reservation. Completion also depends on per-job reservations and settlement."
    }
  }
}
QueryRepresentationError
QueryRepresentationError
{
  "type": "object",
  "required": [
    "error",
    "code",
    "message"
  ],
  "properties": {
    "error": {
      "type": "boolean",
      "const": true
    },
    "code": {
      "type": "string",
      "enum": [
        "unsupported_representation",
        "not_acceptable"
      ]
    },
    "message": {
      "type": "string"
    }
  }
}
UpdateBulkJobRequest
UpdateBulkJobRequest
{
  "type": "object",
  "additionalProperties": false,
  "minProperties": 1,
  "properties": {
    "options": {
      "type": "object",
      "additionalProperties": true,
      "description": "Partial option update. Nested storage fields are merged so unchanged credentials do not need to be resent. Data result_storage fields are merged the same way. After all IDs have been scanned, a paused data bulk job accepts credential updates only: access_key and secret_key, S3/S3-compatible/OSS/COS/BOS/TOS session_token, GCS service_account, or Azure sas_token, depending on the storage type. The complete merged configuration is validated before it is stored."
    },
    "callback_url": {
      "type": [
        "string",
        "null"
      ],
      "format": "uri",
      "maxLength": 2048,
      "description": "Replacement completion callback, or null to remove the callback."
    }
  }
}
UsageCounts
UsageCounts
{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "requests",
    "completed",
    "failed",
    "credits"
  ],
  "properties": {
    "requests": {
      "type": "integer",
      "minimum": 0
    },
    "completed": {
      "type": "integer",
      "minimum": 0
    },
    "failed": {
      "type": "integer",
      "minimum": 0
    },
    "credits": {
      "type": "number",
      "minimum": 0,
      "description": "Charged Credits in the current aggregate; pending work may not be finally settled."
    }
  }
}