Skip to main content

Endpoint

List access tokens associated with your account. Returns metadata about the tokens (IDs, scopes, expiration) but not the actual token secrets.
This endpoint is not supported in s2-lite. Access token management is only available in S2 Cloud.

Query Parameters

string
Filter to access tokens whose IDs begin with this prefix. Use an empty string to match all tokens.
string
Filter to access tokens whose IDs lexicographically start after this string. Used for pagination.
number
default:"1000"
Number of results to return, up to a maximum of 1000.

Response

array
List of access token information objects (up to 1000 items).
boolean
required
Indicates whether there are more access tokens that match the criteria.

Example

Pagination

To paginate through results:
  1. Make an initial request with your desired limit
  2. If has_more is true, make another request with start_after set to the last token ID from the previous response
  3. Repeat until has_more is false