Slack Configuration
Workspace configuration retrieved
No workspace configured
GET /sfp/api/slack/workspace HTTP/1.1
Host:
Accept: */*
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"team_id": "T1234567890",
"team_name": "My Company Workspace",
"app_id": "A01234567890",
"app_name": "SFP Bot",
"bot_user_id": "U01234567890",
"is_active": true,
"created_at": "2024-01-15T10:30:00Z",
"updated_at": "2024-01-15T10:30:00Z",
"created_by": "[email protected]",
"has_bot_token": true,
"has_app_token": true,
"has_signing_secret": true
}
Slack workspace/team ID (starts with T)
T1234567890
Pattern: ^T[A-Z0-9]+$
Name of the Slack workspace
My Company Workspace
Bot User OAuth Token (starts with xoxb-)
xoxb-EXAMPLE-TOKEN-DO-NOT-USE
Pattern: ^xoxb-
App-Level Token for Socket Mode (starts with xapp-)
xapp-EXAMPLE-APP-TOKEN-DO-NOT-USE
Pattern: ^xapp-
Slack app signing secret for request verification
EXAMPLE_SIGNING_SECRET_DO_NOT_USE
Slack app ID
A01234567890
Display name of the Slack app
SFP Bot
Bot user ID in the workspace
U01234567890
Workspace configuration saved
Invalid configuration
Forbidden - Owner role required
POST /sfp/api/slack/workspace HTTP/1.1
Host:
Content-Type: application/json
Accept: */*
Content-Length: 279
{
"team_id": "T1234567890",
"team_name": "My Company Workspace",
"bot_token": "xoxb-EXAMPLE-TOKEN-DO-NOT-USE",
"app_token": "xapp-EXAMPLE-APP-TOKEN-DO-NOT-USE",
"signing_secret": "EXAMPLE_SIGNING_SECRET_DO_NOT_USE",
"app_id": "A01234567890",
"app_name": "SFP Bot",
"bot_user_id": "U01234567890"
}
{
"success": true,
"workspace": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"team_id": "T1234567890",
"team_name": "My Company Workspace"
}
}
Specific team ID to delete
Workspace configuration deleted
Forbidden - Owner role required
No workspace configured
DELETE /sfp/api/slack/workspace HTTP/1.1
Host:
Accept: */*
{
"success": true,
"message": "Workspace configuration deleted"
}
Name of the Slack workspace
My Company Workspace
Bot User OAuth Token (starts with xoxb-)
xoxb-EXAMPLE-TOKEN-DO-NOT-USE
Pattern: ^xoxb-
App-Level Token for Socket Mode (starts with xapp-)
xapp-EXAMPLE-APP-TOKEN-DO-NOT-USE
Pattern: ^xapp-
Slack app signing secret for request verification
EXAMPLE_SIGNING_SECRET_DO_NOT_USE
Workspace configuration updated
Forbidden - Owner role required
No workspace configured
PATCH /sfp/api/slack/workspace HTTP/1.1
Host:
Content-Type: application/json
Accept: */*
Content-Length: 181
{
"team_name": "My Company Workspace",
"bot_token": "xoxb-EXAMPLE-TOKEN-DO-NOT-USE",
"app_token": "xapp-EXAMPLE-APP-TOKEN-DO-NOT-USE",
"signing_secret": "EXAMPLE_SIGNING_SECRET_DO_NOT_USE"
}
{
"success": true,
"workspace": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"team_id": "T1234567890",
"team_name": "My Company Workspace"
}
}
Connection test successful
Connection test failed
GET /sfp/api/slack/test HTTP/1.1
Host:
Accept: */*
{
"success": true,
"message": "Successfully connected to Slack workspace \"My Company Workspace\"",
"details": {
"workspace_name": "My Company Workspace",
"bot_name": "SFP Bot",
"bot_id": "U01234567890"
},
"error": "Invalid bot token"
}
Show only active workspaces
List of workspaces
Forbidden - Owner role required
GET /sfp/api/slack/workspaces HTTP/1.1
Host:
Accept: */*
[
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"team_id": "T1234567890",
"team_name": "My Company Workspace",
"app_id": "A01234567890",
"app_name": "SFP Bot",
"bot_user_id": "U01234567890",
"is_active": true,
"created_at": "2024-01-15T10:30:00Z",
"updated_at": "2024-01-15T10:30:00Z",
"created_by": "[email protected]",
"has_bot_token": true,
"has_app_token": true,
"has_signing_secret": true
}
]