API REFERENCEv1

Delete a Short URL

DELETEhttps://api2.protexting.com/v1/shorturl/delete
⌘

Use Authorization: Bearer with your server-side token. Legacy access_token URLs remain supported. Replace sample values with your own. Authentication & setup →

Use your existing OAuth access_token query parameter, with the Short URL API app active. Send Accept: application/json and Content-Type: application/json for JSON writes. Action-scoped tokens can call only the permitted action. Every link action is limited to your owned, public, non-deleted parent links. Smart URLs is a separate system.

A successful delete returns 204 with no body. Ordinary links are soft-deleted from the library, preserving URL/click history; deletion is not a permanent purge or a promise to disable redirects. Use active=0 to pause redirects. Historical custom-slug links use the same remote removal behavior as the member UI; a transport or registry failure leaves the row and returns a server error.

DELETE /v1/shorturl/delete

Delete using UI semantics. Ordinary rows are soft-deleted; legacy custom slugs use remote deletion. Use active=0 to pause redirects.

Request parameters

FieldTypeDetails
idintegerRequired. Owned public link ID (or owned domain ID on domain/view).

Request example

Request example
# Set PROTEXTING_ACCESS_TOKEN in your environmentcurl --request DELETE \  "https://api2.protexting.com/v1/shorturl/delete?id=123" \  --header 'Accept: application/json' \  --header "Authorization: Bearer ${PROTEXTING_ACCESS_TOKEN:?Set your API token}"
Server-side exampleJSON · HTTPS
POST alternative

POST /v1/shorturl/delete

Delete using UI semantics. Ordinary rows are soft-deleted; legacy custom slugs use remote deletion. Use active=0 to pause redirects.

Request parameters

FieldTypeDetails
idintegerRequired. Owned public link ID (or owned domain ID on domain/view).

Request example

Request example
# Set PROTEXTING_ACCESS_TOKEN in your environmentcurl --request POST \  "https://api2.protexting.com/v1/shorturl/delete?id=123" \  --header 'Accept: application/json' \  --header "Authorization: Bearer ${PROTEXTING_ACCESS_TOKEN:?Set your API token}"
Server-side exampleJSON · HTTPS

HTTP status codes

200 success; create/add return 201; link deletion returns 204 without a body. 401: missing/invalid token or disabled API app. 403: denied scope or tracking entitlement. 404: unavailable link or disabled domain feature. 405: wrong HTTP method. 409: reset already in progress. 422: invalid input, invalid dates or unavailable/foreign domain. 503: allocation/custom-deletion failure or unavailable reset signing. Other database/provider failures remain server errors.

Reference from the ProTexting documentation catalog. Code examples are illustrative; this page does not execute API requests.