Skip to main content

List of Active Short URLs

Description

To get a list of active short URLs, it is necessary to make a GET request to the SHORT URL API endpoint

Production Endpoint URL: https://api.cpaas.symphony.rakuten.net/short-url/v1/query/url

Methods: GET

HTTP Headers

ParameterRequiredValue
AuthenticationYType: Bearer
Token: JWT Token
AcceptYapplication/json
Content-TypeYapplication/json; charset=UTF-8

Response:

If successful, the API call will return an HTTP 200 OK with a JSON document as a response. Please see section “Error Codes" for a description of the failure responses.

ParameterRequiredDescription
Content-TypeYapplication/hal+json; charset=UTF-8

JSON Response

ParameterDescription
page_sizeDefault page size = 10
pageThe number of items to show
total_foundTotal number of masked URLs
masked_urlsThe details of the individual masked URLs

Sample Response

{
"page_size":10,
"page":1,
"_links":{
"self":{
"href":"/short-url/v1/query/url?page=1&page-size=10"
},
"first":{
"href":"/short-url/v1/query/url?page=1&page-size=10"
},
"last":{
"href":"/short-url/v1/query/url?page=1&page-size=10"
}
},
"_embedded":{
"total_found":1,
"masked_urls":[
{
"id":"pIAr0F",
"remote_url":"https://www.example.com",
"name":"Example",
"description":"Example Short URL",
"valid_until_date":"2024-06-01 07:31:00",
"date_created":"2024-05-30 08:46:01",
"time_last_updated":"2024-05-30 08:47:24",
"public_masked_url":"https://<api.hostname>/pIAr0F",
"_links":{
"self":{
"href":"/short-url/v1/url/pIAr0F"
}
}
}
]
}
}

If No Short URLs are found

{
"page_size": 10,
"page": 1,
"_links": {
"self": {
"href": "/short-url/v1/query/url?page=1&page-size=10"
},
"first": {
"href": "/short-url/v1/query/url?page=1&page-size=10"
},
"last": {
"href": "/short-url/v1/query/url?page=1&page-size=10"
}
},
"_embedded": {
"total_found": 0,
"masked_urls": []
}
}