GET
https://api.dub.co
/
links
/
info
curl --request GET \
  --url https://api.dub.co/links/info \
  --header 'Authorization: Bearer <token>'
{
  "id": "<string>",
  "domain": "<string>",
  "key": "<string>",
  "url": "<string>",
  "archived": false,
  "expiresAt": "<string>",
  "password": "<string>",
  "proxy": false,
  "title": "<string>",
  "description": "<string>",
  "image": "<string>",
  "rewrite": false,
  "ios": "<string>",
  "android": "<string>",
  "geo": {},
  "publicStats": false,
  "tagId": "<string>",
  "tags": [
    {
      "id": "<string>",
      "name": "<string>",
      "color": "red"
    }
  ],
  "comments": "<string>",
  "shortLink": "<string>",
  "qrCode": "<string>",
  "utm_source": "<string>",
  "utm_medium": "<string>",
  "utm_campaign": "<string>",
  "utm_term": "<string>",
  "utm_content": "<string>",
  "userId": "<string>",
  "workspaceId": "<string>",
  "clicks": 0,
  "lastClicked": "<string>",
  "createdAt": "<string>",
  "updatedAt": "<string>",
  "projectId": "<string>"
}

Authorizations

Authorization
string
header
required

Default authentication mechanism

Query Parameters

workspaceId
string
required

The ID of the workspace the link belongs to.

domain
string
required

The domain of the link to retrieve. E.g. for d.to/github, the domain is d.to.

Minimum length: 1
key
string
required

The key of the link to retrieve. E.g. for d.to/github, the key is github.

Minimum length: 1

Response

200
application/json

The retrieved link

The response is of type object.