Skip to content
This repository was archived by the owner on Aug 22, 2020. It is now read-only.
Izu edited this page Jul 25, 2019 · 1 revision

API

POST /api/new

Ratelimit: 1/5

Request

{
	"snippet": "<the paste>",
	"language": "<the language of the paste>"
}

Response

{
	"id": "<id of the saved snippet>",
	"language": "<id of the saved snippet>"
}

GET /api/snippet/{id}

Ratelimit: 1/1

Response

{
  "id": "MmdCjag01",
  "language": "nginx",
  "snippet": "proxy_cache_path  /data/nginx/cache  levels=1:2 ..."
}

Error

Example Response

{
	"error": "Content too long.",
	"error_code": "1000"
}
Clone this wiki locally