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
Key | Datatype | Required | Description |
---|---|---|---|
create_with_preview_token | boolean | Set 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
Key | Datatype | Required | Description |
---|---|---|---|
api_key | string | ||
authtoken | string | ||
Content-Type | string |