Skip to Content
MosaicMosaicDocs
Tool Reference

IssueBotCredential

Prepare a new bot credential for a bot the current user can manage.

Starter documentation. Features and account details may differ from this deployment.

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

ParameterTypeRequiredDescription
botIdstringYesBot id from CreateBot or ListBots.
labelstringNoOptional label describing where the credential will be used, such as github-webhook.
expiresAtstringNoOptional RFC 3339 expiration timestamp. Omit for a credential without a scheduled expiration.

On this page