Response Actions
List all response actions
Filter by archived status (default: false)
List of response actions
Unauthorized
Access denied
System error
System not ready for requests
GET /app/api/v1/response-actions HTTP/1.1
Host:
Authorization: YOUR_API_KEY
Accept: */*
[
{
"created_at": "2025-11-25T12:39:09.431Z",
"display_name": "text",
"id": 1,
"is_archived": true,
"is_enabled": true,
"trigger_def": {
"created_at": "2025-11-25T12:39:09.431Z",
"display_index": 1,
"is_archived": true,
"is_runnable": true,
"is_scriptable": true,
"parent": "123e4567-e89b-12d3-a456-426614174000",
"script_var_names": [
"text"
],
"trigger_arg_names": [
"text"
],
"trigger_display_name": "text",
"trigger_fn_name": "text",
"trigger_tree_labels": [
"text"
],
"updated_at": "2025-11-25T12:39:09.431Z",
"uuid": "123e4567-e89b-12d3-a456-426614174000"
},
"updated_at": "2025-11-25T12:39:09.431Z"
}
]Create a new response action
Response action created successfully
Bad request - invalid input
Unauthorized
Access denied
System error
System not ready for requests
POST /app/api/v1/response-actions HTTP/1.1
Host:
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 95
{
"code": "text",
"display_name": "text",
"trigger_def_uuid": "123e4567-e89b-12d3-a456-426614174000"
}{
"created_at": "2025-11-25T12:39:09.431Z",
"display_name": "text",
"id": 1,
"is_archived": true,
"is_enabled": true,
"trigger_def": {
"created_at": "2025-11-25T12:39:09.431Z",
"display_index": 1,
"is_archived": true,
"is_runnable": true,
"is_scriptable": true,
"parent": "123e4567-e89b-12d3-a456-426614174000",
"script_var_names": [
"text"
],
"trigger_arg_names": [
"text"
],
"trigger_display_name": "text",
"trigger_fn_name": "text",
"trigger_tree_labels": [
"text"
],
"updated_at": "2025-11-25T12:39:09.431Z",
"uuid": "123e4567-e89b-12d3-a456-426614174000"
},
"updated_at": "2025-11-25T12:39:09.431Z"
}Execute a test run of a response action script without saving to database. Useful for testing and debugging scripts before deployment.
The Python code to execute
Arguments to pass to the script (depends on trigger type)
Test run completed successfully
Bad request - invalid input
Unauthorized
Access denied
Script execution failed
System error
System not ready for requests
POST /app/api/v1/response-actions/test HTTP/1.1
Host:
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 40
{
"script_code": "text",
"trigger_args": {}
}{
"status": "text",
"stderr": "text",
"stdout": "text"
}List available response triggers for action creation
List of available triggers
Unauthorized
Access denied
System error
System not ready for requests
GET /app/api/v1/response-actions/triggers HTTP/1.1
Host:
Authorization: YOUR_API_KEY
Accept: */*
[
{
"created_at": "2025-11-25T12:39:09.431Z",
"display_index": 1,
"is_archived": true,
"is_runnable": true,
"is_scriptable": true,
"parent": "123e4567-e89b-12d3-a456-426614174000",
"script_var_names": [
"text"
],
"trigger_arg_names": [
"text"
],
"trigger_display_name": "text",
"trigger_fn_name": "text",
"trigger_tree_labels": [
"text"
],
"updated_at": "2025-11-25T12:39:09.431Z",
"uuid": "123e4567-e89b-12d3-a456-426614174000"
}
]Get response action details with version and run counts
Response action details with counts and latest version/run
Unauthorized
Access denied
Resource not found
System error
System not ready for requests
GET /app/api/v1/response-actions/{script_id} HTTP/1.1
Host:
Authorization: YOUR_API_KEY
Accept: */*
{
"counts": {
"run": 1,
"version": 1
},
"latest": {
"run": {},
"version": {}
}
}Archive (soft delete) a response action. Deletes unreferenced versions.
Response action archived successfully
Unauthorized
Access denied
Resource not found
System error
System not ready for requests
DELETE /app/api/v1/response-actions/{script_id} HTTP/1.1
Host:
Authorization: YOUR_API_KEY
Accept: */*
No content
Update response action properties
Response action updated successfully
No content
Bad request or cannot update archived action
Unauthorized
Access denied
Resource not found
System error
System not ready for requests
PATCH /app/api/v1/response-actions/{script_id} HTTP/1.1
Host:
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 99
{
"display_name": "text",
"is_enabled": true,
"trigger_def_uuid": "123e4567-e89b-12d3-a456-426614174000"
}No content
List all runs for a response action
List of response action runs
Unauthorized
Access denied
Resource not found
System error
System not ready for requests
GET /app/api/v1/response-actions/{script_id}/runs HTTP/1.1
Host:
Authorization: YOUR_API_KEY
Accept: */*
[
{
"created_at": "2025-11-25T12:39:09.431Z",
"id": 1,
"script": {
"created_at": "2025-11-25T12:39:09.431Z",
"display_name": "text",
"id": 1,
"is_archived": true,
"is_enabled": true,
"trigger_def": "123e4567-e89b-12d3-a456-426614174000",
"updated_at": "2025-11-25T12:39:09.431Z"
},
"script_version": {
"author": {
"email": "[email protected]",
"first_name": "text",
"id": 1,
"last_name": "text",
"oidc_user_id": "text",
"role": "admin"
},
"code": "text",
"created_at": "2025-11-25T12:39:09.431Z",
"id": 1,
"script": 1,
"updated_at": "2025-11-25T12:39:09.431Z",
"v_num": 1
},
"status": "running",
"stderr": "text",
"stdout": "text",
"syserr": "text",
"trigger_run": {
"batch": 1,
"created_at": "2025-11-25T12:39:09.431Z",
"id": 1,
"trigger_args": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"trigger_def": {
"created_at": "2025-11-25T12:39:09.431Z",
"display_index": 1,
"is_archived": true,
"is_runnable": true,
"is_scriptable": true,
"parent": "123e4567-e89b-12d3-a456-426614174000",
"script_var_names": [
"text"
],
"trigger_arg_names": [
"text"
],
"trigger_display_name": "text",
"trigger_fn_name": "text",
"trigger_tree_labels": [
"text"
],
"updated_at": "2025-11-25T12:39:09.431Z",
"uuid": "123e4567-e89b-12d3-a456-426614174000"
},
"updated_at": "2025-11-25T12:39:09.431Z"
},
"updated_at": "2025-11-25T12:39:09.431Z"
}
]Last updated
Was this helpful?