Automation

Search automation definitions

Search visible targets and page in ascending name order.

Search visible targets and page in ascending name order. Archived targets are excluded by default; optionally select published scripts and workflows.

GET /automation/v1/targets

Authentication

Authorization: Bearer $PRAXIS_API_KEY

Request fields

ParameterTypeDescription
query: qstringoptional; Case-insensitive literal substring of ns/name or description.
query: kind"action" / "script" / "workflow"[]optional; action, script or workflow; omit for all. Separate multiple values with commas to match any value. minItems: 1
query: limitintegeroptional; Page size: integer 1–100, default 25. minimum: 1; maximum: 100
query: labelsobjectoptional; Filter using labels[k]=v; comma-separated values for one key match any, and different keys match together.
query: created_at[gte]stringoptional; Inclusive creation-time lower bound, as an ISO 8601 timestamp with timezone. format: "date-time"
query: created_at[lte]stringoptional; Inclusive creation-time upper bound, as an ISO 8601 timestamp with timezone. format: "date-time"
query: cursorstringoptional; Use next_cursor from the previous page and keep the same filters.
query: archivedbooleanoptional; Defaults to false for active targets; true selects archived targets only. default: false
query: publishedbooleanoptional; When true, select definitions with at least one published version; actions are always available.

Examples

curl --fail-with-body -X GET "https://api.deepraxis.ai/automation/v1/targets" \
  -H "Authorization: Bearer $PRAXIS_API_KEY" \
  --get \
  --data-urlencode "q=sample-" \
  --data-urlencode "limit=1"
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.ai',
  maxRetries: 0,
  timeoutMs: 90_000,
});
const result = await automation.targets.list({
  "query": {
    "q": "sample-",
    "limit": 1
  }
});
console.log(result);

Response

HTTP 200

Success

application/json

FieldTypeDescription
dataobject[]required; Target hits across actions, scripts and workflows on this page, in search order.
data[].kind"action" / "script" / "workflow"required; Target kind. action is an action; script is a script; workflow is a workflow.
data[].namespacestringrequired; Namespace of the target.
data[].namestringrequired; Name of the target.
data[].descriptionstringrequired; Description of the target.
data[].latest_versionnull / stringrequired; Version the latest tag points to; null for actions or when nothing is published.
data[].archivedbooleanrequired; true when the target is archived and can no longer be run.
next_cursorstring / nullrequired; 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": [
    {
      "kind": "action",
      "namespace": "docs-samples",
      "name": "sample-action-1791867412840-b05e8a",
      "description": "",
      "latest_version": null,
      "archived": false
    }
  ],
  "next_cursor": "WyJbXCJ0YXJnZXRzXCIsXCJ0bnRfM2E5NzU5ODY0Y2NiNGUwMFwiLHtcInFcIjpcInNhbXBsZS1cIn1dIiwiZG9jcy1zYW1wbGVzL3NhbXBsZS1hY3Rpb24tMTc5MTg2NzQxMjg0MC1iMDVlOGEiLCJmdW5jdGlvbjphY3RfMDBtdjY3bG96NGZlNGYyN2JkZjg5MzQ2Yzg4NWIzYTI4YjIwMzhjMDkxIl0="
}

Errors

HTTPCodes and description
400INVALID_PARAMS: Invalid request parameters, path, cursor, or body format.
defaultRFC 9457 automation problem. 429 includes Retry-After.

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

Export

On this page