agents

Embed
Preview of the card
<a href="https://lucidace.com/docs/ref-agents"><img src="https://lucidace.com/docs/_api/public/orgs/af34862a-c837-4478-8335-0505efe40459/spaces/da916cd3-c0fc-4b63-b971-b3c13623daf3/pages/3900c9d6-ca2e-4bf9-9c3a-b3d515a71fc5/social-card.svg?v=3e7ae33eec8b" alt="agents" width="600" height="315"></a>
POSThttps://lucidace.com/v1/projects/{project_id}/agent-activityScope insight:write

Parameters

project_idstringpathrequired

Request body

application/json

One finished agent run.

agent_idstringrequired
agent_kindstringrequired
scout (scheduled agent) or agent (any other automation).
agent_namestringrequired
atstring
duration_msinteger
run_idstring
signalsinteger
statusstringrequired
ok, error, budget or skipped.
stepsinteger
triggerstringrequired
schedule 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 event
Example
{
  "uuid": "string"
}
Schema
uuidstringrequired
400
404
503
POSThttps://lucidace.com/v1/projects/{project_id}/agent-recordsScope insight:write

Parameters

project_idstringpathrequired

Request body

application/json

The typed records one finished agent run produced (a scout's output schema, P-M21).

agent_idstringrequired
agent_kindstringrequired
scout or agent.
agent_namestringrequired
atstring
recordsobject[]required
1 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_idstringrequired
The 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 events
Example
{
  "uuids": [
    "string"
  ]
}
Schema
uuidsstring[]required
400
404
503
Updated