POST
/
links
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>"
    }
  ]
}

Authorizations

x-api-key
string
header
required

Your Short Menu API Key. Create one at shm.to/create-api-key.

Body

application/json

Response

201
application/json

The response is of type object.