---
title: "Create Agent Api Key"
method: POST
path: "/v1/agent-keys"
---

# Create Agent Api Key

`POST /v1/agent-keys`

## Request

- Base URL: `https://licenseground.com` (the document declares no server; this is the origin it was published from)
- URL: `https://licenseground.com/v1/agent-keys`
- Auth: none declared

Autonomous registration endpoint: AI agents or deployment scripts can register
and receive an evaluation API key preloaded with 25 free queries.
Protected by strict IP rate limiting to prevent Sybil/abuse attacks.

## Request body

- CreateAgentKeyRequest
  - `agent_name` string
  - `spending_ceiling_usd` number

## Response `200`

Successful Response

- MeterStatus: Credits and usage metering information for agent accounts.
  - `api_key` string, required
  - `remaining_credits` integer, required
  - `total_used` integer, required
  - `spending_ceiling_usd` number, required
  - `current_spend_usd` number, required
  - `is_active` boolean, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/licenseground/apis/licenseground-api.md) · [All operations](https://skmtc.dev/licenseground/apis/licenseground-api/llms.txt) · [OpenAPI document](https://skmtc.dev/licenseground/apis/licenseground-api/revisions/ae223163cce0?raw)
