In this article
WordPress application passwords are the built-in way to let an outside app talk to your site through the REST API without handing it your real login. They arrived in WordPress 5.6, they need no plugin, and they take about a minute to set up. They are also the part of a WordPress integration most likely to fail in a confusing way, usually because the section you need isn't there.
This guide covers what they are, how to create one, why the section goes missing, how to test one with curl before you blame the app you're connecting, and how to keep them from turning into a security problem.
What WordPress application passwords are
An application password is a second, separate password attached to a WordPress user. Each one has a name you choose ("Quillfleet", "Zapier", "Backup script"), and WordPress generates the password itself: 24 characters, shown in groups of four like abcd EFGH 1234 ijkl MNOP 5678.
A few properties matter in practice:
- They only work for API requests. Application passwords authenticate REST API and XML-RPC requests. You can't use one to log in at
/wp-login.phpor openwp-admin. If an app's password leaks, the attacker gets API access as that user, not a dashboard session. - They're per app and individually revocable. You can have several on one user and revoke one without touching the others or your normal password.
- They carry the user's full permissions. There are no scopes. An application password on an Administrator account can do anything an Administrator can do through the API. Pick the user carefully (more on that below).
- WordPress shows the password once. It stores only a hash. If you lose it, create a new one.
- They're sent with HTTP Basic authentication. The app sends the username and application password in the
Authorizationheader on each request. That's why WordPress wants HTTPS.
Before 5.6, getting REST API authentication to work from an external app meant installing a plugin for Basic Auth, JWT or OAuth. WordPress application passwords replaced most of that. The WordPress core team's Application Passwords integration guide is the original reference and still accurate on the basics.
How to create an application password
You need WordPress 5.6 or newer and a site served over HTTPS (exceptions below). Then:
- Log in to
wp-adminas the user the app should act as. - Go to Users → Profile. If you're an administrator creating one for someone else, go to Users → All Users and click that user.
- Scroll to the Application Passwords section, near the bottom.
- Type a name in New Application Password Name. Name it after the app, not the person:
QuillfleetorStaging deploy script, notali. - Click Add New Application Password.
- Copy the password from the box that appears. WordPress won't show it again.
The spaces in the password are only for readability. WordPress ignores them when checking, so abcdEFGH1234ijklMNOP5678 and the spaced version both work.
Below the form, WordPress lists each application password with its name, when it was created, when it was last used and the last IP address that used it. Keep that table in mind. It's the closest thing WordPress gives you to an audit log for API access.
If you manage many sites from the command line, WP-CLI can do the same thing: wp user application-password create <user> <app-name> creates one, and wp user application-password list <user> shows them. That's handy when you're setting up a dozen client sites in a row.
Application passwords not showing: the four usual causes
This is the most common support question, and there are four usual causes. Check them in this order.
1. The site isn't on HTTPS
WordPress only makes application passwords available when the site is served over SSL. On a plain http:// site the section simply isn't rendered, with no warning.
The one built-in exception is local development. If the environment type is local, WordPress allows them without HTTPS. You set that in wp-config.php:
define( 'WP_ENVIRONMENT_TYPE', 'local' );
Don't do this on a public site to get around the HTTPS requirement. Some plugins change their behaviour based on the environment type, and you'd be sending passwords in clear text anyway. Get a certificate instead (most hosts include a free Let's Encrypt one).
A related gotcha: if your site is on HTTPS but WordPress doesn't know it, because SSL ends at a load balancer or proxy, WordPress may think it's on HTTP. The usual fix is making sure the proxy passes X-Forwarded-Proto and WordPress honours it. Ask your host if you're unsure.
2. A security plugin turned them off
Several security plugins have a setting to disable application passwords. Wordfence has one in its login security settings, and Solid Security (formerly iThemes Security) and All In One WP Security have similar options. If the section disappeared after a plugin install or update, look there first.
I'd argue against a blanket "off" setting on any site that needs API access. Disabling them doesn't make the REST API safer for the apps you do want; it just forces them back onto older, worse methods.
3. The host disabled them
Some managed hosts disable application passwords platform-wide, usually through a must-use plugin you can't see in the normal plugin list. If you're on HTTPS, no security plugin is responsible, and the section is still missing, open a ticket and ask directly: "Are WordPress application passwords disabled on my plan, and can you enable them?"
4. Code uses the availability filter
WordPress exposes a filter, wp_is_application_passwords_available, that returns whether the feature is on. A theme, plugin or snippet can switch it off with one line:
add_filter( 'wp_is_application_passwords_available', '__return_false' );
Search your theme's functions.php, any custom plugins and the wp-content/mu-plugins folder for that filter name. There's also a per-user version, wp_is_application_passwords_available_for_user, which can hide the section for certain users or roles only. If an Editor can't see it but an Administrator can, that's the likely cause.
Test the password with curl before blaming the app
When an integration says "authentication failed", it's often unclear whether the problem is the password, the site or the app. A single curl request answers that in seconds:
curl --user "quillfleet:abcd EFGH 1234 ijkl MNOP 5678" \
https://example.com/wp-json/wp/v2/users/me
The /wp/v2/users/me endpoint returns the user you're authenticated as. What you get back tells you a lot:
- A JSON object with your user's
idandname. The password works. If the app still fails, the problem is in the app or how you entered the username or URL. "code":"rest_not_logged_in"with a 401. WordPress received the request but no valid login. Either theAuthorizationheader never reached WordPress (see below) or application passwords are disabled.- An error saying the application password is invalid, or that the username is unknown. Check the username. It's the login name from Users → Profile, not the display name, and whether an email address works depends on your setup. Then create a fresh password.
- An HTML error page, or a 403 from something that isn't WordPress. A firewall, CDN or security layer blocked the request before it got to WordPress.
To check the user's role at the same time, add ?context=edit to the URL. The response then includes roles and capabilities, which tells you whether the user can actually publish.
On Windows PowerShell, use curl.exe rather than curl, because curl is an alias for a different command there.
When the Authorization header gets stripped
If you get rest_not_logged_in with a password you know is correct, the web server is probably dropping the Authorization header before PHP sees it. It's common on some Apache and CGI/FastCGI setups. Adding this to the site's .htaccess, above the WordPress block, fixes it on many hosts:
SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1
If that doesn't help, it's a host configuration issue and their support should be able to sort it out.
Security practice for WordPress application passwords
Application passwords are safer than giving an app your real login, but they're only as safe as the account they're attached to. The habits I follow on every site:
One password per app. Never share one application password between two tools. Separate passwords mean you can revoke one without breaking the others, and the Last Used and Last IP columns actually tell you something.
Least-privilege role. Since there are no scopes, the role is your only limit. An app that publishes posts needs an Editor, not an Administrator. An Administrator password can install plugins and create users through the API, which is a lot of blast radius for a publishing tool. Better still, create a dedicated user for the integration ("Quillfleet" with the Editor role, say), so its posts show a consistent author and access doesn't depend on a staff member who might leave.
Revoke what you don't use. The list on Users → Profile shows when each password was last used. Anything that hasn't been used in months, or that belongs to a tool you've cancelled, should go.
Store them like passwords. Not in a shared spreadsheet, not in a Slack message. A password manager or the app's own encrypted storage.
How to revoke an application password
To revoke an application password:
- Go to Users → Profile for that user (or Users → All Users and click them).
- Scroll to Application Passwords.
- Click Revoke next to the one you want to remove, and confirm.
The change is immediate. The next request using that password fails. There's also a Revoke all application passwords button, which is the right move if you suspect a leak and don't know which one.
Two things revoking doesn't do: it doesn't change the user's normal password, and it doesn't undo anything the app already did. If you think an account was abused, review recent posts and users too.
Also note that removing a site or integration from the app's side usually doesn't revoke the password in WordPress. You have to do that in WordPress yourself.
Where Quillfleet fits
Quillfleet publishes to WordPress using exactly this mechanism: the REST API and WordPress application passwords, no plugin. You paste the username and password in once, and a connection test checks that the API is reachable, the login works and the user's role is high enough, then tells you which check failed if one did. The WordPress connection guide lists each error message and its fix, and it maps closely to the curl results above.
We ask for an Editor or Administrator because publishing and creating missing categories need those permissions. Editor is the one we recommend. Quillfleet stores the password encrypted, and the security page explains how. If you're setting this up across many client sites, the post on managing multiple WordPress sites covers the wider workflow.
A quick checklist for any new integration:
- Confirm WordPress 5.6+ and HTTPS.
- Create a dedicated user with the lowest role that works.
- Create one application password, named after the app.
- Test it with
curlagainst/wp-json/wp/v2/users/me. - Paste it into the app, then note in your records where it's used.
- Every few months, check Last Used and revoke what's idle.
The WordPress REST API handbook is the reference if you want to go further than publishing posts.
Frequently asked questions
Can I log in to wp-admin with an application password?
No. Application passwords only authenticate API requests, such as the REST API and XML-RPC. The normal login form at wp-login.php rejects them. That's deliberate: if an app's password leaks, the attacker can't open your dashboard with it, though they can still do whatever that user's role allows through the API, so pick a modest role.
Do application passwords expire?
No, they don't expire on their own. An application password keeps working until you revoke it, the user is deleted, or the feature is disabled on the site. That's convenient for integrations but means old passwords pile up. Check the Last Used column on the user's profile now and then and revoke anything idle or tied to a tool you no longer use.
Does changing my WordPress password revoke application passwords?
Changing your normal login password doesn't remove your application passwords; they're stored separately. To cut off apps, revoke their application passwords individually on your profile, or use Revoke all application passwords if you suspect a leak. Doing both is sensible after a suspected compromise, along with checking recent posts and user accounts.
Can I limit an application password to certain actions?
Not in WordPress core. An application password has exactly the permissions of the user it belongs to, with no scopes. The practical way to limit it is to attach it to a dedicated user with the lowest role that does the job, for example Editor for a publishing tool rather than Administrator. Some plugins add finer control, but that's outside core.
Why does my application password work locally but not on the live site?
Usually because something on the live server differs: application passwords are disabled by a security plugin or the host, the Authorization header is stripped by Apache or a proxy, or a firewall blocks the REST API. Locally you may also be using the local environment type, which relaxes the HTTPS rule. Test the live site with curl against users/me to see which it is.
- wordpress application passwords
- how to create an application password
- application passwords not showing
- rest api authentication
- revoke application password
