---
title: "Slack Oauth Callback"
method: GET
path: "/api/v1/integrations/slack/oauth/callback"
tags: ["slack", "Slack Integration"]
---

# Slack Oauth Callback

`GET /api/v1/integrations/slack/oauth/callback`

## Request

- Base URL: `http://localhost:8000`
- URL: `http://localhost:8000/api/v1/integrations/slack/oauth/callback`
- Auth: none declared

Handle Slack OAuth callback.

Called by Slack after user authorizes the app. Exchanges the code
for a bot token and stores it.

Note: This endpoint is publicly accessible (called by Slack redirect),
so it uses the CSRF state for validation instead of AppContext.

## Query parameters

- `code` string, nullable: OAuth authorization code
- `state` string, required: CSRF state token
- `error` string, nullable: Error code if user denied authorization

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/anomalyarmor/apis/anomalyarmor-api.md) · [All operations](https://skmtc.dev/anomalyarmor/apis/anomalyarmor-api/llms.txt) · [OpenAPI document](https://skmtc.dev/anomalyarmor/apis/anomalyarmor-api/revisions/51c755fb5d0b?raw)
