---
title: "Authenticate Demo Session"
method: POST
path: "/demo/authenticate"
tags: ["DEMO"]
deprecated: true
---

# Authenticate Demo Session

`POST /demo/authenticate`

> **Deprecated.**

Authenticate a demo session using session_id.

This endpoint validates the session_id and returns the demo user with auth token
if the session is valid (created within last 30 minutes).
The session is deleted after successful authentication.
Can only be called from the demo tenant and only works for demo accounts.

Args:
    session_id: The session ID returned from create-demo-session

Returns:
    UserLoginOut: User information with auth token (same as /login)

## Query parameters

- `session_id` string, required

## Response `200`

Successful Response

- UserLoginOut
  - `id` integer, nullable
  - `email` string, required
  - `auth_token` string, required
  - `first_name` string, nullable
  - `last_name` string, nullable
  - `is_onboarded` boolean, required
  - `tz` string, nullable
  - `lang` string, nullable
  - `uuid` string, uuid, required
  - `role_FK` RolePermissionFull
    - `role_name` string, required
    - `role_description` string, required
    - `role_title` string, required
    - `is_custom` boolean, required
    - `permission` PermissionsFull[], required
      - `uuid` string, uuid, required
      - `name` string, required
      - `title` string, required
      - `description` string, required
      - `group` string, nullable
  - `has_role_conflict` boolean
  - `sso_resolved_role_title` string, nullable

## Other responses

- `403` — Forbidden - only accessible from demo tenant or not a demo account
- `404` — Session not found or user not found
- `422` — Validation Error

---

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