REST API v1.1
All endpoints accept and return JSON. Errors return a stable code field — see the error reference.
Initialize
/api/v1.1/initOpens a session for your application using the owner ID and app secret.
| Field | Type | Description |
|---|---|---|
| owner_id | string | Your Atheryx owner ID. |
| app_name | string | The application name from your dashboard. |
| version | string | Client version string. |
| secret | string | Application secret (App Settings → Secrets). |
| hash | string (opt) | Client build hash for tamper checks. |
| hwid | string (opt) | Hardware ID to bind to the session. |
Login
/api/v1.1/loginAuthenticates a user with credentials. Password verified with bcrypt.
| Field | Type | Description |
|---|---|---|
| session_id | string | Session token from /init. |
| username | string | Account username. |
| password | string | Account password (never stored in plaintext). |
| hwid | string (opt) | Hardware ID; must match the account's bound HWID if one exists. |
| ip | string (opt) | Client IP for audit logging. |
Register
/api/v1.1/registerRegisters a new user against an existing, unused license key.
| Field | Type | Description |
|---|---|---|
| session_id | string | Session token from /init. |
| username | string | Desired username (must be unique). |
| password | string | Desired password, hashed with bcrypt (cost 12). |
| key | string | A valid, unused license key for this app. |
| string (opt) | User email. | |
| hwid | string (opt) | Hardware ID to bind at registration. |
Validate License
/api/v1.1/licensesActivates or validates a license key and binds the caller's HWID.
| Field | Type | Description |
|---|---|---|
| session_id | string | Session token from /init. |
| license_key | string | The license key to validate. |
| hwid | string (opt) | Hardware ID; must match the license's bound HWID if set. |
| ip | string (opt) | Client IP for audit logging. |
Refresh Session
/api/v1.1/session/refreshRotates the session token using a refresh token, extending active life.
| Field | Type | Description |
|---|---|---|
| session_id | string | Current session token. |
| refresh_token | string | Refresh token issued at login/init. |
Read Variable
/api/v1.1/variablesFetches a server-side variable by key for feature flags or remote config.
| Field | Type | Description |
|---|---|---|
| session_id | string | Session token from /init. |
| var_key | string | Variable key to read. |
Set Variable
/api/v1.1/variables/setWrites a server-side variable value (e.g. remote config updates).
| Field | Type | Description |
|---|---|---|
| session_id | string | Session token from /init. |
| var_key | string | Variable key to write. |
| var_value | string | New variable value. |
Report Logs
/api/v1.1/logsSends client-side log events to your application's activity feed.
| Field | Type | Description |
|---|---|---|
| session_id | string | Session token from /init. |
| event | string | Log message or event name. |
Want language examples?
See the guides for C++, C#, and JavaScript.