Login
Return user data with a jwt-token for use in authenticated requests.
This response is an extension of the default User resource, with the addition of the token field. For more information about the user response keys see the User Resource.
Url
POST http://api.hr-technologies.com/v1/users/login
FormData
| Parameters | Required | Description | Example |
|---|---|---|---|
| username | required | The username for the user that is being authenticated, can be an email or just a username | rthompson@example.com |
| password | required | Password associated with the user | ******** |
Response
| Key | Type(s) | Description |
|---|---|---|
| token | string |
JWT token for the user. This token is used for all requests requiring authentication. More info can be found on the authentication page |
Example
Url
http://api.hr-technologies.com/v1/users/login
Response
{
"data": {
"id": 11750,
"firstname": "Thompson",
"lastname": "Rasmussen",
"email": "rthompson@example.com",
"username": "rt",
"role": "CANDIDATE",
"language": "nl",
"updated_at": "2019-10-23 09:50:45",
"updated_by": 11750,
"created_at": "2019-05-28 10:52:41",
"created_by": 0,
"token": "eyJ0eXAiOIUzI1NiJ9.eyJpc3MiOiJodHRwczGRkOTA2In0.nYptsbhEI6iYKE"
}
}