Setyenv · Docs
  • English
  • Español
  • 中文
  • 日本語
  • العربية
  • Deutsch
  • Français
  • हिन्दी
  • Bahasa Indonesia
  • Italiano
  • Nederlands
  • Português
  • Русский
  • Türkçe

Connections

Manage stored credentials used by nodes.

GET /wp-json/pfw-workflow/v1/connections

Lists connections. The cred field is masked (sk-***-3f8a); never returns raw credential values.

POST /wp-json/pfw-workflow/v1/connections

Creates a connection. Body:

{
  "type": "http_bearer",
  "label": "OpenAI prod",
  "cred": "sk-...",
  "extra": { "base_url": "https://api.openai.com/v1" }
}

The cred field is encrypted at write time; the response shows only the masked preview.

POST /wp-json/pfw-workflow/v1/connections/{id}/test

Sends a probe request using this connection. Returns 200 ok with a data.probe_status field, or 422 with a data.error field.

DELETE /wp-json/pfw-workflow/v1/connections/{id}

Refuses if any active workflow uses this connection, with a list of those workflows. Pass ?force=true to delete anyway (the workflows will fail at next run with connection_missing).