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
Authentication successful
The response is of type object.
object
Was this page helpful?