Skip to content

Slack Oauth Available

GET
/api/auth/slack/available
curl --request GET \
--url https://example.com/api/auth/slack/available

Check if Slack OAuth is configured on this environment.

Returns {"available": true} when SLACK_CLIENT_ID is set, else {"available": false}. The frontend uses this to conditionally render the “Sign in with Slack” button. It does NOT build the authorize URL itself — it calls POST /api/auth/slack/authorize which sets a short-lived HttpOnly cookie carrying returnTo and returns the full Slack URL for the browser to navigate to.

Successful Response

Media type application/json
SlackAvailableResponse

Response from GET /auth/slack/available.

object
available
required
Available
boolean
Example generated
{
"available": true
}