Skip to main content

Delete Short URL

Delete Short URL

Postman Collection

URL

POST: /v1/shortener/delete

HEADERS

ParamsValue
AuthorizationBasic Auth
Content-Typeapplication/json
Acceptapplication/json

Parameters

ParamData TypeRequired
urlStringRequired when requestId not present
requestIdStringRequired when url not present

Request

Body Sample
{
"requestId": "REQ473708703373400",
"url": "https://f1m.in/4RaUgTh"
}
cURL Sample
curl --location --request POST '/v1/shortener/delete' \
--header 'Authorization: Basic ZjMDVhZWY1NTc5ODgxMjg0NzEwZTZkMzM5ODMyYmU2YTJkNjg5' \
--header 'Content-Type: application/json' \
--data-raw '{
"requestId": "REQ473708703373400",
"url": "https://f1m.in/4RaUgTh"
}'

Response

success
{
"code": "200",
"status": "success",
"message": "URL deleted."
}
failed
{
"code": "404",
"status": "failed",
"error": "URL not deleted."
}