ingestion
GET
https://lucidace.com /v1/internal/proxy-domains/tls-ask On-demand TLS gate for lc-proxy (autocert) and Caddy (`on_demand_tls { ask }`): 200 when `domain` is a verified proxy domain, 404 otherwise, also when `LC_TLS_ASK_TOKEN` is unset or the token does not match, so the endpoint never lets a stranger trigger certificate issuance for an arbitrary name.
Parameters
domainstringqueryrequiredtokenstringqueryrequiredLC_TLS_ASK_TOKEN
Code samples
cURL
curl -X GET "https://lucidace.com/v1/internal/proxy-domains/tls-ask?domain=<domain>&token=<token>"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 A verified proxy domain: a certificate may be issued
404
GET
https://lucidace.com /v1/projects/{project_id}/bot-rules Scope settings:readParameters
project_idstringpathrequiredCode samples
cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/bot-rules"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200
Example
{
"data": [
{
"category": "string",
"combiner": "string",
"conditions": [
{
"op": "string",
"property": "string",
"value": "string"
}
],
"created_at": "2024-01-01T00:00:00Z",
"id": "string",
"name": "string",
"note": "string",
"position": 0,
"updated_at": "2024-01-01T00:00:00Z"
}
],
"next_cursor": "string"
}Schema
dataobject[]requiredShow child parameters
categorystringrequiredTraffic category the rule assigns (e.g.
monitoring).combinerstringrequiredand | orconditionsBotCondition[]requiredShow child parameters
opstringrequiredpropertystringrequireduser_agent | ip | lib | host | pathname | url | browser | os | language | screen_width | screen_height | country | referrer | referring_domainvaluestringrequiredcreated_atstringrequiredidstringrequirednamestringrequirednotestringrequiredpositionintegerrequired0-based evaluation order; the first matching rule wins.
updated_atstringrequirednext_cursorstring404
POST
https://lucidace.com /v1/projects/{project_id}/bot-rules Scope settings:writeParameters
project_idstringpathrequiredRequest body
application/json
categorystringrequiredai_crawler | ai_search | ai_assistant | search_crawler | seo_crawler | social_crawler | monitoring | http_client | headless_browser | no_user_agent | referrer_spam | other_botcombinerstringand (all conditions) or or (any); default or.conditionsBotCondition[]required1 to 10 conditions; at most 100 across the project's rules.
Show child parameters
opstringrequiredpropertystringrequireduser_agent | ip | lib | host | pathname | url | browser | os | language | screen_width | screen_height | country | referrer | referring_domainvaluestringrequirednamestringrequired1 to 100 characters; becomes
$bot_name on matching events.notestring{
"category": "string",
"combiner": "string",
"conditions": [
{
"op": "string",
"property": "string",
"value": "string"
}
],
"name": "string",
"note": "string"
}Code samples
cURL
curl -X POST "https://lucidace.com/v1/projects/{project_id}/bot-rules" \
-H "Content-Type: application/json" \
-d '{"category":"string","combiner":"string","conditions":[{"op":"string","property":"string","value":"string"}],"name":"string","note":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
201
Example
{
"category": "string",
"combiner": "string",
"conditions": [
{
"op": "string",
"property": "string",
"value": "string"
}
],
"created_at": "2024-01-01T00:00:00Z",
"id": "string",
"name": "string",
"note": "string",
"position": 0,
"updated_at": "2024-01-01T00:00:00Z"
}Schema
categorystringrequiredTraffic category the rule assigns (e.g.
monitoring).combinerstringrequiredand | orconditionsBotCondition[]requiredShow child parameters
opstringrequiredpropertystringrequireduser_agent | ip | lib | host | pathname | url | browser | os | language | screen_width | screen_height | country | referrer | referring_domainvaluestringrequiredcreated_atstringrequiredidstringrequirednamestringrequirednotestringrequiredpositionintegerrequired0-based evaluation order; the first matching rule wins.
updated_atstringrequired400
403
404
PUT
https://lucidace.com /v1/projects/{project_id}/bot-rules/order Scope settings:writeParameters
project_idstringpathrequiredRequest body
application/json
idsstring[]requiredEvery rule id of the project, in the new evaluation order.
{
"ids": [
"string"
]
}Code samples
cURL
curl -X PUT "https://lucidace.com/v1/projects/{project_id}/bot-rules/order" \
-H "Content-Type: application/json" \
-d '{"ids":["string"]}'TypeScript
Python
Go
PHP
Ruby
Java
POST
https://lucidace.com /v1/projects/{project_id}/bot-rules/reclassify Scope settings:writeApply the current custom bot rules to past events. Returns how many were rewritten.
Parameters
project_idstringpathrequiredRequest body
application/json
daysintegerLook-back window in days, 1 to 90 (default 7).
{
"days": 0
}Code samples
cURL
curl -X POST "https://lucidace.com/v1/projects/{project_id}/bot-rules/reclassify" \
-H "Content-Type: application/json" \
-d '{"days":0}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200
Example
{
"reclassified": 0,
"scanned": 0,
"truncated": true
}Schema
reclassifiedintegerrequiredEvents whose bot properties were rewritten.
scannedintegerrequiredNon-bot events read in the window.
truncatedbooleanrequiredThe window held more than the scan cap; run again to continue.
400
403
404
503
PUT
https://lucidace.com /v1/projects/{project_id}/bot-rules/{id} Scope settings:writeParameters
project_idstringpathrequiredidstringpathrequiredRequest body
application/json
categorystringrequiredai_crawler | ai_search | ai_assistant | search_crawler | seo_crawler | social_crawler | monitoring | http_client | headless_browser | no_user_agent | referrer_spam | other_botcombinerstringand (all conditions) or or (any); default or.conditionsBotCondition[]required1 to 10 conditions; at most 100 across the project's rules.
Show child parameters
opstringrequiredpropertystringrequireduser_agent | ip | lib | host | pathname | url | browser | os | language | screen_width | screen_height | country | referrer | referring_domainvaluestringrequirednamestringrequired1 to 100 characters; becomes
$bot_name on matching events.notestring{
"category": "string",
"combiner": "string",
"conditions": [
{
"op": "string",
"property": "string",
"value": "string"
}
],
"name": "string",
"note": "string"
}Code samples
cURL
curl -X PUT "https://lucidace.com/v1/projects/{project_id}/bot-rules/{id}" \
-H "Content-Type: application/json" \
-d '{"category":"string","combiner":"string","conditions":[{"op":"string","property":"string","value":"string"}],"name":"string","note":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
DELETE
https://lucidace.com /v1/projects/{project_id}/bot-rules/{id} Scope settings:writeParameters
project_idstringpathrequiredidstringpathrequiredCode samples
cURL
curl -X DELETE "https://lucidace.com/v1/projects/{project_id}/bot-rules/{id}"TypeScript
Python
Go
PHP
Ruby
Java
Responses
204
403
404
GET
https://lucidace.com /v1/projects/{project_id}/data-quality Scope insight:readParameters
project_idstringpathrequiredfromstringquerytostringqueryCode samples
cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/data-quality"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200
Example
{
"events": [
{
"event": "string",
"events": 0,
"last_seen": "string",
"users": 0
}
],
"issues": [
{
"detail": "string",
"kind": "string"
}
],
"late": {
"events": 0,
"late_events": 0,
"late_rate": 0,
"p95_delay_s": 0
},
"null_rates": [
{
"field": "string",
"missing": 0,
"rate": 0,
"total": 0
}
],
"volume": [
{
"anomaly": "string",
"baseline": 0,
"day": "string",
"events": 0
}
]
}Schema
eventsEventVolume[]requiredShow child parameters
eventstringrequiredeventsintegerrequiredlast_seenstringrequiredusersintegerrequiredissuesIssue[]requiredShow child parameters
detailstringrequiredkindstringrequiredvolume_drop | volume_spike | late_events | missing_field | naming_convention | dynamic_event_nameslateobjectrequiredShow child parameters
eventsintegerrequiredlate_eventsintegerrequiredIngested more than an hour after the event time.
late_ratenumberp95_delay_sintegerrequirednull_ratesNullRate[]requiredShow child parameters
fieldstringrequiredmissingintegerrequiredratenumbertotalintegerrequiredvolumeVolumeDay[]requiredShow child parameters
anomalystringdrop | spike against the baseline, else absent.baselinenumberMedian of the previous seven days; absent for the first days of the range.
daystringrequiredeventsintegerrequired400
404
503
Updated