ReferenceHTTP APIWorkspace settings

Set a secret of a Slack app made by hand (owner or admin)

PUT
/v1/workspaces/{id}/slack/apps/{app_id}/secrets/{purpose}

purpose is slack_signing_secret, slack_client_secret or slack_bot_token. Only an app of kind manual takes values from a person: the platform writes the secrets of the apps it created (403 server_managed_secret), since whoever knew an app's signing secret could sign events as Slack. The value is stored encrypted under the app; the response and the set_slack_secret receipt carry its last four characters only. API keys are refused.

Auth: cookie session only; no scope. Idempotency-Key: ignored.

Authorization

cookieSession
cookie__Host-werft_session<token>

For the web console: the browser session cookie set by POST /v1/auth/login. It holds the scopes of the user's workspace role (owner: all; admin and member: all but sessions:recover). Requests other than GET must also send X-Requested-With: werft-web.

Path Parameters

id*string

The workspace's id.

Match^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
Formatuuid
app_id*string

The Slack app's id.

Match^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
Formatuuid
purpose*string

Which of the Slack app's secrets.

Value in"slack_signing_secret""slack_client_secret""slack_bot_token"

Header Parameters

X-Requested-With?"werft-web"

Required with a cookie session: the literal werft-web.

Value in"werft-web"

Request Body

application/json
  1. body
value*string
Match^[\x21-\x7e]+$
Length8 <= length <= 4096

Response Body

Stored; its summary and the receipt.

application/json
  1. response
configured*boolean
last4*|null
updated_at*|null
updated_by*|null
receipt_id*string
Match^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
Formatuuid
Example Request
curl -X PUT 'https://example.com/v1/workspaces/497f6eca-6276-4993-bfeb-53cbbbba6f08/slack/apps/497f6eca-6276-4993-bfeb-53cbbbba6f08/secrets/slack_signing_secret' \  -H 'Content-Type: application/json' \  -d '{  "value": "<value-from-api.slack.com>"}'
Example Response
{  "configured": true,  "last4": "a9f3",  "updated_at": "2026-10-23T09:00:00Z",  "updated_by": {    "user_id": "3e7f1a90-5c2d-4b8e-8f61-2a9d0c4b7e35",    "display_name": "Jae"  },  "receipt_id": "c4a1e9d2-7b3f-4e8a-a6c5-1d2e3f4a5b6c"}