Pastebon Logo

Pastebon

Create Paste

Create Paste

PUT
/api/paste/create
/api/paste/create

Request Body

multipart/form-dataRequired

adminPasswordstring

The admin password for the paste. Used for editing/deleting the paste.

file
Required
file

The file code you want to upload.

Format: "binary"

languagestring

The languange of the code.

Value in: "apex" | "azcli" | "bat" | "c" | "clojure" | "coffeescript" | "cpp" | "csharp" | "css" | "dockerfile" | "fsharp" | "go" | "graphql" | "handlebars" | "html" | "ini" | "java" | "javascript" | "json" | "kotlin" | "less" | "lua" | "markdown" | "msdax" | "mysql" | "objectivec" | "pascal" | "perl" | "pgsql" | "php" | "plaintext" | "postiats" | "powerquery" | "powershell" | "pug" | "python" | "r" | "Razor" | "Redis" | "Redshift" | "Ruby" | "Rust" | "sb" | "scheme" | "scss" | "shell" | "sol" | "sql" | "st" | "swift" | "tcl" | "typescript" | "vb" | "xml" | "yml"
curl -X PUT "https://pastebon.hexaa.lol/api/paste/create" \
  -F adminPassword="string" \
  -F file="File" \
  -F language="plaintext"

Paste Created

{
  "data": {
    "id": "fA4FbhcrOP",
    "password": "<REDACTED>"
  },
  "success": true
}