Skip to main content
POST
/
v1
/
authentication
/
request
curl -X POST https://hapi.7331.org/v1/authentication/request \
  -H "Content-Type: application/json" \
  -d '{"discord_id": 123456789012345678}'
{
  "message": "Login code sent via Discord DM",
  "expires_at": "2025-01-01T00:05:00Z"
}
discord_id
integer
Discord user ID for authentication.
username
string
Discord username (alternative to discord_id for returning users).

Response

message
string
required
Human-readable status message.
expires_at
string
When the login code expires (UTC).
curl -X POST https://hapi.7331.org/v1/authentication/request \
  -H "Content-Type: application/json" \
  -d '{"discord_id": 123456789012345678}'
{
  "message": "Login code sent via Discord DM",
  "expires_at": "2025-01-01T00:05:00Z"
}