List access tokens

View a list of EdgeKV access tokens.

Query Params
boolean

Whether to include expired tokens that are less than 30 days old in the response.

string

For customers who manage more than one account, this runs the operation from another account. The Identity and Access Management API provides a list of available account switch keys.

Headers
string
enum
Defaults to application/json

Generated from available response content types

Allowed:
Responses

Response body
object
tokens
array of objects
required
length ≥ 1

A list of tokens.

tokens*
object
date

Tokens created using the enhanced token workflow have an expiry date, in ISO 8601 format, of 9999-12-31. Any tokens created before the release of the enhanced workflow display an actual expiry date such as 2025-02-28.

date

Initial token creation date in ISO 8601 format.

date | null

Most recent token refresh date in ISO 8601 format. A null value indicates the token has not yet been refreshed.

string
length between 1 and 32

Friendly name of the token. Used when retrieving tokens by name.

date

Next scheduled date of the token refresh in ISO 8601 format.

string
enum

The IN_PROGRESS status indicates token activation is still in progress, and it's not yet possible to make successful EdgeKV requests from EdgeWorkers that use the token. Once activation completes, status is COMPLETE. Otherwise a value of ERROR indicates a problem that prevented activation.

IN_PROGRESS COMPLETE ERROR

uuid

A generated unique identifier for the access token. This should be used in the edgekv_tokens.js file.

Language
Authentication
URL