API keys
API keys authenticate your requests to the Context API. You can create and manage them directly from the app.Getting an API key
- Go to context.markets
- Navigate to Profile → Settings
- Create a new API key
Key concepts
API keys are not tied to wallets
An API key is an authentication credential for the API, separate from your trading wallet. You can use the same API key with any private key for signing orders. This means you can:- Rotate your signing wallet without getting a new API key
- Use multiple wallets with a single API key
- Share API access across different bots or scripts, each with their own signer
Market creation permission
By default, API keys can read market data and place orders. To create markets, your key needs thecan_create_markets permission enabled by an admin.
Request market creation access to get started.
Usage
Pass your API key as a Bearer token in theAuthorization header:
Next steps
Place your first order
Use your API key to start trading
API reference
See which endpoints require authentication