API

POST to: https://amnesia.io/api with Content-Type: application/json:

{
  "content": "your_snippet_body",
  "ttl": 300,
  "extension": "js"
}

Response will be:

{
  "url": "https://amnesia.io/[id]",
  "ttl": 300
}

POST to https://amnesia.io with a content type of multipart/form-data with a header of x-ttl:

curl -F "file=@mix.exs" -H "x-ttl: 300" http://amnesia.io