Variables
Manage application variables exposed to client sessions.
All variable routes require applicationId and check access to that application.
Get variables
GET /api/v1/panel/get-variables
Required scope: variables:read
curl "https://api.blazeauth.net/api/v1/panel/get-variables?applicationId=123456789" \
-H "Authorization: Bearer $BLAZEAUTH_MANAGEMENT_API_KEY"{
"success": true,
"message": "Get variables successfully",
"data": [
{
"id": "5001",
"name": "motd",
"description": "Message of the day",
"value": "Welcome back",
"strategy": "auth_required",
"updatedAt": "2026-05-12T09:00:00.000Z"
}
]
}Create variable
POST /api/v1/panel/create-variable
Required scope: variables:create
curl "https://api.blazeauth.net/api/v1/panel/create-variable?applicationId=123456789" \
-X POST \
-H "Authorization: Bearer $BLAZEAUTH_MANAGEMENT_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "motd",
"description": "Message of the day",
"value": "Welcome back",
"strategy": "auth_required"
}'| Body field | Type | Required | Notes |
|---|---|---|---|
name | string | Yes | 3-64 characters. |
description | string | null | Yes | Maximum 64 characters, or null. |
value | string | Yes | Maximum 16000 characters. |
strategy | string | Yes | auth_required or auth_not_required. |
{
"success": true,
"message": "Variable created successfully"
}Edit variable
PATCH /api/v1/panel/edit-variable
Required scope: variables:update
The edit route expects the full variable payload.
curl "https://api.blazeauth.net/api/v1/panel/edit-variable?applicationId=123456789&variableId=5001" \
-X PATCH \
-H "Authorization: Bearer $BLAZEAUTH_MANAGEMENT_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "motd",
"description": "Updated message",
"value": "New build is live",
"strategy": "auth_not_required"
}'| Query field | Type | Required | Notes |
|---|---|---|---|
applicationId | string | Yes | Target application id. |
variableId | string | Yes | Variable row to update. |
{
"success": true,
"message": "Variable edited successfully"
}Delete variable
DELETE /api/v1/panel/delete-variable
Required scope: variables:delete
curl "https://api.blazeauth.net/api/v1/panel/delete-variable?applicationId=123456789" \
-X DELETE \
-H "Authorization: Bearer $BLAZEAUTH_MANAGEMENT_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "variableId": "5001" }'| Body field | Type | Required | Notes |
|---|---|---|---|
variableId | string | Yes | Variable row to delete. |
{
"success": true,
"message": "Variable deleted successfully"
}