Punto final de API:
https://www.corta.es/api/v1/links
Ejemplo de solicitud:
curl --location --request GET 'https://www.corta.es/api/v1/links' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {api_key}'
searchsearch_bytitle for Título, alias for Alias, url for URL. Valor predeterminado: title.status0 for Todos, 1 for Activo, 2 for Expirado, 3 for Deshabilitado. Valor predeterminado: 0.space_iddomain_idpixel_idsort_byid for Fecha de creación, clicks for Clics, title for Título, alias for Alias, url for URL. Valor predeterminado: id.sortdesc for Descendente, asc for Ascendente. Valor predeterminado: desc.per_page10, 25, 50, 100. Valor predeterminado: 100.Punto final de API:
https://www.corta.es/api/v1/links/{id}
Ejemplo de solicitud:
curl --location --request GET 'https://www.corta.es/api/v1/links/{id}' \ --header 'Accept: application/json' \ --header 'Authorization: Bearer {api_key}'
Punto final de API:
https://www.corta.es/api/v1/links
Ejemplo de solicitud:
curl --location --request POST 'https://www.corta.es/api/v1/links' \ --header 'Content-Type: application/x-www-form-urlencoded' \ --header 'Authorization: Bearer {api_key}' \ --data-urlencode 'url={url}' \ --data-urlencode 'domain={id}'
urldomain_idaliasspace_idpixel_ids[]redirect_passwordsensitive_content0 for No, 1 for Sí. Valor predeterminado: 0.privacy0 for Público, 1 for Privado, 2 for Contraseña. Valor predeterminado: 0.passwordprivacy field set to 2.active_period_start_atY-m-d H:i format.active_period_end_atY-m-d H:i format.clicks_limitexpiration_urltargets_typecontinents for Continents, countries for Countries, operating_systems for Operating systems, browsers for Browsers, languages for Languages, devices for Devices, rotations for Rotations.targets[index][key]targets_type=country, the value must be in ISO 3166-1 alpha-2 format.targets_type=operating_systems, the possible values are iOS, Android, Windows, OS X, Linux, Ubuntu, Chrome OS.targets_type=browsers, the possible values are: Chrome, Chromium, Firefox, Firefox Mobile, Edge, Internet Explorer, Mobile Internet Explorer, Vivaldi, Brave, Safari, Opera, Opera Mini, Opera Mobile, Opera Touch, Yandex Browser, UC Browser, Samsung Internet, QQ Browser, BlackBerry Browser, Maxtho.targets_type=devices, the possible values are: Desktop, Mobile, Tablet, Watch, Television.targets_type=languages, the value must be in ISO 639-1 alpha-2 format.targets_type=continents, the possible values are: AF for Africa, AN for Antarctica, AS for Asia, EU for Europe, NA for North America, OC for Oceania, SA for South America.targets[index][value]Punto final de API:
https://www.corta.es/api/v1/links/{id}
Ejemplo de solicitud:
curl --location --request PUT 'https://www.corta.es/api/v1/links/{id}' \ --header 'Content-Type: application/x-www-form-urlencoded' \ --header 'Authorization: Bearer {api_key}' \ --data-urlencode 'url={url}'
urlaliasspace_idpixel_ids[]redirect_passwordsensitive_content0 for No, 1 for Sí.privacy0 for Público, 1 for Privado, 2 for Contraseña.passwordprivacy field set to 2.active_period_start_atY-m-d H:i format.active_period_end_atY-m-d H:i format.clicks_limitexpiration_urltargets_typecontinents for Continents, countries for Countries, operating_systems for Operating systems, browsers for Browsers, languages for Languages, devices for Devices, rotations for Rotations.targets[index][key]targets_type=country, the value must be in ISO 3166-1 alpha-2 format.targets_type=operating_systems, the possible values are iOS, Android, Windows, OS X, Linux, Ubuntu, Chrome OS.targets_type=browsers, the possible values are: Chrome, Chromium, Firefox, Firefox Mobile, Edge, Internet Explorer, Mobile Internet Explorer, Vivaldi, Brave, Safari, Opera, Opera Mini, Opera Mobile, Opera Touch, Yandex Browser, UC Browser, Samsung Internet, QQ Browser, BlackBerry Browser, Maxtho.targets_type=devices, the possible values are: Desktop, Mobile, Tablet, Watch, Television.targets_type=languages, the value must be in ISO 639-1 alpha-2 format.targets_type=continents, the possible values are: AF for Africa, AN for Antarctica, AS for Asia, EU for Europe, NA for North America, OC for Oceania, SA for South America.targets[index][value]Punto final de API:
https://www.corta.es/api/v1/links/{id}
Ejemplo de solicitud:
curl --location --request DELETE 'https://www.corta.es/api/v1/links/{id}' \ --header 'Authorization: Bearer {api_key}'