Find employee by ID
Use case
In this example, we will find an existing employee by employeeId.
Use case data
API parameters with values
We will search an employee ID-1183 whose employee profile was previously created.
...api/v1/employees/ID-1183
Sample API call
To find an employee by username, make the following API call.
https://auth-api.sandbox.tuumplatform.com/api/v1/employees/username
Sample request
Below is an example request of the API call to retrieve customer data.
No request body.
curl --location 'https://auth-api.sandbox.tuumplatform.com/api/v1/employees/ID-1183' \
--header 'x-channel-code: BACKOFFICE' \
--header 'x-auth-token: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJuYW1lIjoiT2ZmaWNlciBUZXN0IiwiZW1wbG95ZWVJZCI6IklELTEwMDAiLCJ0ZW5hbnRDb2RlIjoiTUIiLCJleHBpcnlEVGltZSI6IjIwMjQtMTItMTZUMjI6Mzk6MTUiLCJleHAiOjE3MzQzODg3NTUsInJvbGVzIjpbIkFETUlOIl19.ftJgnhviaIP-qTsXh19FIG6wpZntGXezBIXHVK0-63U' \
--data ''Sample response
Below you find an example response body to the API call above.
Result
The result of the API call is the dataset of a particular employee.
Last updated
Was this helpful?