API URL
Parameter name Required Type Description
api_key YES String API key to identify which user is creating the paste. Found in the accounts page.
paste_title NO String The title of the paste. If left empty "Untitled" will be used.
paste_content YES Any The content of the paste.
paste_password NO Any Password locking for the paste.
encrypt_paste NO Boolean Whether to encrypt the paste or not.
paste_visibility NO Integer By default, it's 0 (listed). Can be 1 (Unlisted) or 2 (Private).
paste_expiry NO Integer By default it never expires (0).
Language/Syntax Name Name in API
ABAPabap
ActionScriptactionscript
ADAada
Apache Confapache_conf
AsciiDocasciidoc
Assembly x86assembly_x86
AutoHotKeyautohotkey
BatchFilebatchfile
C/C++c_cpp
C#cirru
Cirruclojure
Clojurecobol
Cobolcoffee
CoffeeScriptcoldfusion
ColdFusioncsharp
CSScss
Curlycurly
Dd
Dartdart
Diffdiff
Dockerfiledockerfile
Dotdot
Eiffeleiffel
EJSejs
Erlangerlang
Forthforth
FreeMarkerftl
Gcodegcode
Gherkingherkin
Gitignoregitignore
Glslglsl
Gogolang
Groovygroovy
HAMLhaml
Handlebarshandlebars
Haskellhaskell
haXehaxe
HTMLhtml
HTML (Ruby)html_ruby
INIini
Jackjack
Jadejade
Javajava
JavaScriptjavascript
JSONjson
JSONiqjsoniq
JSPjsp
JSXjsx
Juliajulia
LaTeXlatex
LESSless
Liquidliquid
Lisplisp
LiveScriptlivescript
LogiQLlogiql
LSLlsl
Lualua
LuaPageluapage
Lucenelucene
Makefilemakefile
Markdownmarkdown
MATLABmatlab
MELmel
MUSHCodemushcode
MySQLmysql
Nixnix
Objective-Cobjectivec
OCamlocaml
Pascalpascal
Perlperl
pgSQLpgsql
PHPphp
Plain Textplain_text
Powershellpowershell
Praatpraat
Prologprolog
Propertiesproperties
Protobufprotobuf
Pythonpython
Rr
RDocrdoc
RHTMLrhtml
Rubyruby
Rustrust
SASSsass
SCADscad
Scalascala
Schemescheme
SCSSscss
SHsh
SJSsjs
Smartysmarty
snippetssnippets
Soy Templatesoy_template
Spacespace
SQLsql
Stylusstylus
SVGsvg
Tcltcl
Textex
Texttext
Textiletextile
Tomltoml
Twigtwig
Typescripttypescript
Valavala
VBScriptvbscript
Velocityvelocity
Verilogverilog
XMLxml
XQueryxquery
YAMLyaml
Expiry Time Corresponding number in API
Never Expires 0
10 Minutes 1
1 Hour 2
1 Day 3
3 Days 4
1 View Self Destruct 5
Visibility Corresponding number in API
Listed 0
Unlisted 1
Private 2
PHP Code C# Code