API Documentation

Create a paste
POST

/api/create

Plain Text

Query string parameters:

Field Type Description
token string Your Developer Key
content string The paste content. Maximum size is 512KiB
name string Name of the paste
language string Language of the paste. A list of languages is available here.
exposure string Exposure of the paste. Possible values are: public unlisted private
computercraft boolean Set flag if the paste purpose is to be used for ComputerCraft.
Note: Pastes flagged with computercraft are sent to an external server!

Response:

The paste ID (i.e. 12abcdef)


Fetch user information and pastes
GET

/api/user/:username

JSON

URL Parameters:

Field Type Description
username string Username of the account

Response:

Field Type Description
ok boolean Success of the request
user.id integer Internal ID of the account
user.username string Username of the account
user.creation_date Date Date of the creation of the account
pastes Array List of pastes created by the account. Same format of /api/paste/:id

Fetch paste information
GET

/api/paste/:id

JSON

URL Parameters:

Field Type Description
id string ID of the paste

Response:

Field Type Description
ok boolean Success of the request
paste.id integer ID of the paste
paste.name string Name of the paste
paste.language string Language of the paste. A list of languages is available here.
paste.exposure string Exposure of the paste. Possible values are: public unlisted private
paste.computercraft boolean Flag if the paste purpose is to be used for ComputerCraft.
paste.author integer Account ID of the author

List of available languages
GET

/api/languages

JSON

Response:

Field Type Description
key string Language key. Used to get and submit pastes.
value string Fancy name of the language.