Skip to content

Get the site's WordPress login

GET /v1/sites/{siteId}/wordpress-login

The username, email address and password of the WordPress administrator made with the site. Keep the password safe. If it was changed inside WordPress, this one no longer works: set a new one with POST /sites/{siteId}/actions/reset-admin-password.

Scopes

The token needs this scope. Without it, the request is refused with insufficient_scope (see Scopes).

sites:files
Files and logins. File Manager, WordPress logins, cron jobs, backup downloads and backup storage. Full access to the sites' code and data.

Path parameters

FieldType and description
siteId Required

string

The site's id.

Example request

curl "https://api.rabbitflare.com/v1/sites/8a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d/wordpress-login" \
  -H "Authorization: Bearer $RABBITFLARE_TOKEN"

Response

200 OK Returns the WordPressLogin object in data.

The WordPressLogin object's fields 3 fields
FieldType and description
username

string

The WordPress administrator's username.

email

string

The administrator's email address.

password

string or null

The administrator's password as Rabbitflare set it. Null when it can't be read (reset it to get a new one).

Example response

200 OK
{
  "data": {
    "username": "editor",
    "email": "[email protected]",
    "password": "kV9#wq2Lx7!pRz4m"
  }
}

Errors

The errors this request can answer besides those every request can (a missing token, a missing scope, the rate limits). Each answer is an Error object (see Errors).

Status and codeWhen, and what to do
403 trial_locked

The site's server is on the free trial: WordPress sign-in, the File Manager and Cron Jobs switch on once it's kept.

Keep the server in the control panel: they switch on by themselves.

404 not_found

The resource doesn't exist, or isn't this account's.

Check the id. Ids of other accounts' resources answer the same way.

Rate limit

Read requests: 120 a minute per token, 240 per account. More in Rate limits.

Added on .

Popular

API docs