Browse documentation
API reference
Browse programmatic endpoints for API access, usage, jobs, bulk processing, agent onboarding, and public catalog discovery.
On this page
Read your account with an API key
The Management API base URL is https://api.flashdata.dev/v2. This free read returns the current key and account IDs and ownership. Set FLASHDATA_API_KEY before running the command.
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'Expect HTTP 200 on success. Programmatic endpoints use X-API-Key (dataApiKey) or agent onboarding credentials; public catalog and status endpoints require no authentication. Identity response schema
Download the customer OpenAPI specification. It covers Data API queries, jobs, bulk processing, API access, usage, and agent onboarding.
Query parameters and request code are documented in the Google and YouTube API references.
Authentication schemes
| Scheme | Requirement |
|---|---|
dataApiKey |
FlashData API key. Job access is restricted to the key's source scopes. |
agentRegistrationProof | Persist a cryptographically random 32-byte base64url proof and exact request BEFORE sending; recover only with the same proof and body. Not an OAuth token. |
agentSetupCredential | Temporary setup credential for status and claim creation only. Not a data API key. |
agentIdentityKey | Ordinary FlashData API key in Authorization Bearer, only on agent identity. Data queries use X-API-Key instead. |
agentHandoffProof | Proof used to recover the owner key and acknowledge installation. Never sent to a data query. |
API Keys
GET/api-access/identity
Verify current API key ownership and recurring readiness
Free header-only API-key read. Returns public account/key IDs and authoritative ownership. No request body. Does not alter the existing /api-access metadata response. Shares the 120/minute account-read limit. Fail closed on unavailability; do not infer ownership from key prefix, plan, or local state. No query parameters are accepted. Responses are no-store.
Authentication: dataApiKey
Server: https://api.flashdata.dev/v2
Responses
200 Verify current API key ownership and recurring readiness
200 response · application/json
{
"$ref": "#/components/schemas/APIKeyIdentity"
}400 Rejected request; inspect the Problem code. Never retry a mutation blindly.
400 response · application/problem+json
{
"$ref": "#/components/schemas/Problem"
}401 Rejected request; inspect the Problem code. Never retry a mutation blindly.
401 response · application/problem+json
{
"$ref": "#/components/schemas/Problem"
}403 Rejected request; inspect the Problem code. Never retry a mutation blindly.
403 response · application/problem+json
{
"$ref": "#/components/schemas/Problem"
}409 Rejected request; inspect the Problem code. Never retry a mutation blindly.
409 response · application/problem+json
{
"$ref": "#/components/schemas/Problem"
}410 Rejected request; inspect the Problem code. Never retry a mutation blindly.
410 response · application/problem+json
{
"$ref": "#/components/schemas/Problem"
}422 Rejected request; inspect the Problem code. Never retry a mutation blindly.
422 response · application/problem+json
{
"$ref": "#/components/schemas/Problem"
}429 Rejected request; inspect the Problem code. Never retry a mutation blindly.
429 response · application/problem+json
{
"$ref": "#/components/schemas/Problem"
}503 Rejected request; inspect the Problem code. Never retry a mutation blindly.
503 response · application/problem+json
{
"$ref": "#/components/schemas/Problem"
}GET/api-access
Read the calling API key's authorized sources and result origin
Free, header-only X-API-Key authentication. Returns only granted public source names and the configured signed-result storage origin (null if unavailable). No account ID, key ID, secret or storage credentials are returned. Local MCP revalidates this endpoint before every tool discovery and call, including cached result reads. No query parameters or request body are accepted. All /api-access routes share 120 requests per minute per client IP and return Cache-Control private, no-store. Normal key last-used tracking still occurs.
Authentication: dataApiKey
Server: https://api.flashdata.dev/v2
Responses
200 Authorized public sources and result origin
200 response · application/json
{
"$ref": "#/components/schemas/ApiAccess"
}401 Authentication required or invalid
401 response · application/problem+json
{
"$ref": "#/components/schemas/Problem"
}422 Request validation failed
422 response · application/problem+json
{
"$ref": "#/components/schemas/Problem"
}429 Too many account reads; retry after the rate-limit window
503 A required dependency or catalog is temporarily unavailable
503 response · application/problem+json
{
"$ref": "#/components/schemas/Problem"
}Credits
GET/api-access/balance
Read the live account balance using an API key
Read the current credit balance shared by all API keys in your account. Active reservations can reduce the available balance. This request costs no Credits and takes no query parameters or body. Responses are private and are not cached; account-read rate limits apply.
Authentication: dataApiKey
Server: https://api.flashdata.dev/v2
Responses
200 Signed balance and nonnegative available Credits
200 response · application/json
{
"$ref": "#/components/schemas/ApiAccessBalance"
}401 Authentication required or invalid
401 response · application/problem+json
{
"$ref": "#/components/schemas/Problem"
}422 Request validation failed
422 response · application/problem+json
{
"$ref": "#/components/schemas/Problem"
}429 Too many account reads; retry after the rate-limit window
503 A required dependency or catalog is temporarily unavailable
503 response · application/problem+json
{
"$ref": "#/components/schemas/Problem"
}GET/api-access/pricing
Read actual account prices for sources authorized by the API key
Read your account rates for sources allowed by the API key. A null price means that source is unavailable. request_count counts queries, not returned items; download rates are per TB (10^12 bytes). Estimates do not reserve Credits or capacity. This request costs no Credits. Responses are private and are not cached; account-read rate limits apply.
Authentication: dataApiKey
Server: https://api.flashdata.dev/v2
Parameters
source · query · optional
A source granted to this key; omit to read all granted sources.
Schema
{
"$ref": "#/components/schemas/ApiAccessSource"
}request_count · query · optional
Decimal integer number of calls; does not estimate download size.
Schema
{
"type": "integer",
"minimum": 1,
"maximum": 100000,
"default": 1
}Responses
200 Account plan and source-specific prices
200 response · application/json
{
"$ref": "#/components/schemas/ApiAccessPricing"
}401 Authentication required or invalid
401 response · application/problem+json
{
"$ref": "#/components/schemas/Problem"
}403 Authenticated but not permitted, or CSRF validation failed
403 response · application/problem+json
{
"$ref": "#/components/schemas/Problem"
}422 Request validation failed
422 response · application/problem+json
{
"$ref": "#/components/schemas/Problem"
}429 Too many account reads; retry after the rate-limit window
503 A required dependency or catalog is temporarily unavailable
503 response · application/problem+json
{
"$ref": "#/components/schemas/Problem"
}GET/api-access/limits
Read account plan limits and current pending jobs using an API key
Read your concurrency, batch-size and pending-job limits, plus the current pending count. These values help plan requests but do not reserve capacity. This request costs no Credits and takes no query parameters or body. Responses are private and are not cached; account-read rate limits apply.
Authentication: dataApiKey
Server: https://api.flashdata.dev/v2
Responses
200 Plan ceilings and current pending count
200 response · application/json
{
"$ref": "#/components/schemas/ApiAccessLimits"
}401 Authentication required or invalid
401 response · application/problem+json
{
"$ref": "#/components/schemas/Problem"
}422 Request validation failed
422 response · application/problem+json
{
"$ref": "#/components/schemas/Problem"
}429 Too many account reads; retry after the rate-limit window
503 A required dependency or catalog is temporarily unavailable
503 response · application/problem+json
{
"$ref": "#/components/schemas/Problem"
}GET/usage
Read account usage for sources authorized by the API key
Free read, authenticated only by X-API-Key. Includes all account keys but only sources granted to the calling key. Does not return query text, keys, payment details or other accounts. Defaults to seven days; maximum 31 days. Dates must use UTC Z timestamps. From is inclusive and to exclusive; both are rounded down to minutes. With from alone, to defaults to from + 7 days. With neither, to is the start of the next minute. Aggregates are eventually consistent; even updating=false does not guarantee all recent events are ingested. Read limit: 60 requests per minute per client IP. Minute-level usage is retained for 90 days and daily usage for 365 days. Boundaries older than 90 days must use 00:00:00Z. Unsupported ranges return HTTP 422 with usage_daily_range_required or usage_range_expired, as appropriate.
Authentication: dataApiKey
Server: https://api.flashdata.dev/v2
Parameters
source · query · optional
An exact catalog source granted to the calling key; omitted means all granted sources.
Schema
{
"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 · optional
Schema
{
"type": "string",
"format": "date-time"
}to · query · optional
Schema
{
"type": "string",
"format": "date-time"
}Responses
200 Scoped request counts and charged Credits, with freshness information
200 response · application/json
{
"$ref": "#/components/schemas/ApiKeyUsage"
}401 Authentication required or invalid
401 response · application/problem+json
{
"$ref": "#/components/schemas/Problem"
}403 Authenticated but not permitted, or CSRF validation failed
403 response · application/problem+json
{
"$ref": "#/components/schemas/Problem"
}422 Request validation failed
422 response · application/problem+json
{
"$ref": "#/components/schemas/Problem"
}429 Too many usage reads; retry after the rate-limit window
503 A required dependency or catalog is temporarily unavailable
503 response · application/problem+json
{
"$ref": "#/components/schemas/Problem"
}Jobs
For submission, status and result examples, see Realtime and async · Batch requests.
GET/jobs/{jobId}
Read one Data API job
Read job.status to check progress and job.error if processing failed. JSON is the default; use Accept: text/plain for readable text. X-Respond-With is ignored here. Follow Retry-After when provided before checking again.
Authentication: dataApiKey
Server: https://api.flashdata.dev/v2
Parameters
Accept · header · optional
application/json returns the original structured response; text/plain returns the same fields as indented plain text. Standard media ranges and q weights are supported; missing Accept or a global wildcard defaults to JSON. X-Respond-With is ignored on submission and job-status endpoints. Errors remain structured JSON. Both response types use UTF-8; an explicit charset=utf-8 parameter is supported.
Schema
{
"type": "string"
}jobId · path · required
Schema
{
"type": "string",
"pattern": "^job_[A-Za-z0-9_-]+$"
}Responses
200 Job detail
200 response · application/json
{
"type": "object",
"additionalProperties": false,
"required": [
"job"
],
"properties": {
"job": {
"$ref": "#/components/schemas/ConsoleJob"
}
}
}200 response · text/plain
{
"type": "string"
}401 Authentication required or invalid
401 response · application/problem+json
{
"$ref": "#/components/schemas/Problem"
}404 Resource not found or not owned by the caller
404 response · application/problem+json
{
"$ref": "#/components/schemas/Problem"
}406 Neither application/json nor text/plain is acceptable; response is JSON
406 response · application/json
{
"$ref": "#/components/schemas/QueryRepresentationError"
}GET/jobs/{jobId}/results
Download a completed async result
By default, authenticates access and redirects to a short-lived private R2 URL; clients receive the original JSON directly from R2. Accept: text/plain independently returns HTTP 200 with the original result fields as indented plain text. X-Respond-With: markdown selects Markdown content: application/json wraps it in content alongside the original metadata, replacing results; text/plain returns metadata followed by Markdown. Missing Accept or a global wildcard defaults to JSON. Formatting does not submit another query or charge query credits. Stored results expire 24 hours after completion. Errors remain structured JSON.
Authentication: dataApiKey
Server: https://api.flashdata.dev/v2
Parameters
X-Respond-With · header · optional
Set to markdown to return result content as Markdown. Omit to retain the original result fields. Accept independently selects JSON or plain text. Only realtime queries and completed job result reads support this header. It does not change job submissions, status, account APIs, callbacks, Bulk files, binary downloads, or MCP protocol responses.
Schema
{
"type": "string",
"enum": [
"markdown"
]
}Accept · header · optional
Select application/json or text/plain independently of X-Respond-With. Without X-Respond-With, text/plain returns the original fields with indentation; JSON retains the original response fields (completed-result reads redirect to storage). With markdown, JSON returns content plus metadata and plain text returns metadata followed by Markdown. Standard media ranges and q weights are supported; missing Accept or a global wildcard defaults to JSON. Both response types use UTF-8; an explicit charset=utf-8 parameter is supported.
Schema
{
"type": "string"
}jobId · path · required
Schema
{
"type": "string",
"pattern": "^job_[A-Za-z0-9_-]+$"
}Responses
200 Plain-text original fields or Markdown returned directly; original JSON from R2 after following the default redirect
200 response · application/json
{
"anyOf": [
{
"$ref": "#/components/schemas/MarkdownQueryResult"
},
{
"type": "object",
"additionalProperties": true
}
]
}200 response · text/plain
{
"type": "string"
}302 Redirect to original JSON in private R2 storage when JSON is selected without X-Respond-With
Headers: Location
400 Unsupported X-Respond-With value; response is JSON
400 response · application/json
{
"$ref": "#/components/schemas/QueryRepresentationError"
}401 Authentication required or invalid
401 response · application/problem+json
{
"$ref": "#/components/schemas/Problem"
}404 Resource not found or not owned by the caller
404 response · application/problem+json
{
"$ref": "#/components/schemas/Problem"
}406 Neither application/json nor text/plain is acceptable; response is JSON
406 response · application/json
{
"$ref": "#/components/schemas/QueryRepresentationError"
}409 Resource state or idempotency conflict
409 response · application/problem+json
{
"$ref": "#/components/schemas/Problem"
}410 Result expired
410 response · application/problem+json
{
"$ref": "#/components/schemas/Problem"
}422 The job failed. The response includes the saved failure reason in detail when available.
422 response · application/problem+json
{
"$ref": "#/components/schemas/Problem"
}503 A required dependency or catalog is temporarily unavailable
503 response · application/problem+json
{
"$ref": "#/components/schemas/Problem"
}Bulk processing API
Bulk endpoints have a dedicated reference with parameters, request examples and response schemas. Open Bulk processing API
GET /v2/bulk-jobs· List bulk YouTube jobsPOST /v2/bulk-jobs· Create a Bulk job and get a file upload URLGET /v2/bulk-jobs/{bulkId}· Read bulk job progress and aggregate countsPATCH /v2/bulk-jobs/{bulkId}· Change settings for videos that have not startedDELETE /v2/bulk-jobs/{bulkId}· Cancel a Bulk jobPOST /v2/bulk-jobs/{bulkId}/start· Start scanning an uploaded YouTube ID filePOST /v2/bulk-jobs/{bulkId}/pause· Pause a Bulk jobPOST /v2/bulk-jobs/{bulkId}/resume· Resume a manually or automatically paused bulk jobGET /v2/bulk-jobs/{bulkId}/results· Download the completed bulk manifestGET /v2/bulk-jobs/{bulkId}/results/{partNumber}· Download one gzip-compressed NDJSON bulk result part
System
GET/health
Service health
Authentication: Public
Server: https://api.flashdata.dev/v2
Responses
200 Healthy
200 response · application/json
{
"$ref": "#/components/schemas/Health"
}GET/status
Read the public component status summary
Authentication: Public
Server: https://api.flashdata.dev/v2
Responses
200 Public status summary
Headers: Cache-Control
200 response · application/json
{
"$ref": "#/components/schemas/PublicStatus"
}Agent Connections
GET/agent-connections/capabilities
Discover protocol 2 onboarding availability
No query parameters are accepted. Responses are no-store. Agent routes are management-only and feature-gated; deployments can return 404 when disabled. X-API-Key is forbidden on agent routes.
Authentication: Public
Server: https://api.flashdata.dev/v2
Responses
200 Discover protocol 2 onboarding availability
200 response · application/json
{
"$ref": "#/components/schemas/AgentCapabilities"
}400 Rejected request; inspect the Problem code. Never retry a mutation blindly.
400 response · application/problem+json
{
"$ref": "#/components/schemas/Problem"
}401 Rejected request; inspect the Problem code. Never retry a mutation blindly.
401 response · application/problem+json
{
"$ref": "#/components/schemas/Problem"
}403 Rejected request; inspect the Problem code. Never retry a mutation blindly.
403 response · application/problem+json
{
"$ref": "#/components/schemas/Problem"
}409 Rejected request; inspect the Problem code. Never retry a mutation blindly.
409 response · application/problem+json
{
"$ref": "#/components/schemas/Problem"
}410 Rejected request; inspect the Problem code. Never retry a mutation blindly.
410 response · application/problem+json
{
"$ref": "#/components/schemas/Problem"
}422 Rejected request; inspect the Problem code. Never retry a mutation blindly.
422 response · application/problem+json
{
"$ref": "#/components/schemas/Problem"
}429 Rejected request; inspect the Problem code. Never retry a mutation blindly.
429 response · application/problem+json
{
"$ref": "#/components/schemas/Problem"
}503 Rejected request; inspect the Problem code. Never retry a mutation blindly.
503 response · application/problem+json
{
"$ref": "#/components/schemas/Problem"
}POST/agent-connections/registrations
Create or recover a temporary API-key connection
Persist the registration proof and exact input before POST. Same proof and body recover the same trial; changing input yields conflict. Temporary trial: 1 Credit, 72 hours, 1 request/second, batch size 1. Source scope limits remain authoritative on the server. No query parameters are accepted. Responses are no-store. Agent routes are management-only and feature-gated; deployments can return 404 when disabled. X-API-Key is forbidden on agent routes.
Authentication: agentRegistrationProof
Server: https://api.flashdata.dev/v2
Request body · required
Schema · application/json
{
"$ref": "#/components/schemas/AgentRegistrationRequest"
}Responses
201 Create or recover a temporary API-key connection
201 response · application/json
{
"$ref": "#/components/schemas/AgentRegistration"
}400 Rejected request; inspect the Problem code. Never retry a mutation blindly.
400 response · application/problem+json
{
"$ref": "#/components/schemas/Problem"
}401 Rejected request; inspect the Problem code. Never retry a mutation blindly.
401 response · application/problem+json
{
"$ref": "#/components/schemas/Problem"
}403 Rejected request; inspect the Problem code. Never retry a mutation blindly.
403 response · application/problem+json
{
"$ref": "#/components/schemas/Problem"
}409 Rejected request; inspect the Problem code. Never retry a mutation blindly.
409 response · application/problem+json
{
"$ref": "#/components/schemas/Problem"
}410 Rejected request; inspect the Problem code. Never retry a mutation blindly.
410 response · application/problem+json
{
"$ref": "#/components/schemas/Problem"
}422 Rejected request; inspect the Problem code. Never retry a mutation blindly.
422 response · application/problem+json
{
"$ref": "#/components/schemas/Problem"
}429 Rejected request; inspect the Problem code. Never retry a mutation blindly.
429 response · application/problem+json
{
"$ref": "#/components/schemas/Problem"
}503 Rejected request; inspect the Problem code. Never retry a mutation blindly.
503 response · application/problem+json
{
"$ref": "#/components/schemas/Problem"
}GET/agent-connections/{connectionId}
Read temporary connection status
No query parameters are accepted. Responses are no-store. Agent routes are management-only and feature-gated; deployments can return 404 when disabled. X-API-Key is forbidden on agent routes.
Authentication: agentSetupCredential
Server: https://api.flashdata.dev/v2
Parameters
connectionId · path · required
Schema
{
"type": "string",
"pattern": "^acn_[A-Za-z0-9_-]{8,100}$"
}Responses
200 Read temporary connection status
200 response · application/json
{
"$ref": "#/components/schemas/AgentConnectionResponse"
}400 Rejected request; inspect the Problem code. Never retry a mutation blindly.
400 response · application/problem+json
{
"$ref": "#/components/schemas/Problem"
}401 Rejected request; inspect the Problem code. Never retry a mutation blindly.
401 response · application/problem+json
{
"$ref": "#/components/schemas/Problem"
}403 Rejected request; inspect the Problem code. Never retry a mutation blindly.
403 response · application/problem+json
{
"$ref": "#/components/schemas/Problem"
}409 Rejected request; inspect the Problem code. Never retry a mutation blindly.
409 response · application/problem+json
{
"$ref": "#/components/schemas/Problem"
}410 Rejected request; inspect the Problem code. Never retry a mutation blindly.
410 response · application/problem+json
{
"$ref": "#/components/schemas/Problem"
}422 Rejected request; inspect the Problem code. Never retry a mutation blindly.
422 response · application/problem+json
{
"$ref": "#/components/schemas/Problem"
}429 Rejected request; inspect the Problem code. Never retry a mutation blindly.
429 response · application/problem+json
{
"$ref": "#/components/schemas/Problem"
}503 Rejected request; inspect the Problem code. Never retry a mutation blindly.
503 response · application/problem+json
{
"$ref": "#/components/schemas/Problem"
}GET/agent-connections/{connectionId}/identity
Verify the current data API key for a connection
No query parameters are accepted. Responses are no-store. Agent routes are management-only and feature-gated; deployments can return 404 when disabled. X-API-Key is forbidden on agent routes.
Authentication: agentIdentityKey
Server: https://api.flashdata.dev/v2
Parameters
connectionId · path · required
Schema
{
"type": "string",
"pattern": "^acn_[A-Za-z0-9_-]{8,100}$"
}Responses
200 Verify the current data API key for a connection
200 response · application/json
{
"$ref": "#/components/schemas/AgentConnectionResponse"
}400 Rejected request; inspect the Problem code. Never retry a mutation blindly.
400 response · application/problem+json
{
"$ref": "#/components/schemas/Problem"
}401 Rejected request; inspect the Problem code. Never retry a mutation blindly.
401 response · application/problem+json
{
"$ref": "#/components/schemas/Problem"
}403 Rejected request; inspect the Problem code. Never retry a mutation blindly.
403 response · application/problem+json
{
"$ref": "#/components/schemas/Problem"
}409 Rejected request; inspect the Problem code. Never retry a mutation blindly.
409 response · application/problem+json
{
"$ref": "#/components/schemas/Problem"
}410 Rejected request; inspect the Problem code. Never retry a mutation blindly.
410 response · application/problem+json
{
"$ref": "#/components/schemas/Problem"
}422 Rejected request; inspect the Problem code. Never retry a mutation blindly.
422 response · application/problem+json
{
"$ref": "#/components/schemas/Problem"
}429 Rejected request; inspect the Problem code. Never retry a mutation blindly.
429 response · application/problem+json
{
"$ref": "#/components/schemas/Problem"
}503 Rejected request; inspect the Problem code. Never retry a mutation blindly.
503 response · application/problem+json
{
"$ref": "#/components/schemas/Problem"
}GET/agent-connections/{connectionId}/onboarding
Read recoverable onboarding state
No query parameters are accepted. Responses are no-store. Agent routes are management-only and feature-gated; deployments can return 404 when disabled. X-API-Key is forbidden on agent routes.
Authentication: agentHandoffProof
Server: https://api.flashdata.dev/v2
Parameters
connectionId · path · required
Schema
{
"type": "string",
"pattern": "^acn_[A-Za-z0-9_-]{8,100}$"
}Responses
200 Read recoverable onboarding state
200 response · application/json
{
"$ref": "#/components/schemas/AgentOnboardingStatus"
}400 Rejected request; inspect the Problem code. Never retry a mutation blindly.
400 response · application/problem+json
{
"$ref": "#/components/schemas/Problem"
}401 Rejected request; inspect the Problem code. Never retry a mutation blindly.
401 response · application/problem+json
{
"$ref": "#/components/schemas/Problem"
}403 Rejected request; inspect the Problem code. Never retry a mutation blindly.
403 response · application/problem+json
{
"$ref": "#/components/schemas/Problem"
}409 Rejected request; inspect the Problem code. Never retry a mutation blindly.
409 response · application/problem+json
{
"$ref": "#/components/schemas/Problem"
}410 Rejected request; inspect the Problem code. Never retry a mutation blindly.
410 response · application/problem+json
{
"$ref": "#/components/schemas/Problem"
}422 Rejected request; inspect the Problem code. Never retry a mutation blindly.
422 response · application/problem+json
{
"$ref": "#/components/schemas/Problem"
}429 Rejected request; inspect the Problem code. Never retry a mutation blindly.
429 response · application/problem+json
{
"$ref": "#/components/schemas/Problem"
}503 Rejected request; inspect the Problem code. Never retry a mutation blindly.
503 response · application/problem+json
{
"$ref": "#/components/schemas/Problem"
}POST/agent-connections/{connectionId}/claims
Create a browser approval claim
Open claimPath on a trusted FlashData web origin and display the code separately. Never place credentials or the confirmation code in the URL. No query parameters are accepted. Responses are no-store. Agent routes are management-only and feature-gated; deployments can return 404 when disabled. X-API-Key is forbidden on agent routes.
Authentication: agentSetupCredential
Server: https://api.flashdata.dev/v2
Parameters
connectionId · path · required
Schema
{
"type": "string",
"pattern": "^acn_[A-Za-z0-9_-]{8,100}$"
}Request body · required
Schema · application/json
{
"type": "object",
"additionalProperties": false,
"properties": {},
"required": []
}Responses
201 Create a browser approval claim
201 response · application/json
{
"$ref": "#/components/schemas/AgentClaim"
}400 Rejected request; inspect the Problem code. Never retry a mutation blindly.
400 response · application/problem+json
{
"$ref": "#/components/schemas/Problem"
}401 Rejected request; inspect the Problem code. Never retry a mutation blindly.
401 response · application/problem+json
{
"$ref": "#/components/schemas/Problem"
}403 Rejected request; inspect the Problem code. Never retry a mutation blindly.
403 response · application/problem+json
{
"$ref": "#/components/schemas/Problem"
}409 Rejected request; inspect the Problem code. Never retry a mutation blindly.
409 response · application/problem+json
{
"$ref": "#/components/schemas/Problem"
}410 Rejected request; inspect the Problem code. Never retry a mutation blindly.
410 response · application/problem+json
{
"$ref": "#/components/schemas/Problem"
}422 Rejected request; inspect the Problem code. Never retry a mutation blindly.
422 response · application/problem+json
{
"$ref": "#/components/schemas/Problem"
}429 Rejected request; inspect the Problem code. Never retry a mutation blindly.
429 response · application/problem+json
{
"$ref": "#/components/schemas/Problem"
}503 Rejected request; inspect the Problem code. Never retry a mutation blindly.
503 response · application/problem+json
{
"$ref": "#/components/schemas/Problem"
}POST/agent-connections/{connectionId}/handoff
Recover the approved owner API key
Candidate key expires in 24 hours until installation ACK. Persist atomically, reload in a fresh process and verify identity before ACK. A repeated delivery recovers the same candidate; confirmed delivery returns a receipt without credentials. No query parameters are accepted. Responses are no-store. Agent routes are management-only and feature-gated; deployments can return 404 when disabled. X-API-Key is forbidden on agent routes.
Authentication: agentHandoffProof
Server: https://api.flashdata.dev/v2
Parameters
connectionId · path · required
Schema
{
"type": "string",
"pattern": "^acn_[A-Za-z0-9_-]{8,100}$"
}Request body · required
Schema · application/json
{
"type": "object",
"additionalProperties": false,
"properties": {},
"required": []
}Responses
200 Recover the approved owner API key
200 response · application/json
{
"$ref": "#/components/schemas/AgentHandoff"
}400 Rejected request; inspect the Problem code. Never retry a mutation blindly.
400 response · application/problem+json
{
"$ref": "#/components/schemas/Problem"
}401 Rejected request; inspect the Problem code. Never retry a mutation blindly.
401 response · application/problem+json
{
"$ref": "#/components/schemas/Problem"
}403 Rejected request; inspect the Problem code. Never retry a mutation blindly.
403 response · application/problem+json
{
"$ref": "#/components/schemas/Problem"
}409 Rejected request; inspect the Problem code. Never retry a mutation blindly.
409 response · application/problem+json
{
"$ref": "#/components/schemas/Problem"
}410 Rejected request; inspect the Problem code. Never retry a mutation blindly.
410 response · application/problem+json
{
"$ref": "#/components/schemas/Problem"
}422 Rejected request; inspect the Problem code. Never retry a mutation blindly.
422 response · application/problem+json
{
"$ref": "#/components/schemas/Problem"
}429 Rejected request; inspect the Problem code. Never retry a mutation blindly.
429 response · application/problem+json
{
"$ref": "#/components/schemas/Problem"
}503 Rejected request; inspect the Problem code. Never retry a mutation blindly.
503 response · application/problem+json
{
"$ref": "#/components/schemas/Problem"
}POST/agent-connections/{connectionId}/handoff/ack
Acknowledge verified owner-key installation
Caller must already have saved the candidate and independently verified it in a fresh process. Successful ACK marks installed, removes the candidate key expiry and deletes recoverable credential material. Repeated ACK is idempotent. No query parameters are accepted. Responses are no-store. Agent routes are management-only and feature-gated; deployments can return 404 when disabled. X-API-Key is forbidden on agent routes.
Authentication: agentHandoffProof
Server: https://api.flashdata.dev/v2
Parameters
connectionId · path · required
Schema
{
"type": "string",
"pattern": "^acn_[A-Za-z0-9_-]{8,100}$"
}Request body · required
Schema · application/json
{
"type": "object",
"additionalProperties": false,
"properties": {
"apiKey": {
"type": "string"
}
},
"required": [
"apiKey"
]
}Responses
200 Acknowledge verified owner-key installation
200 response · application/json
{
"$ref": "#/components/schemas/AgentHandoff"
}400 Rejected request; inspect the Problem code. Never retry a mutation blindly.
400 response · application/problem+json
{
"$ref": "#/components/schemas/Problem"
}401 Rejected request; inspect the Problem code. Never retry a mutation blindly.
401 response · application/problem+json
{
"$ref": "#/components/schemas/Problem"
}403 Rejected request; inspect the Problem code. Never retry a mutation blindly.
403 response · application/problem+json
{
"$ref": "#/components/schemas/Problem"
}409 Rejected request; inspect the Problem code. Never retry a mutation blindly.
409 response · application/problem+json
{
"$ref": "#/components/schemas/Problem"
}410 Rejected request; inspect the Problem code. Never retry a mutation blindly.
410 response · application/problem+json
{
"$ref": "#/components/schemas/Problem"
}422 Rejected request; inspect the Problem code. Never retry a mutation blindly.
422 response · application/problem+json
{
"$ref": "#/components/schemas/Problem"
}429 Rejected request; inspect the Problem code. Never retry a mutation blindly.
429 response · application/problem+json
{
"$ref": "#/components/schemas/Problem"
}503 Rejected request; inspect the Problem code. Never retry a mutation blindly.
503 response · application/problem+json
{
"$ref": "#/components/schemas/Problem"
}Catalog
GET/catalog/sources
List public source capabilities without account-specific pricing
Authentication: Public
Server: https://api.flashdata.dev/v2
Responses
200 Public source catalog
Headers: Cache-Control
200 response · application/json
{
"type": "object",
"additionalProperties": false,
"required": [
"data"
],
"properties": {
"data": {
"type": "array",
"items": {
"$ref": "#/components/schemas/DataSource"
}
}
}
}GET/plans
List public USD plans and prices
Authentication: Public
Server: https://api.flashdata.dev/v2
Responses
200 Public plan catalog
Headers: Cache-Control
200 response · application/json
{
"$ref": "#/components/schemas/PlanCatalog"
}GET/legal/current
Read the current Terms and Privacy versions required for signup
Authentication: Public
Server: https://api.flashdata.dev/v2
Responses
200 Current legal version catalog
Headers: Cache-Control
200 response · application/json
{
"$ref": "#/components/schemas/PublicLegalVersions"
}Schema definitions
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
{
"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
{
"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
{
"type": "object",
"additionalProperties": false,
"properties": {
"connection": {
"$ref": "#/components/schemas/AgentConnection"
}
},
"required": [
"connection"
]
}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
{
"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
{
"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
{
"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
{
"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
{
"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
{
"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
{
"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
{
"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
{
"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
{
"type": "object",
"additionalProperties": false,
"properties": {
"name": {
"type": "string"
},
"type": {
"type": "string"
},
"billingMode": {
"type": "string"
},
"status": {
"type": "string"
}
}
}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
{
"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
{
"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
{
"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
{
"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
{
"type": "object",
"additionalProperties": false,
"required": [
"data",
"pagination"
],
"properties": {
"data": {
"type": "array",
"items": {
"$ref": "#/components/schemas/BulkJob"
}
},
"pagination": {
"$ref": "#/components/schemas/Pagination"
}
}
}BulkJobResponse
{
"type": "object",
"additionalProperties": false,
"required": [
"job"
],
"properties": {
"job": {
"$ref": "#/components/schemas/BulkJob"
}
}
}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
{
"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
{
"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
{
"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"
}
}
}JobLink
{
"type": "object",
"additionalProperties": false,
"required": [
"rel",
"href",
"method"
],
"properties": {
"rel": {
"type": "string",
"enum": [
"self",
"results",
"content",
"download"
]
},
"href": {
"type": "string",
"format": "uri"
},
"method": {
"type": "string",
"const": "GET"
},
"expires_at": {
"type": "string",
"format": "date-time"
},
"filename": {
"type": "string"
},
"content_type": {
"type": "string"
},
"size_bytes": {
"type": "integer",
"minimum": 1
}
}
}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
{
"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
{
"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
{
"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
{
"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
{
"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
{
"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
{
"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
{
"type": "object",
"additionalProperties": false,
"required": [
"field",
"code",
"message"
],
"properties": {
"field": {
"type": "string"
},
"code": {
"type": "string"
},
"message": {
"type": "string"
}
}
}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
{
"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
{
"type": "object",
"additionalProperties": false,
"required": [
"id",
"name",
"status"
],
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"status": {
"type": "string",
"enum": [
"operational",
"degraded",
"outage"
]
}
}
}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
{
"type": "object",
"required": [
"error",
"code",
"message"
],
"properties": {
"error": {
"type": "boolean",
"const": true
},
"code": {
"type": "string",
"enum": [
"unsupported_representation",
"not_acceptable"
]
},
"message": {
"type": "string"
}
}
}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
{
"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."
}
}
}