Create API key
User
Create API key
Create a new API key pair for programmatic access
POST
Create API key
Documentation Index
Fetch the complete documentation index at: https://docs.bayse.markets/llms.txt
Use this file to discover all available pages before exploring further.
Authentication
Requiresx-auth-token and x-device-id headers. Obtain these by calling the login endpoint with your Bayse account credentials.
You can also create API keys in the Bayse web app at app.bayse.markets/settings/api-keys, or in the web app, via More > Account Settings > API Keys in the Developer Tool section. Use this endpoint when you want to create keys programmatically.
Request body
A descriptive label for this key (e.g.
"Production", "Trading bot"). Each API key must have a unique name in your account.Example request
Response
Unique identifier for this API key.
The name you provided.
Public key (
pk_*) — include this in the X-Public-Key header on all authenticated requests.Secret key (
sk_*) — use this to generate HMAC signatures. Only returned on creation.Instructions for generating valid request signatures.
ISO 8601 creation timestamp.