---
title: "Add Organization By Slack Installation"
method: POST
path: "/organizations/slack/installation"
tags: ["Organization"]
---

# Add Organization By Slack Installation

`POST /organizations/slack/installation`

## Request body

- SlackInstallationRequest
  - `team` SlackTeamRequest
    - `id` string
    - `name` string
  - `enterprise` string
  - `user` SlackUserRequest
    - `token` string
    - `scopes` string
    - `id` string
  - `tokenType` string
  - `isEnterpriseInstall` boolean
  - `appId` string
  - `authVersion` string
  - `bot` SlackBotRequest
    - `scopes` string[]
    - `token` string
    - `userId` string
    - `id` string

## Response `201`

Successful Response

- OrganizationResponse
  - `name` string
  - `db_connection_id` string
  - `confidence_threshold` number
  - `slack_installation` SlackInstallation
    - `team` SlackTeam
      - `id` string
      - `name` string
    - `enterprise` string
    - `user` SlackUser
      - `token` string
      - `scopes` string
      - `id` string
    - `token_type` string
    - `is_enterprise_install` boolean
    - `app_id` string
    - `auth_version` string
    - `bot` SlackBot
      - `scopes` string[]
      - `token` string
      - `user_id` string
      - `id` string
  - `llm_api_key` string
  - `id` string
  - `created_at` string, date-time

## Other responses

- `404` — Not found
- `422` — Validation Error

---

[API](https://skmtc.dev/dataherald/apis/fastapi.md) · [All operations](https://skmtc.dev/dataherald/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/dataherald/fastapi/revisions/e168e98625a8/schema)
