Skip to main content
Version: v0.7 (Legacy)

Account Management

Manage your account settings, 2FA, email, password, and API keys.

Get Account Details

GET /api/client/account

Retrieves your account information.

curl -X GET "https://your-panel.com/api/client/account" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Accept: application/json"

Response:

{
"object": "user",
"attributes": {
"id": 1,
"admin": false,
"username": "user123",
"email": "[email protected]",
"first_name": "John",
"last_name": "Doe",
"language": "en"
}
}

Two-Factor Authentication

Get 2FA Setup Details

GET /api/client/account/two-factor

Returns QR code data for setting up 2FA.

curl -X GET "https://your-panel.com/api/client/account/two-factor" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Accept: application/json"

Enable 2FA

POST /api/client/account/two-factor

FieldTypeRequiredDescription
codestringYesTOTP code from authenticator

Disable 2FA

DELETE /api/client/account/two-factor

FieldTypeRequiredDescription
passwordstringYesCurrent password

Update Email

PUT /api/client/account/email

FieldTypeRequiredDescription
emailstringYesNew email address
passwordstringYesCurrent password

Update Password

PUT /api/client/account/password

FieldTypeRequiredDescription
current_passwordstringYesCurrent password
passwordstringYesNew password
password_confirmationstringYesConfirm new password

API Keys

List API Keys

GET /api/client/account/api-keys

curl -X GET "https://your-panel.com/api/client/account/api-keys" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Accept: application/json"

Create API Key

POST /api/client/account/api-keys

FieldTypeRequiredDescription
descriptionstringYesKey description
allowed_ipsarrayNoAllowed IP addresses
curl -X POST "https://your-panel.com/api/client/account/api-keys" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-d '{"description": "My API Key"}'

Delete API Key

DELETE /api/client/account/api-keys/{identifier}

curl -X DELETE "https://your-panel.com/api/client/account/api-keys/{identifier}" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Accept: application/json"