blazeauth
Reference

auth_by_license

Authorize the session using a license key.

auth_by_license

Authorize the current WebSocket session by activating or validating a license key.

  • Type: 3
  • Requires initialization: yes
  • Requires authorization: no

Request and response example

auth_by_license
Authorize a session using a license key.

Request fields

FieldTypeRequiredMeaning
iduint64yesRequest id.
licensestringyesLicense key.

Response fields

FieldTypeMeaning
iduint64Your request id.
licensestringLicense key (echo).
levelsstring[]License levels/tags.
commentstring | nullOptional internal note.
ip_addressstring | nullIP stored for this activation.
time_leftint64See note below.
statusintResult status.

time_left note

time_left is intended to represent seconds remaining, but when the server activates a previously inactive license inside the same call, the current implementation may return an absolute Unix timestamp (seconds since epoch) instead. If you need a single normalized representation, convert to expires_at on the client and compute seconds remaining yourself.

Common statuses

StatusMeaning
1ok
100license_invalid
101license_blacklisted
102license_expired
106license_paused
110license_activations_limit_reached
303sessions_quota_exceeded
6internal_server_error

On this page