web

Embed
Preview of the card
<a href="https://lucidace.com/docs/ref-web"><img src="https://lucidace.com/docs/_api/public/orgs/af34862a-c837-4478-8335-0505efe40459/spaces/da916cd3-c0fc-4b63-b971-b3c13623daf3/pages/c98607d6-613a-4769-ba8d-1fd655470740/social-card.svg?v=3e7ae33eec8b" alt="web" width="600" height="315"></a>
POSThttps://lucidace.com/v1/projects/{project_id}/web/short-linksScope insight:write

Parameters

project_idstringpathrequired

Request body

application/json
codestring
3-64 of [A-Za-z0-9_-]; omitted = a random 7-character code.
target_urlstringrequired
Absolute 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
clicksintegerrequired
codestringrequired
Path segment after /l/ on the gateway.
created_atstringrequired
idstringrequired
last_clicked_atstring
target_urlstringrequired
titlestringrequired
400
403
404
409
DELETEhttps://lucidace.com/v1/projects/{project_id}/web/short-links/{id}Scope insight:write

Parameters

project_idstringpathrequired
idstringpathrequired

Code 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
GEThttps://lucidace.com/v1/projects/{project_id}/web/time-on-pageScope insight:read

Parameters

project_idstringpathrequired
fromstringquery
tostringquery
limitintegerquery
hoststringquery

Code 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_snumber
keystringrequired
viewsintegerrequired
$pageleave events that measured a visible time.
400
404
503
Updated