Skip to main content
DELETE
/
api
/
{serviceId}
/
auth
/
token
/
delete
/
{accessTokenIdentifier}
Typescript (SDK)
import { Authlete } from "@authlete/typescript-sdk";

const authlete = new Authlete({
  bearer: process.env["AUTHLETE_BEARER"] ?? "",
});

async function run() {
  await authlete.token.management.delete({
    serviceId: "<id>",
    accessTokenIdentifier: "<value>",
  });


}

run();
{
  "resultCode": "A001201",
  "resultMessage": "[A001201] /auth/authorization, TLS must be used."
}

Authorizations

Authorization
string
header
required

Authenticate every request with a Service Access Token or Organization Token. Set the token value in the Authorization: Bearer <token> header.

Service Access Token: Scoped to a single service. Use when automating service-level configuration or runtime flows.

Organization Token: Scoped to the organization; inherits permissions across services. Use for org-wide automation or when managing multiple services programmatically.

Both token types are issued by the Authlete console or provisioning APIs.

Path Parameters

serviceId
string
required

A service ID.

accessTokenIdentifier
string
required

The identifier of an existing access token. The identifier is the value of the access token or the value of the hash of the access token.

Response

The access token was successfully deleted.