Create delivery token

POST https://{{base_url}}/v3/stacks/delivery_tokens

The Create delivery token request is used to create a delivery token in the stack.

To use the API Request, you will need to authenticate yourself either with a Management Token (highly recommended) or an Authtoken. 
Read more about it in Authentication.


For more information, refer to the Create delivery token API Reference document

Request Params

KeyDatatypeRequiredDescription
create_with_preview_tokenbooleanSet this to true to create a preview token.

Request Body

{"token"=>{"name"=>"Sample Delivery Token", "description"=>"This is a sample delivery token.", "scope"=>[{"module"=>"environment", "environments"=>["production"], "acl"=>{"read"=>true}}]}}

HEADERS

KeyDatatypeRequiredDescription
api_keystring
authtokenstring
Content-Typestring