Link Search Menu Expand Document

Edit a URL

POST https://noice.link/api/edit
Edits a short URL\

Required payload parameters:

  • url (string): The unshortified URL

Required headers:

  • Authorization (string): The link token

Optional payload parameters:

  • title (string): The preview’s title
  • description (string): The preview’s description
  • image (string): The preview’s image
  • domain (string): Custom domain name (more info here)

Example payload:

{
    description: "poggers",
    image: "https://cdn.macedon.ga/image.png"
    slug: "free-nitro",
    title: "Yes free nitro",
    domain: "go.macedon.ga",
    url: "https://www.youtube.com/watch?v=dQw4w9WgXcQ"
}

cURL request example

curl --request POST \
 --url https://noice.link/api/edit \
 --header 'Authorization: YOUR_LINK_TOKEN' \
 --header 'Content-Type: application/json'
 --data '{"url": "https://macedon.ga"}'

Example response:

{
    success: true
}

Possible error codes:

Here