Ligazóns
GET https://tistos.com/api/links/
curl --request GET \
--url 'https://tistos.com/api/links/' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://tistos.com/api/links/' \
--header 'Authorization: Bearer {api_key}' \
Parámetros | Detalles | Descrición |
---|---|---|
page | Opcional Enteiro | O número de páxina do que desexa resultados. Por defecto é 1 . |
results_per_page | Opcional Enteiro | Cantos resultados desexa por páxina. Os valores permitidos son: 10 , 25 , 50 , 100 , 250 , 500 , 1000 . O valor predeterminado é 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-10-16 10:56:25", } ], "meta": { "page": 1, "results_per_page": 25, "total": 1, "total_pages": 1 }, "links": { "first": "https://tistos.com/api/links?page=1", "last": "https://tistos.com/api/links?page=1", "next": null, "prev": null, "self": "https://tistos.com/api/links?page=1" } }
GET https://tistos.com/api/links/{link_id}
curl --request GET \
--url 'https://tistos.com/api/links/{link_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://tistos.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-10-16 10:56:25", } }
POST https://tistos.com/api/links
Parámetros | Detalles | Descrición |
---|---|---|
type | Opcional Corda | link |
location_url | Requirido Corda | A URL do destino.Dispoñible cando: is_bulk = 0 |
location_urls | Requirido Corda | A URL do destino.Dispoñible cando: is_bulk = 1 |
url | Opcional Corda | O alias de URL da ligazón xerada. Déixeo en branco para xerar un aleatorio.Dispoñible cando: is_bulk = 0 |
is_bulk | Opcional Boolean | |
domain_id | Opcional Enteiro | - |
project_id | Opcional Enteiro | - |
pixels_ids | Opcional Array Enteiro | - |
email_reports | Opcional Array | ID dos xestores de notificacións |
schedule | Opcional Boolean | - |
start_date | Opcional Corda | Dispoñible cando: schedule = true |
end_date | Opcional Corda | Dispoñible cando: schedule = true |
clicks_limit | Opcional Enteiro | - |
expiration_url | Opcional Corda | - |
sensitive_content | Opcional Boolean | - |
http_status_code | Opcional Enteiro | Valores permitidos: 301 , 302 , 307 , 308 |
app_linking_is_enabled | Opcional Boolean | - |
cloaking_is_enabled | Opcional Boolean | - |
cloaking_title | Opcional Corda | - |
cloaking_meta_description | Opcional Corda | - |
cloaking_custom_js | Opcional Corda | - |
cloaking_favicon | Opcional Ficheiro | - |
cloaking_opengraph | Opcional Ficheiro | - |
password | Opcional Corda | - |
forward_query_parameters_is_enabled | Opcional Boolean | - |
utm_source | Opcional Corda | - |
utm_medium | Opcional Corda | - |
utm_campaign | Opcional Corda | - |
targeting_type | Opcional Corda | continent_code , country_code , device_type , browser_language , rotation , os_name , browser_name |
targeting_continent_code_key[index] | Opcional Corda | Dispoñible cando: targeting_type = continent_code |
targeting_continent_code_value[index] | Opcional Corda | Dispoñible cando: targeting_type = continent_code |
targeting_country_code_key[index] | Opcional Corda | Dispoñible cando: targeting_type = country_code |
targeting_country_code_value[index] | Opcional Corda | Dispoñible cando: targeting_type = country_code |
targeting_city_name_key[index] | Opcional Corda | Dispoñible cando: targeting_type = city_name |
targeting_city_name_value[index] | Opcional Corda | Dispoñible cando: targeting_type = city_name |
targeting_device_type_key[index] | Opcional Corda | Dispoñible cando: targeting_type = device_type |
targeting_device_type_value[index] | Opcional Corda | Dispoñible cando: targeting_type = device_type |
targeting_browser_language_key[index] | Opcional Corda | Dispoñible cando: targeting_type = browser_language |
targeting_browser_language_value[index] | Opcional Corda | Dispoñible cando: targeting_type = browser_language |
targeting_rotation_key[index] | Opcional Corda | Dispoñible cando: targeting_type = rotation |
targeting_rotation_value[index] | Opcional Corda | Dispoñible cando: targeting_type = rotation |
targeting_os_name_key[index] | Opcional Corda | Dispoñible cando: targeting_type = os_name |
targeting_os_name_value[index] | Opcional Corda | Dispoñible cando: targeting_type = os_name |
targeting_browser_name_key[index] | Opcional Corda | Dispoñible cando: targeting_type = browser_name |
targeting_browser_name_value[index] | Opcional Corda | Dispoñible cando: targeting_type = browser_name |
curl --request POST \
--url 'https://tistos.com/api/links' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'url=example' \
--form 'location_url=https://tistos.com/' \
--url 'https://tistos.com/api/links' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'url=example' \
--form 'location_url=https://tistos.com/' \
{ "data": { "id": 1 } }
POST https://tistos.com/api/links/{link_id}
Parámetros | Detalles | Descrición |
---|---|---|
location_url | Opcional Corda | A URL do destino. |
url | Opcional Corda | O alias de URL da ligazón xerada. Déixeo en branco para xerar un aleatorio. |
domain_id | Opcional Enteiro | - |
project_id | Opcional Enteiro | - |
pixels_ids | Opcional Array Enteiro | - |
email_reports | Opcional Array | ID dos xestores de notificacións |
schedule | Opcional Boolean | - |
start_date | Opcional Corda | Dispoñible cando: schedule = true |
end_date | Opcional Corda | Dispoñible cando: schedule = true |
clicks_limit | Opcional Enteiro | - |
expiration_url | Opcional Corda | - |
sensitive_content | Opcional Boolean | - |
http_status_code | Opcional Enteiro | Valores permitidos: 301 , 302 , 307 , 308 |
app_linking_is_enabled | Opcional Boolean | - |
cloaking_is_enabled | Opcional Boolean | - |
cloaking_title | Opcional Corda | - |
cloaking_meta_description | Opcional Corda | - |
cloaking_custom_js | Opcional Corda | - |
cloaking_favicon | Opcional Ficheiro | - |
cloaking_opengraph | Opcional Ficheiro | - |
password | Opcional Corda | - |
forward_query_parameters_is_enabled | Opcional Boolean | - |
utm_source | Opcional Corda | - |
utm_medium | Opcional Corda | - |
utm_campaign | Opcional Corda | - |
targeting_type | Opcional Corda | continent_code , country_code , device_type , browser_language , rotation , os_name , browser_name |
targeting_continent_code_key[index] | Opcional Corda | Dispoñible cando: targeting_type = continent_code |
targeting_continent_code_value[index] | Opcional Corda | Dispoñible cando: targeting_type = continent_code |
targeting_country_code_key[index] | Opcional Corda | Dispoñible cando: targeting_type = country_code |
targeting_country_code_value[index] | Opcional Corda | Dispoñible cando: targeting_type = country_code |
targeting_city_name_key[index] | Opcional Corda | Dispoñible cando: targeting_type = city_name |
targeting_city_name_value[index] | Opcional Corda | Dispoñible cando: targeting_type = city_name |
targeting_device_type_key[index] | Opcional Corda | Dispoñible cando: targeting_type = device_type |
targeting_device_type_value[index] | Opcional Corda | Dispoñible cando: targeting_type = device_type |
targeting_browser_language_key[index] | Opcional Corda | Dispoñible cando: targeting_type = browser_language |
targeting_browser_language_value[index] | Opcional Corda | Dispoñible cando: targeting_type = browser_language |
targeting_rotation_key[index] | Opcional Corda | Dispoñible cando: targeting_type = rotation |
targeting_rotation_value[index] | Opcional Corda | Dispoñible cando: targeting_type = rotation |
targeting_os_name_key[index] | Opcional Corda | Dispoñible cando: targeting_type = os_name |
targeting_os_name_value[index] | Opcional Corda | Dispoñible cando: targeting_type = os_name |
targeting_browser_name_key[index] | Opcional Corda | Dispoñible cando: targeting_type = browser_name |
targeting_browser_name_value[index] | Opcional Corda | Dispoñible cando: targeting_type = browser_name |
curl --request POST \
--url 'https://tistos.com/api/links/{link_id}' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'is_enabled=0' \
--url 'https://tistos.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://tistos.com/api/links/{link_id}
curl --request DELETE \
--url 'https://tistos.com/api/links/{link_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://tistos.com/api/links/{link_id}' \
--header 'Authorization: Bearer {api_key}' \