Links
GET https://dmpilot.ru/api/links/
curl --request GET \
--url 'https://dmpilot.ru/api/links/' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://dmpilot.ru/api/links/' \
--header 'Authorization: Bearer {api_key}' \
| Parameters | Details | Beschrijving |
|---|---|---|
| page | Optioneel Integer | Het paginanummer waarvan u resultaten wilt. Standaard 1. |
| results_per_page | Optioneel Integer | Hoeveel resultaten u per pagina wilt. Toegestane waarden zijn: 10 , 25 , 50 , 100 , 250 , 500 , 1000. Standaard 25. |
{
"data": [
{
"id": 1,
"project_id": null,
"domain_id": 0,
"type": "link",
"url": "example",
"location_url": "https://example.com/",
"settings": {
"password": null,
"sensitive_content": false
},
"clicks": 10,
"order": 0,
"start_date": null,
"end_date": null,
"datetime": "2025-11-29 17:47:40",
}
],
"meta": {
"page": 1,
"results_per_page": 25,
"total": 1,
"total_pages": 1
},
"links": {
"first": "https://dmpilot.ru/api/links?page=1",
"last": "https://dmpilot.ru/api/links?page=1",
"next": null,
"prev": null,
"self": "https://dmpilot.ru/api/links?page=1"
}
}
GET https://dmpilot.ru/api/links/{link_id}
curl --request GET \
--url 'https://dmpilot.ru/api/links/{link_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://dmpilot.ru/api/links/{link_id}' \
--header 'Authorization: Bearer {api_key}' \
{
"data": {
"id": 1,
"project_id": null,
"domain_id": 0,
"type": "link",
"url": "example",
"location_url": "https://example.com/",
"settings": {
"password": null,
"sensitive_content": false
},
"clicks": 10,
"order": 0,
"start_date": null,
"end_date": null,
"datetime": "2025-11-29 17:47:40",
}
}
POST https://dmpilot.ru/api/links
| Parameters | Details | Beschrijving |
|---|---|---|
| type | Optioneel String | link |
| location_url | Verplicht String | De URL van de bestemming.Beschikbaar wanneer: is_bulk = 0 |
| location_urls | Verplicht String | De URL van de bestemming.Beschikbaar wanneer: is_bulk = 1 |
| url | Optioneel String | De URL alias van de gegenereerde link. Laat leeg voor een willekeurig gegenereerde alias.Beschikbaar wanneer: is_bulk = 0 |
| is_bulk | Optioneel Boolean | |
| domain_id | Optioneel Integer | - |
| project_id | Optioneel Integer | - |
| pixels_ids | Optioneel Array Integer | - |
| email_reports | Optioneel Array | Notificatie handler ids |
| schedule | Optioneel Boolean | - |
| start_date | Optioneel String | Beschikbaar wanneer: schedule = true |
| end_date | Optioneel String | Beschikbaar wanneer: schedule = true |
| clicks_limit | Optioneel Integer | - |
| expiration_url | Optioneel String | - |
| sensitive_content | Optioneel Boolean | - |
| http_status_code | Optioneel Integer | Toegestane waarden: 301, 302, 307, 308 |
| app_linking_is_enabled | Optioneel Boolean | - |
| cloaking_is_enabled | Optioneel Boolean | - |
| cloaking_title | Optioneel String | - |
| cloaking_meta_description | Optioneel String | - |
| cloaking_custom_js | Optioneel String | - |
| cloaking_favicon | Optioneel Bestand | - |
| cloaking_opengraph | Optioneel Bestand | - |
| password | Optioneel String | - |
| forward_query_parameters_is_enabled | Optioneel Boolean | - |
| utm_source | Optioneel String | - |
| utm_medium | Optioneel String | - |
| utm_campaign | Optioneel String | - |
| targeting_type | Optioneel String | continent_code , country_code , device_type , browser_language , rotation , os_name , browser_name |
| targeting_continent_code_key[index] | Optioneel String | Beschikbaar wanneer: targeting_type = continent_code |
| targeting_continent_code_value[index] | Optioneel String | Beschikbaar wanneer: targeting_type = continent_code |
| targeting_country_code_key[index] | Optioneel String | Beschikbaar wanneer: targeting_type = country_code |
| targeting_country_code_value[index] | Optioneel String | Beschikbaar wanneer: targeting_type = country_code |
| targeting_city_name_key[index] | Optioneel String | Beschikbaar wanneer: targeting_type = city_name |
| targeting_city_name_value[index] | Optioneel String | Beschikbaar wanneer: targeting_type = city_name |
| targeting_device_type_key[index] | Optioneel String | Beschikbaar wanneer: targeting_type = device_type |
| targeting_device_type_value[index] | Optioneel String | Beschikbaar wanneer: targeting_type = device_type |
| targeting_browser_language_key[index] | Optioneel String | Beschikbaar wanneer: targeting_type = browser_language |
| targeting_browser_language_value[index] | Optioneel String | Beschikbaar wanneer: targeting_type = browser_language |
| targeting_rotation_key[index] | Optioneel String | Beschikbaar wanneer: targeting_type = rotation |
| targeting_rotation_value[index] | Optioneel String | Beschikbaar wanneer: targeting_type = rotation |
| targeting_os_name_key[index] | Optioneel String | Beschikbaar wanneer: targeting_type = os_name |
| targeting_os_name_value[index] | Optioneel String | Beschikbaar wanneer: targeting_type = os_name |
| targeting_browser_name_key[index] | Optioneel String | Beschikbaar wanneer: targeting_type = browser_name |
| targeting_browser_name_value[index] | Optioneel String | Beschikbaar wanneer: targeting_type = browser_name |
curl --request POST \
--url 'https://dmpilot.ru/api/links' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'url=example' \
--form 'location_url=https://dmpilot.ru/' \
--url 'https://dmpilot.ru/api/links' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'url=example' \
--form 'location_url=https://dmpilot.ru/' \
{
"data": {
"id": 1
}
}
POST https://dmpilot.ru/api/links/{link_id}
| Parameters | Details | Beschrijving |
|---|---|---|
| location_url | Optioneel String | De URL van de bestemming. |
| url | Optioneel String | De URL alias van de gegenereerde link. Laat leeg voor een willekeurig gegenereerde alias. |
| domain_id | Optioneel Integer | - |
| project_id | Optioneel Integer | - |
| pixels_ids | Optioneel Array Integer | - |
| email_reports | Optioneel Array | Notificatie handler ids |
| schedule | Optioneel Boolean | - |
| start_date | Optioneel String | Beschikbaar wanneer: schedule = true |
| end_date | Optioneel String | Beschikbaar wanneer: schedule = true |
| clicks_limit | Optioneel Integer | - |
| expiration_url | Optioneel String | - |
| sensitive_content | Optioneel Boolean | - |
| http_status_code | Optioneel Integer | Toegestane waarden: 301, 302, 307, 308 |
| app_linking_is_enabled | Optioneel Boolean | - |
| cloaking_is_enabled | Optioneel Boolean | - |
| cloaking_title | Optioneel String | - |
| cloaking_meta_description | Optioneel String | - |
| cloaking_custom_js | Optioneel String | - |
| cloaking_favicon | Optioneel Bestand | - |
| cloaking_opengraph | Optioneel Bestand | - |
| password | Optioneel String | - |
| forward_query_parameters_is_enabled | Optioneel Boolean | - |
| utm_source | Optioneel String | - |
| utm_medium | Optioneel String | - |
| utm_campaign | Optioneel String | - |
| targeting_type | Optioneel String | continent_code , country_code , device_type , browser_language , rotation , os_name , browser_name |
| targeting_continent_code_key[index] | Optioneel String | Beschikbaar wanneer: targeting_type = continent_code |
| targeting_continent_code_value[index] | Optioneel String | Beschikbaar wanneer: targeting_type = continent_code |
| targeting_country_code_key[index] | Optioneel String | Beschikbaar wanneer: targeting_type = country_code |
| targeting_country_code_value[index] | Optioneel String | Beschikbaar wanneer: targeting_type = country_code |
| targeting_city_name_key[index] | Optioneel String | Beschikbaar wanneer: targeting_type = city_name |
| targeting_city_name_value[index] | Optioneel String | Beschikbaar wanneer: targeting_type = city_name |
| targeting_device_type_key[index] | Optioneel String | Beschikbaar wanneer: targeting_type = device_type |
| targeting_device_type_value[index] | Optioneel String | Beschikbaar wanneer: targeting_type = device_type |
| targeting_browser_language_key[index] | Optioneel String | Beschikbaar wanneer: targeting_type = browser_language |
| targeting_browser_language_value[index] | Optioneel String | Beschikbaar wanneer: targeting_type = browser_language |
| targeting_rotation_key[index] | Optioneel String | Beschikbaar wanneer: targeting_type = rotation |
| targeting_rotation_value[index] | Optioneel String | Beschikbaar wanneer: targeting_type = rotation |
| targeting_os_name_key[index] | Optioneel String | Beschikbaar wanneer: targeting_type = os_name |
| targeting_os_name_value[index] | Optioneel String | Beschikbaar wanneer: targeting_type = os_name |
| targeting_browser_name_key[index] | Optioneel String | Beschikbaar wanneer: targeting_type = browser_name |
| targeting_browser_name_value[index] | Optioneel String | Beschikbaar wanneer: targeting_type = browser_name |
curl --request POST \
--url 'https://dmpilot.ru/api/links/{link_id}' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'is_enabled=0' \
--url 'https://dmpilot.ru/api/links/{link_id}' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'is_enabled=0' \
{
"data": {
"id": 1
}
}
DELETE https://dmpilot.ru/api/links/{link_id}
curl --request DELETE \
--url 'https://dmpilot.ru/api/links/{link_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://dmpilot.ru/api/links/{link_id}' \
--header 'Authorization: Bearer {api_key}' \