GET
/
links
/
{id}
curl --request GET \
  --url https://itlinks.to/v1/links/{id} \
  --header 'Authorization: <api-key>'
{
  "data": {
    "id": 1001,
    "name": "Example Link 1",
    "domain": "example.com",
    "slug": "example-link-1",
    "tags": [
      "tag1",
      "tag2"
    ],
    "rules": [
      {
        "id": 10001,
        "name": "Morning Rule",
        "active_from": "2023-01-01",
        "active_to": "2023-12-31",
        "locations": [
          {
            "type": "country",
            "name": "USA"
          }
        ],
        "device_types": [
          "Mobile",
          "Desktop"
        ],
        "oses": [
          "Windows",
          "iOS"
        ],
        "week_days": [
          "Monday",
          "Tuesday",
          "Wednesday"
        ],
        "day_time_ranges": [
          {
            "start": "08:00",
            "end": "12:00"
          }
        ],
        "url_ratios": [
          {
            "name": "Primary URL",
            "url": "http://example.com/main",
            "ratio": 0.8
          },
          {
            "name": "Secondary URL",
            "url": "http://example.com/secondary",
            "ratio": 0.2
          }
        ],
        "created_at": "2023-01-01T00:00:00"
      },
      {
        "id": 10002,
        "name": "Evening Rule",
        "active_from": "2023-01-01",
        "active_to": "2023-12-31",
        "locations": [
          {
            "type": "country",
            "name": "USA"
          }
        ],
        "device_types": [
          "Mobile",
          "Desktop"
        ],
        "oses": [
          "Windows",
          "iOS"
        ],
        "week_days": [
          "Monday",
          "Tuesday",
          "Wednesday"
        ],
        "day_time_ranges": [
          {
            "start": "18:00",
            "end": "21:00"
          }
        ],
        "url_ratios": [
          {
            "name": "General URL",
            "url": "http://example.com/general",
            "ratio": 0.8
          }
        ],
        "created_at": "2023-01-01T00:00:00"
      }
    ]
  }
}

Authorizations

Authorization
string
header
required

Path Parameters

id
number
required
Required range: x >= 1

Response

200
application/json
Link retrieved successfully.
data
object