Skip to content
WP Engine Documentation

Get the current user

GET
/user
curl --request GET \
--url https://api.wpengineapi.com/v1/user \
--header 'Authorization: Basic <credentials>'

Returns the currently authenticated user

The currently authenticated user

Media type application/json
object
id
required
string
first_name
string
last_name
string
email
required
string
phone_number
string
Example
{
"id": "fd8e24a5-1f16-4b80-af5f-d748bcc9e64d",
"first_name": "Joe",
"last_name": "Smith",
"email": "joe@gmail.com",
"phone_number": "123456789"
}

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"
}

Too many requests

Media type application/json

Service unavailable

Media type application/json