Skip to navigation

Create a secure token

Generate a JWT authentication token to enable enhanced debug headers for EdgeWorkers.

Query parameters

accountSwitchKeystringOptional

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.

Request

This endpoint expects an object.
expiryintegerOptional1-720Defaults to 480

Number of minutes before the authentication token expires, from 1 to 720 minutes, or 12 hours. The default is 480 for 8 hours.

hostnamestringOptional>=1 character

Deprecated Use the hostnames parameter instead. Hostname for a property. To create an authentication token, provide either the hostname, or the propertyId, but not both.

hostnameslist of stringsOptional

List of hostnames for a property. To create an authentication token, provide either the list of hostnames, or the propertyId, but not both. Specify /* to generate an authentication token valid for all hosts.

propertyIdstringOptional>=1 character

Unique identifier for a property. To create an authentication token, provide either the propertyId or the hostname, but not both.

Response

A generated JWT authentication token, for use with enhanced debug headers for EdgeWorkers. See Enhanced debug headers.

akamaiEwTracestring
The JWT authentication token, for use with enhanced debug headers for EdgeWorkers.

Errors

400
Bad Request Error