---
title: "Create Api Key"
method: POST
path: "/api/v1/keys"
tags: ["auth"]
---

# Create Api Key

`POST /api/v1/keys`

## Request

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

Create a new API key. Returns the secret once only.

Buyer keys can be created without authentication — the server issues the
owner_id (identity is never taken from the request body).
Provider and admin keys require an existing authenticated Bearer token.

## Request body

- CreateKeyRequest
  - `owner_id` string, nullable
  - `role` string
  - `rate_limit` integer
  - `wallet_address` string, nullable

## Response `201`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/agentictrade/apis/agent-commerce-framework.md) · [All operations](https://skmtc.dev/agentictrade/apis/agent-commerce-framework/llms.txt) · [OpenAPI document](https://skmtc.dev/agentictrade/apis/agent-commerce-framework/revisions/65b4b64609bc?raw)
