Skip to main content

API Key

Include your API key in the X-API-Key header with every request:
curl https://api.pmx.trade/v2/markets \
  -H "X-API-Key: pmx_live_abc123..."

Key Format

pmx_live_{32_character_string}
Your API key is bound to the wallet that created it. All trading operations execute on behalf of that wallet.

Security

Environment Variables

Never hardcode keys in source code

Server-Side Only

Never expose keys in client-side code

Rotate Regularly

Generate new keys periodically

Revoke Immediately

Delete compromised keys instantly

Example Setup

PMX_API_KEY=pmx_live_abc123...

Rate Limit Headers

Every response includes rate limit information:
X-RateLimit-Limit: 100
X-RateLimit-Remaining: 97
X-RateLimit-Reset: 1707580800

Error Responses

StatusCodeDescription
401UNAUTHORIZEDMissing or invalid API key
429RATE_LIMIT_EXCEEDEDToo many requests