---
title: "Sign in anonymously."
method: POST
path: "/v1/auth/anonymous"
tags: ["Auth"]
---

# Sign in anonymously.

`POST /v1/auth/anonymous`

## Request

- Base URL: `https://api.scalix.world`
- URL: `https://api.scalix.world/v1/auth/anonymous`
- Auth: HTTP bearer

Creates an anonymous end-user account and returns auth tokens; the account
can later be linked to a real identity via identity linking.

## Response `201`

Anonymous account created

- AuthResponse: Authentication tokens plus the authenticated user.
  - `access_token` string, required
  - `refresh_token` string, required
  - `expires_in` integer, required
  - `expires_at` string, date-time, required
  - `token_type` string, required
  - `user` User, required: An end-user account.
    - `id` string, uuid, required
    - `email` string, email, required
    - `phone` string, nullable
    - `email_confirmed_at` string, date-time, nullable
    - `created_at` string, date-time, required
    - `updated_at` string, date-time, required
    - `last_sign_in_at` string, date-time, nullable
    - `user_metadata` object, required
    - `app_metadata` object, required

## Other responses

- `401`: Missing or invalid API key
- `500`: Internal error

---

[API](https://skmtc.dev/scalix/apis/scalix-cloud-api.md) · [All operations](https://skmtc.dev/scalix/apis/scalix-cloud-api/llms.txt) · [OpenAPI document](https://skmtc.dev/scalix/apis/scalix-cloud-api/revisions/2c04ca0a90bb?raw)
