ingestion

Embed
Preview of the card
<a href="https://lucidace.com/docs/ref-ingestion"><img src="https://lucidace.com/docs/_api/public/orgs/af34862a-c837-4478-8335-0505efe40459/spaces/da916cd3-c0fc-4b63-b971-b3c13623daf3/pages/3e1f9245-5744-4c41-afc9-bfc00d9ac7fc/social-card.svg?v=3e7ae33eec8b" alt="ingestion" width="600" height="315"></a>
GEThttps://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

domainstringqueryrequired
tokenstringqueryrequired
LC_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
GEThttps://lucidace.com/v1/projects/{project_id}/bot-rulesScope settings:read

Parameters

project_idstringpathrequired

Code 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[]required
Show child parameters
categorystringrequired
Traffic category the rule assigns (e.g. monitoring).
combinerstringrequired
and | or
conditionsBotCondition[]required
Show child parameters
opstringrequired
propertystringrequired
user_agent | ip | lib | host | pathname | url | browser | os | language | screen_width | screen_height | country | referrer | referring_domain
valuestringrequired
created_atstringrequired
idstringrequired
namestringrequired
notestringrequired
positionintegerrequired
0-based evaluation order; the first matching rule wins.
updated_atstringrequired
next_cursorstring
404
POSThttps://lucidace.com/v1/projects/{project_id}/bot-rulesScope settings:write

Parameters

project_idstringpathrequired

Request body

application/json
categorystringrequired
ai_crawler | ai_search | ai_assistant | search_crawler | seo_crawler | social_crawler | monitoring | http_client | headless_browser | no_user_agent | referrer_spam | other_bot
combinerstring
and (all conditions) or or (any); default or.
conditionsBotCondition[]required
1 to 10 conditions; at most 100 across the project's rules.
Show child parameters
opstringrequired
propertystringrequired
user_agent | ip | lib | host | pathname | url | browser | os | language | screen_width | screen_height | country | referrer | referring_domain
valuestringrequired
namestringrequired
1 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
categorystringrequired
Traffic category the rule assigns (e.g. monitoring).
combinerstringrequired
and | or
conditionsBotCondition[]required
Show child parameters
opstringrequired
propertystringrequired
user_agent | ip | lib | host | pathname | url | browser | os | language | screen_width | screen_height | country | referrer | referring_domain
valuestringrequired
created_atstringrequired
idstringrequired
namestringrequired
notestringrequired
positionintegerrequired
0-based evaluation order; the first matching rule wins.
updated_atstringrequired
400
403
404
PUThttps://lucidace.com/v1/projects/{project_id}/bot-rules/orderScope settings:write

Parameters

project_idstringpathrequired

Request body

application/json
idsstring[]required
Every 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

Responses

400
403
404
POSThttps://lucidace.com/v1/projects/{project_id}/bot-rules/reclassifyScope settings:write

Apply the current custom bot rules to past events. Returns how many were rewritten.

Parameters

project_idstringpathrequired

Request body

application/json
daysinteger
Look-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
reclassifiedintegerrequired
Events whose bot properties were rewritten.
scannedintegerrequired
Non-bot events read in the window.
truncatedbooleanrequired
The window held more than the scan cap; run again to continue.
400
403
404
503
PUThttps://lucidace.com/v1/projects/{project_id}/bot-rules/{id}Scope settings:write

Parameters

project_idstringpathrequired
idstringpathrequired

Request body

application/json
categorystringrequired
ai_crawler | ai_search | ai_assistant | search_crawler | seo_crawler | social_crawler | monitoring | http_client | headless_browser | no_user_agent | referrer_spam | other_bot
combinerstring
and (all conditions) or or (any); default or.
conditionsBotCondition[]required
1 to 10 conditions; at most 100 across the project's rules.
Show child parameters
opstringrequired
propertystringrequired
user_agent | ip | lib | host | pathname | url | browser | os | language | screen_width | screen_height | country | referrer | referring_domain
valuestringrequired
namestringrequired
1 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

Responses

400
403
404
DELETEhttps://lucidace.com/v1/projects/{project_id}/bot-rules/{id}Scope settings:write

Parameters

project_idstringpathrequired
idstringpathrequired

Code 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
GEThttps://lucidace.com/v1/projects/{project_id}/data-qualityScope insight:read

Parameters

project_idstringpathrequired
fromstringquery
tostringquery

Code 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[]required
Show child parameters
eventstringrequired
eventsintegerrequired
last_seenstringrequired
usersintegerrequired
issuesIssue[]required
Show child parameters
detailstringrequired
kindstringrequired
volume_drop | volume_spike | late_events | missing_field | naming_convention | dynamic_event_names
lateobjectrequired
Show child parameters
eventsintegerrequired
late_eventsintegerrequired
Ingested more than an hour after the event time.
late_ratenumber
p95_delay_sintegerrequired
null_ratesNullRate[]required
Show child parameters
fieldstringrequired
missingintegerrequired
ratenumber
totalintegerrequired
volumeVolumeDay[]required
Show child parameters
anomalystring
drop | spike against the baseline, else absent.
baselinenumber
Median of the previous seven days; absent for the first days of the range.
daystringrequired
eventsintegerrequired
400
404
503

Updated