Skip to content
GridRouterhome

Search

Search providers, capabilities and pages

Docs
API reference

API reference

Every GridRouter route, generated from the gateway's OpenAPI document. Base URL, authentication and conventions.

Every page in this section is generated from the gateway's own route definitions at build time, so it always matches what https://api.gridrouter.io serves. The same operations are MCP tools with the same names.

Base URL and auth

https://api.gridrouter.io

Send a GridRouter API key as a bearer token:

Authorization: Bearer grid_live_…

Catalog and status routes are public and need no key. Everything else checks the key's scopes; each operation lists the scope it needs.

Conventions

  • JSON in, JSON out. Request bodies are validated at the edge; a bad field is 400 invalid_request or 422 validation_failed with the field's path.
  • Money is integer micro-USD everywhere: 1,000,000 = $1. The one exception is the X-Grid-Max-Cost header, which is in USD.
  • Timestamps are ISO 8601 in UTC.
  • Paging. Routes that page take limit and an opaque cursor.
  • Idempotency. Send Idempotency-Key on POSTs that run something; see idempotency.
  • Errors share one envelope.

Machine-readable

DocumentURL
OpenAPI 3.1https://api.gridrouter.io/openapi.json
OpenAPI 3.0 (for older tooling)https://api.gridrouter.io/openapi-3.0.json
Tool schemashttps://api.gridrouter.io/v1/tools?format=openai|anthropic|mcp
Execution options JSON Schemahttps://api.gridrouter.io/v1/options/schema

The playground on each operation page sends real requests from your browser straight to the API, with the key you enter. Use a test or read-only key there.