REST APIAuth

Get JWT with valid signature

POST
/auth

Provide a signature and get back a valid JWT that allows order actions.

Authorization

ApiKeyAuth
headerx-api-key<token>

API key authentication via the x-api-key header.

Request Body

application/json; charset=utf-8
  1. body

Request body for POST /v1/auth

signer*string

The wallet address (checksummed)

signature*string

The signature of the message

Lengthlength <= 200
message*string

The signed message (from GET /v1/auth/message)

Lengthlength <= 2048

Response Body

application/json; charset=utf-8
  1. response

Response for POST /v1/auth

success*boolean
data*

Authentication token data

Example Request
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"  }}