Expire Access Token

Expire an access token before the token's expiration date and revoke access to the system.

Access tokens normally expire within an hour.

This operation expires an access token upon request so that the token may no longer be used for future operations.

Average Response Time: 288ms

SecurityApiKeyAuth or BasicAuth
Request
header Parameters
X-API-Key
required
string

Customer-specific API key required to invoke API.

AccessToken
required
string

Provided by Authentication Token creation operation.

Content-Type
required
string
Value: "application/json"
Request Body schema: application/json
required

The Request Body must be a JSON-formatted string.

endpointUrl
required
string <URL>

The API's base URL.

clientId
required
string

The clientId. Available in the response of an Access Token generation request.

userPoolId
required
string

The Cognito Pool ID of your Tenovos tenant.

username
required
string <username>

Use in a new token request. Username of the user in Tenovos.

required
object (AuthExpireRequest_session)

Session information.

Responses
200

Successful operation

401

Unauthorized operation. This occurs when invalid refresh token and user credentials are provided.

502

Bad Gateway. Missing clientId or userPoolId

delete/auth/token
Request samples
application/json
{
  • "endpointUrl": "https://endpoint.url/v1",
  • "clientId": "abcdefghijklmnop1234567890",
  • "userPoolId": "us-east-1_123456789",
  • "username": "john.wick",
  • "session": {
    }
}
Response samples
application/json
{
  • "endpointUrl": "https://endpoint.url/v1",
  • "clientId": "string",
  • "userPoolId": "string",
  • "username": "string",
  • "session": {
    }
}