Skip to main content
GET
cURL
Use this when a code generator or a docs tool starts from api.0xinsider.com and looks for the spec there. One copy of the document exists, and it lives on the web origin. API discovery returns the same URL as openapi_url.

Response

Follow the redirect with curl -L, or read the Location header and fetch that URL yourself. Most HTTP clients and code generators follow it without any configuration.

Example

What it does not return

  • The document itself. This route only redirects, which is why one copy of the spec exists rather than two that could drift apart.
  • A 200. A client configured to refuse redirects sees the 307 and nothing else.
  • The sandbox’s spec. That is at https://0xinsider.com/sandbox/api/v1/openapi.json, which Register an agent also returns as sandbox.openapi_url.

Headers

X-Query-Validation
enum<string>

Opt into strict query-name validation. The default is compatible: unknown names are ignored and reported in X-Query-Ignored. With strict, an unknown name returns 400 bad_request with error.reason unknown_query_parameter before the handler runs, including when its percent escape is incomplete.

Available options:
strict

Response

Temporary redirect to the canonical web-origin OpenAPI spec.