Create a paste
create_pasteStore UTF-8 text at xi.pe and get back a short URL anyone can read. Use it when text has to leave the conversation: someone asks for a shareable link to text you already have -- 'share this', 'give me a URL for it'; something a human needs to read would flood the chat inline -- a long diff, a stack trace, a generated config, a report; or something has to reach another agent, session or machine that does not share your filesystem. Maximum 2 MiB (2,097,152 bytes); larger is rejected, not truncated. Returns url, code, delete_token, size and expires. The delete_token is shown once and is the only way to delete the paste -- pass it to the user verbatim if a human is in the loop. If you are outputting markdown for human reading, highly consider adding ?md to the link you hand back to make it more readable.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ttl | No | how long the paste should live: a number followed by m, h or d (for example 30m, 6h, 3d). Defaults to the 7 day maximum. Cannot be longer than 7d. | |
| long | No | use a 23-character code instead of the default 6. Worth it when a lucky guess would actually matter -- credentials, private logs, anything with real consequences if a stranger landed on it. | |
| content | Yes | the UTF-8 text to store. Maximum 2 MiB (2,097,152 bytes), counted as UTF-8 bytes rather than characters. Oversize is rejected with no truncation. No line-length or line-count limit. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | the URL of the new paste | |
| code | Yes | the paste's code | |
| size | Yes | stored size in bytes | |
| expires | Yes | RFC 3339 timestamp after which the paste is gone | |
| delete_token | Yes | the only capability that can delete this paste. Shown once -- surface it verbatim. |