Account
API routes for your profile, in-app notifications and notification channels. Which of them the personal API token can call.
These routes work on the signed-in user, not on an organization. They are the API side of the Account menu in the panel.
Only one account route takes the personal API token
GET /account/profile works with a login token and with the personal API token. Every other /account/... route needs a login token. With the personal API token it answers 403 with the code api_token_not_allowed. See Authentication.
Profile
GET /account/profile
Returns your profile and the organizations you belong to. Personal API token: allowed.
curl https://<api-address>/api/v1/account/profile \
-H "Accept: application/json" \
-H "Authorization: Bearer <token>"200:
{
"data": {
"id": 1,
"name": "Jane Doe",
"email": "jane@example.com",
"pending_email": null,
"avatar_url": "https://www.gravatar.com/avatar/0123456789abcdef",
"status": "active",
"email_verified": true,
"email_verified_at": "2026-11-10T10:00:00+00:00",
"mobile_no": null,
"country_code": null,
"country_name": null,
"region_code": null,
"region_name": null,
"timezone": "UTC",
"onboarding": {
"company_size": null,
"industry": null,
"management_experience": null,
"heard_about_us": null
},
"email_preferences": {
"receive_account_update": true,
"receive_credential": true,
"receive_informative_content": true
},
"delete_protection": false,
"organizations": [
{
"id": 1,
"name": "Acme Hosting",
"description": "Our servers",
"logo_url": "https://<api-address>/storage/organizations/logos/logo.png",
"is_owner": true,
"is_default": true,
"role": { "id": 1, "name": "Owner", "key": "owner" },
"has_managed_servers": false,
"servers_count": 3,
"created_at": "2026-11-10T10:00:00+00:00"
}
],
"created_at": "2026-11-10T10:00:00+00:00"
}
}pending_email holds a new address that is waiting for its confirmation link. email_preferences are the switches on Account → Notifications.
PATCH /account/profile
Changes the profile. Send only the fields you change. Login token only.
| Field | Type | Required | Rules |
|---|---|---|---|
name | string | no | At most 255 characters. Not empty when sent. |
mobile_no | string or null | no | At most 32 characters, in a phone number format, with 7 to 15 digits for a new number. null clears it. |
country_code | string or null | no | A country code from Central's country list. |
country_name | string or null | no | At most 100 characters. |
region_code | string or null | no | At most 20 characters. |
region_name | string or null | no | At most 100 characters. |
timezone | string | no | A time zone name, for example Europe/Berlin. Not empty when sent. |
company_size, industry, management_experience, heard_about_us | string or null | no | Free text, at most 255 characters each. |
To change the email address, use POST /account/email and the link in the confirmation email. See Profile.
200 returns the profile as above, with the message Your profile has been updated.
422 lists the fields that failed.
Notifications
The in-app notifications behind the bell in the panel. Login token only. See In-app notifications.
GET /account/notifications
| Query | Type | Rules |
|---|---|---|
filter | string | unread or all. |
page | integer | From 1. |
per_page | integer | 1 to 50. The default is 10. |
200 is a paged list, with an unread_count next to data, links and meta:
{
"data": [
{
"id": "0d1f3a52-8c6e-4b55-9f4e-1a2b3c4d5e6f",
"event": "role.deleted",
"title": "Role Deleted",
"message": "Role (Developer) has been deleted from the organization.",
"icon": "users",
"url": "/organization",
"actor": null,
"read": false,
"read_at": null,
"created_at": "2026-11-25T04:50:09+00:00"
}
],
"links": { "first": "…", "last": "…", "prev": null, "next": "…" },
"meta": { "current_page": 1, "per_page": 1, "total": 32 },
"unread_count": 32
}links and meta are shortened here; they have the full shape described in Lists and pagination. id is a UUID, not a number. actor is the name of the person who did it, or null when it was you. url is a path in the panel.
GET /account/notifications/unread-count
200 — { "data": { "count": 32 } }
POST /account/notifications/{notification}/read
Marks one notification as read. {notification} is the UUID from the list. 200 returns the notification in data, the new unread_count and the message Notification marked as read. 404 not_found when the id is not yours.
POST /account/notifications/read-all
Marks every notification as read. No body. 200 — { "unread_count": 0, "message": "All notifications marked as read." }
Notification channels
A channel sends your notifications to Slack, Discord, Telegram or Pushover. Login token only. See Notification channels for what each channel receives.
GET /account/notification-channels
A paged list. Query: page and per_page (1 to 50, default 10).
GET /account/notification-channels/{notificationChannel}
One channel. {notificationChannel} is the number from the list.
POST /account/notification-channels
Creates a channel. 201 returns it with the message Notification channel created.
| Field | Type | Required | Rules |
|---|---|---|---|
label | string | yes | At most 100 characters. |
type | string | yes | slack, discord, telegram or pushover. |
webhook_url | string | for slack, discord | An HTTPS address, at most 2048 characters. A Slack URL looks like https://hooks.slack.com/services/A/B/C. A Discord URL looks like https://discord.com/api/webhooks/123/token. |
bot_token | string | for telegram | The bot token from BotFather: digits, a colon, then letters, digits, _ or -. At most 256 characters. |
group_id | string | for telegram | A chat id (digits, with an optional leading -) or a public @name. At most 100 characters. |
pushover_user_key | string | for pushover | Letters and digits, at most 100 characters. |
pushover_app_token | string | for pushover | Letters and digits, at most 100 characters. |
Send only the fields of the chosen type.
curl -X POST https://<api-address>/api/v1/account/notification-channels \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer <login-token>" \
-d '{"label": "Ops alerts", "type": "slack", "webhook_url": "https://hooks.slack.com/services/T000/B000/XXXX"}'A channel in an answer never shows its secrets. Each saved field comes back with all but its last four characters hidden:
{
"data": {
"id": 4,
"label": "Ops alerts",
"type": "slack",
"destination": "hooks.slack.com",
"configured_fields": ["webhook_url"],
"configuration": { "webhook_url": "••••••••••••••••••••••XXXX" },
"last_test": null,
"status": "working",
"unreadable": false
},
"message": "Notification channel created."
}status is working, or not_working after 5 failed sends in a row. A successful send, an edit or a test clears it. unreadable is true when the saved settings can no longer be read; enter them again.
PATCH /account/notification-channels/{notificationChannel}
Changes a channel. Send only what changes, with the same rules as above. A field you send back with its masked value is ignored. 200 with the message Notification channel updated.
DELETE /account/notification-channels/{notificationChannel}
Deletes a channel. 200 returns the channel with the message Notification channel deleted.
POST /account/notification-channels/{notificationChannel}/test
Queues a test message. 202 with the message Test notification queued. Check the test status for the result. The result appears in last_test of the channel (id, status, completed_at, message). Read the channel again to see it.
Other account routes
These routes are for the pages under Account. They need a login token, except POST /account/email/confirm, which needs no token. Each is described in the guide, so this table only lists them.
| Route | Purpose | Guide |
|---|---|---|
GET /account/api-access | Whether the personal API token is on. POST /account/api-access turns it on, POST /account/api-access/regenerate makes a new one, DELETE /account/api-access turns it off. The three that change it: 10 a minute. | API access |
PUT /account/password | Change the password. 5 a minute. | Password |
POST /account/email | Ask for an email change. 3 emails in 10 minutes, 5 tries a minute. | Profile |
POST /account/email/confirm | Confirm the new address with the token from the confirmation email (required, at most 255 characters). No token needed: send it without an Authorization header. 10 a minute per IP. | Profile |
PATCH /account/email-preferences | Change the email preferences. | Emails |
PUT /account/delete-protection | Turn delete protection on or off. | Delete protection |
GET /account/two-factor and the two-factor routes | Two-factor status, email codes, authenticator app and backup codes. 5 a minute on the routes that change it. | Two-factor authentication |
GET /account/ip-whitelist and the ip-whitelist routes | The IP whitelist. | IP whitelist |
GET /account/sessions, DELETE /account/sessions/{session}, POST /account/sessions/logout-others | Active sessions. | Sessions and login history |
GET /account/login-history | Past sign-ins. | Sessions and login history |
GET /account/activities | The account activity log. | Account activity log |
DELETE /account | Delete the account. 5 a minute. | Delete account |
Limits
- One personal API token and at most 50 items on a page.
- The routes for password, email, two-factor and API access have their own per-minute limits, shown above. They count on top of the general limit.
Who can do this
- Every signed-in user can call these routes for their own account. No organization permission is involved.
- The personal API token can only read the profile.
Common errors
- The API token cannot change account settings. Log in to the panel to do this. (
api_token_not_allowed, 403) You called a login-token route with the personal API token. - The name field is required. (422) A required field is missing. The
errorsobject names it. - The requested item was not found. (
not_found, 404) The channel or notification is not yours, or does not exist.