---
title: "Hand over messages that reached the sessions this computer sends from or carries"
method: POST
path: "/v3/organizations/{orgId}/agent-network/relay/replies"
tags: ["Agent network"]
---

# Hand over messages that reached the sessions this computer sends from or carries

`POST /v3/organizations/{orgId}/agent-network/relay/replies`

## Request

- Base URL: `https://api.reasonmachines.com`
- URL: `https://api.reasonmachines.com/v3/organizations/{orgId}/agent-network/relay/replies`
- Auth: HTTP bearer

Only the Reason CLI may: any other sign-in gets 403 `agent_network_cli_only`.

<sub>Scope: `run`</sub>

## Request body

- object
  - `messages` object[], required
    - `id` string, required
    - `from` string, required
    - `from_agent` string, nullable, required
    - `to` string, required
    - `reply_to` string, nullable, required
    - `body` string, required
    - `sent_at` number, required
  - `team` string
  - `team_id` string
  - `workspace` boolean
  - `session` string
  - `machine` string

## Response `200`

`{ matched }`: how many were kept, each for the caller whose message went out from that session, or whose hosted session it is (`session`).

## Other responses

- `401`: Missing, invalid, or expired key.
- `403`: The key lacks the required scope or role.
- `429`: Too many requests. Retry after the number of seconds in the `Retry-After` response header.

## Changes

- **2026-10-26** `bef3f286922a`: 5 info
  - added the new optional request property `machine`
  - added the new optional request property `session`
  - added the new optional request property `team`
  - added the new optional request property `team_id`
  - …1 more
- **2026-10-16** `71ef2e9d8d33`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/ara/apis/reason-api/changes/v3/organizations/:orgId/agent-network/relay/replies/post.md)

---

[API](https://skmtc.dev/ara/apis/reason-api.md) - [All operations](https://skmtc.dev/ara/apis/reason-api/llms.txt) - [OpenAPI document](https://skmtc.dev/ara/apis/reason-api/revisions/e97c8704807c?raw)
