Workspace API

Automatyzacje (workflow)

Endpointy „Automatyzacje (workflow)” Zanfia Workspace API — ze schematami i przykładami kodu.

2 min czytaniaOstatnia aktualizacja: 26 lip 2026

Odczytuj automatyzacje workflow, przeglądaj historię uruchomień oraz wstrzymuj i wznawiaj je. Workflow buduje się w kreatorze w panelu — API celowo nie udostępnia edycji grafu, dopóki katalog kroków się rozwija. Aktywacja nieopublikowanego szkicu zwraca 400. Wszystkie endpointy wymagają nagłówka Authorization: Bearer — zobacz Uwierzytelnianie.

Lista automatyzacji workflow

GET/automations

Authorization

bearerAuth
AuthorizationBearer <token>

API key from Dashboard → Integrations → API, MCP and CLI.

In: header

Response Body

application/json

application/json

curl -X GET "https://example.com/automations"
{  "items": [    {      "id": "string",      "name": "string",      "description": "string",      "status": "active",      "triggers": [        "product.ProductPurchased"      ],      "productIds": [        "string"      ],      "published": true,      "publishedAt": "string",      "runsThisMonth": 0,      "lastRunAt": "string",      "lastRunStatus": "running",      "createdAt": "string",      "updatedAt": "string"    }  ]}
{  "error": "string"}

Szczegóły automatyzacji

GET/automations/{automationId}

Authorization

bearerAuth
AuthorizationBearer <token>

API key from Dashboard → Integrations → API, MCP and CLI.

In: header

Path Parameters

automationId*string

Workflow automation id

Response Body

application/json

application/json

curl -X GET "https://example.com/automations/string"
{  "id": "string",  "name": "string",  "description": "string",  "status": "active",  "triggers": [    "product.ProductPurchased"  ],  "productIds": [    "string"  ],  "published": true,  "publishedAt": "string",  "runsThisMonth": 0,  "lastRunAt": "string",  "lastRunStatus": "running",  "createdAt": "string",  "updatedAt": "string",  "nodeCounts": {    "triggers": 0,    "actions": 0,    "conditions": 0,    "delays": 0  }}
{  "error": "string"}

Historia uruchomień

GET/automations/{automationId}/runs

Authorization

bearerAuth
AuthorizationBearer <token>

API key from Dashboard → Integrations → API, MCP and CLI.

In: header

Path Parameters

automationId*string

Workflow automation id

Response Body

application/json

application/json

curl -X GET "https://example.com/automations/string/runs"
{  "items": [    {      "id": "string",      "status": "running",      "trigger": "product.ProductPurchased",      "startedAt": "string",      "completedAt": "string",      "steps": {        "total": 0,        "succeeded": 0,        "failed": 0,        "skipped": 0      },      "error": "string"    }  ]}
{  "error": "string"}

Wstrzymaj lub wznów automatyzację

POST/automations/{automationId}/status

Authorization

bearerAuth
AuthorizationBearer <token>

API key from Dashboard → Integrations → API, MCP and CLI.

In: header

Path Parameters

automationId*string

Workflow automation id

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

curl -X POST "https://example.com/automations/string/status" \  -H "Content-Type: application/json" \  -d '{    "status": "active"  }'
{  "id": "string",  "status": "active"}
{  "error": "string"}

Czy ten artykuł był pomocny?

Powiązane artykuły

Coś się nie zgadza? Napisz do nas na support@zanfia.com.