Secret

Mint a secret for a token

Returns a usable token minted from the secret (a refreshed OAuth access token, a freshly signed JWT, or a stored bearer token). This is the one endpoint where the credential leaves the server, for use when a proxy cannot serve the request (provider SDKs, non-HTTP, or targets not reachable from the platform). Owner-only. basic/plain and platform-managed secrets are not mintable - use the proxy instead.

post/secret/{secretId}/mint

Request

  • Base URL: https://api.chatbotkit.com/api/v1
  • URL: https://api.chatbotkit.com/api/v1/secret/{secretId}/mint
  • Auth: HTTP bearer

Path parameters

secretIdstring required

The ID of the secret to mint

Response

The minted token

tokenstring required

The usable token to send to the provider

expiresAtnumber

Token expiry as a unix timestamp in ms, or null

Changes

No recorded changes to this operation across all 1 revision of this API.