Skip to navigation

Get Access Token

View as Markdown

This API is used to retrieve a new access key along with a refresh key by submitting api user login details together with client credentials.

Request

This endpoint expects an object.
PasswordstringRequired

This is the Web API user’s password. If not available, request it from the admin who created the user.

UserNamestringRequired

Get this from your system admin or from HRMS: Setup > Web API > User in your HRMS admin portal.

client_idstringRequired
Request credential from admin. It is from EAM portal.
grant_typestringRequired
Fixed as "password"
client_secretstringRequired

Paired with client_id, also from the EAM portal.

serviceConnectionstringRequired

Service Connection is a parameter to distinguish or specify the connection or tenant, especially in multi-tenant or multi-service environments. This field is optional. Get the value from IT or check in web.config. If client don’t have multi-tenant setups, may leave it out.

Response headers

PragmastringOptional
ExpiresstringOptional
Cache-ControlstringOptional
Referrer-PolicystringOptional
X-Frame-OptionsstringOptional
X-XSS-ProtectionstringOptional
X-Content-Type-OptionsstringOptional

Response

OK
expires_ininteger
token_typestring
access_tokenstring
refresh_tokenstring