Create management token

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

The Create management token request is used to create a management token in a stack. This token provides you with read-write access to the content of your 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 management token API Reference document

Request Body

{"token"=>{"name"=>"Test Token", "description"=>"This is a sample management token.", "scope"=>[{"module"=>"content_type", "acl"=>{"read"=>true, "write"=>true}}, {"module"=>"branch", "branches"=>["main", "development"], "acl"=>{"read"=>true}}, {"module"=>"branch_alias", "branch_aliases"=>["deploy", "release"], "acl"=>{"read"=>true}}], "expires_on"=>"2020-12-10", "is_email_notification_enabled"=>true}}

HEADERS

KeyDatatypeRequiredDescription
api_keystringEnter the API key of your stack.
authtokenstringEnter your authtoken.
Content-TypestringEnter "application/json" to pass a request body.