Token API
You use the Token API to manage API keys used to access the Preview and Delivery APIs.
Base URL
The base URL for all the Token API requests is:
https://edge.sitecorecloud.io/api/apikey/v1
Authentication
All endpoints use bearer authorization.
Headers
The following header is required:
Name |
Format |
Description |
---|---|---|
|
Bearer token |
A JSON web token obtained from Auth0. |
Endpoints
All the following routes are relative to the base URL:
Endpoint |
Method |
URL |
Description |
Returns |
---|---|---|---|---|
|
|
Creates a new API key. |
The API key token. | |
|
|
Lists all the API keys. |
A list of API keys (info/hash). | |
|
|
Retrieves a single API key identified by its hash. |
A single API key (info/hash). | |
|
|
Retrieves a single API key identified by its token. |
A single API key (info/token). | |
|
|
Renames an API key identified by its hash. |
A boolean indicating whether the key was successfully renamed. | |
|
|
Renames an API key identified by its token. |
A boolean indicating whether the key was successfully renamed. | |
|
|
Revokes an API key identified by its hash. |
A boolean indicating whether the key was successfully revoked. | |
|
|
Revokes an API key identified by its token. |
A boolean indicating whether the key was successfully revoked. |