# Creates or updates a Slack MCP integration token **PUT** `/v1/integrations/slack-mcp/{id}/api-key` **Operation ID**: `upsertApiKey_6` **Summary**: Creates or updates a Slack MCP integration token Creates a token for a Slack MCP integration if it doesn't exist and updates it otherwise. If the token is updated while the integration is being used by a pipeline, the new token will be picked at pipeline restart, rescaling or an update. ## Tags - Slack MCP Integration ## Parameters - **id** (required) - path - Type: string ## Request Body **Content-Type**: `application/json` **Schema**: `SecretApi` ## Responses ### 204 Token upserted successfully. ### 401 Unauthorized ### 404 Integration not found.