cURL
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>" }
Authenticates a user and returns a JWT token
WordPress username or email
"your-username"
User's password
"your-password"
Authentication successful
JWT access token
WordPress user ID
User's email address
User's URL-friendly name
User's display name
Token used to obtain new access tokens
Was this page helpful?