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

Authorizations

Authorization
string
header
default:Bearer [API-ACCESS-TOKEN]
required

CoreWeave API access token sent as a bearer token.

Body

application/json
displayName
string
required

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

credentialType
string
required

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
required

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/.

Response

OK

credential
object

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