API Reference
Create a new link
POST
/
links
/
Copy
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
}
]
}
]
}
}'
Copy
{
"data": {
"id": 2
}
}
Authorizations
Body
application/json
Response
200
application/json
Link created successfully
The response is of type object
.
Copy
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
}
]
}
]
}
}'
Copy
{
"data": {
"id": 2
}
}
Assistant
Responses are generated using AI and may contain mistakes.