Create
The Create endpoint generates an API key.
Relative Route |
|
---|---|
|
|
Request body
The structure of DeliveryApiKeyInfo
is as follows:
RequestResponse
{
"CreatedBy": "ADN",
"Label": "Example key",
"Scopes": ["scope1", "scope2"]
}
For additional information on scopes, see Scopes.
Response body
The response is the token:
RequestResponse
MTQ0NjJkZmQ5OTM2NDE1ZTZjNGZmZjI3
Example
The following example requests the scopes of audience-preview
and audience-delivery
. This means that the returned X-GQL-Token
is valid for both the Preview API and the Delivery API:
RequestResponse
{
"createdBy": "somebody",
"label": "Testing Access",
"scopes": [
"content-#everything#",
"audience-preview",
"audience-delivery"
]
}