URL shortener

Boka provides a URL-shortener under the service domain bok.ai.

To shorten a URL, simply issue a HTTP GET using the following pattern.

[GET] https://bok.ai/api/url/shorten?url=<url_to_shorten>

Response:

The response will be in JSON, containing the following result.

Key Value
longUrl The long URL provided.
shortUrl A shortened URL under the bok.ai domain.

Example:

Request: [GET] https://bok.ai/api/url/shorten?url=https://www.boka.se

Response:

{
    "longUrl": "https://www.boka.se",
    "shortUrl": "https://bok.ai/7d0f7e"
}