WordPress Application Passwords: Setup, REST API Use, and Security

By admin | November 29, 2026 | 10 min read

A WordPress integration may need to connect to your site without using your main account password. Application Passwords are designed for this kind of connection. They give an app or script a separate credential to authenticate with WordPress through an API.

They are not a second way to log in to the WordPress dashboard. They are intended for programmatic access, such as a mobile app, a reporting tool, or a service that works with the WordPress REST API. You can revoke one Application Password without changing the user’s main password. WordPress Application Passwords documentation

This guide explains what Application Passwords do, how to create and use one, what security steps to take, and how to troubleshoot authentication errors.



What are WordPress Application Passwords?

An Application Password is a credential connected to a specific WordPress user. An external application can use it to authenticate API requests as that user. WordPress introduced the feature in version 5.6.

WordPress stores the password in hashed form and displays it only once when it is created. Each password can have a descriptive name, making it easier to identify an integration later. You can review usage information and revoke an individual credential from the user profile. WordPress security handbook

The key points are:

  • The credential belongs to a WordPress user.
  • The connected app receives the user’s capabilities for API requests.
  • The credential is separate from the user’s normal login password.
  • You can revoke the Application Password without changing the main password.
  • It is intended for apps, scripts, and API tools, not interactive dashboard login.

That last point is important. An Application Password does not sign you in to wp-admin. It is a way for software to authenticate to WordPress.



What Application Passwords are not

An Application Password is not a plugin, a publishing workflow, or a separate permission system by itself. Creating one does not automatically connect your website to an external tool. The app must support the WordPress authentication method and API actions you intend to use.

It also does not automatically restrict the connected tool to a single post or one task. WordPress documents the password as being tied to a user account. Requests made with that credential are subject to the user’s capabilities. WordPress Application Passwords documentation

For example, if you connect a tool using an administrator account, its API requests can use the permissions available to that account. A safer design is to give the integration its own user with only the capabilities it needs.



Before you create an Application Password

Check these points first:

  1. Your WordPress site uses HTTPS.
  2. You can edit the profile for the account that will own the credential.
  3. The external integration supports WordPress REST API authentication.
  4. You know what actions the integration needs to perform.
  5. You have a secure place to store the generated password.
  6. You have decided whether the integration should create drafts or publish content.

If your aim is to sign in to the WordPress dashboard, use the normal account login and the site’s usual security protections. Application Passwords are for API clients.

Also check whether your site uses a security plugin, hosting rule, or custom code that changes Application Password availability. WordPress allows availability to be customized or disabled. WordPress availability documentation



How to create an Application Password

WordPress describes this process in its administration handbook:

  1. Sign in to your WordPress dashboard.
  2. Go to Users → Profile, or open Users → All Users and edit the relevant account.
  3. Find the Application Passwords section.
  4. Enter a name that identifies the connected tool, such as Website analytics or Article draft integration.
  5. Generate the password.
  6. Copy it immediately and store it in a secure password manager or secret store.

WordPress displays the generated password once. If you close the page without saving it, you may need to revoke that credential and create another. The spaces between character groups are for readability; WordPress strips them when checking the password. WordPress Application Passwords documentation

Avoid vague names such as App 1 or Test. If you later review the profile and see several credentials, clear names help you identify which application still needs access.



Use a separate WordPress user for an integration

An Application Password has the permissions of its associated WordPress user. If you connect a tool with your main administrator account, it can make API requests allowed to that account. A dedicated user can reduce the impact of a credential leak or a mistake in the integration.

Choose the role according to the work:

  • A reporting integration may need read access to relevant posts.
  • A tool that saves article drafts needs permission to create posts.
  • A service that uploads images needs permission to upload media.
  • A workflow that publishes live content should be reviewed more carefully.
  • A service that manages plugins or site settings should not automatically receive administrator access.

WordPress roles can be extended by plugins, so verify capabilities on your own installation. Give the integration only the access required for its purpose. If it only needs to prepare drafts, it should not receive permission to change themes, plugins, or other site settings.



Connect through the WordPress REST API

WordPress Application Passwords are commonly used with HTTP Basic Authentication over HTTPS. A REST API client sends the WordPress username and generated Application Password with a request. WordPress documents this authentication method in its REST API handbook. REST API authentication handbook

Here is the general request shape:

curl --user "USERNAME:APPLICATION_PASSWORD" \
  https://example.com/wp-json/wp/v2/users/me

Replace the placeholders with your WordPress login username, generated Application Password, and site address. Do not include a real password in a public article, screenshot, chat, shared spreadsheet, or code repository.

A successful connection to one API endpoint does not mean that every action is available. WordPress still checks the authenticated user’s permissions. A user who can read posts may not be able to create or publish one.

Before connecting a real workflow, check what it will do with the credential. Look for a supported option that creates a draft first. Reviewing a draft before publication helps you catch factual errors, broken links, incorrect formatting, and missing images.



Keep the credential out of public code

Treat an Application Password like a secret. Do not put it in:

  • A public Git repository.
  • A theme or plugin file that visitors can download.
  • Front-end JavaScript sent to website visitors.
  • A URL or query string.
  • A tutorial screenshot or screen recording.
  • A shared spreadsheet that many people can access.

Use the integration’s protected credential settings or a server-side secrets store. If someone sees the credential, revoke it and create a replacement. Removing a secret from a file later might not erase copies, logs, or repository history.

Always use HTTPS. WordPress explains that Basic Authentication credentials should be sent over an encrypted connection. Without HTTPS, credentials could be exposed while crossing the network. WordPress Application Passwords security guidance

If an app cannot store credentials securely, reconsider whether it is suitable for access to your WordPress account. A convenient connection is not worth exposing a password that can make changes to your site.



How to revoke or rotate an Application Password

If an integration is no longer in use, revoke its credential:

  1. Open the user profile in wp-admin.
  2. Find the Application Passwords section.
  3. Locate the credential by its descriptive name.
  4. Revoke that individual password.
  5. Confirm the integration no longer authenticates with it.
  6. If the integration still needs access, create a replacement and update the client securely.

Revoke a credential after suspected exposure or when a staff member or contractor no longer needs it. WordPress allows owners to review the listed passwords and revoke them individually. WordPress Application Passwords documentation

If you use WP-CLI, the official command reference includes commands for creating, listing, and deleting Application Passwords. Make sure you have the correct user ID before running a command that changes credentials. WP-CLI Application Password command



Troubleshooting 401 or 403 errors

An HTTP 401 Unauthorized or 403 Forbidden response can have several causes. Check the connection methodically instead of repeatedly generating passwords.


Confirm HTTPS is configured correctly

Application Passwords are intended for requests served over HTTPS. Verify that the integration uses the HTTPS version of your site and that WordPress correctly detects the secure connection. Sites behind a reverse proxy may need correct HTTPS configuration.

WordPress lists HTTPS detection as an important troubleshooting check when Application Passwords do not appear or authentication fails. WordPress troubleshooting guidance


Use the Application Password, not the normal password

The integration needs the generated Application Password. Your usual dashboard password is a different credential. Copy the generated password from the moment it is created and store it securely.


Check the username

Use the WordPress login username associated with the Application Password. A display name or email address may not be the right login identifier for a specific client.


Check whether the feature is disabled

A security plugin, must-use plugin, hosting rule, or custom code can disable Application Passwords. If the section is missing from a user profile, review the site’s configuration and security policies rather than assuming the feature is unsupported. WordPress availability and troubleshooting


Check the Authorization header

Some clients, proxies, or server configurations may strip the Authorization header. WordPress lists this as a possible cause of failed authentication. Check whether your client has a Basic Authentication setting and whether your server forwards the required header. Avoid putting secrets in a URL as a workaround. WordPress troubleshooting guidance


Check the user’s capabilities

Authentication establishes which user made the request. It does not give that user new permissions. If the API says the user cannot perform an action, check the user role, plugin-created roles, and endpoint capability requirements.


Review security plugin conflicts carefully

A security plugin can change how authentication works. Review its documentation and logs, and test changes on a staging site when possible. Do not disable important protections on a live site just to see whether an integration works.



A safer workflow for WordPress publishing tools

If an external service will help prepare articles, decide whether it should create unpublished drafts or publish live posts. Draft status gives you a review step before content becomes public.

A safer setup can include:

  1. A separate WordPress user with limited permissions.
  2. One Application Password for that integration.
  3. HTTPS for every API request.
  4. Secure credential storage.
  5. Draft status for new articles unless live publishing is explicitly intended.
  6. Regular review of the credential list.
  7. A clear revocation plan if the connection is no longer needed.

Test the smallest necessary action first. For example, verify that a connection can read a harmless endpoint before allowing it to create content. Then try creating an unpublished draft and inspect the result in WordPress. Confirm that links, formatting, SEO fields, and image details appear as expected.

Keep an audit trail of which service has access, why it needs that access, and who reviews its output. That record makes it easier to remove unused integrations later.



Conclusion

WordPress Application Passwords let an integration use the REST API without using your main account password. Their safety depends on the user account’s capabilities, secure credential storage, and HTTPS.

Use a dedicated user where practical, keep the credential private, and revoke it when access is no longer needed. If authentication fails, check HTTPS, the username, password type, Authorization header, feature availability, and user permissions before changing broad security settings.

Credible sources

Frequently Asked Questions

Can an Application Password log me into wp-admin?

No. WordPress says Application Passwords are for programmatic authentication. They cannot be used to sign in through wp-login.php. Use your normal account login for the dashboard.

Can I use an Application Password with the WordPress REST API?

Yes. WordPress documents Basic Authentication with Application Passwords for REST API requests served over HTTPS. The client must support that method, and the associated user must have permission for the requested action.

Does an Application Password automatically have administrator access?

No. It uses the permissions of the WordPress user it belongs to. It does not independently create administrator permissions. Choose the user role carefully.

What should I do if I lose the generated password?

WordPress shows the password only once. Create another credential, update the integration securely, and revoke the old credential if it is no longer needed.

Is it safe to paste the Application Password into a support chat?

Treat it as a secret. Do not share it in chat, email, public code, or screenshots. If you already exposed it, revoke it and create another.

Scroll to Top