Create API Token
create_api_tokenCreate a new API token for the Bridge app. Arguments: name (required — how the token is identified and revoked later, so make it descriptive and unique), privileges (array of privilege KEYS; defaults to none, and a token with no privileges can do very little — grant only what the consumer needs), expireAt (ISO 8601 date-time; omit for no expiry). The plaintext token is returned ONCE in the response and cannot be retrieved again — hand it to the user and never write it into source code or a committed file. Use revoke_api_token to destroy one. Before writing app code that consumes this, call get_integration_guide with topic=team and the framework the app uses.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app | No | Id of the Bridge app to act on for this call (see list_apps). Omit to use the current app. | |
| name | Yes | Unique, descriptive name, e.g. "ci-deploy". revoke_api_token uses it later. | |
| expireAt | No | ISO 8601 expiry, e.g. "2027-01-31T00:00:00.000Z". Omit for a non-expiring token. | |
| privileges | No | Privilege KEYS to grant. Grant destructive privileges only when explicitly asked. |