---
title: "Check org and user"
method: POST
path: "/auth"
tags: ["Authentications"]
---

# Check org and user

`POST /auth`

Checking that the bot that in the server is actually authenticated

## Headers

- `serverkey` string, required

## Request body

- OrganizationCreateValidator
  - `serverName` string, required
  - `guildId` string, required
  - `isOwner` boolean, required
  - `internalId` string, required
  - `name` string, required

## Response `201`

- object

## Changes

- **2023-12-02** `0f94162e2901` — 1 info
  - api operation id `AuthController_getOrCreateOrg` removed and replaced with `AuthController_checkOrgAndUser`
- **2023-11-26** `93c854b9e687` — 1 breaking
  - added the new required `header` request parameter `serverkey`
- **2023-11-26** `450526d5a3d5` — 1 warning, 1 info
  - deleted the `header` request parameter `serverkey`
  - api operation id `AuthController_checkOrgAndUser` removed and replaced with `AuthController_getOrCreateOrg`

[Change history](https://skmtc.dev/gitroomhq/apis/crosspublic-swagger-file/changes/auth/post.md)

---

[API](https://skmtc.dev/gitroomhq/apis/crosspublic-swagger-file.md) · [All operations](https://skmtc.dev/gitroomhq/apis/crosspublic-swagger-file/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/gitroomhq/crosspublic-swagger-file/revisions/6fa3feae8411/schema)
