---
title: "Return WordPress administrator account"
method: GET
path: "/WPX/get_admin_account"
tags: ["WPX"]
---

# Return WordPress administrator account

`GET /WPX/get_admin_account`

## Request

- Base URL: `https://cpanel-server.tld:2083/execute`
- URL: `https://cpanel-server.tld:2083/execute/WPX/get_admin_account`
- Auth: HTTP basic

This function returns the WordPress administrator account details for an
installation that the caller owns: the administrator logins, the first
administrator's display name and email address, and the login URL. The
WordPress administration settings form uses it to fill in current values.

  **Note:**

  - The stored WordPress password is never returned. Use
    `change_admin_password` to set a new one, and `get_credentials` to sign
    in without a password.
  - The system verifies that the caller owns the installation before it
    reads anything.
  - When the installation has no WordPress administrator, the
    `current_user_id` field is `null`, the other text fields are empty
    strings, and the `available_logins` field is an empty array. A failure
    to read the administrator list is different: it returns a failure
    status with a message in the `errors` field.
  - The active WordPress language is not part of this response. Use
    `set_language` to change it.

## Query parameters

- `id` integer, required

## Response `200`

The HTTP request was successful.

- object
  - `apiversion` integer: The version of the API.
  - `func` string: The name of the method called.
  - `module` string: The name of the module called.
  - `result` object
    - `data` object: The administrator account details for the installation.
      - `available_logins` string[]: Every WordPress administrator login on the installation. This is an empty array when the installation has no administrator.
      - `current_display_name` string: The first administrator's WordPress display name, or an empty string.
      - `current_email` string: The first administrator's WordPress email address, or an empty string.
      - `current_login` string: The first administrator's WordPress login, or an empty string.
      - `current_user_id` integer, nullable: The first administrator's WordPress user id, or `null` when the installation has no administrator.
      - `login_url` string: The WordPress administrator login URL. This is informational, and it carries no token. It is an empty string when the system could not determine the site URL.
    - `errors` string[], nullable: List of errors if the API failed.
    - `messages` string[], nullable: List of messages generated by the API.
    - `metadata` object
      - `transformed` 1: Post-processing may have transformed the data.
    - `status` 1 | 0: - `1` - Success. - `0` - Failed: Check the errors field for more details.
    - `warnings` string[], nullable: List of warnings generated by the API. Warnings describe non-critical failures or other problematic conditions noted while running an API.

## Changes

- **2026-09-23** `aed66b1a51cc`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/cpanel/apis/cpanel-uapi/changes/WPX/get_admin_account/get.md)

---

[API](https://skmtc.dev/cpanel/apis/cpanel-uapi.md) - [All operations](https://skmtc.dev/cpanel/apis/cpanel-uapi/llms.txt) - [OpenAPI document](https://skmtc.dev/cpanel/apis/cpanel-uapi/revisions/05239220da37?raw)
