---
title: "Anonymous Auth"
method: POST
path: "/v2/login/anonymous"
tags: ["API Gateway"]
---

# Anonymous Auth

`POST /v2/login/anonymous`

Anonymous authentication

## Request body

- object
  - `expiresAfter` number — Optional session expiration in seconds
  - `orgSlug` string — Optional organization slug. When provided, the org must have auth.anonymous.enabled = true. The resulting session will be scoped to that org with the role configured in org.auth.anonymous.role.

## Response `200`

Success Response

- object
  - `email` string
  - `status` 'pending' | 'validated' | 'deactivated'
  - `language` string
  - `authData` object
    - `anonymous` object
    - `prismeai` object
    - `azure` AuthData
      - `id` string, required
      - `firstName` string
      - `lastName` string
      - `email` string
      - `language` unknown
  - `mfa` 'totp' | 'none' | '*'
  - `meta` object
  - `orgSlugs` string[]
  - `platformRole` string
  - `groupAcls` object
  - `createdAt` string
  - `updatedAt` string
  - `updatedBy` string
  - `firstName` string, required — Name
  - `lastName` string — Name
  - `photo` string — Profile picture URL
  - `groups` string[]
  - `membership` object — Organization membership info (only returned when includeOrgMembership is set)
    - `roleSlug` string
    - `status` 'active' | 'invited' | 'suspended'
    - `joinedAt` string
    - `joinedVia` 'direct' | 'invite-code' | 'invite-email' | 'auto-join' | 'join-rule'
    - `invitedAt` string
    - `invitedBy` string
  - `id` string — Unique id
  - `sessionId` string, required
  - `expires` string

## Other responses

- `401` — AuthenticationError
- `403` — Anonymous sessions are not enabled for the requested org
- `404` — Requested org does not exist

---

[API](https://skmtc.net/prisme/apis/prisme-ai-apis.md) · [All operations](https://skmtc.net/prisme/apis/prisme-ai-apis/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/prisme/prisme-ai-apis/versions/b702c3eef2f2/schema)
