Skip to main content
POST
/
api
/
auth
/
token
/
validate
Validate access token
curl --request POST \
  --url https://payments.oaknetwork.org/api/auth/token/validate \
  --header 'x-access-token: <api-key>'
{
  "msg": "Token is Valid!",
  "data": {
    "id": 123
  }
}

Authorizations

x-access-token
string
header
required

User JWT access token for user-level authentication. Used primarily for admin and internal operations.

Query Parameters

x_access_token
string

Access token (alternative to x-access-token header)

Response

Token is valid

msg
string
required

Human-readable message describing the result

Example:

"Token is Valid!"

data
object
required

Response payload (null on error)