API reference
The Azta API, generated from the OpenAPI 3.1 document core publishes.
The Azta API answers legislation questions over HTTP, and every answer links to the provisions it cites.
Base URL
https://api.azta.ai/v1Authentication
Send your API key as a bearer token on every request.
Authorization: Bearer $AZTA_API_KEYCreate keys in the console. Keep them out of source control and read them from the environment.
Jurisdiction
Set the X-Jurisdiction header to choose the legal system a request is answered under. The endpoint pages list the accepted values.
Machine-readable spec
Every page below is generated from one OpenAPI 3.1 document: /openapi/v1.json. Point a client generator or an agent at it.
Use Azta in ChatGPT, Claude and coding agents
Connect the Azta MCP server to ChatGPT, Claude, Cursor, VS Code, Claude Code, Codex and Gemini CLI.
Cancel a response POST
Stop a response. A dropped stream cancels nothing; this call does. The response comes back `cancelled` once nothing was left running, or `in_progress` while a step is still being torn down; a second cancel then also answers `200`. A response that has already finished is `response_finished`, which includes one whose answer was complete when the cancel arrived: that one completes and is charged. A response cancelled before its first text delta reached you is free; one cancelled after it is charged. The call accepts `Idempotency-Key` and stores nothing.