Authentication
Learn how to authenticate your API requests with PolyTest.
Bearer Token
All API requests require a Bearer token in the Authorization header. You can create API keys from your dashboard.
curl -H "Authorization: Bearer pt_live_your_key" \
https://api.polytest.io/v1/marketsKey Scopes
API keys can be scoped to specific permissions: markets:read, snapshots:read, and orderbook:read. A key can only access the resources its scopes allow.
Key Rotation
We recommend rotating keys every 90 days. You can have multiple active keys simultaneously, making zero-downtime rotation straightforward.