---
title: "POST /operations/auth/gateway"
method: POST
path: "/operations/auth/gateway"
tags: ["Operations/Auth/Gateway"]
---

# POST /operations/auth/gateway

`POST /operations/auth/gateway`

## Request

- Base URL: `https://api.optimyzee.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.optimyzee.com/operations/auth/gateway`
- Auth: none declared
- TypeScript: <https://skmtc.dev/optimyzee/apis/optimyzee-api/docs/operations/auth/gateway/post.ts> (a function with typed inputs; its response is checked against the schema)

## Request body

- object
  - `email` string, required
  - `password` string, required
  - `otp` string, nullable
  - `otpRecoveryCode` string, nullable

## Response `200`

Successful

- object
  - `data` OperationsAuthGatewayTokenSchema, required
    - `adminId` integer, required
    - `accessToken` string, required

## Other responses

- `400`: Authentication error
- `422`: Validation Error

---

[API](https://skmtc.dev/optimyzee/apis/optimyzee-api.md) - [All operations](https://skmtc.dev/optimyzee/apis/optimyzee-api/llms.txt) - [OpenAPI document](https://skmtc.dev/optimyzee/apis/optimyzee-api/revisions/ccaa14692e9f?raw)
