---
title: "Login"
method: POST
path: "/auth/login"
tags: ["auth"]
---

# Login

`POST /auth/login`

__Endpoint name__: login

## Request body

- object
  - `namespaceId` integer
  - `namespaceNickname` string
  - `email` string, required
  - `password` string, required
  - `mfa` object
    - `totpCode` string
  - `forMobileLogin` boolean

## Response `201`

Created

- object
  - `data` object
    - `identityId` number
    - `identity` object
      - `id` number, required
      - `namespace` object
        - `id` number, required
        - `nickname` string
    - `token` string
    - `tokenScopeList` object[]
      - `org` object
        - `id` number, nullable, required
        - `name` string, nullable
        - `opal` string, nullable
        - `packagePlans` object[]
          - `id` number, required
          - `package` object
            - `id` number, required
            - `name` string
            - `packageFeatures` object[]
              - …
          - `isSelected` boolean
        - `parentOrg` object, nullable
          - `id` number, required
          - `name` string
        - `orgNativeApps` object[]
          - `id` integer, required
          - `failureReason` string, nullable
          - `url` string, nullable
          - `status` 'A' | 'E' | 'I' | 'P' | 'S'
          - `config` object, nullable
          - `nativeApp` object, required
            - `id` integer, required
            - `url` string, nullable
        - `isUnified` boolean
      - `user` object
        - `id` number, nullable, required
        - `opal` string, nullable
      - `scope` string[], nullable
      - `scopeWithContext` object[]
        - `context` object[]
          - `mfa` boolean
          - `fsa` boolean
        - `scope` string[]
    - `createdAt` string, date
    - `expiresAt` string, date, nullable
  - `meta` object
    - `accessToken` object, nullable
      - `scopeUpdatedAt` string, date
    - `siteSpecificAccess` object, nullable
      - `isSiteSpecific` boolean
      - `siteIds` integer[], nullable
      - `siteIdsByScope` object, nullable
        - `string` integer[], nullable

---

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