A token stays valid for as long as specified in the TTL option. Using a token will reset the timeout.
POST /tokens
{
"username": "username",
"password": "password"
}
Name | Type | Required | Description |
---|---|---|---|
username | String | true | Username of Ackee. |
password | String | true | Password of Ackee. |
Status: 201 Created
Location: /tokens/:tokenId
{
"type": "token",
"data": {
"id": ":tokenId",
"created": "1526999812",
"updated": "1526999812"
}
}
DELETE /tokens/:tokenId
Status: 204 No Content