---
title: "Claim guest user"
method: POST
path: "/users/claim_guest"
tags: ["product:chat"]
---

# Claim guest user

`POST /users/claim_guest`

## Request

- Base URL: `https://chat.stream-io-api.com`
- URL: `https://chat.stream-io-api.com/users/claim_guest`
- Auth: one of:
  - API key in header `Authorization` and API key in query parameter `api_key` and API key in header `Stream-Auth-Type`
  - API key in query parameter `api_key` and API key in header `Stream-Auth-Type`

Claims a guest user for a regular user. The guest is deactivated and its channel memberships, owned channels, messages and reactions are moved to the claiming user by an asynchronous task. Server-side only.

Sends events:
- user.claimed
- user.deactivated

## Request body

- ClaimGuestUserRequest, nullable
  - `guest_user_id` string, required: ID of the guest user to claim
  - `user_id` string, required: ID of the regular user that claims the guest and receives its channels, messages and reactions

## Response `201`

Successful response

- ClaimGuestUserResponse, nullable
  - `duration` string, required: Duration of the request in milliseconds
  - `task_id` string, required: ID of the task that moves the guest's channels, messages and reactions to the claiming user

## Other responses

- `400`: Bad request
- `429`: Too many requests

## Changes

> 574 revisions in range; 3 not diffed.

- **2026-10-26** `bb903dee2c54`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/getstream/apis/stream-api/changes/users/claim_guest/post.md)

---

[API](https://skmtc.dev/getstream/apis/stream-api.md) - [All operations](https://skmtc.dev/getstream/apis/stream-api/llms.txt) - [OpenAPI document](https://skmtc.dev/getstream/apis/stream-api/revisions/1fda44d40b27?raw)
