POST
/
links
curl --request POST \
  --url https://itlinks.to/v1/links/ \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "data": {
    "name": "<string>",
    "domain": "itlinks.to",
    "slug": "ExampleSlug",
    "tags": [
      "<string>"
    ],
    "rules": [
      {
        "name": "<string>",
        "active_from": "2023-11-07T05:31:56Z",
        "active_to": "2023-11-07T05:31:56Z",
        "locations": [
          {
            "type": "country",
            "id": "ISO 3166-1 alpha-3 country code, or one of: ['\''Africa'\'', '\''Antarctica'\'', '\''Asia'\'', '\''Australia'\'', '\''Europe'\'', '\''North America'\'', '\''Oceania'\'', '\''South America'\'']"
          }
        ],
        "device_types": [
          "Desktop"
        ],
        "oses": [
          "Mac OS"
        ],
        "week_days": [
          "MONDAY"
        ],
        "day_time_ranges": [
          {
            "time_from": "22:00",
            "time_to": "23:00"
          }
        ],
        "url_ratios": [
          {
            "name": "<string>",
            "meta_title": "<string>",
            "meta_description": "<string>",
            "meta_media_url": "<string>",
            "url": "<string>",
            "mobile_app_os_id": 2,
            "scripts": [
              2
            ],
            "ratio": 123
          }
        ]
      }
    ]
  }
}'
{
  "data": {
    "id": 2
  }
}

Authorizations

Authorization
string
header
required

Body

application/json
data
object
required

Response

200
application/json
Link created successfully
data
object