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

# 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

---

[API](https://skmtc.net/trynia/apis/nia-ai-api.md) · [All operations](https://skmtc.net/trynia/apis/nia-ai-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/trynia/nia-ai-api/versions/d216ffc3efb6/schema)
