Help
Contact us : ask@southbridge.io / www.southbridge.io
To open a page without highlighting, add ?highlight=false parameter to the URL.
To open a paste as a raw text without any markup, add ?raw parameter to the URL.
You can create a paste in three ways:
- using the form on this web-site;
- making a POST text request;
- making a JSON POST request.
POST request URL:
https://xpaste.pro/en//paste
Available params:
language: text|markdown body: no larger than 512 kb auto_destroy: true ttl_days: 365
- body - required . The maximum length of text - 512 kb.
-
language
can take one of the two values:
text
ormarkdown.
If language is markdown and content length more than 4KB, then language will be forced to plaintext. Without this parameter the default parameter will be set(text)
. - auto_destroy must be set if you want to destroy the paste right after viewing. Otherwise, don't sent it.
- ttl_days deletes a note after specified number of days. Default - 365.
Examples of a text request
Short text :
curl -d "language=text" -d "body=short text message" "https://xpaste.pro/en//paste"
curl -d "language=text" -d "body=short text message" -d "ttl_days=17" "https://xpaste.pro/en//paste"
curl -d "language=markdown" -d "body=**Markdown** _text_ message" "https://xpaste.pro/en//paste"
curl -d "auto_destroy=true" -d "language=markdown" -d "body=**Markdown** _text_ message" "https://xpaste.pro/en//paste"
File sending
If a message is large send it as a file :
curl -H "Content-Type: text/plain" --data-binary "@file_name" "https://xpaste.pro/paste-file?language=markdown"
512kb is the not-to-exceed amount of data per paste. Any amount beyond this limit will be not saved.
Example of a request to create a paste with a specified number of days lifetime: :paste_file_path
curl -H "Content-Type: text/plain" --data-binary "@file_name" https://xpaste.pro/paste-file?language=markdown&ttl_days=7
Example of a request to create an auto-destroing paste:
curl -H "Content-Type: text/plain" --data-binary "@file_name" https://xpaste.pro/paste-file?language=markdown&auto_destroy=true
JSON request
curl -v -H "Accept: application/json" -H "Content-type: application/json" -X POST \ -d '{"language":"text","body":"text"}' "https://xpaste.pro/en//paste"