---
title: "Handle Callback"
method: GET
path: "/slack/oauth/callback"
tags: ["Slack App", "OAuth"]
---

# Handle Callback

`GET /slack/oauth/callback`

OAuth Callback / Redirect endpoint. Users are redirected here after granting us scopes. In this function, we take the temporary code we're provided and use Slack's OAuth API to exchange it for persistent credentials.

## Query parameters

- `state` string, required
- `error` 'access_denied'
- `code` string, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/akk/apis/fastapi.md) · [All operations](https://skmtc.net/akk/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/akk/fastapi/revisions/6662a407c637/schema)
