API

Send text, get a link. Every endpoint below is served from https://mcpaste.com. With an API key, pastes land in your account; without one, they're anonymous.

Create a paste

POST https://mcpaste.com/api/create
curl https://mcpaste.com/api/create \ -H "Authorization: Bearer mcp_live_…" \ -H "Content-Type: application/json" \ -d '{"content": "…", "title": "SkyHaven — console", "expiry": "30d", "password": null}'
201 · response
{ "key": "k8Qv2n", "url": "https://mcpaste.com/k8Qv2n", "expires": 1789200684000 }
FieldTypeNotes
content string The log itself. Required; everything else is optional.
title string Shown as the paste heading. Defaults to the paste key.
expiry "1h" | "24h" | "7d" | "30d" | "never" Or "burn" to delete on first read. Left out, the account's default is used.
burn boolean Same as expiry "burn": the paste is deleted once it's read.
password string | null Locks the paste behind the gate.
private boolean MCPaste Plus: only you, signed in, can open the link. Without Plus the request gets a 403.
domain string Panel hostname, shown as the paste's provenance. Left out, the panel hostname set on the key is used.
hideIps boolean Masks IPv4 addresses before the paste is written. Left out, the account's setting is used.

expires is milliseconds since 1970, or null for a paste that never expires. A missing or unknown key gets 401, an empty content gets 400.

Without a key

POST https://mcpaste.com/documents takes the log as a plain-text body, with any options in the query string. The paste is anonymous: it can't be managed later, and anyone with its link can delete it.

curl "https://mcpaste.com/documents?title=latest.log&expiry=24h" \ --data-binary @logs/latest.log
200 · response
{ "key": "k8Qv2n", "url": "https://mcpaste.com/k8Qv2n", "domain": "…" }
QueryTypeNotes
title string Shown as the paste heading.
expiry "1h" | "24h" | "7d" | "30d" | "never" Defaults to 30d.
burn "true" Delete the paste once it's read.
password string Locks the paste behind the gate.
hideIps "true" Masks IPv4 addresses before the paste is written.
private "true" MCPaste Plus, signed in: only you can open the link. Otherwise a 403.
bundle "new" | id Starts a bundle, or adds this paste to one. See Bundles.

Read a paste

RequestReturns
GET /raw/{key}The paste as plain text.
GET /download/{key}The same text as a file download, named after the paste's title.
GET /documents/{key}JSON: key, data, serverInfo, language, created, expires.

serverInfo is the server details block the panel addon attaches, as an object, or null. A key that doesn't exist gets 404; on /documents/{key}, one that has expired gets 410. A paste with a password gets 403: it can only be unlocked on its page, in a browser.

Delete

POST https://mcpaste.com/pastes/{key}/delete

Returns { "ok": true }. An anonymous paste can be deleted by anyone who has its link. A paste in an account can only be deleted by that account, signed in on this site: from Your pastes, or Revoke link on the paste. API keys can't delete pastes yet, and get 403. Pastes also go on their own when they expire.

Bundles

A bundle puts several pastes behind one link, say latest.log plus a config file. Post the first to /documents?bundle=new; the response carries a bundle id. Post the rest with ?bundle={id}.

curl "https://mcpaste.com/documents?bundle=new&title=latest.log" --data-binary @logs/latest.log # → { "key": "k8Qv2n", "bundle": "3f9c0a…", … } curl "https://mcpaste.com/documents?bundle=3f9c0a…&title=spigot.yml" --data-binary @spigot.yml

https://mcpaste.com/b/{id} shows every file in the bundle, and /b/{id}/all downloads them as one text file. Bundles work on /documents only, not /api/create.

API keys

Make keys on the API keys page, one for each panel, bot or script; an account can hold up to 20 (100 with MCPaste Plus). Every key posts as the same account, so all their pastes land in one dashboard with your defaults. Give a key a panel hostname and pastes it sends without a domain field are shown as coming from that panel. Revoking or regenerating a key stops only that key. A token is shown once, when it's made: copy it then.

GET https://mcpaste.com/api/whoami with the same header checks a token without creating anything. It returns the account id and email, the key's name and panel hostname, and the account's paste defaults.

Running Pterodactyl? The MCPaste addon calls /api/create for you from a Share log button in every console. Give it its own key, with the panel's hostname set.

Rate limits

/api/create allows 60 requests a minute per account (300 with MCPaste Plus), shared by all its keys: adding keys doesn't add capacity. Every response carries X-RateLimit-Limit and X-RateLimit-Remaining. Over the limit, you get 429 with a Retry-After header in seconds, and retryAfter in the body.

A paste can be up to 25 MB, on /api/create and /documents.