Tokens

Refresh an access token

The client has the option to pass the refresh token in the body of the request or in a refresh_token cookie. The access token must be passed in the body of the request.

PUT
/api/tokens
access_token?string
refresh_token?string
access_expiration?string
Formatdate-time
refresh_expiration?string
Formatdate-time

Response Body

Examples

curl -X PUT "https://api.piktid.com/api/tokens" \
  -H "Content-Type: application/json" \
  -d '{}'
{
  "access_token": "string",
  "refresh_token": "string",
  "access_expiration": "2019-08-24T14:15:22Z",
  "refresh_expiration": "2019-08-24T14:15:22Z"
}
Empty