WordPress request with Application Passwords got invalid_username

832 Uncategorized Leave a Comment

I had created a password with Application Passwords,

But when I was trying to request WordPress API to create a post with Postman Basic Auth and also curl command, I got this error:

    "code": "invalid_username",
    "message": "<strong>Error</strong>: Unknown username. Check again or try your email address.",
    "data": {
        "status": 401

The reason why I got this error is because I used Application Password Name as username.

The correct way is using REAL username as username when requesting, not the Application Name.

Leave a Reply

Your email address will not be published. Required fields are marked *

Name *