---
title: "Send content inside request body to the specific user."
method: POST
path: "/api/hubs/{hub}/users/{userId}/:send"
tags: ["webpubsub"]
---

# Send content inside request body to the specific user.

`POST /api/hubs/{hub}/users/{userId}/:send`

Send content inside request body to the specific user.

## Path parameters

- `hub` string, required
- `userId` string, required

## Query parameters

- `api-version` string, required
- `filter` string
- `messageTtlSeconds` integer

## Request body

- string, byte

## Response `202`

The request has been accepted for processing, but processing has not yet completed.

## Other responses

- `default` — The error response.

## Changes

- **2026-07-13** (2021-05-01-preview) `3c12a9fc6305` — 1 info
  - api operation id `WebPubSub_SendToUser` removed and replaced with `SendToUser`
- **2026-07-13** (2021-05-01-preview) `f4b776f5fabc` — 1 info
  - added the new optional `query` request parameter `filter`
- **2026-07-13** (2021-05-01-preview) `19d6476bb902` — 1 info
  - added the new optional `query` request parameter `messageTtlSeconds`
- **2026-07-13** (2021-05-01-preview) `db70e5df6e15` — 1 breaking
  - the `query` request parameter `api-version` became required
- **2021-04-21** (2021-05-01-preview) `5c057b21a138` — 3 warning, 2 info
  - the optional response header `x-ms-error-code` removed for the status `default`
  - deleted the `query` request parameter `filter`
  - deleted the `query` request parameter `messageTtlSeconds`
  - api operation id `SendToUser` removed and replaced with `WebPubSub_SendToUser`
  - …1 more

[Change history](https://skmtc.dev/azure/apis/webpubsub/changes/api/hubs/:hub/users/:userId/:send/post.md)

---

[API](https://skmtc.dev/azure/apis/webpubsub.md) · [All operations](https://skmtc.dev/azure/apis/webpubsub/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/azure/webpubsub/revisions/3c12a9fc6305/schema)
