Skip to content

Latest commit

 

History

History
60 lines (44 loc) · 912 Bytes

tokens.md

File metadata and controls

60 lines (44 loc) · 912 Bytes

Tokens

Create a token

A token stays valid for as long as specified in the TTL option. Using a token will reset the timeout.

Request

POST /tokens
{
	"username": "username",
	"password": "password"
}

Parameters

Name Type Required Description
username String true Username of Ackee.
password String true Password of Ackee.

Response

Status: 201 Created
Location: /tokens/:tokenId
{
	"type": "token",
	"data": {
		"id": ":tokenId",
		"created": "1526999812",
		"updated": "1526999812"
	}
}

Delete a token

Request

DELETE /tokens/:tokenId

Response

Status: 204 No Content