URL Shortener Delete

Delete a previously generated short URL from your account. This service allows you to remove unwanted or outdated shortened URLs from your history.

Endpoint

Delete a specific shortened URL by its code

DELETEhttps://api.xtartapp.com/utils/url-shortner/{urlCode}

*Authentication

You must use a Bearer token provided by the dashboard to use for authentication. Add the token to the Authorization header.

Request body

NameTypeRequiredMaxDescription
urlCodestringYes-The unique code of the shortened URL to delete (provided in the URL path)

Response

NameTypeDescription
dataobjectThe data of the URL shortener deletion response
data.statusstringIndicates the status of the deletion operation, 'success' when successful
metadataobjectMetadata about the URL shortener deletion request
metadata.costnumberThe cost of the URL shortener deletion request

Errors

{
  "error": "string", 
  "code": "string"
}
HTTP StatusError CodeMessage
400INVALID_PAYLOADOccurs when the payload is invalid.
400INVALID_REQUESTThe request is invalid.
400UTILS_URL_SHORTNER_ERRORError during URL shortener deletion process.
404URL_SHORTNER_NOT_FOUNDThe specified shortened URL was not found.
403PERMISSION_DENIEDYou do not have permission to delete this shortened URL.
400INSUFFICIENT_BALANCEThe user has insufficient balance to perform this operation.
401UNAUTHORIZEDThe token is invalid or missing.
429TOO_MANY_REQUESTSThe request limit has been reached.