actions
GET
https://lucidace.com /v1/projects/{project_id}/actions Scope action:readParameters
project_idstringpathrequiredlimitintegerqueryqstringquerycursorstringqueryCode samples
cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/actions"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Page of ActionDef, by name
Example
{
"data": [
{
"created_at": "2024-01-01T00:00:00Z",
"created_by": "string",
"description": "string",
"id": "string",
"name": "string",
"steps": [
{}
],
"updated_at": "2024-01-01T00:00:00Z",
"webhook_endpoint_id": "string"
}
],
"next_cursor": "string"
}Schema
dataActionDef[]requiredShow child parameters
created_atstringrequiredcreated_bystringdescriptionstringrequiredidstringrequirednamestringrequiredstepsobject[]requiredArray of
{event, filters?}; the action matches when any step does.updated_atstringrequiredwebhook_endpoint_idstringWebhook endpoint notified when an ingested event matches (LC-ANA-149).
next_cursorstring404
POST
https://lucidace.com /v1/projects/{project_id}/actions Scope action:writeParameters
project_idstringpathrequiredRequest body
application/json
descriptionstringnamestringrequiredstepsobject[]requiredArray of steps, e.g.
{"event": "$autocapture", "selector": "button.buy", "text": "Buy", "text_match": "contains"}; the action matches when any step does. Help page cohorts-actions-api.webhook_endpoint_idstringWebhook endpoint to notify when an ingested event matches this action.
{
"description": "string",
"name": "string",
"steps": [
{}
],
"webhook_endpoint_id": "string"
}Code samples
cURL
curl -X POST "https://lucidace.com/v1/projects/{project_id}/actions" \
-H "Content-Type: application/json" \
-d '{"description":"string","name":"string","steps":[{}],"webhook_endpoint_id":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
201
Example
{
"created_at": "2024-01-01T00:00:00Z",
"created_by": "string",
"description": "string",
"id": "string",
"name": "string",
"steps": [
{}
],
"updated_at": "2024-01-01T00:00:00Z",
"webhook_endpoint_id": "string"
}Schema
created_atstringrequiredcreated_bystringdescriptionstringrequiredidstringrequirednamestringrequiredstepsobject[]requiredArray of
{event, filters?}; the action matches when any step does.updated_atstringrequiredwebhook_endpoint_idstringWebhook endpoint notified when an ingested event matches (LC-ANA-149).
400
403
404
409
GET
https://lucidace.com /v1/projects/{project_id}/actions/{id} Scope action:readParameters
project_idstringpathrequiredidstringpathrequiredCode samples
cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/actions/{id}"TypeScript
Python
Go
PHP
Ruby
Java
DELETE
https://lucidace.com /v1/projects/{project_id}/actions/{id} Scope action:writeParameters
project_idstringpathrequiredidstringpathrequiredCode samples
cURL
curl -X DELETE "https://lucidace.com/v1/projects/{project_id}/actions/{id}"TypeScript
Python
Go
PHP
Ruby
Java
Responses
204
403
404
PATCH
https://lucidace.com /v1/projects/{project_id}/actions/{id} Scope action:writeParameters
project_idstringpathrequiredidstringpathrequiredRequest body
application/json
clear_webhookbooleandescriptionstringnamestringstepsarraywebhook_endpoint_idstringA webhook endpoint id sets it;
clear_webhook: true removes it.{
"clear_webhook": true,
"description": "string",
"name": "string",
"steps": [
{}
],
"webhook_endpoint_id": "string"
}Code samples
cURL
curl -X PATCH "https://lucidace.com/v1/projects/{project_id}/actions/{id}" \
-H "Content-Type: application/json" \
-d '{"clear_webhook":true,"description":"string","name":"string","steps":[{}],"webhook_endpoint_id":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
GET
https://lucidace.com /v1/projects/{project_id}/actions/{id}/screenshot Scope action:readParameters
project_idstringpathrequiredidstringpathrequiredCode samples
cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/actions/{id}/screenshot"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 the element screenshot
404
PUT
https://lucidace.com /v1/projects/{project_id}/actions/{id}/screenshot Scope action:writeParameters
project_idstringpathrequiredidstringpathrequiredRequest body
image/png
[ 0 ]
Code samples
cURL
curl -X PUT "https://lucidace.com/v1/projects/{project_id}/actions/{id}/screenshot" \
-H "Content-Type: image/png" \
-d '[0]'TypeScript
Python
Go
PHP
Ruby
Java
Responses
204
400 not a PNG
404
413
DELETE
https://lucidace.com /v1/projects/{project_id}/actions/{id}/screenshot Scope action:writeParameters
project_idstringpathrequiredidstringpathrequiredCode samples
cURL
curl -X DELETE "https://lucidace.com/v1/projects/{project_id}/actions/{id}/screenshot"TypeScript
Python
Go
PHP
Ruby
Java
Responses
204
404
GET
https://lucidace.com /v1/projects/{project_id}/smart-events Scope insight:readParameters
project_idstringpathrequiredCode samples
cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/smart-events"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Page of {kind, name, description, count, steps}, busiest first; kinds whose action name already exists are omitted. Single page (next_cursor is always null).
404
503
Updated