Skip to main content
POST
https://backend-develop.themarketunited.com
/
me
/
api-keys
Create an API key
curl --request POST \
  --url https://backend-develop.themarketunited.com/me/api-keys \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "trading-bot"
}
'
{
  "id": "<string>",
  "name": "trading-bot",
  "prefix": "umk_live_AbC123",
  "lastUsedAt": "2023-11-07T05:31:56Z",
  "revokedAt": "2023-11-07T05:31:56Z",
  "createdAt": "2023-11-07T05:31:56Z",
  "key": "umk_live_xxxxxxxxxxxxxxxxxxxxxxxx"
}

Authorizations

Authorization
string
header
required

SIWE access token returned by POST /auth/verify.

Body

application/json
name
string
required
Maximum string length: 60
Example:

"trading-bot"

Response

API key created. The key field appears only in this response.

id
string
name
string
Example:

"trading-bot"

prefix
string

Non-secret display fragment of the key.

Example:

"umk_live_AbC123"

tier
enum<string>

Rate-limit tier.

Available options:
DEFAULT,
PRO,
INTERNAL
lastUsedAt
string<date-time> | null
revokedAt
string<date-time> | null
createdAt
string<date-time>
key
string

The full plaintext secret. Returned only once, at creation or rotation.

Example:

"umk_live_xxxxxxxxxxxxxxxxxxxxxxxx"