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
Name | Type | Required | Max | Description |
---|---|---|---|---|
urlCode | string | Yes | - | The unique code of the shortened URL to delete (provided in the URL path) |
Response
Name | Type | Description |
---|---|---|
data | object | The data of the URL shortener deletion response |
data.status | string | Indicates the status of the deletion operation, 'success' when successful |
metadata | object | Metadata about the URL shortener deletion request |
metadata.cost | number | The cost of the URL shortener deletion request |
Errors
{
"error": "string",
"code": "string"
}
HTTP Status | Error Code | Message |
---|---|---|
400 | INVALID_PAYLOAD | Occurs when the payload is invalid. |
400 | INVALID_REQUEST | The request is invalid. |
400 | UTILS_URL_SHORTNER_ERROR | Error during URL shortener deletion process. |
404 | URL_SHORTNER_NOT_FOUND | The specified shortened URL was not found. |
403 | PERMISSION_DENIED | You do not have permission to delete this shortened URL. |
400 | INSUFFICIENT_BALANCE | The user has insufficient balance to perform this operation. |
401 | UNAUTHORIZED | The token is invalid or missing. |
429 | TOO_MANY_REQUESTS | The request limit has been reached. |