Collegamenti
GET https://socilinkr.com/api/links/
curl --request GET \
--url 'https://socilinkr.com/api/links/' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://socilinkr.com/api/links/' \
--header 'Authorization: Bearer {api_key}' \
Parametri | Dettagli | Descrizione |
---|---|---|
page | Facoltativo Intero | Il numero di pagina da cui desideri i risultati. Predefinito a 1 . |
results_per_page | Facoltativo Intero | Quanti risultati vuoi per pagina. I valori consentiti sono: 10 , 25 , 50 , 100 , 250 , 500 , 1000 . Predefinito è 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-09-14 09:05:52", } ], "meta": { "page": 1, "results_per_page": 25, "total": 1, "total_pages": 1 }, "links": { "first": "https://socilinkr.com/api/links?page=1", "last": "https://socilinkr.com/api/links?page=1", "next": null, "prev": null, "self": "https://socilinkr.com/api/links?page=1" } }
GET https://socilinkr.com/api/links/{link_id}
curl --request GET \
--url 'https://socilinkr.com/api/links/{link_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://socilinkr.com/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-09-14 09:05:52", } }
POST https://socilinkr.com/api/links
Parametri | Dettagli | Descrizione |
---|---|---|
type | Facoltativo String | link |
location_url | Richiesto String | L'URL della destinazione.Disponibile quando: is_bulk = 0 |
location_urls | Richiesto String | L'URL della destinazione.Disponibile quando: is_bulk = 1 |
url | Facoltativo String | L'alias URL del link generato. Lascia vuoto per uno generato casualmente.Disponibile quando: is_bulk = 0 |
is_bulk | Facoltativo Boolean | |
domain_id | Facoltativo Intero | - |
project_id | Facoltativo Intero | - |
pixels_ids | Facoltativo Array Intero | - |
email_reports | Facoltativo Array | Notification handler ids |
schedule | Facoltativo Boolean | - |
start_date | Facoltativo String | Disponibile quando: schedule = true |
end_date | Facoltativo String | Disponibile quando: schedule = true |
clicks_limit | Facoltativo Intero | - |
expiration_url | Facoltativo String | - |
sensitive_content | Facoltativo Boolean | - |
http_status_code | Facoltativo Intero | Valori consentiti: 301 , 302 , 307 , 308 |
app_linking_is_enabled | Facoltativo Boolean | - |
cloaking_is_enabled | Facoltativo Boolean | - |
cloaking_title | Facoltativo String | - |
cloaking_meta_description | Facoltativo String | - |
cloaking_custom_js | Facoltativo String | - |
cloaking_favicon | Facoltativo File | - |
cloaking_opengraph | Facoltativo File | - |
password | Facoltativo String | - |
forward_query_parameters_is_enabled | Facoltativo Boolean | - |
utm_source | Facoltativo String | - |
utm_medium | Facoltativo String | - |
utm_campaign | Facoltativo String | - |
targeting_type | Facoltativo String | continent_code , country_code , device_type , browser_language , rotation , os_name , browser_name |
targeting_continent_code_key[index] | Facoltativo String | Disponibile quando: targeting_type = continent_code |
targeting_continent_code_value[index] | Facoltativo String | Disponibile quando: targeting_type = continent_code |
targeting_country_code_key[index] | Facoltativo String | Disponibile quando: targeting_type = country_code |
targeting_country_code_value[index] | Facoltativo String | Disponibile quando: targeting_type = country_code |
targeting_city_name_key[index] | Facoltativo String | Disponibile quando: targeting_type = city_name |
targeting_city_name_value[index] | Facoltativo String | Disponibile quando: targeting_type = city_name |
targeting_device_type_key[index] | Facoltativo String | Disponibile quando: targeting_type = device_type |
targeting_device_type_value[index] | Facoltativo String | Disponibile quando: targeting_type = device_type |
targeting_browser_language_key[index] | Facoltativo String | Disponibile quando: targeting_type = browser_language |
targeting_browser_language_value[index] | Facoltativo String | Disponibile quando: targeting_type = browser_language |
targeting_rotation_key[index] | Facoltativo String | Disponibile quando: targeting_type = rotation |
targeting_rotation_value[index] | Facoltativo String | Disponibile quando: targeting_type = rotation |
targeting_os_name_key[index] | Facoltativo String | Disponibile quando: targeting_type = os_name |
targeting_os_name_value[index] | Facoltativo String | Disponibile quando: targeting_type = os_name |
targeting_browser_name_key[index] | Facoltativo String | Disponibile quando: targeting_type = browser_name |
targeting_browser_name_value[index] | Facoltativo String | Disponibile quando: targeting_type = browser_name |
curl --request POST \
--url 'https://socilinkr.com/api/links' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'url=example' \
--form 'location_url=https://socilinkr.com/' \
--url 'https://socilinkr.com/api/links' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'url=example' \
--form 'location_url=https://socilinkr.com/' \
{ "data": { "id": 1 } }
POST https://socilinkr.com/api/links/{link_id}
Parametri | Dettagli | Descrizione |
---|---|---|
location_url | Facoltativo String | L'URL della destinazione. |
url | Facoltativo String | L'alias URL del link generato. Lascia vuoto per uno generato casualmente. |
domain_id | Facoltativo Intero | - |
project_id | Facoltativo Intero | - |
pixels_ids | Facoltativo Array Intero | - |
email_reports | Facoltativo Array | Notification handler ids |
schedule | Facoltativo Boolean | - |
start_date | Facoltativo String | Disponibile quando: schedule = true |
end_date | Facoltativo String | Disponibile quando: schedule = true |
clicks_limit | Facoltativo Intero | - |
expiration_url | Facoltativo String | - |
sensitive_content | Facoltativo Boolean | - |
http_status_code | Facoltativo Intero | Valori consentiti: 301 , 302 , 307 , 308 |
app_linking_is_enabled | Facoltativo Boolean | - |
cloaking_is_enabled | Facoltativo Boolean | - |
cloaking_title | Facoltativo String | - |
cloaking_meta_description | Facoltativo String | - |
cloaking_custom_js | Facoltativo String | - |
cloaking_favicon | Facoltativo File | - |
cloaking_opengraph | Facoltativo File | - |
password | Facoltativo String | - |
forward_query_parameters_is_enabled | Facoltativo Boolean | - |
utm_source | Facoltativo String | - |
utm_medium | Facoltativo String | - |
utm_campaign | Facoltativo String | - |
targeting_type | Facoltativo String | continent_code , country_code , device_type , browser_language , rotation , os_name , browser_name |
targeting_continent_code_key[index] | Facoltativo String | Disponibile quando: targeting_type = continent_code |
targeting_continent_code_value[index] | Facoltativo String | Disponibile quando: targeting_type = continent_code |
targeting_country_code_key[index] | Facoltativo String | Disponibile quando: targeting_type = country_code |
targeting_country_code_value[index] | Facoltativo String | Disponibile quando: targeting_type = country_code |
targeting_city_name_key[index] | Facoltativo String | Disponibile quando: targeting_type = city_name |
targeting_city_name_value[index] | Facoltativo String | Disponibile quando: targeting_type = city_name |
targeting_device_type_key[index] | Facoltativo String | Disponibile quando: targeting_type = device_type |
targeting_device_type_value[index] | Facoltativo String | Disponibile quando: targeting_type = device_type |
targeting_browser_language_key[index] | Facoltativo String | Disponibile quando: targeting_type = browser_language |
targeting_browser_language_value[index] | Facoltativo String | Disponibile quando: targeting_type = browser_language |
targeting_rotation_key[index] | Facoltativo String | Disponibile quando: targeting_type = rotation |
targeting_rotation_value[index] | Facoltativo String | Disponibile quando: targeting_type = rotation |
targeting_os_name_key[index] | Facoltativo String | Disponibile quando: targeting_type = os_name |
targeting_os_name_value[index] | Facoltativo String | Disponibile quando: targeting_type = os_name |
targeting_browser_name_key[index] | Facoltativo String | Disponibile quando: targeting_type = browser_name |
targeting_browser_name_value[index] | Facoltativo String | Disponibile quando: targeting_type = browser_name |
curl --request POST \
--url 'https://socilinkr.com/api/links/{link_id}' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'is_enabled=0' \
--url 'https://socilinkr.com/api/links/{link_id}' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'is_enabled=0' \
{ "data": { "id": 1 } }
DELETE https://socilinkr.com/api/links/{link_id}
curl --request DELETE \
--url 'https://socilinkr.com/api/links/{link_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://socilinkr.com/api/links/{link_id}' \
--header 'Authorization: Bearer {api_key}' \