Skip to content

API Reference – Token Verification

Welcome to the Hawaiian.gg API reference.
This section documents how to verify a user's authentication token.


Base URL

https://auth.hawaiian.gg/api


Authentication

All requests to the API require an Authorization header containing a valid bearer token.

Example:

Authorization: Bearer YOUR_ACCESS_TOKEN


Verify Token

Endpoint

GET /auth/@users/verify

Description

Validates the token provided by the user and returns a structured payload containing identity information.


Request Headers

HeaderTypeRequiredDescription
AuthorizationstringBearer token to validate

Request Example

bash
curl -X POST "https://auth.hawaiian.gg/api/auth/@users/verify" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN"
Response
200 OK
FieldTypeDescription
statusstringStatus of the request (success)
userobjectUser identity information

Example:

json
{
  "status": "success",
  "user": {
    "id": "109350302777377037234",
    "name": "Verified Hawaii",
    "email": "verifiedhawaii44@gmail.com",
    "picture": "https://lh3.googleusercontent.com/a/ACg8ocICYCC7ManL_kMU9CKjd..."
  }
}

Error Codes

Status CodeMessage
401Unauthorized – Missing or invalid token
403Forbidden – Token does not have required scopes
500Internal Server Error – An error occurred on the server

Example Error Response

json
{
  "status": "error",
  "message": "Missing or invalid token"
}

Notes Tokens expire after 90 days unless otherwise specified. Scopes determine which endpoints the token can access.

"Beyond Boundaries. Beyond Imagination."