Skip to main content
POST
Login

Overview

Log in with your Bayse account credentials to obtain a session token and device ID. These are required to manage API keys (create, list, revoke, rotate). Use this endpoint when you want to manage API keys programmatically. If you prefer a UI, you can also manage 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.
This endpoint is rate-limited to 1 request per 2 minutes per email address. See Rate limits for details.

Request body

string
required
Your Bayse account email address.
string
required
Your Bayse account password (max 128 characters).

Example request

Response

string
Session token. Pass this as the x-auth-token header when managing API keys.
string
Device identifier. Pass this as the x-device-id header when managing API keys.
string
Your Bayse user ID.

Errors

429 Too Many Requests

Next steps

Use the token and deviceId from the response to create an API key programmatically: