Get an Authentication Token (Session Token)
To use this endpoint, you will need to Get a Persistent Access Token.
URI:Â
https://api.cloudcard.us/authentication-token
Optional URL Parameters:Â N/A
HTTP Method:POST
Required Headers:
Content-Type: application/json
Accept: application/json
Example Request Body
{
"persistentAccessToken": "jX7wUuyAIu8WHOBtSN7L0492y81dQZbJxc4oNweUVWIby6LHsS691QqsyIqeRw79"
}
Â
The response contains a full JSON representation of the authentication token. The value in the tokenValue
field is what should be passed in the X-Auth-Token
header for authenticated requests.
Example Response
200 OK
{
"id": 11766,
"dateCreated": "2022-10-15T18:51:28Z",
"lastUpdated": "2022-10-15T18:51:28Z",
"tokenValue": "acr2vdf088qmnrsjmomj5ne9tsbd0je1rspp84059vc9pii7ai6019g3eslv6024",
"username": "john.smith@gmail.com",
"persistentAccessTokenId": 1234,
"domainClass": "us.cloudcard.api.AuthenticationToken",
"version": null,
"expirationDate": "2022-10-16T06:51:28Z"
}