Account Setup

Enable 2FA, then create and manage the API key pair your bot signs with.

Step 1 — Enable two-factor authentication

API key creation is refused with 403 until 2FA is enabled on your account.

  1. Log in to your Wellat Dashboard.
  2. Open your Profile page → Security tab.
  3. Enable Two-Factor Authentication and complete the enrollment with your authenticator app.

Step 2 — Understand the credential pair

CredentialFormatWhere it lives
API keywlt_bot_ + 64 hex charsPublic identifier. Sent with every bot request (x-bot-api-key header).
Secret key64 hex charsShown exactly once, at creation. Used to sign requests; never sent directly.
❗️

The secret is shown once and cannot be recovered

Wellat does not store your secret key. If you lose it, revoke the key and create a new one. Copy it into your bot server's secret storage the moment it is displayed.

A key belongs to your user account, not to a single strategy: one key can sign trades for every bot-managed strategy you own.

Prerequisites: a KYC-complete trader account, 2FA enabled, and fewer than 10 existing keys (the per-account maximum).

Step 3 — Create a key

  1. On The Wellat Dashboard​, click "Connect Bot"

    Screenshot

    Wellat Dashboard

  2. Enter your a label. This is for recognising an API key for your bot

    Screenshot

    Bot API key label

  3. By "Creating API Key" for your bot will provide you an API and Secret key.

    Screenshot

👍

Rotate with overlap, zero downtime

Create the new key → deploy it to your bot → confirm signals flow → revoke the old key. Both keys are valid during the overlap. One key per bot deployment keeps lastUsedAt and revocation mapped cleanly to a single machine.

Handling credentials safely

  • Store the secret in an environment variable or secrets manager — never in source control, logs, or client-side code.
  • Treat the API key as public-ish (it identifies, it doesn't authorize), but there's no reason to publish it.

Errors

HTTPWhen
401Missing/expired session token
403Account is not a KYC-complete trader, or 2FA is not enabled
409Key limit reached (10 per account)
400Invalid body (missing label, label over 64 chars)
404Revoking a key id that doesn't exist or belongs to another account

Next: Authentication — how your bot signs every request with these credentials.


Did this page help you?