API Reference
Links
DELETE - Delete Link

Delete Link

DELETE Deletes a link.

Request

Query Parameters

NameTypeRequiredNotes
link_idstringtrueThe ID of the link to delete

Example

curl -L -X DELETE 'https://prettyurl.net/api/v1/links/<LINK_ID>' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <API_KEY>'

Response

Schema

link

KeyType
idstring
titlestring
domainstring
groupobject
back_halfstring
short_linkstring
original_linkstring
updated_atdatetime
created_atdatetime

Example

{
    "status": "success",
    "message": "API request processed successfully.",
    "data": {
        "link": {
            "id": string,
            "title": string,
            "domain": string,
            "group": {
                "id": string,
                "name": string,
                "created_at": datetime
            },
            "back_half": string,
            "short_link": string,
            "original_link": string,
            "updated_at": datetime,
            "created_at": datetime
        }
    }
}