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


FieldTypeRequiredDescription
usernameStringMandatoryUsername of a user of your enterprise account
passwordStringMandatoryPassword of a user of your enterprise account

Sample Response

{"token":"1123123123123123106","expires_at":"2025-03-28T11:12:07"}

Response Description


FieldDescription
tokenAccess token valid for 24 hrs. You need to pass this access token in the headers of the other API requests
expires_atThe timestamp in UTC when the token expires

You need to pass this token in the header of the other API requests, like so-


Did this page help you?