v1

latestSwagger 2.02026-08-04232286653.5 KB
Tokens

Create a new token owned by the logged in user.

A successful response from this resource will contain json-encoded details of API token. This is the only time the customer will be able to view the secret key associated with the token.

post/users/tokens

Request body

aliasstring
expires_atstring required

Example request

{
  "alias": "token1",
  "expires_at": "2021-12-03T19:58:34Z"
}

Response

Example response

{
  "token": {
    "access_key": "R7p5XctCQMuGlpVBmVdqzA",
    "alias": "newtoken",
    "created_at": "2021-11-03T22:16:27Z",
    "expires_at": "2021-12-03T19:58:34Z",
    "secret_key": "HrbZ3VTUb2YNAq53Md1EsA"
  }
}