Short url

Create a short url

This endpoint allows you to create a short url.

post/1/url-shortener

Request body

urlstring required
expiration_dateinteger

Example request

{
  "url": "https://www.infomaniak.com",
  "expiration_date": 1633435186
}

Response

Default Response

result'success' | 'error' | 'asynchronous' required

Result of the HTTP request

Example response

{
  "result": "success",
  "data": {
    "code": "czhS2Gn",
    "created_at": 1633435186,
    "expiration_date": 1633435186
  }
}

Changes

No recorded changes to this endpoint across all 1 revision of this API.