---
title: "Authenticate Slack Integration"
method: POST
path: "/connect/settings/slack/finish_oauth"
tags: ["Connect Settings"]
---

# Authenticate Slack Integration

`POST /connect/settings/slack/finish_oauth`

After the user installs/authorizes the Spot Connect Slack app in their workspace,
they will be redirected back to the Slack integration page in the Fylamynt web app
with an authorization code. The web app will then call this API endpoint with that
'code' in the query parameter. Instead, if the user rejects to authorize the Fylamynt
Slack app in their workspace, the API request from the web app will contain the
'error' code (e.g., error=access_denied) returned from Slack. The following code
processes the request and returns success or failure response to the web app.
Slack instance alias is part of 'state' query parameter, previously 'state' query
parameter contained subdomain.

## Query parameters

- `error` string
- `code` string
- `state` string, required

## Parameters

- `#/paths/~1connect~1settings~1apikeys/get/parameters/1` — unresolved $ref

## Response `200`

Success

- object
  - `body` object — Response body.
    - `message` string — Success message.
  - `statusCode` integer — HTTP status code.

## Other responses

- `400` — Bad Request
- `404` — Not Found
- `500` — Internal Server Error

---

[API](https://skmtc.net/spot/apis/spot-by-flexera-api.md) · [All operations](https://skmtc.net/spot/apis/spot-by-flexera-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/spot/spot-by-flexera-api/revisions/2e5445f30576/schema)
