Links

/v1/links/new

Create a new link

get/v1/links/new

Request

  • Base URL
    https://api.rebrandly.com
  • URL
    https://api.rebrandly.com/v1/links/new
  • Auth
    API key in header apikey

Query parameters

destinationstring required

The destination URL you want your branded short link to point to

slashtagstring

The keyword portion of your branded short link

titlestring

A title you assign to the branded short link in order to remember what's behind it

domain[id]string

The unique id of the branded domain. If not specified, rebrand.ly is used

domain[fullName]string

The unique name of the branded domain, to be used in place of domain[id] in special cases. Precedence will be given to domain[id] value.

Headers

workspacestring

Which workspace id to be used to create new links. No workspace specified will select default workspace.

Response

200

idstring
titlestring
slashtagstring
destinationstring
createdAtstring
updatedAtstring
shortUrlstring

Example response

{
  "id": "fffa4cc5b6ee45d6g7897b06ac2d16af",
  "title": "What is Rebrandly",
  "slashtag": "video",
  "destination": "https://www.youtube.com/watch?v=3VmtibKpmXI",
  "createdAt": "2016-07-13T10:54:12.000Z",
  "updatedAt": "2016-07-13T10:54:12.000Z",
  "shortUrl": "rebrand.ly/video",
  "domain": {
    "id": "8f104cc5b6ee4a4ba7897b06ac2ddcfb",
    "fullName": "rebrand.ly"
  }
}

Changes

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