Request headers: Content-Type: application/json
Request body: { "url": "example.com" }
• Note: if you don't provide a url protocol, your snip will default to https
Example response:
{
"snipId": "DjX",
"snipUrl": "https://link.saintkappa.dev/DjX",
"redirectUrl": "https://github.com/theSaintKappa",
"createdAt": "2023-08-24T22:24:59.096Z",
"alreadyExisted": true
}
Example request:
$ curl --request POST \
https://link.saintkappa.dev/api/new \
--header 'Content-Type: application/json' \
--data '{ "url": "https://github.com/theSaintKappa" }'