---
title: "POST /api/employees/login"
method: POST
path: "/api/employees/login"
tags: ["api"]
---

# POST /api/employees/login

`POST /api/employees/login`

This endpoint does slack login user matching process.
<b>You must execute this endpoint FIRST TIME you enter on APP.</b>
All fields are required.
Later, You <b>must include in all calls Header</b>:<br/>
    <b>Slack-User-Id</b>: slack_user_id__slack_user_company <br/>
    <i>(example)</i> AAAAAAA__BBBBBB<br/><br/>
    OR IF YOU PREFER you can include two params<br/><br/>
    <b>Slack-Uid</b>: AAAAAAA<br/>
    <b>Slack-Cid</b>: BBBBBBB<br/><br/>
    And let the middleware makes all happens.

## Request body

- object
  - `slack_user_id` string — Slack User ID
  - `slack_user_name` string — Slack User Name
  - `slack_user_email` string — Slack User Email
  - `slack_company_id` string — Slack Company ID
  - `slack_company_title` string — Slack Company name

## Response `200`

response description

- EmployeeLogin
  - `id` string, uuid
  - `name` string, required
  - `email` string, email, required
  - `slack_uid` string, nullable, required
  - `role` string, uuid, nullable
  - `role_title` string
  - `company` string, uuid
  - `is_admin` boolean
  - `is_manager` string
  - `company_max_users` integer, required
  - `company_plan_title` string, required
  - `company_plan_price` integer, required
  - `points` integer
  - `level` string
  - `company_title` string
  - `slack_team_id` string
  - `guest_accounts_included` string
  - `google_id` string
  - `user_type` 'slack' | 'google'

## Other responses

- `400` — Bad Request

---

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