Skip to main content

/api/v1/bins/create

This endpoint requires authentication using an API key.

POST: Create a pastebin

Headers

  • Authentication: API-KEY-HERE

Body

FieldTypeRequiredDescription
namestringThe name of the pastebin
visiblebooleanWhether the pastebin should be readable by anyone or not
contentstringThe pastebin content
highlightstringThe pastebin content type
passwordstringA password to add to the pastebin

200 (OK)

FieldTypeDescription
urlstringThe url that leads to the pastebin
visiblebooleanWhether the pastebin should be readable by anyone or not
passwordbooleanWhether password protection is enabled or not
highlightstringThe pastebin content type*
dateDateThe date the pastebin was created at
domainstringThe user the pastebin belongs to

* For a list of highlight types, check out this list

{
	"url": "https://cdn.ijskoud.dev/bins/example_pastebin",
	"visible": true,
	"password": false,
	"highlight": "bash",
	"date": "2023-10-17T11:37:49.109Z",
	"domain": "cdn.ijskoud.dev"
}