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 fieldTypeRequiredNotes
namestringYes3-64 characters.
descriptionstring | nullYesMaximum 64 characters, or null.
valuestringYesMaximum 16000 characters.
strategystringYesauth_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 fieldTypeRequiredNotes
applicationIdstringYesTarget application id.
variableIdstringYesVariable 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 fieldTypeRequiredNotes
variableIdstringYesVariable row to delete.
{
  "success": true,
  "message": "Variable deleted successfully"
}

On this page