Slack Integration
Endpoints for managing the Slack OAuth flow and integration status for WordPress sites.
OAuth Flow
The Slack integration follows a standard OAuth 2.0 flow, but it is initiated via the PaySentinel relay to simplify secret management for WordPress site owners.
GET
/api/integrations/slack/connectInitiates the OAuth flow. WordPress sites call this with license_key,site_url, and return_url. PaySentinel then redirects the user to Slack.
Status & Testing
GET/slack/status
Checks if the token is still valid. Returns workspace and channel names.
POST/slack/test
Sends a "Hello World" test message to the connected channel.
Disconnecting
DELETE
/api/integrations/slackRevokes the Slack access token and deletes the integration record from the PaySentinel database. The integration_id is required in the request body.