Create OAuth2 access token
POST request to create an access token. The access token can be used to authorize external requests.
Request
- Base URL: https://api.hoorayhr.io
- URL: https://api.hoorayhr.io/oauth/token
- Auth: none required
Query parameters
The grant_type of the request. Since the API only handles authorization codes, provide the value "authorization_code".
The authorization code to exchange. Use the /oauth/authorize endpoint to get an authorization code.
The redirect_uri that was used to get the authorization code. The URI must be identical to the value provided earlier.
Unique id of the client that performs the request. The id should be valid and identical to the client_id used to get the authorization code.
Secret key of the client that performs the request. The secret must match the client_id. Keep this value secret and secure at all times.
Request body
Response
success
Example response
{
"access_token": "aeae379a6e857728e44164267fdb7a0e27b205d757cc19899586c89dbb221930f1813d02ff93a661859bc17065eac4d6edf3c38a034e6283a84754d52917e5b0",
"token_type": "bearer"
}Changes
No recorded changes to this operation across all 1 revision of this API.