-
-
Notifications
You must be signed in to change notification settings - Fork 2
Upload API Documentation
Loudbook edited this page Dec 4, 2024
·
2 revisions
Used to upload a paste to PasteBook.
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. |
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.
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/
.