Skip to main content
GET
/
v1
/
user
/
me
/
api-keys
List API keys
curl --request GET \
  --url https://relay.bayse.markets/v1/user/me/api-keys
{
  "keys": [
    {
      "id": "3f7a1b2c-d4e5-6789-abcd-ef0123456789",
      "name": "Trading bot",
      "publicKey": "pk_live_abcdef123456",
      "secretKeyHint": "sk_live_...xyz",
      "createdAt": "2026-02-17T10:30:00Z"
    }
  ],
  "total": 1
}

Authentication

Requires x-auth-token and x-device-id headers. Obtain these by calling the login endpoint.

Example request

curl https://relay.bayse.markets/v1/user/me/api-keys \
  -H "x-auth-token: YOUR_AUTH_TOKEN" \
  -H "x-device-id: YOUR_DEVICE_ID"

Response

keys
array
List of API key objects.
total
integer
Total number of active keys.
{
  "keys": [
    {
      "id": "3f7a1b2c-d4e5-6789-abcd-ef0123456789",
      "name": "Trading bot",
      "publicKey": "pk_live_abcdef123456",
      "secretKeyHint": "sk_live_...xyz",
      "createdAt": "2026-02-17T10:30:00Z"
    }
  ],
  "total": 1
}