cURL
curl --request POST \ --url https://api.shortmenu.com/links \ --header 'Content-Type: application/json' \ --header 'x-api-key: <api-key>' \ --data '{ "tags": [ { "id": "<string>", "name": "<string>" } ], "destinationUrl": "<string>", "domain": "<string>", "slug": "<string>" }'
{ "id": "<string>", "createdAt": "2023-11-07T05:31:56Z", "destinationUrl": "<string>", "title": "<string>", "slug": "<string>", "domain": { "id": "<string>", "name": "<string>" }, "shortUrl": "<string>", "clickCount": 123, "tags": [ { "id": "<string>", "name": "<string>" } ] }
Creates a new Short Link.
Your Short Menu API Key. Create one at shm.to/create-api-key.
The response is of type object.
object