Skip to main content
GET
/
sites
/
environments
/
{env_id}
/
wpa-user-exists
Check if WP admin user exists by email
curl --request GET \
  --url https://api.kinsta.com/v2/sites/environments/{env_id}/wpa-user-exists \
  --header 'Authorization: Bearer <token>'
{
  "has_wp_admin_user": true
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

env_id
string
required
Example:

"54fb80af-576c-4fdc-ba4f-b596c83f15a1"

Query Parameters

email
string<email>
required

Response

Successfully found WP admin user by email

has_wp_admin_user
boolean
required