REST APIAuth
Get JWT with valid signature
POST
Provide a signature and get back a valid JWT that allows order actions.
ApiKeyAuthheader
x-api-key<token>API key authentication via the x-api-key header.
application/json; charset=utf-8- body
Request body for POST /v1/auth
signer*stringThe wallet address (checksummed)
signature*stringThe signature of the message
Length
length <= 200message*stringThe signed message (from GET /v1/auth/message)
Length
length <= 2048application/json; charset=utf-8- response
Response for POST /v1/auth
success*booleandata*Authentication token data
curl -X POST 'https://api.predict.fun/v1/auth' \ -H 'Content-Type: application/json; charset=utf-8' \ -d '{ "signer": "string", "signature": "string", "message": "string"}'Example Response
{ "success": true, "data": { "token": "string" }}