Skip to content
中文

List action dependents

List orchestrations referencing this action. The search covers scripts and workflows in their drafts or latest versions.

GET /automation/v1/actions/{namespace}/{name}/dependents

Authentication

Authorization: Bearer $PRAXIS_API_KEY

Request fields

Parameter Type Description
path: namespace string required; Namespace, folded to lowercase; matches [a-z0-9][a-z0-9.-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9-]{0,63}. praxis is reserved for built-in Actions.
path: name string required; Name, folded to lowercase; matches [a-z0-9][a-z0-9.-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9-]{0,63}.
query: limit integer optional; Page size: integer 1–100, default 20. minimum: 1; maximum: 100
query: cursor string optional; Opaque next_cursor from the previous page; keep the original filters when paging.

Examples

Set these environment variables to your own resources:

Variable Source
ACTION_NAME name returned by creating an action
: "${ACTION_NAME:?Set ACTION_NAME}"
curl --fail-with-body -X GET "https://api.deepraxis.com/automation/v1/actions/{namespace}/${ACTION_NAME}/dependents" \
  -H "Authorization: Bearer $PRAXIS_API_KEY"
import { createAutomationClient } from '@deepraxis/sdk/automation';

function env(name: string): string {
  const value = process.env[name];
  if (!value) throw new Error(`Set ${name}`);
  return value;
}
const automation = createAutomationClient({
  apiKey: env('PRAXIS_API_KEY'),
  baseUrl: 'https://api.deepraxis.com',
  maxRetries: 0,
  timeoutMs: 90_000,
});
const result = await automation.actions.dependents.list({
  "path": {
    "ns": "docs-samples",
    "name": env("ACTION_NAME")
  }
});
console.log(result);

Response

HTTP 200

Success

application/json

Field Type Description
data object[] required; Referencing scripts and workflows (measured on the latest version plus drafts) on this page, ordered by created_at descending, then id descending.
data[].kind "script" / "workflow" required; Orchestration kind. script is a TypeScript script that executes once; workflow is a YAML workflow made of steps that can wait for events, timers or child runs and can be suspended.
data[].namespace string required; Namespace of the referencing script or workflow.
data[].name string required; Name of the referencing script or workflow.
data[].at string required; Reference location: draft or latest version number; draft means the draft, otherwise this is the definition’s latest published version.
next_cursor null / string required; Cursor for the next page: pass it unchanged as cursor with the same filters; null when there are no more pages. No total is returned.

Measured response

HTTP 200

{
  "data": [],
  "next_cursor": null
}

Errors

HTTP Codes and description
400 INVALID_PARAMS: Invalid request parameters, path, cursor, or body format.
404 ACTION_NOT_FOUND: The action does not exist or is not visible to this tenant; a same-name script/workflow adds a hint pointing to its endpoint.
default RFC 9457 automation problem. 429 includes Retry-After.

Authentication and common errors · Retain the X-Request-Id response header for troubleshooting.