Back to explore

web

URL

Credits: 0.01

Create

POST /v1/url/Create

Create a URL

Request

destinationURLstring

destination url

idstring

a unique id e.g uuid or my-url

Response

urlobject

Request

Response

{
    "url": {
        "id": "my-site",
        "shortURL": "https://m3o.one/u/my-site",
        "destinationURL": "https://mysite.com/this-is-a-rather-long-web-address",
        "created": "2022-03-01T16:04:11.341277162Z",
        "hitCount": "0"
    }
}

Credits: 0.000001

Delete

POST /v1/url/Delete

Delete a URL

Request

idstring

delete by id

shortURLstring

delete by shortURL

Response

{}

Request

Response

{}

Credits: 0.000001

List

POST /v1/url/List

List all the shortened URLs

Request

shortURLstring

filter by short URL, optional

Response

urlPairsobject

Request

Response

{
    "urlPairs": [
        {
            "shortURL": "https://m3o.one/u/f8f3f83f3f83g",
            "destinationURL": "https://mysite.com/this-is-a-rather-long-web-address",
            "created": "2022-03-01T16:04:11.341277162Z",
            "hitCount": "4"
        }
    ]
}

Credits: 0.000001

Resolve

POST /v1/url/Resolve

Resolve returns the destination URL of a short URL.

Request

idstring

resolve by id

shortURLstring

short url to resolve

Response

destinationURLstring

Request

Response

{
    "destinationURL": "https://mysite.com/this-is-a-rather-long-web-address"
}

Credits: 0.000001

Shorten

POST /v1/url/Shorten

Shorten a URL

Request

destinationURLstring

the url to shorten

Response

shortURLstring

the shortened url

Request

Response

{
    "shortURL": "https://m3o.one/u/f8f3f83f3f83g"
}

Credits: 0.000001

Update

POST /v1/url/Update

Update the destination for a short URL

Request

destinationURLstring

the destination to update to

idstring

update by id

shortURLstring

update by short url

Response

{}

Request

Response

{}