provider Access tokens POST /api/v2/tokens
@utdk/launchdarkly /api/v2/tokens
Create access token
Create a new access token.

Try it

Authentication
Configure credentials for LaunchDarkly REST API
Gateway
The gateway proxies requests and injects credentials server-side. Configure credentials above, then enter your gateway URL.

Saved automatically to browser storage.

posttoken
POST/api/v2/tokens
Create a new access token.

Input

A human-friendly name for the access token

A description for the access token

Base role for the token

A list of custom role IDs to use as access limits for the access token

A JSON array of statements represented as JSON objects with three attributes: effect, resources, actions. May be used in place of a role.

Whether the token is a service token

The default API version for this token

Enter a gateway URL above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import launchdarkly from '@utdk/launchdarkly';

await launchdarkly.posttoken()