POST
/
jwt-auth
/
v1
/
token
curl --request POST \
  --url https://{your-domain}/wp-json/jwt-auth/v1/token \
  --header 'Content-Type: application/json' \
  --data '{
  "username": "your-username",
  "password": "your-password"
}'
{
  "token": "<string>",
  "user_id": 123,
  "user_email": "<string>",
  "user_nicename": "<string>",
  "user_display_name": "<string>",
  "refresh_token": "<string>"
}

Body

application/json
username
string
required

WordPress username or email

Example:

"your-username"

password
string
required

User's password

Example:

"your-password"

Response

200
application/json
Authentication successful
token
string

JWT access token

user_id
integer

WordPress user ID

user_email
string

User's email address

user_nicename
string

User's URL-friendly name

user_display_name
string

User's display name

refresh_token
string

Token used to obtain new access tokens