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_token | string | The token used for authentication. |
| token_type | string | The type of the token (e.g., Bearer). |
| expires_in | integer | The duration in seconds until the token expires. |
| refresh_token | string | Token used to obtain a new access token. |
| issued | string | The timestamp when the token was issued. |
| expires | string | The timestamp when the token will expire. |