Skip to content
WP Engine Documentation

Get an account by ID

GET
/accounts/{account_id}
curl --request GET \
--url https://api.wpengineapi.com/v1/accounts/example \
--header 'Authorization: Basic <credentials>'

Returns a single Account

account_id
required
string format: uuid

ID of account

Success

Media type application/json
object
id
required
string format: uuid
name
required

The account name

string
nickname
required

The account nickname

string
Example
{
"id": "eeda3227-9a39-46ae-9e14-20958bb4e6c9",
"name": "joesaccount",
"nickname": "joesaccount"
}

Authentication Error

Media type application/json
object
message
required

A message regarding the error that occurred on the server

string
documentation_url

(Optional) A URL where documentation regarding this specific error can be found

string
Example
{
"message": "Bad Credentials"
}

Not found

Media type application/json
object
message
required

A message regarding the error that occurred on the server

string
documentation_url

(Optional) A URL where documentation regarding this specific error can be found

string
Example
{
"message": "Not Found"
}

Too many requests

Media type application/json

Service unavailable

Media type application/json