Skip to main content
POST
Create credential
Requires the Alerts Admin role. CoreWeave encrypts the secret and never returns it. The format of secret depends on credentialType. For the formats, see Destination channels and credentials.
Example request

인증

Authorization
string
header
기본값:Bearer [API-ACCESS-TOKEN]
필수

CoreWeave API access token sent as a bearer token.

본문

application/json
displayName
string
필수

A human-readable name for the credential, 1 to 255 characters.

credentialType
string
필수

The kind of secret. Use webhook for generic webhooks, slack_webhook for Slack incoming webhooks, and google_chat for Google Chat webhooks. The Cloud Console creates slack_oauth credentials through the Slack OAuth flow.

secret
string
필수

The secret value. For webhook, a JSON-encoded string with a required HTTPS url and an optional signing_secret. For slack_webhook, a URL that starts with https://hooks.slack.com/services/. For google_chat, a URL that starts with https://chat.googleapis.com/v1/spaces/.

응답

OK

credential
object

An encrypted secret that a destination uses to deliver alerts. The API never returns the secret value.