---
title: "Create anonymous user"
method: POST
path: "/auth/signup-anonymous"
tags: ["Authentication"]
---

# Create anonymous user

`POST /auth/signup-anonymous`

## Request

- Base URL: `https://api.volcano.dev`
- URL: `https://api.volcano.dev/auth/signup-anonymous`
- Auth: HTTP bearer

Create guest user without email/password.

User metadata (like display_name) can be included and will appear in realtime presence events.
Requires enable_anonymous_signins to be true.

## Headers

- `X-Volcano-Proxy-Authorization` string
- `X-Volcano-Client-IP` string

## Request body

- object
  - `user_metadata` object: Custom user metadata (e.g., display_name, avatar_url)

## Response `201`

Anonymous user created

- AuthTokenResponse
  - `access_token` string, required: JWT access token (expires after configured lifetime)
  - `token_type` string, required
  - `expires_in` integer, required: Access token lifetime in seconds
  - `refresh_token` string: Long-lived token for getting new access tokens. Omitted when the request uses eligible HttpOnly cookie session storage.
  - `user` AuthUser, required
    - `id` string, uuid, required
    - `project_id` string, uuid
    - `email` string, email, required
    - `email_confirmed` boolean
    - `user_metadata` object: User-editable metadata
    - `app_metadata` object: Application-controlled metadata (read-only for users)
    - `avatar_url` string, uri: User avatar URL (from OAuth provider or manually set)
    - `status` 'active' | 'banned' | 'deleted', required
    - `banned_until` string, date-time, nullable: When temporary ban expires (null if not banned or permanent)
    - `last_sign_in_at` string, date-time
    - `created_at` string, date-time
    - `updated_at` string, date-time

## Other responses

- `401`: Missing, invalid, or revoked anon key; or invalid, repeated, or under-scoped auth proxy metadata
- `403`: Anonymous signins disabled

## Changes

- **2026-10-23** `5113707385cc`: 3 info
  - added the new optional `header` request parameter `X-Volcano-Client-IP`
  - added the new optional `header` request parameter `X-Volcano-Proxy-Authorization`
  - added the non-success response with the status `401`
- **2026-09-19** `3a6f365f3f35`: 1 breaking, 5 info
  - the response's body type changed from no type to `object` for status `201`
  - added the optional property `refresh_token` to the response with the `201` status
  - added the required property `access_token` to the response with the `201` status
  - added the required property `expires_in` to the response with the `201` status
  - …2 more
- **2026-08-27** `bb44e98aba2e`: 6 breaking
  - the response's body type changed from `object` to no type for status `201`
  - removed the required property `access_token` from the response with the `201` status
  - removed the required property `expires_in` from the response with the `201` status
  - removed the required property `refresh_token` from the response with the `201` status
  - …2 more

[Operation history](https://skmtc.dev/kong/apis/volcano-api/changes/auth/signup-anonymous/post.md)

---

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