User Account

List a user's Aura Historia access-token metadata as admin

Changed on

Lists non-secret Aura Historia access-token metadata for the explicit target user.

Cognito JWTs and Aura Historia access tokens are accepted. The caller's persisted user role must be ADMIN; delegated Aura Historia access tokens must also have access-tokens:read. Authorization is enforced in the User service, not only at the HTTP route.

userId must be a valid User ID and the target user must exist. Expired and current tokens are included. Results use bounded keyset pagination in fixed created ASC, AccessToken ID ASC order. Page sizes are clamped to 1–100, with a default of 21. searchAfter is a JSON-encoded [created RFC3339 timestamp, AccessToken ID] cursor and is omitted on the terminal page. The cursor's creation timestamp is used only for continuation and is not returned as item metadata. Raw token values, token hashes, and masked token values are never returned.

get/api/v1/admin/users/{userId}/access-tokens

Request

  • Base URL: https://api.stage.aura-historia.com
  • URL: https://api.stage.aura-historia.com/api/v1/admin/users/{userId}/access-tokens
  • Auth: one of:
    • HTTP bearer
    • HTTP bearer

Path parameters

userIdstring required

Unique User ID for the user whose token metadata is listed.

Query parameters

sizeinteger

Requested page size. The server clamps it to 1–100; the default is 21.

searchAfterstring

JSON-encoded [created RFC3339 timestamp, AccessToken ID] cursor from the previous page.

Response

Secret-free access-token metadata for the target user.

sizeinteger required

Number of items returned in the current page.

searchAfterstring[] nullable

[created RFC3339 timestamp, AccessToken ID] cursor for the next page, omitted when no more results are available.

Example response

{
  "items": [
    {
      "userId": "usr_5pvhvpxyhve6ts31n9x8c2y513",
      "accessTokenId": "at_4ck23tcv0meqqrbyjaka24ra6g",
      "name": "Incident review token",
      "scopes": [
        "users:read"
      ],
      "origin": "User",
      "expires": "2026-09-30T00:00:00Z"
    }
  ],
  "size": 21,
  "searchAfter": [
    "2026-09-04T12:00:00Z",
    "at_4ck23tcv0meqqrbyjaka24ra6g"
  ]
}

Changes

    • breaking

      the response property's min was decreased from 1.00 to 0.00 for the response status

    • warning

      added the new admin-overview:read enum value to the /// response property for the response status

    • warning

      added the new auctions:read enum value to the /// response property for the response status

    • warning

      added the new auctions:write enum value to the /// response property for the response status

    • warning

      added the new listing-sources:read enum value to the /// response property for the response status

    • warning

      added the new listing-sources:write enum value to the /// response property for the response status

    • warning

      added the new notifications:read enum value to the /// response property for the response status

    • warning

      added the new notifications:write enum value to the /// response property for the response status

    • warning

      added the new parties:read enum value to the /// response property for the response status

    • warning

      added the new parties:write enum value to the /// response property for the response status

    • warning

      added the new partnership-applications:read enum value to the /// response property for the response status

    • warning

      added the new partnership-applications:write enum value to the /// response property for the response status

    • warning

      added the new partnerships:read enum value to the /// response property for the response status

    • warning

      added the new partnerships:write enum value to the /// response property for the response status

    • warning

      added the new search-filters:read enum value to the /// response property for the response status

    • warning

      added the new auctions:read enum value to the /// response property for the response status