Users

Users

All user endpoints live under /api/v3/projects/:project_uuid/users.

List users

GET
https://api.envyauth.my.id/api/v3/projects/:project_uuid/users

Paginated list of every user on the project.

Query parameters:

NameDefaultNotes
limit50Max 200.
offset0Zero-based row offset.

Response

{  "success": true,  "data": {    "users":  [ /* user row objects */ ],    "limit":  50,    "offset": 0  },  "requestid": "uuid"}

Whitelist a user

POST
https://api.envyauth.my.id/api/v3/projects/:project_uuid/users

Generates one or more keys and binds them to Discord IDs. The body shape selects between single and bulk modes.

Single

json
{  "discord_id":  "1118453649727823974",  "note":        "Premium tier",  "expire_time": 30}

note is optional and capped at 256 characters. expire_time accepts either a number of days (30) or an absolute date string ("2026-12-31"). Omit it for a permanent key.

Bulk

json
{  "discord_ids": ["111...", "222...", "333..."],  "note":        "Imported batch",  "expire_time": "2026-12-31"}

Up to 5000 Discord IDs per call. Split larger imports client-side. The plan's active-key cap applies only to new IDs after deduping existing claimed users, so re-uploading an old list mostly skips.

Response

{  "success": true,  "data": {    "message":       "Whitelisted",    "generated_key": "<32-char key>",    "key_expire":    1761868800,    "discord_id":    "1118453649727823974"  },  "requestid": "uuid"}

skipped[].reason is one of already_whitelisted, race_already_whitelisted, or insert_failed.

Get a user

GET
https://api.envyauth.my.id/api/v3/projects/:project_uuid/users/:identifier

Full user row plus the user's currently active sessions. :identifier accepts a Discord ID, a 32-character script key, or the user UUID. See Overview for the formats.

Response

{  "success": true,  "data": {    "identifier": { "kind": "discord_id", "raw": "1118..." },    "user_data": {      "id":               "uuid",      "project_id":       "uuid",      "discord_id":       "1118...",      "user_key":         "<32-char>",      "status":           "active",      "key_note":         "Premium",      "key_expire":       1761868800,      "fingerprint":      "<sha256-hex>",      "total_executions": 259,      "total_resets":     2,      "last_seen_at":     1748419200,      "ban_reason":       null,      "ban_until":        null    },    "sessions": [ /* active session rows */ ]  },  "requestid": "uuid"}

identifier.kind echoes back which shape the server detected. status is one of active, no_hwid, reset, or banned.

Update a user

PATCH
https://api.envyauth.my.id/api/v3/projects/:project_uuid/users

Update the note or expiry on a key.

Body:

json
{  "script_key":  "<32-char>",  "note":        "Renewed",  "expire_time": 60}

script_key is required. Both note and expire_time are optional and only the fields you include are touched.

Response

{  "success": true,  "data": {    "message":   "User updated",    "user_data": { /* refreshed user row */ }  },  "requestid": "uuid"}

To toggle ban state, use Ban / Unban instead.

Delete a user

DELETE
https://api.envyauth.my.id/api/v3/projects/:project_uuid/users

Delete a key. Claimed keys remove the user row; unclaimed keys remove the pool entry.

Body:

json
{  "script_key": "<32-char>"}

Response

{  "success": true,  "data": {    "message": "Deleted user and revoked key"  },  "requestid": "uuid"}