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

# Handle Callback

`GET /slack/oauth/callback`

## Request

- Base URL: `https://api.akkio.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.akkio.com/slack/oauth/callback`
- Auth: none declared

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.dev/akkio/apis/akkio-api.md) - [All operations](https://skmtc.dev/akkio/apis/akkio-api/llms.txt) - [OpenAPI document](https://skmtc.dev/akkio/apis/akkio-api/revisions/c477deff6271?raw)
