agents
POST
https://lucidace.com /v1/projects/{project_id}/agent-activity Scope insight:writeParameters
project_idstringpathrequiredRequest body
application/json
One finished agent run.
agent_idstringrequiredagent_kindstringrequiredscout (scheduled agent) or agent (any other automation).agent_namestringrequiredatstringduration_msintegerrun_idstringsignalsintegerstatusstringrequiredok, error, budget or skipped.stepsintegertriggerstringrequiredschedule or manual.{
"agent_id": "string",
"agent_kind": "string",
"agent_name": "string",
"at": "2024-01-01T00:00:00Z",
"duration_ms": 0,
"run_id": "string",
"signals": 0,
"status": "string",
"steps": 0,
"trigger": "string"
}Code samples
cURL
curl -X POST "https://lucidace.com/v1/projects/{project_id}/agent-activity" \
-H "Content-Type: application/json" \
-d '{"agent_id":"string","agent_kind":"string","agent_name":"string","at":"2024-01-01T00:00:00Z","duration_ms":0,"run_id":"string","signals":0,"status":"string","steps":0,"trigger":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
202 queued as a
$lc_agent_run eventExample
{
"uuid": "string"
}Schema
uuidstringrequired400
404
503
POST
https://lucidace.com /v1/projects/{project_id}/agent-records Scope insight:writeParameters
project_idstringpathrequiredRequest body
application/json
The typed records one finished agent run produced (a scout's output schema, P-M21).
agent_idstringrequiredagent_kindstringrequiredscout or agent.agent_namestringrequiredatstringrecordsobject[]required1 to 50 records, each a flat object of at most 20 fields (
[a-z][a-z0-9_]*, at most 40 characters) holding a string (at most 1000 characters), a number or a boolean.run_idstringrequiredThe run they came from; a uuid makes a retried report dedupe.
{
"agent_id": "string",
"agent_kind": "string",
"agent_name": "string",
"at": "2024-01-01T00:00:00Z",
"records": [
{}
],
"run_id": "string"
}Code samples
cURL
curl -X POST "https://lucidace.com/v1/projects/{project_id}/agent-records" \
-H "Content-Type: application/json" \
-d '{"agent_id":"string","agent_kind":"string","agent_name":"string","at":"2024-01-01T00:00:00Z","records":[{}],"run_id":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
202 queued as
$lc_agent_record eventsExample
{
"uuids": [
"string"
]
}Schema
uuidsstring[]required400
404
503
Updated