Skip to main content
POST
/
2
/
pm
/
auth
/
derive
Derive CLOB API credentials from an L1-signed ClobAuth payload
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": 1
}
'
{
  "hostname": "<string>",
  "took": 123,
  "data": "<unknown>"
}

Documentation Index

Fetch the complete documentation index at: https://docs.mobula.io/llms.txt

Use this file to discover all available pages before exploring further.

Alpha — This endpoint is part of the Prediction Markets API, currently in early access. May change without notice.

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
Minimum string length: 1
address
string
required
Minimum string length: 1
timestamp
string
required
Minimum string length: 1
nonce
integer | null
required
Required range: x >= 0

Response

201 - application/json

Prediction Markets response

hostname
string
required
took
number
required
data
any | null

See the per-endpoint reference for the exact response shape.