---
title: "Login with Slack auth"
method: POST
path: "/login"
---

# Login with Slack auth

`POST /login`

## Request body

- Login
  - `code` string, required
  - `redirect_uri` string

## Response `200`

Login successful, returns bot info and slack user info

- object
  - `user` User
    - `id` string
    - `team_id` string
    - `name` string
    - `deleted` boolean
    - `color` string
    - `real_name` string
    - `tz,omitempty` string
    - `tz_label` string
    - `tz_offset` integer
    - `profile` object
    - `is_bot` boolean
    - `is_admin` boolean
    - `is_owner` boolean
    - `is_primary_owner` boolean
    - `is_restricted` boolean
    - `is_ultra_restricted` boolean
    - `is_stranger` boolean
    - `is_app_user` boolean
    - `has_2fa` boolean
    - `has_files` boolean
    - `presence` string
    - `locale` string
  - `bot` Bot
    - `id` integer
    - `team_id` string
    - `team_name` string
    - `language` 'ru_RU' | 'en_US' — bot language
    - `notifier_interval` integer
    - `reminder_repeat_max` integer
    - `reminder_time` integer
    - `reporting_channel` string
    - `reporting_time` string
    - `individual_reports_on` boolean

## Other responses

- `400` — Incorrect data format, double check request body
- `404` — Comedian was not invited to your Slack. Please, add it and try again

## Changes

- **2019-07-20** `3aa6daedd38c` — 2 info
  - added the non-success response with the status `404`
  - removed the non-success response with the status `500`
- **2019-04-09** `5363057b67b0` — 2 warning
  - deleted the `query` request parameter `password`
  - deleted the `query` request parameter `teamname`
- **2019-04-04** `14e268f15cf7` — 2 breaking
  - added the new required `query` request parameter `password`
  - added the new required `query` request parameter `teamname`
- **2019-03-27** `07d9552ad3fa` — 4 info
  - added the non-success response with the status `400`
  - added the non-success response with the status `500`
  - removed the non-success response with the status `401`
  - removed the non-success response with the status `404`
- **2019-03-25** `78fbfa24e940` — 1 info
  - endpoint added

[Full history](https://skmtc.dev/maddevsio/apis/mad-devs-comedian/changes/login/post.md)

---

[API](https://skmtc.dev/maddevsio/apis/mad-devs-comedian.md) · [All operations](https://skmtc.dev/maddevsio/apis/mad-devs-comedian/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/maddevsio/mad-devs-comedian/revisions/1ccd9e49d97b/schema)
