URL shortener

The endpoint allows to shorten URLs

📘

Account activated feature

Please note, the service is available for use after communication with our support department.

🚧

Caution

Please note, that the maximum number of the objects for the array is 20.

RESPONSE PARAMETERS

KEY

TYPE

DESCRIPTION

link

string(limitations according to the one currently in the platform)

The short url to use.

trackingId

string (format and size according to the standards used in the platform)

The tracking id of the short url that was created.

expirationDate

string (date with format 2016-06-23T06:55:57Z)

The date that the url will be no longer available.

createdAt

string (date with format 2016-06-23T06:55:57Z)

The date the url was created.

tags

Object [Optional Field] Must not be null

A map of string field values to store information

CONSTRAINTS AND ERRORS

PATH

CONSTAINTS

STATUS

MESSAGE

name*

  1. Must not be blank.
  2. Size must be between 0 and 200 inclusive
  1. 400;
  1. "urls[0].name: must not be blank",
  2. "urls[0].name: size must be between 0 and 200",

domain*

  1. Must not be blank;
  2. Size must be between 0 and 100 inclusive;
  3. Domain should be valid.
  1. 400;
  2. 400;
  1. "urls[0].domain: must not be blank";
  2. "urls[0].domain: size must be between 0 and 100";
  3. "Domain not found";

longUrl*

  1. Must be a well-formed URL;
  2. Must not be blank;
  3. Size must be between 0 and 1900 inclusive.
  1. 400;
  2. 400;
  1. "urls[0].longUrl: must be a valid URL";
  2. "urls[0].longUrl: must not be blank;
  3. "urls[0].longUrl: size must be between 0 and 1900.

callbackUrl

[Optional Field]

  1. Must be a well-formed URL;
  2. Size must be between 0 and 1024 inclusive.
  1. 400;
  1. "urls[0].callbackUrl: must be a valid URL",
  2. "urls[0].callbackUrl: size must be between 0 and 1024,urls[0].callbackUrl: must be a valid URL"

validity

[Optional Field]

  1. Must be at least 3600;
  2. Must be at most 2592000
  1. 400;

1."urls[0].validity: must be greater than or equal to 3600"

  1. "urls[0].validity: must be less than or equal to 2592000".

tags

[Optional Field]

  1. Must not be null
Language