Authentication API

Authenticate for the apis access_token

API Endpoint

POST /client/authenticate


Request Headers:

Content-Type: application/json

Request Body:

{
    "username" : "<email>",
    "secretKey": "<your_key>",
    "isAPI": true
}

Success Response

Get your APIs access_token from success.data.access_token

{
  "success": {
    "message":"Authenticated",
    "data": {
      "success":true,
      "expiresAt":1783077877510,
      "user": { "username":"email@test.com","scopes":["tme_user"],"isAPI":true },
      "ticket":"b1d4b9a9511dd58fb84a9aab9cc2a740",
      "access_token":"eyJhbGciO...p_Nlg" // Your APIs Access Token
    },
    "uuid":"f8623092-a59a-4ceb-bc75-18e59815d5df" // request tag system reference
  }
}

Error Response

{
  "error": {
    "message":"invalid credentials",
    "data":{"invalid":true},
    "tag":"6181882e-a5a3-4f28-abce-4f24f4905412" // error tag system reference
  },
  "uuid":"973e8576-b518-419b-84c3-dd0a7467e64d" // request tag system reference
}

curl 'https://apis.xpay.stream/client/authenticate' \
  -H 'Content-Type: application/json' \
  --data-raw '{"username":"<your_email>","secretKey":"<your_key>", "isAPI": "true" }'

Last updated