Skip to main content
POST
GenerateApiKey

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

Connect-Protocol-Version
enum<number>
default:1

Define the version of the Connect protocol Define the version of the Connect protocol. If omitted, use 1.

Available options:
1
Connect-Timeout-Ms
number

Define the timeout, in ms

Example:

1000

Body

application/json
userAddress
string
label
string
signature
string | null

Optional. Proves you own user_address without signing in to the app: an EIP-191 (personal_sign) signature by user_address, as 0x-prefixed hex (65 bytes), over the exact message Generate Forte Perpetuals API key: <api_key_hash>. Omit it when the request comes from a signed-in app session.

apiKeyHash
string | null

Required with signature. When you sign the request, you generate the API key yourself and send only its SHA-256 hash, as 64 lowercase hex characters. The server stores the hash and never sees the key.

Response

Success

apiKey
string

The new API key. Store it securely. Empty when the request used signature, because you generated the key yourself.