POST https://api.cmswebservice.in/token

API Endpoint: Token Generation

This endpoint is used to obtain an access token for authentication purposes. It accepts a grant_type parameter and returns a JSON object containing the access token and related information.

Test Credentials

Username: Test

Password: 1234

Request

  • Method: POST
  • URL: https://api.cmswebservice.in/token
  • Content-Type: application/x-www-form-urlencoded

Request Body Parameters

Key Type Description
grant_type string The type of grant being requested.

Response

  • Status Code: 200
  • Content-Type: application/json

Response Body

The response will contain the following fields:

Key Type Description
access_tokenstringThe token used for authentication.
token_typestringThe type of the token (e.g., Bearer).
expires_inintegerThe duration in seconds until the token expires.
refresh_tokenstringToken used to obtain a new access token.
issuedstringThe timestamp when the token was issued.
expiresstringThe timestamp when the token will expire.