Skip to main content
POST
/
2
/
pm
/
auth
/
derive
Derive CLOB API credentials
curl --request POST \
  --url https://demo-api.mobula.io/api/2/pm/auth/derive \
  --header 'Content-Type: application/json' \
  --data '
{
  "signature": "<string>",
  "address": "<string>",
  "timestamp": "<string>",
  "nonce": 123
}
'
{
  "data": {
    "apiKey": "<string>",
    "apiSecret": "<string>",
    "apiPassphrase": "<string>"
  },
  "hostname": "<string>",
  "took": 123
}

Request Body

signature
string
required
The EIP-712 signature from signing the typed data returned by Auth Build.
address
string
required
The wallet address that signed the message.
timestamp
string
required
The timestamp from the signed message (must match the Auth Build response).
nonce
number
required
The nonce used in the Auth Build request.

Response

data
object
CLOB API credentials.
hostname
string
Server node identifier.
took
number
Request processing time in milliseconds.

Usage Example

curl -X POST "https://api.mobula.io/api/2/pm/auth/derive" \
  -H "Content-Type: application/json" \
  -d '{
    "signature": "0xabc123...",
    "address": "0xYourWalletAddress",
    "timestamp": "1709913600",
    "nonce": 0
  }'
Store these credentials securely. They are needed for order/submit and order/cancel operations. If compromised, generate new credentials by calling Auth Build/Derive with an incremented nonce.

Body

application/json
signature
string
required

L1 signature

address
string
required
timestamp
string
required
nonce
number
required

Response

200 - application/json

CLOB credentials

data
object
hostname
string
took
number