# Manage WordPress Admin auto-login users with the Kinsta API

**URL:** <https://community.kinsta.com/t/manage-wordpress-admin-auto-login-users-with-the-kinsta-api/6107>\
**Category:** News and Announcements\
**Created:** [April 7, 2026, 4:38pm UTC](https://community.kinsta.com/t/manage-wordpress-admin-auto-login-users-with-the-kinsta-api/6107 "2026-04-07T16:38:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jeff](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/jeff/32/16_2.png) [@jeff](https://community.kinsta.com/u/jeff)\
**Post date:** [April 7, 2026, 4:38pm UTC](https://community.kinsta.com/t/manage-wordpress-admin-auto-login-users-with-the-kinsta-api/6107/1 "2026-04-07T16:38:25Z")

</div>

In March, Kinsta introduced [one-click access to WordPress Admin](https://kinsta.com/changelog/wordpress-admin-login/) in MyKinsta. Now, we have extended that feature to the [Kinsta API](https://kinsta.com/docs/kinsta-api/) with three new endpoints for checking whether a matching WordPress admin user exists, creating one when needed, and generating a login link.

These additions make it easier to build your own onboarding, support, or admin workflows around WordPress Admin auto-login.

### Info

You need a valid API key/token to use Kinsta API endpoints. You can [create or manage your API keys](https://kinsta.com/blog/kinsta-api-key/)&nbsp;in MyKinsta.

## Check if a WordPress admin user exists

The new `wpa-user-exists` endpoint lets you check whether a WordPress administrator account already exists for a given email address in an environment.

This is useful when you want to decide whether to create a user first or go straight to generating a login link.

**Example request:**

```
curl --request GET \
  --url https://api.kinsta.com/v2/sites/environments/{env_id}/wpa-user-exists?email=user@example.com \
  --header 'Authorization: Bearer '
```

**Example response:**

```
{
  "has_wp_admin_user": true
}
```

You can find full request and response details in the API documentation for [checking whether a WordPress admin user exists](https://api-docs.kinsta.com/api-reference/wordpress-site-environments/check-if-wp-admin-user-exists-by-email).

## Create a WordPress admin user

If the email address does not already exist in WordPress, you can create a new administrator account with the API’s `wpa-create-user` endpoint.

This is especially useful for automated setup flows, internal tooling, or support workflows where you want to prepare access before generating a login link.

**Example request:**

```
curl --request POST \
  --url https://api.kinsta.com/v2/sites/environments/{env_id}/wpa-create-user \
  --header 'Authorization: Bearer ' \
  --header 'Content-Type: application/json' \
  --data '
{
  "email": "john@example.com",
  "first_name": "John",
  "last_name": "Doe"
}
'
```

**Example response:**

```
{
  "create_wp_admin_user": true
}
```

You can learn more in the API documentation for [creating a WordPress admin user](https://api-docs.kinsta.com/api-reference/wordpress-site-environments/create-wp-admin-user).

## Generate a WordPress Admin login link

Once a matching WordPress admin user exists, you can generate a login link using the API’s `wpa-login-url` endpoint.

This gives you a programmatic way to support the same WordPress Admin auto-login experience available in MyKinsta, while letting you choose which WordPress admin account to log in with.

**Example request:**

```
curl --request POST \
  --url https://api.kinsta.com/v2/sites/environments/{env_id}/wpa-login-url \
  --header 'Authorization: Bearer ' \
  --header 'Content-Type: application/json' \
  --data '{
    "email": "development@example.com"
  }'
```

**Example response:**

```
{
  "login_link": "https://mysite.kinsta.cloud?wp-login.php?kinsta-sso="
}
```

You can find more details in the API documentation for [generating a WordPress Admin login link](https://api-docs.kinsta.com/api-reference/wordpress-site-environments/get-wp-admin-login-link-by-email).

## Add WP Admin auto-login to your own workflows

These new endpoints extend the WordPress Admin auto-login feature beyond MyKinsta to the [Kinsta API](https://api-docs.kinsta.com/pages/introduction).

Whether you’re building internal tools, automating site setup, or simplifying admin access for your team, you now have more control over how WordPress Admin login is handled programmatically.

The post [Manage WordPress Admin auto-login users with the Kinsta API](https://kinsta.com/changelog/kinsta-api-apr-2026/) appeared first on [Kinsta®](https://kinsta.com).

* * *
This is a companion discussion topic for the original entry at [https://kinsta.com/changelog/kinsta-api-apr-2026/](https://kinsta.com/changelog/kinsta-api-apr-2026/)
