Skip to main content
POST
/
v1
/
authentication
/
verify
curl -X POST https://hapi.7331.org/v1/authentication/verify \
  -H "Content-Type: application/json" \
  -c cookies.txt \
  -d '{"code": "ABCD1234"}'
{
  "status": "success",
  "message": "Authentication successful",
  "user": {
    "discord_id": "123456789012345678",
    "username": "exampleuser",
    "avatar_url": "https://cdn.discordapp.com/avatars/...",
    "subscription_tier": 0,
    "state": 0,
    "permission_level": 0,
    "prefix": "!",
    "created_at": "2025-01-01T00:00:00Z",
    "updated_at": "2025-01-01T00:00:00Z",
    "last_activity_at": "2025-01-01T00:00:00Z"
  }
}
code
string
required
8-character authentication code received via Discord DM.
discord_id
integer
Discord user ID (optional, resolved from code).

Response

status
string
required
Response status (default: success).
message
string
required
Response message.
user
object
required
Authenticated user profile. See Get Current User for the full schema.
On success, an hsession cookie is set in the response. Include this cookie in subsequent requests.
curl -X POST https://hapi.7331.org/v1/authentication/verify \
  -H "Content-Type: application/json" \
  -c cookies.txt \
  -d '{"code": "ABCD1234"}'
{
  "status": "success",
  "message": "Authentication successful",
  "user": {
    "discord_id": "123456789012345678",
    "username": "exampleuser",
    "avatar_url": "https://cdn.discordapp.com/avatars/...",
    "subscription_tier": 0,
    "state": 0,
    "permission_level": 0,
    "prefix": "!",
    "created_at": "2025-01-01T00:00:00Z",
    "updated_at": "2025-01-01T00:00:00Z",
    "last_activity_at": "2025-01-01T00:00:00Z"
  }
}