web
POST
https://lucidace.com /v1/projects/{project_id}/web/short-links Scope insight:writeParameters
project_idstringpathrequiredRequest body
application/json
codestring3-64 of
[A-Za-z0-9_-]; omitted = a random 7-character code.target_urlstringrequiredAbsolute
http(s):// URL, at most 2048 characters (usually the UTM builder's output).titlestring{
"code": "string",
"target_url": "string",
"title": "string"
}Code samples
cURL
curl -X POST "https://lucidace.com/v1/projects/{project_id}/web/short-links" \
-H "Content-Type: application/json" \
-d '{"code":"string","target_url":"string","title":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
201
Example
{
"clicks": 0,
"code": "string",
"created_at": "2024-01-01T00:00:00Z",
"id": "string",
"last_clicked_at": "2024-01-01T00:00:00Z",
"target_url": "string",
"title": "string"
}Schema
clicksintegerrequiredcodestringrequiredPath segment after
/l/ on the gateway.created_atstringrequiredidstringrequiredlast_clicked_atstringtarget_urlstringrequiredtitlestringrequired400
403
404
409
DELETE
https://lucidace.com /v1/projects/{project_id}/web/short-links/{id} Scope insight:writeParameters
project_idstringpathrequiredidstringpathrequiredCode samples
cURL
curl -X DELETE "https://lucidace.com/v1/projects/{project_id}/web/short-links/{id}"TypeScript
Python
Go
PHP
Ruby
Java
Responses
204
403
404
GET
https://lucidace.com /v1/projects/{project_id}/web/time-on-page Scope insight:readParameters
project_idstringpathrequiredfromstringquerytostringquerylimitintegerqueryhoststringqueryCode samples
cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/web/time-on-page"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200
Example
[
{
"avg_time_on_page_s": 0,
"key": "string",
"views": 0
}
]Schema
avg_time_on_page_snumberkeystringrequiredviewsintegerrequired$pageleave events that measured a visible time.400
404
503
Updated