API endpoint to verify authenticity of JWT token. A true status and a 200 code in the response validates the token. The endpoint requires that the token is sent in the header in the format:

Authorization: Bearer <token>

Example request

curl --location 'https://api.vendy.money/auth/status' \
--header 'Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJqd3RpZCI6Ijg5MWViNzlmLTQ4MmMtNGVhYy05OTNmLTJkNmM3ODQyYjc2YyIsImlhdCI6MTY4NjAwNTQxNiwiZXhwIjoxNjg3MjE1MDE2LCJpc3MiOiJodHRwczovL3ZlbmR5Lm1vbmV5LmNvbS8iLCJqdGkiOiI4OTFlYjc5Zi00ODJjLTRlYWMtOTkzZi0yZDZjNzg0MmI3NmMifQ.j30e2Fp-SXV3Em8wBsnn_4w3GGRwy8QLooUptgKel1c9Dn0yCY8zgzn_sHR-r6qG4-HSCR3rCi75oaS8Q8ObEgaL2eamveuwBvkexCh9nLD_5uafAQgx4JHt8y3JEv2Z0LVmejP4WTPcNCEdCkx9N2T5SQvRXzUzDla0CKbML5k'

Response:

FieldTypeDescription
statusBooleanValidates the token
codeIntegerInternal code, success if 200
msgStringA description of the status of the token
dataJSONAny extra data

Example response

{
    "status": true,
    "code": 200,
    "msg": "User logged in",
    "data": {}
}
Language
Authorization
Header
Click Try It! to start a request and see the response here!