Skip to main content

Fetch Short URL Info

Fetch Short URL Info

Postman Collection

URL

POST: /v1/shortener/fetch

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/fetch' \
--header 'Authorization: Basic ZjFtXYxbV9mZGI5MDVhZWY1NTc5ODgxMjg0NzEwZTZkMzM5ODMyYmU2YTJkNjg5' \
--header 'Content-Type: application/json' \
--data-raw '{
"requestId": "REQ473708703373400",
"url": "https://f1m.in/4RaUgTh"
}'

Response

success
{
"code": "200",
"status": "success",
"message": "URL found.",
"data": {
"requestId": "REQ473708703373400",
"label": "F1 Mate Shortener",
"url": "https://f1m.in/4RaUgTh",
"status": 1,
"closedAt": "2022-04-24 20:05:55",
"createdAt": "2022-04-24 18:16:29"
}
}
failed
{
"code": "404",
"status": "failed",
"error": "URL info not found."
}