/api/link/:id

Added in v1.0
DELETE https://api.example.com/api/link/:id
Requires authentication: X-API-Key: YOUR_API_KEY

Delete a link from the system and returns the final data before it's removed.

Headers

  • x-api-key string required
    API key used to authenticate the request
    Example: Your actual API key

Path parameters

  • id string required
    The numerical ID of the link to delete
    Example: 1

Responses

  • 200Success
  • 400Success
Request
curl -X DELETE 'https://api.example.com/api/link/1' \
  -H 'X-API-Key: YOUR_API_KEY' \
  -H 'x-api-key: Your actual API key'
Response
Success
{
  "id": 2,
  "name": "g",
  "url": "https://google.com",
  "count": 0,
  "creator": "API",
  "creatorID": "0",
  "createdAt": "1713090722076"
}