Token Generator API

This topic describe the Token Generator API details. Using this API, you get the Authorization Bearer Token that is needed to integrate with the resume parser API.

API URL

The Token Generator API uses the below URL:

https://oauth.rchilli.com/oauth/token

API Endpoint

The Token Generator API uses the below endpoint:

/token

API Method

The Token Generator API uses only POST method.

API Request Type

The Token Generator API uses JSON request type.

API Request Headers

Header Data Type Description
Content-Type string Indicates the input type of the incoming request body. The only supported value is application/json.

API Request Body Parameters

The Token Generator API requires the following Key-Value parameters in the request body in the x-www-form-urlencoded format (see below screen-shot from postman for reference).

Name Value Description Remarks
grant_type String Specifies the type of grant being used in the OAuth flow. For server-to-server communication, this is often set to client_credentials. Example Value: "client_credentials".

Purpose: Helps the authorization server determine the flow and validate the request accordingly.

Required
code String This is the Token Generator Code you generated in Token Generator Code. Required
client_id String The unique identifier for the client application, provided by the authorization server when the client is registered. Example Value: "12345-abcde".

Purpose: Identifies the application making the request.

Note: Refer Configuration Details for the client_id.
Required
client_secret String A secret key associated with the client_id, provided during client registration. Example Value: "xyz12345".

Purpose: Authenticates the client application and verifies its identity.

Note: Refer Configuration Details for the client_secret.
Required
state Integer
  • A client-generated string used to maintain state between the request and callback. Often used to prevent CSRF attacks.

  • Example Value: xyz123
Optional

Sample JSON Response

{
    "access_token": "aI6EUAMw5QZUrwTj1KxuPCHm$Hed7Dd32@PZNxlkTL7aR49f",
    "token_type": "Bearer",
    "expires_in": 3600
}

API Response Parameters

The Token Generator API response parameters are as follows:
Name Type Description
access_token String This is the Authorization Bearer token needed to integrate with the Resume Parser API. Refer Request Authorization.
token_type String This is the Authorization Bearer token type.
expires_in Integer This represents the duration, in seconds, for which the Authorization Bearer token remains valid.