---
title: "Reply to a mention where supported"
description: "PubNio API inbox.mentions.reply: reply to a mention where supported. Request fields, examples in five clients, errors, and idempotency."
---

> Documentation Index
> Fetch the complete documentation index at: https://pubnio.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Reply to a mention where supported

Reply to a mention where supported with [`POST /api/v1/inbox/mentions/{mentionId}/reply`](https://pubnio.com/api/v1/docs#tag/inbox/POST/api/v1/inbox/mentions/{mentionId}/reply). Requires an API key with the `engage` scope or a signed-in workspace member.

## Request

| Parameter     | In    | Type | Required |
| ------------- | ----- | ---- | -------- |
| `mentionId`   | path  | UUID | Yes      |
| `workspaceId` | query | UUID | Yes      |

| Body field | Type   | Required |
| ---------- | ------ | -------- |
| `text`     | string | Yes      |

## Response

- HTTP 201: `InboxMentionReply` with `mentionId`, `actionId`, `status`, `providerResultId`.
  - `status`: `pending`, `succeeded`, `failed`, `unresolved`

The [OpenAPI document](https://pubnio.com/api/v1/openapi) has each field's type.

## Examples

### TypeScript

```ts
const reply = await workspace.inbox.replyMention(mentionId, {
  text: "Appreciate you tagging us!",
});
```

### Python

```python
reply = workspace.inbox.reply_to_mention(
    mention_id,
    text="Appreciate you tagging us!",
)
```

### cURL

```sh
curl -X POST "https://pubnio.com/api/v1/inbox/mentions/$MENTION_ID/reply?workspaceId=$WORKSPACE_ID" \
  -H "Authorization: Bearer $PUBNIO_API_KEY" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  -H "Content-Type: application/json" \
  -d '{"text":"Appreciate you tagging us!"}'
```

### CLI

```sh
pnio inbox mentions reply "$MENTION_ID" --text "Appreciate you tagging us!"
```

### MCP execute

```js
async () => {
  const mentionId = "<mentionId>";
  // One key per intent; reuse it only to retry this same request.
  const idempotencyKey = crypto.randomUUID();
  const response = await codemode.request({
    method: "POST",
    path: `/api/v1/inbox/mentions/${mentionId}/reply`,
    query: { workspaceId: codemode.workspaceId },
    headers: { "Idempotency-Key": idempotencyKey },
    body: { text: "Appreciate you tagging us!" },
  });
  return response.data;
};
```

## Errors

It declares no problem of its own.

It declares the problems [every Inbox operation](https://pubnio.com/docs/reference/#inbox) and [most operations](https://pubnio.com/docs/reference/#shared-problems) declare.

## Idempotency

Required. A retry with the same `Idempotency-Key` returns the first result for 24 hours. Make one key per intent, such as `crypto.randomUUID()` or Python's `uuid4()`, and reuse it only to retry the same request. The TypeScript SDK makes a key for each call unless you pass `idempotencyKey`. See [Idempotency](https://pubnio.com/docs/concepts/idempotency/).

## Limits

- Field lengths and ranges are in the [OpenAPI document](https://pubnio.com/api/v1/openapi).

## Related

- [Inbox operations](https://pubnio.com/docs/reference/#inbox)

Source: https://pubnio.com/docs/reference/inbox-mentions-reply/index.mdx
