Skip to main content
GET
/
api
/
v1
/
auth
/
validate
Validate credential (Internal/Gateway)
curl --request GET \
  --url http://localhost:9002/api/v1/auth/validate \
  --header 'Authorization: Bearer <token>'
{
  "success": true,
  "data": {
    "user_id": "user-abc123-v1",
    "account_id": "acct-xyz789-v1",
    "scopes": [
      "read",
      "write"
    ],
    "auth_type": "jwt",
    "is_verified": true
  }
}

Authorizations

Authorization
string
header
required

JWT token from Auth0

Headers

x-upstream-method
enum<string>

Original HTTP method from upstream request (used by gateway). If method is POST/PUT/PATCH/DELETE and user is unverified, request is rejected.

Available options:
GET,
POST,
PUT,
PATCH,
DELETE

Response

Credential is valid

success
boolean
Example:

true

data
object