Rotate Access Token
POST https://{{env_url}}/item/access_token/invalidate
By default, the access_token
associated with an Item
does not expire and should be stored in a persistent, secure manner.
You can use the POST /item/access_token/invalidate
endpoint to rotate the access_token
associated with an Item
. The endpoint returns a new access_token
and immediately invalidates the previous access_token
.
Request Body
{"client_id"=>"{{client_id}}", "secret"=>"{{secret_key}}", "access_token"=>"{{access_token}}"}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string |
RESPONSES
status: OK
{"new_access_token":"access-sandbox-15b1169a-3dac-4d8c-a24c-d71e90b91e07","request_id":"L7wrN"}