Skip to main content

Create account

POST 

/create-account

Creates a new SideShift.ai account.

Recommended: generate an Ed25519 keypair offline and send its public key as pubKey. The key is registered as the account's credential and the account has no secret. Sign authenticated requests with the secret key, see Authentication. The response returns id and pubKey.

Without a pubKey, the account gets a legacy secret instead, used via the x-sideshift-secret header. The response returns id and secret.

Important: A SideShift.ai account represents your integration, not an individual end user. Use one account for your entire integration and the same id (as affiliateId) across all shift requests. End users are distinguished by their shiftId, not by separate accounts.

The id can be used as affiliateId in shift creation requests to earn commissions.

To rotate a key, register a new one with POST /v2/account/auth-keys and disable the old one. You do not need a new account.

Request​

Body

    pubKeystring

    Ed25519 public key, 32 bytes hex encoded (64 characters, 0x prefix optional). Recommended. If set, the account authenticates with signed requests and has no secret.

    affiliatestring

    Optional ID of the account that referred this account.

Responses​

Account successfully created
Schema
    idstringrequired

    The account ID. Can be used as affiliateId when creating shifts.

    pubKeystring

    The registered public key. Returned when pubKey was sent.

    secretstring

    The legacy account secret, used via the x-sideshift-secret header. Returned only when no pubKey was sent. Store securely and never share.