OKRunit

Human-in-the-loop approval gateway

Actions5

Approval → Create

AI-generated

Summary

Create an approval request with configurable title, priority, and optional additional fields.

Inputs

  • title — Short title for the approval request (max 500 chars). Defaults to "Approval request from n8n" if blank.
  • priority (required) — Priority level of the approval request (Low, Medium, High, Critical).
  • additionalFields — Collection of optional fields for the approval request.
  • description — Detailed description of the approval request (max 5000 chars).
  • action_type — Category of the action (e.g., "deploy", "delete").
  • callback_url — Webhook URL to receive the decision (must be a valid URL).
  • metadata — Arbitrary JSON key-value pairs for context.
  • expires_at — ISO 8601 datetime when the approval request auto-expires.
  • required_approvals — Number of approvals needed (1‑10).
  • context_html — Rich HTML displayed to approvers.

Output shape

array of items, each containing a json field with the API response

Each input item generates a separate output item; optional fields are omitted if not provided.

Examples

Example 1: Create a critical deployment approval

Title: Deploy v2, Priority: Critical, Additional Fields: {"description":"Release notes","action_type":"deploy","callback_url":"https://example.com/webhook","metadata":{"project":"api"}}

Example 2: Create a medium‑priority approval that expires next week

Title: Review marketing plan, Priority: Medium, expires_at: 2025-01-01T00:00:00Z, Required Approvals: 2

Example 3: List pending approvals filtered by status

Operation: list, Filters: {"status":"pending"}

Links

Discussion