Create a ctxt.io share link
create_contextShare text, markdown, code, or HTML as an auto-expiring ctxt.io link. For visual output (styled reports, tables, charts, diagrams) prefer format=html with self-contained HTML: inline CSS and inline SVG render fully; is stripped server-side and JavaScript never runs, so keep it static. Free expiries: 5m, 30m, 1h (default), 8h, 1d — these return the share URL immediately. ttl=30d and the Pro options (name, password) cost $1 one-time: the link is created in a pending state and the result includes a payment_url a human can open in a browser to complete checkout (platforms enrolled for agentic payments receive an acp block instead and can pay programmatically); until payment the link lives 1 day without Pro features. Anyone with the link can read it. The returned delete_token authorizes deletion via delete_context — keep it private.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ttl | No | How long the link stays readable. 5m–1d are free; 30d costs $1. | 1h |
| lang | No | With format=code: the language to highlight (e.g. python, javascript, diff). Omit to auto-detect. | |
| name | No | Pro, ttl=30d only: human-readable name appended to the URL as a slug. | |
| format | No | How to render the content: text (verbatim), markdown (rendered rich), code (syntax highlighted), or html (sanitized and rendered — best for visual output; inline CSS/SVG work, scripts are stripped). | text |
| content | Yes | The content to share (max 4MB). | |
| password | No | Pro, ttl=30d only: password required to read the link. Access control, not encryption — content is plaintext at rest. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| acp | No | Present when this deployment accepts Agentic Commerce Protocol payments: checkout_endpoint + item_id let an enrolled agent platform complete the $1 purchase without a browser. | |
| url | Yes | ||
| x402 | No | Present when this deployment accepts x402 payments: any agent with an x402 wallet can pay the $1 via the upgrade_context tool — no enrollment. | |
| json_url | Yes | ||
| text_url | Yes | ||
| expires_at | Yes | ||
| manage_url | Yes | The share URL with ?t=<delete_token> already appended: opening it in a browser unlocks delete/upgrade for this link — share it only with the link's owner. | |
| payment_url | No | ||
| delete_token | Yes | Short creator token: authorizes delete_context, and appended to the share URL as ?t=<delete_token> it unlocks delete/upgrade in a browser — keep it private. | |
| markdown_url | Yes | ||
| pending_payment | Yes | ||
| paid_ttl_seconds | No | ||
| current_ttl_seconds | Yes |