Token Based Authentication API
API to generate an access token
This API allows you to generate an access token using a username and password. You can then pass this access token in the headers of your other API requests. This API helps in cases where you do not want to pass key and username due to security concerns.
Please get in touch with your onboarding manager or ClickPost support team to get the username and password to get the access token.
Base URL
POST Method
https://www.clickpost.in/api/v1/user/token/Sample Payload
{
"username":"test_username",
"password":"some_strong_password"
}Payload Description
| Field | Type | Required | Description |
|---|---|---|---|
username | String | Mandatory | Username of a user of your enterprise account |
password | String | Mandatory | Password of a user of your enterprise account |
Sample Response
{"token":"1123123123123123106","expires_at":"2025-03-28T11:12:07"}Response Description
| Field | Description |
|---|---|
token | Access token valid for 24 hrs. You need to pass this access token in the headers of the other API requests |
expires_at | The timestamp in UTC when the token expires |
You need to pass this token in the header of the other API requests, like so-

Updated 7 months ago
Did this page help you?
