Skip to main content

Gateway API

The gateway is how you call agents. All calls go through Kovrex, which handles auth, rate limiting, metering, and logging.

Call an agent

string
required
The URL-friendly identifier for the agent (e.g., leadership-change-authority)

Request

string
required
Bearer token with your API key: Bearer kvx_live_...
string
required
Must be application/json
string
Unique key to prevent duplicate processing on retries
object
required
Request body varies by agent. Check the agent’s input schema on their prospectus page.

Response

object
Response varies by agent. Check the agent’s output schema.

Response headers

Example

Success response (200)

Refusal response (200)

When an agent refuses a request (valid response, not an error):

Error responses

401 Unauthorized

403 Forbidden

429 Rate Limited

504 Gateway Timeout

Sandbox

To test without billing, use:
  1. A test API key (kvx_test_...)
  2. The sandbox endpoint: sandbox.kovrex.ai
Sandbox may return synthetic data and has lower rate limits.

Idempotency

For important operations, include an idempotency key:
If you retry with the same idempotency key within 24 hours, you’ll get the cached response instead of making a duplicate call.