REST APIAuth

Get auth message

GET
/auth/message

Get the message to sign to generate a JWT token. Do not hardcode this message as it is dynamic and can be subject to changes.

Authorization

ApiKeyAuth
headerx-api-key<token>

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

Response Body

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

Response for GET /v1/auth/message

success*boolean
data*

Authentication message data

Example Request
curl -X GET 'https://api.predict.fun/v1/auth/message'
Example Response
{  "success": true,  "data": {    "message": "string"  }}