v1

latestOpenAPI 3.1.02026-07-22163829.6 KB
User

Create API Key

Create a new API key. The plaintext key is returned once in this response and never again — store it securely. The key works immediately as a maker X-API-Key for the quote-request stream and REST endpoints, attributed to your makerId.

post/v1/user/api-keys

Request body

namestring

Optional label for the key.

Example request

{
  "name": "production-bot"
}

Response

Key created (plaintext returned once)

successtrue
keystring

The plaintext API key. Shown ONCE — store it now.

Example response

{
  "key": "mk_live_9f8e7d6c5b4a3f2e1d0c9b8a7...",
  "apiKey": {
    "id": "8f3c2b1a-1d2e-4c3b-9a8f-6e5d4c3b2a1f",
    "name": "production-bot",
    "keyPrefix": "mk_live_9f8e7d6",
    "createdAt": "2026-06-16T18:05:00.000Z"
  }
}