---
title: "Handle Oauth Callback"
method: POST
path: "/slack/install/callback"
tags: ["Slack"]
---

# Handle Oauth Callback

`POST /slack/install/callback`

Exchange an OAuth code for tokens and create the installation.

Called by the frontend callback route after the user authorizes the Slack app.

## Request body

- SlackOAuthCallbackRequest — Handle the OAuth callback from Slack.
  - `code` string, required — Authorization code from Slack
  - `redirect_uri` string, nullable — Redirect URI used in the authorization request

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

## Changes

- **2026-02-28** `7e426dce5dda` — 2 info
  - api tag `Slack` added
  - api tag `Usage` removed
- **2026-02-20** `056a9334ce0b` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/nozomio-labs/apis/nia-ai-api/changes/slack/install/callback/post.md)

---

[API](https://skmtc.dev/nozomio-labs/apis/nia-ai-api.md) · [All operations](https://skmtc.dev/nozomio-labs/apis/nia-ai-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/nozomio-labs/nia-ai-api/revisions/dbb602a3ef17/schema)
