---
title: "Send a message through a guest share link, as any signed-in caller holding it [write]"
method: POST
path: "/links/{token}/messages"
---

# Send a message through a guest share link, as any signed-in caller holding it \[write\]

`POST /links/{token}/messages`

## Request

- Base URL: `https://api.agentsky.dev/v1`
- URL: `https://api.agentsky.dev/v1/links/{token}/messages`
- Auth: HTTP bearer

What the guest page's composer does: the turn runs and bills as the session's owner, and the caller does not become a member. Body {text}. Only a guest link (access prompt) can send: a view-only link is 403 link_view_only. Unknown, rotated, disabled and deleted links are 404 not_found. An Idempotency-Key header (up to 200 characters) makes retries of one message send it once. 402 owner_out_of_credits when the owner's balance is empty; sends are rate-limited per link (429 rate_limited with Retry-After). Needs a token with write scope from any workspace; the link is the grant. Output is read with GET /links/{token}/events.

## Path parameters

- `token` string, required

## Headers

- `Idempotency-Key` string

## Request body

- object
  - `text` string, required

## Response `202`

Accepted — body is {}

- object

## Other responses

- `default`: Error — { error: { code, message, request_id } }

## Changes

- **2026-11-02** `e5e8f0229a99`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/agentsky/apis/agentsky-developer-api/changes/links/:token/messages/post.md)

---

[API](https://skmtc.dev/agentsky/apis/agentsky-developer-api.md) - [All operations](https://skmtc.dev/agentsky/apis/agentsky-developer-api/llms.txt) - [OpenAPI document](https://skmtc.dev/agentsky/apis/agentsky-developer-api/revisions/0d435187cd55?raw)
