Skip to content

Upload API Documentation

Loudbook edited this page Dec 4, 2024 · 2 revisions

/upload - POST

Used to upload a paste to PasteBook.

Headers

Identifier Type Required Default Value Description
title string - The paste's title.
wrap boolean false Whether or not the paste should force wrapping.
expires long 86400000
(24 hours)
How long until the paste should be deleted. If you provide a value larger than the current epoch in milliseconds, it will be used as an absolutely expire time. If you use a value smaller it will be used as a lifetime. Maximum is 30 days.

Errors

400 Bad Request - Likely either invalid or missing headers. More information will be provided.

403 Prohibited - User is banned.

429 Rate Limit - Rate limit exceeded.

Success

200 OK - Success

The API will respond with a five character ID that can be used to access the paste when appended to https://domain.com/p/.

Clone this wiki locally