List my API keys
curl --request GET \
--url https://api.unitedmarket.ai/me/api-keys \
--header 'Authorization: Bearer <token>' \
--header 'x-api-key: <api-key>'const options = {
method: 'GET',
headers: {'x-api-key': '<api-key>', Authorization: 'Bearer <token>'}
};
fetch('https://api.unitedmarket.ai/me/api-keys', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.unitedmarket.ai/me/api-keys"
headers = {
"x-api-key": "<api-key>",
"Authorization": "Bearer <token>"
}
response = requests.get(url, headers=headers)
print(response.text)[
{
"id": "<string>",
"name": "trading-bot",
"prefix": "umk_live_AbC123",
"tier": "DEFAULT",
"lastUsedAt": "2023-11-07T05:31:56Z",
"revokedAt": "2023-11-07T05:31:56Z",
"createdAt": "2023-11-07T05:31:56Z"
}
]{
"message": "Invalid API Key provided",
"error": "Unauthorized",
"statusCode": 401
}API Keys
List my API keys
Returns the authenticated user’s API keys (metadata only; secrets are never returned). Requires x-api-key and a SIWE bearer. A bearer without x-api-key returns 401 Invalid API Key provided.
GET
https://api.unitedmarket.ai
/
me
/
api-keys
List my API keys
curl --request GET \
--url https://api.unitedmarket.ai/me/api-keys \
--header 'Authorization: Bearer <token>' \
--header 'x-api-key: <api-key>'const options = {
method: 'GET',
headers: {'x-api-key': '<api-key>', Authorization: 'Bearer <token>'}
};
fetch('https://api.unitedmarket.ai/me/api-keys', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.unitedmarket.ai/me/api-keys"
headers = {
"x-api-key": "<api-key>",
"Authorization": "Bearer <token>"
}
response = requests.get(url, headers=headers)
print(response.text)[
{
"id": "<string>",
"name": "trading-bot",
"prefix": "umk_live_AbC123",
"tier": "DEFAULT",
"lastUsedAt": "2023-11-07T05:31:56Z",
"revokedAt": "2023-11-07T05:31:56Z",
"createdAt": "2023-11-07T05:31:56Z"
}
]{
"message": "Invalid API Key provided",
"error": "Unauthorized",
"statusCode": 401
}Authorizations
Shared web key or a personal key (umk_live_…). Required on routes that are not @Public(). A missing or unknown key returns 401 Invalid API Key provided even if a SIWE bearer is also sent.
SIWE access token returned by POST /auth/verify.
Response
API keys returned.
Example:
"trading-bot"
Non-secret display fragment of the key.
Example:
"umk_live_AbC123"
Rate-limit tier. MM sits between PRO and INTERNAL for external market makers.
Available options:
DEFAULT, PRO, MM, INTERNAL 