Skip to main content
GET
/
api
/
{serviceId}
/
client
/
authorization
/
get
/
list
/
{subject}
Typescript (SDK)
import { Authlete } from "@authlete/typescript-sdk";

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

async function run() {
  const result = await authlete.client.management.listAuthorizations({
    serviceId: "<id>",
    subject: "<value>",
  });

  console.log(result);
}

run();
{
  "start": 123,
  "end": 123,
  "developer": "<string>",
  "subject": "<string>",
  "totalCount": 123,
  "clients": [
    {
      "number": 123,
      "clientName": "<string>",
      "clientNames": [
        {
          "tag": "<string>",
          "value": "<string>"
        }
      ],
      "description": "<string>",
      "descriptions": [
        {
          "tag": "<string>",
          "value": "<string>"
        }
      ],
      "clientId": 123,
      "clientIdAlias": "<string>",
      "clientIdAliasEnabled": true,
      "clientType": "PUBLIC"
    }
  ]
}

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.

subject
string
required

Unique user ID of an end-user.

Query Parameters

developer
string

Unique ID of a client developer.

start
integer<int32>

Start index of search results (inclusive). The default value is 0.

end
integer<int32>

End index of search results (exclusive). The default value is 5.

Response

start
integer<int32>

Start index of search results (inclusive).

end
integer<int32>

End index of search results (exclusive).

developer
string

Unique ID of a client developer.

subject
string

Unique user ID of an end-user.

totalCount
integer<int32>

Unique ID of a client developer.

clients
object[]

An array of clients.