Links
Create link
Creates a new Short Link.
POST
/
links
Copy
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>"
}'
Copy
{
"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
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
.
Copy
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>"
}'
Copy
{
"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>"
}
]
}
Assistant
Responses are generated using AI and may contain mistakes.