Skip to main content
GET
/
api
/
{serviceId}
/
auth
/
token
/
create
/
batch
/
status
/
{tokenBatchRequestId}
Typescript (SDK)
import { Authlete } from "@authlete/typescript-sdk";

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

async function run() {
  const result = await authlete.tokenOperations.authTokenCreateBatchStatusApi({
    serviceId: "<id>",
    tokenBatchRequestId: "<id>",
  });

  console.log(result);
}

run();
{
  "resultCode": "<string>",
  "resultMessage": "<string>",
  "status": {
    "batchKind": "CREATE",
    "requestId": "<string>",
    "result": "SUCCEEDED",
    "errorCode": "<string>",
    "errorDescription": "<string>",
    "tokenCount": 123,
    "createdAt": 123,
    "modifiedAt": 123
  }
}

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.

tokenBatchRequestId
string
required

A token batch request ID.

Response

Successfully retrieved the status

Response from a token create batch status request.

resultCode
string

The result code of the request.

resultMessage
string

The result message of the request.

status
object

Status of a token batch operation.