Skip to content

API reference

Look up every endpoint of the REST API with its method, path and purpose, generated from the OpenAPI 3.1 document you can import into any client.

View as Markdown

Every endpoint of the REST API. This list is generated from the OpenAPI document, so it cannot drift from the API.

  • Base URL: https://promptgale.com
  • OpenAPI 3.1: /v1/openapi.json. Use it to generate a client or import it into an API tool.

Deprecated paths keep working; use the path they name in new code.

Tasks

MethodPathDescription
GET/v1/tasksList tasks, newest first
POST/v1/tasksQueue a task
GET/v1/tasks/{id}Get a task and its result
DELETE/v1/tasks/{id}Cancel a queued task
GET/v1/tasks/{id}/eventsA task's timeline (queued, running, retrying, completed, failed, cancelled)
POST/v1/tasks/bulkQueue up to 500 tasks atomically
POST/v1/async/taskDeprecated: use POST /v1/tasks.
POST/v1/async/task/batchDeprecated: use POST /v1/tasks/bulk.
GET/v1/async/task/{id}Deprecated: use GET /v1/tasks/{id}.
POST/v1/sync/taskQueue a task and wait for it (up to 290 s)

Grids

MethodPathDescription
GET/v1/gridsLocation grids, newest first (without points)
POST/v1/gridsAsk one prompt from every point of a location grid (up to 9 x 9)
GET/v1/grids/{id}Get a location grid with its points
POST/v1/async/task/gridDeprecated: use POST /v1/grids.
GET/v1/async/task/grid/{id}Deprecated: use GET /v1/grids/{id}.

Batches

MethodPathDescription
POST/v1/batchesCreate a batch of up to 10,000 tasks
GET/v1/batchesBatches, newest first
GET/v1/batches/{id}Batch progress: counts by status, credits held and charged
POST/v1/batches/{id}/cancelCancel a batch's pending items and queued tasks
GET/v1/batches/{id}/itemsBatch items in submission order, a page at a time

Queue and account

MethodPathDescription
GET/v1/creditsCredit balance and billing plan
GET/v1/usageUsage per UTC day and engine
GET/v1/queueYour queue: queued and processing tasks, pending batch items, concurrency used and limit
DELETE/v1/queueCancel your queued tasks and pending batch items
GET/v1/async/statusDeprecated: use GET /v1/queue.
DELETE/v1/async/queueDeprecated: use DELETE /v1/queue.
GET/v1/statsYour task counts by status and engine for a window
GET/statsDeprecated: use GET /v1/stats.

Catalog and geo

MethodPathDescription
GET/v1/statesUS states accepted by payload.state (other countries: empty)
GET/v1/capabilitiesEngines available now: taskType, aliases, status, credits, input fields (required / optional / include), served countries, location flags, evidence
GET/v1/countriesCountries we serve now, with locale data; with taskType only those that engine is served from
GET/v1/capacityLoad per available engine: status, queued and processing tasks, oldest queued age
GET/capacityDeprecated: use GET /v1/capacity.

Utilities

MethodPathDescription
POST/v1/google/gotoResolve a Google redirect link to the page it leads to (no credits)
GET/v1/google/gotoSame as POST, with ?url=
GET/evidence/{id}Saved evidence page of a task (include.html; CHATGPT, GEMINI, PERPLEXITY, BING_COPILOT_SEARCH, META_AI, GOOGLE_AIO, GOOGLE_AIMODE)

Service

MethodPathDescription
GET/openapi.jsonThis document
GET/v1/openapi.jsonThis document (same as /openapi.json)
GET/healthhealth

Last updated