Liens
GET https://u.page/api/links/
curl --request GET \
--url 'https://u.page/api/links/' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://u.page/api/links/' \
--header 'Authorization: Bearer {api_key}' \
| Paramètres | Détails | Désignation |
|---|---|---|
| search | Facultatif Chaîne | La chaîne de recherche. |
| search_by | Facultatif Chaîne | Quel champ recherchez-vous ? Les valeurs autorisées sont : url, location_url. |
| is_enabled | Facultatif booléen | |
| domain_id | Facultatif Integer | |
| type | Facultatif Chaîne |
biolink, link, file, vcard, event, static |
| datetime_field | Facultatif Chaîne | Valeurs autorisées : datetime, last_datetime |
| datetime_start | Facultatif Chaîne | Filtrer les résultats à partir de cette date. Y-m-d H:i:s format. |
| datetime_end | Facultatif Chaîne | Filtrer les résultats jusqu'à cette date. Y-m-d H:i:s format. |
| order_by | Facultatif Chaîne | Quel champ pour classer les résultats. Les valeurs autorisées sont : link_id, datetime, last_datetime, clicks, url. |
| order_type | Facultatif Chaîne | Les valeurs autorisées sont : ASC pour l'ordre croissant, et DESC pour l'ordre décroissant. |
| page | Facultatif Integer | Le numéro de page que vous souhaitez afficher correspond à 1. |
| results_per_page | Facultatif Integer | Combien de résultats vous voulez par page. Les valeurs autorisées sont : 10, 25, 50, 100, 250, 500, 1000. Valeur par défaut : 25. |
{
"data": [
{
"id": 1,
"user_id": 1,
"project_id": 1,
"domain_id": 1,
"pixels_ids": [],
"email_reports": [],
"biolink_theme_id": 1,
"type": "Example",
"url": "https://example.com/",
"location_url": "https://example.com/",
"settings": [],
"clicks": 1,
"start_date": "Example",
"end_date": "Example",
"is_verified": true,
"is_enabled": true,
"last_datetime": null,
"datetime": "2026-11-26 15:42:14"
}
],
"meta": {
"page": 1,
"total_pages": 1,
"results_per_page": 25,
"total_results": 1
},
"links": {
"first": "https://u.page/api/links?page=1",
"last": "https://u.page/api/links?page=1",
"next": null,
"prev": null,
"self": "https://u.page/api/links?page=1"
}
}
GET https://u.page/api/links/{link_id}
curl --request GET \
--url 'https://u.page/api/links/{link_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://u.page/api/links/{link_id}' \
--header 'Authorization: Bearer {api_key}' \
{
"data": {
"id": 1,
"user_id": 1,
"project_id": 1,
"domain_id": 1,
"pixels_ids": [],
"email_reports": [],
"biolink_theme_id": 1,
"type": "Example",
"url": "https://example.com/",
"location_url": "https://example.com/",
"settings": [],
"clicks": 1,
"start_date": "Example",
"end_date": "Example",
"is_verified": true,
"is_enabled": true,
"last_datetime": null,
"datetime": "2026-11-26 15:42:14"
}
}
POST https://u.page/api/links
| Paramètres | Détails | Désignation |
|---|---|---|
| type | Facultatif Chaîne | link |
| location_url | Requis Chaîne | URL de la destination.Disponible quand: is_bulk = 0 |
| location_urls | Requis Chaîne | URL de la destination.Disponible quand: is_bulk = 1 |
| url | Facultatif Chaîne | L'alias URL du lien généré. Laissez vide pour un lien généré aléatoirement.Disponible quand: is_bulk = 0 |
| is_bulk | Facultatif booléen | |
| domain_id | Facultatif Integer | - |
| project_id | Facultatif Integer | - |
| pixels_ids | Facultatif Array Integer | - |
| email_reports | Facultatif Array | Identifiants de notification |
| schedule | Facultatif booléen | - |
| start_date | Facultatif Chaîne | Disponible quand: schedule = true |
| end_date | Facultatif Chaîne | Disponible quand: schedule = true |
| clicks_limit | Facultatif Integer | - |
| expiration_url | Facultatif Chaîne | - |
| leap_link | Facultatif Chaîne | - |
| sensitive_content | Facultatif booléen | - |
| http_status_code | Facultatif Integer | Valeurs autorisées : 301, 302, 307, 308 |
| app_linking_is_enabled | Facultatif booléen | - |
| cloaking_is_enabled | Facultatif booléen | - |
| cloaking_title | Facultatif Chaîne | - |
| cloaking_meta_description | Facultatif Chaîne | - |
| cloaking_custom_js | Facultatif Chaîne | - |
| cloaking_favicon | Facultatif Fichier | - |
| cloaking_opengraph | Facultatif Fichier | - |
| password | Facultatif Chaîne | - |
| forward_query_parameters_is_enabled | Facultatif booléen | - |
| seo_block | Facultatif booléen | - |
| utm_source | Facultatif Chaîne | - |
| utm_medium | Facultatif Chaîne | - |
| utm_campaign | Facultatif Chaîne | - |
| targeting_type | Facultatif Chaîne | continent_code, country_code, device_type, browser_language, rotation, os_name, browser_name |
| targeting_continent_code_key[index] | Facultatif Chaîne | Disponible quand: targeting_type = continent_code |
| targeting_continent_code_value[index] | Facultatif Chaîne | Disponible quand: targeting_type = continent_code |
| targeting_country_code_key[index] | Facultatif Chaîne | Disponible quand: targeting_type = country_code |
| targeting_country_code_value[index] | Facultatif Chaîne | Disponible quand: targeting_type = country_code |
| targeting_city_name_key[index] | Facultatif Chaîne | Disponible quand: targeting_type = city_name |
| targeting_city_name_value[index] | Facultatif Chaîne | Disponible quand: targeting_type = city_name |
| targeting_device_type_key[index] | Facultatif Chaîne | Disponible quand: targeting_type = device_type |
| targeting_device_type_value[index] | Facultatif Chaîne | Disponible quand: targeting_type = device_type |
| targeting_browser_language_key[index] | Facultatif Chaîne | Disponible quand: targeting_type = browser_language |
| targeting_browser_language_value[index] | Facultatif Chaîne | Disponible quand: targeting_type = browser_language |
| targeting_rotation_key[index] | Facultatif Chaîne | Disponible quand: targeting_type = rotation |
| targeting_rotation_value[index] | Facultatif Chaîne | Disponible quand: targeting_type = rotation |
| targeting_os_name_key[index] | Facultatif Chaîne | Disponible quand: targeting_type = os_name |
| targeting_os_name_value[index] | Facultatif Chaîne | Disponible quand: targeting_type = os_name |
| targeting_browser_name_key[index] | Facultatif Chaîne | Disponible quand: targeting_type = browser_name |
| targeting_browser_name_value[index] | Facultatif Chaîne | Disponible quand: targeting_type = browser_name |
| is_enabled | Facultatif booléen | - |
curl --request POST \
--url 'https://u.page/api/links' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'url=example' \
--form 'location_url=https://u.page/' \
--url 'https://u.page/api/links' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'url=example' \
--form 'location_url=https://u.page/' \
{
"data": {
"id": 1
}
}
POST https://u.page/api/links/{link_id}
| Paramètres | Détails | Désignation |
|---|---|---|
| location_url | Facultatif Chaîne | URL de la destination. |
| url | Facultatif Chaîne | L'alias URL du lien généré. Laissez vide pour un lien généré aléatoirement. |
| domain_id | Facultatif Integer | - |
| project_id | Facultatif Integer | - |
| pixels_ids | Facultatif Array Integer | - |
| email_reports | Facultatif Array | Identifiants de notification |
| schedule | Facultatif booléen | - |
| start_date | Facultatif Chaîne | Disponible quand: schedule = true |
| end_date | Facultatif Chaîne | Disponible quand: schedule = true |
| clicks_limit | Facultatif Integer | - |
| expiration_url | Facultatif Chaîne | - |
| leap_link | Facultatif Chaîne | - |
| sensitive_content | Facultatif booléen | - |
| http_status_code | Facultatif Integer | Valeurs autorisées : 301, 302, 307, 308 |
| app_linking_is_enabled | Facultatif booléen | - |
| cloaking_is_enabled | Facultatif booléen | - |
| cloaking_title | Facultatif Chaîne | - |
| cloaking_meta_description | Facultatif Chaîne | - |
| cloaking_custom_js | Facultatif Chaîne | - |
| cloaking_favicon | Facultatif Fichier | - |
| cloaking_opengraph | Facultatif Fichier | - |
| password | Facultatif Chaîne | - |
| forward_query_parameters_is_enabled | Facultatif booléen | - |
| seo_block | Facultatif booléen | - |
| utm_source | Facultatif Chaîne | - |
| utm_medium | Facultatif Chaîne | - |
| utm_campaign | Facultatif Chaîne | - |
| targeting_type | Facultatif Chaîne | continent_code, country_code, device_type, browser_language, rotation, os_name, browser_name |
| targeting_continent_code_key[index] | Facultatif Chaîne | Disponible quand: targeting_type = continent_code |
| targeting_continent_code_value[index] | Facultatif Chaîne | Disponible quand: targeting_type = continent_code |
| targeting_country_code_key[index] | Facultatif Chaîne | Disponible quand: targeting_type = country_code |
| targeting_country_code_value[index] | Facultatif Chaîne | Disponible quand: targeting_type = country_code |
| targeting_city_name_key[index] | Facultatif Chaîne | Disponible quand: targeting_type = city_name |
| targeting_city_name_value[index] | Facultatif Chaîne | Disponible quand: targeting_type = city_name |
| targeting_device_type_key[index] | Facultatif Chaîne | Disponible quand: targeting_type = device_type |
| targeting_device_type_value[index] | Facultatif Chaîne | Disponible quand: targeting_type = device_type |
| targeting_browser_language_key[index] | Facultatif Chaîne | Disponible quand: targeting_type = browser_language |
| targeting_browser_language_value[index] | Facultatif Chaîne | Disponible quand: targeting_type = browser_language |
| targeting_rotation_key[index] | Facultatif Chaîne | Disponible quand: targeting_type = rotation |
| targeting_rotation_value[index] | Facultatif Chaîne | Disponible quand: targeting_type = rotation |
| targeting_os_name_key[index] | Facultatif Chaîne | Disponible quand: targeting_type = os_name |
| targeting_os_name_value[index] | Facultatif Chaîne | Disponible quand: targeting_type = os_name |
| targeting_browser_name_key[index] | Facultatif Chaîne | Disponible quand: targeting_type = browser_name |
| targeting_browser_name_value[index] | Facultatif Chaîne | Disponible quand: targeting_type = browser_name |
| is_enabled | Facultatif booléen | - |
| link_id | Facultatif Integer | - |
curl --request POST \
--url 'https://u.page/api/links/{link_id}' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'is_enabled=0' \
--url 'https://u.page/api/links/{link_id}' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'is_enabled=0' \
{
"data": {
"id": 1,
"user_id": 1,
"project_id": 1,
"domain_id": 1,
"pixels_ids": [],
"email_reports": [],
"biolink_theme_id": 1,
"type": "Example",
"url": "https://example.com/",
"location_url": "https://example.com/",
"settings": [],
"clicks": 1,
"start_date": "Example",
"end_date": "Example",
"is_verified": 1,
"is_enabled": 1,
"last_datetime": null,
"datetime": "2026-11-26 15:42:14"
}
}
DELETE https://u.page/api/links/{link_id}
curl --request DELETE \
--url 'https://u.page/api/links/{link_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://u.page/api/links/{link_id}' \
--header 'Authorization: Bearer {api_key}' \