IssueBotCredential
Prepare a new bot credential for a bot the current user can manage. This does not mint the secret. Tell the user to click the chat card or open bot settings to create the token. The secret is shown only while that card is open. Use this when the user asks for bot credentials or a webhook token; existing raw secrets cannot be recovered safely.
IssueBotCredential
Prepare a new bot credential for a bot the current user can manage. This does not mint the secret. Tell the user to click the chat card or open bot settings to create the token. The secret is shown only while that card is open. Use this when the user asks for bot credentials or a webhook token; existing raw secrets cannot be recovered safely.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
botId |
string | Yes | Bot id from CreateBot or ListBots. |
label |
string | No | Optional label describing where the credential will be used, such as github-webhook. |
expiresAt |
string | No | Optional RFC 3339 expiration timestamp. Omit for a credential without a scheduled expiration. |