AUTH: Verify Token
This Endpoint allows a third-party system to check and verify a bearer token against the Perpetuals.com system.
The Bearer Token must be hashed as follows (in Python3):
hashed_token = hashlib.sha256(str(bearer_token).encode()).hexdigest()Example: The Bearer Token "TmdQRWtyUzZBbmRSRWw5enFqdTlxeEk4" will result in the hash "684287973aa05dc512f5fdb72cfd70809e31b11796d4139175041f75d0ff4af9"
This Endpoint allows a third-party system to check and verify a bearer token against the Perpetuals.com system.
The Bearer Token must be hashed as follows (in Python3):
hashed_token = hashlib.sha256(str(bearer_token).encode()).hexdigest()
Example: The Bearer Token "TmdQRWtyUzZBbmRSRWw5enFqdTlxeEk4" will result in the hash "684287973aa05dc512f5fdb72cfd70809e31b11796d4139175041f75d0ff4af9"
Body
objectOptionalExample:
{"hashed_token":"684287973aa05dc512f5fdb72cfd70809e31b11796d4139175041f75d0ff4af9"}Responses
200
OK
application/json
Responseobject
post
/auth/verifyPOST /api/v1/auth/verify HTTP/1.1
Host: api.hybrid-chain.com
Content-Type: application/json
Accept: */*
Content-Length: 83
{
"hashed_token": "684287973aa05dc512f5fdb72cfd70809e31b11796d4139175041f75d0ff4af9"
}200
OK
{
"message": "Credentials are valid.",
"success": true
}Last updated
Was this helpful?

