Create a storage credential

View as Markdown

Stores a BYO storage credential (Google service account or Azure app). The secret is stored but never returned; the response is redacted. Validates the secret shape per kind (422 on bad shape). Requires organization:manage.

Authentication

AuthorizationBearer

WorkOS session JWT or an organization API key, sent as Authorization: Bearer <token>.

Request

This endpoint expects an object.
kindenumRequired
Allowed values:
labelstringRequired1-120 characters
credentialanyRequired

Response

The created credential (secret redacted).

credentialobject

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
422
Unprocessable Entity Error