Authentication Methods
The Qwilt CDN APIs use API key based authentication for controlling access.
API Key Based Authentication
API keys allow you to authenticate requests without using user credentials.
Create an API Key
An API Key can grant either viewer (read-only) or editor (read-and-write) permissions, and can be valid for up to 365 days.
Use the api-keys API to create an API Key.
Use the QC Services user interface to create an API key.
Pass the API Key with a Request
To authenticate an API request, include the API key in the X-API-KEY header.
Example:
curl --request GET \
--url https://media-sites.cqloud.com/api/v2/sites \
--header 'Accept: */*' \
--header 'X-API-KEY: eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJkYXRhQWNjZX...'
Token Based Authentication
warning
Token Based Authentication has been discontinued. Use API Key Based Authentication instead.