Number of APIs: 4
POST https://{{host}}/edgekv/v1/tokens
Generate an access token that allows an EdgeWorkers code bundle to access the specified namespace. Each token name needs to be unique and have a defined expiration of no longer than six months. You can't renew a token once it expires. To learn more about access tokens, refer to the EdgeKV guide.
GET https://{{host}}/edgekv/v1/tokens
View a list of EdgeKV access tokens.
GET https://{{host}}/edgekv/v1/tokens/:tokenName
Download a previously created EdgeKV access token. To get a token you need to know the token name
. To learn more about access tokens, refer to the EdgeKV guide.
DELETE https://{{host}}/edgekv/v1/tokens/:tokenName
Once you revoke an access token, you can't undo it. You also need to update any deployed EdgeWorkers code bundles that use the old token with a new token, or requests to EdgeKV fail. Any requests from an EdgeWorkers code bundle using a revoked token cause a 401 error. To learn more about access tokens, refer to the EdgeKV guide.
ENDPOINTS