Authentication
Send a bearer token in the Authorization header to access
your account or trade. The public market feed is open to everyone.
Set up a key
Create the key
Connect your wallet and verify your email. In Account → API Keys, name the key for your integration.
Choose permissions
Select the scopes for the endpoints you’ll call.
- Get Current User
- user:read
- Get Balance
- balance:read
- Place Order
- order:place
Withdrawals require
balance:withdraw. View all scopes.Save the full key
You can copy the full key only when you create it. Store it in your server’s secret store and set UNHEDGED_API_KEY from that value. If you lose it, create a replacement and revoke the old key.
Get Current User
GET /api/v1/users/me
Verify your key with this read-only profile request. It requires user:read.
api=https://api.unhedged.gg
curl --include \
-H "Authorization: Bearer $UNHEDGED_API_KEY" \
"$api/api/v1/users/me" Check the response
- 200 OK
- Your key works. The response includes your account ID and username.
- 401 Unauthorized
- Check that the environment variable holds the full key, including ak_, and that the key is active and unexpired.
- 403 Forbidden
- Check for the user:read scope. If the key has an IP allowlist, confirm it includes your server’s outgoing IP.