codedao12

n8n API

AI Agentv1.0.1
By codedao12Updated 2026-05-112 versions · latest released 2026-02-01n8n-api@clawhub_codedao12/n8n-api
Workflow OrchestrationTool Use#N8n#Rest Api

According to AlphaMoat, as of 2026-09, n8n API has 4,944 downloads and 3 stars — ranked #1,869 of 5,078 AI skills overall, and #348 of 969 in AI Agent.

Installs
287
Downloads
4.9K
Stars
3
Overall Rank
#1,869
Top 37% overall · Top 36% in AI Agent
PlatformInstallsDownloadsStarsComments
ClawHub ↗1614.8K3-
SkillHub ↗2874.9K3—

Platforms count differently and update at different times.

What this skill does

Drive n8n with the same core actions you use in the UI: workflows, executions, tags, credentials, projects, and more. Works with both self-hosted n8n and n8n Cloud. All requests require the X-N8N-API-KEY header, configured via N8N_API_BASE_URL and N8N_API_KEY environment variables. Caveats: the public API is unavailable during the free trial; the API playground is only available on self-hosted instances and operates on real data, so use a test workflow or separate test instance for safe experiments; webhook URLs are not the same as API URLs and do not use the API key header; execution records may be pruned based on instance retention settings.

Profile published 2026-10-29

What you can do with it

  • List, inspect, activate, or deactivate workflows
  • List executions and retry failed runs
  • Trigger workflows via production or test webhooks
  • Summarize active workflow counts and recent failures

When to use it

  • You need to manage n8n workflows and executions outside the UI
  • Debug a failed run and identify the failing node
  • Run a health check across a self-hosted or cloud n8n instance

Example prompts

Generated from the skill’s documentation as examples; not results of actual runs.

List all active workflows in my n8n instance with names and IDs
Show the last 5 failed executions and identify the failing node
Retry the selected execution and report the outcome

Monthly Trend

Downloads4.9K
3.3K4.2K5.1K2026-03 · Downloads 3.4K2026-05 · Downloads 4.1K2026-06 · Downloads 4.3K2026-07 · Downloads 4.6K2026-08 · Downloads 4.7K2026-09 · Downloads 4.9K26-0326-09
Stars3
2342026-03 · Stars 32026-05 · Stars 32026-06 · Stars 32026-07 · Stars 32026-08 · Stars 32026-09 · Stars 326-0326-09

The counting method changed in 2026-09: skills with the same name are now counted separately by author, and the full catalog is covered. Dashed lines show months before the change; they are not compared with later months, and no growth is computed across the change.

MonthDownloadsMoMStars
2026-094.9K—3
2026-084.7K+2.1%3
2026-074.6K+6.8%3
2026-064.3K+3.9%3
2026-054.1K—3
2026-033.4K—3

SKILL.md (original)

The author’s original file, shown as plain text without edits or review by AlphaMoat. Links are not clickable; check commands before running them. Fetched 2026-10-23.

3.7 KB · ClawHub v1.0.1
---
name: n8n-api
description: Operate n8n via its public REST API from OpenClaw. Use for workflow management, executions, and automation tasks such as listing, creating, publishing, triggering, or troubleshooting. Works with both self-hosted n8n and n8n Cloud.
---

# n8n Public REST API

Use this skill when you need to drive n8n programmatically. It covers the same core actions you use in the UI: workflows, executions, tags, credentials, projects, and more.

## Availability
Show all (131 lines)
- The public API is unavailable during the free trial.
- Upgrade your plan to enable API access.

## Configuration

Recommended environment variables (or store in `.n8n-api-config`):

```bash
export N8N_API_BASE_URL="https://your-instance.app.n8n.cloud/api/v1"  # or http://localhost:5678/api/v1
export N8N_API_KEY="your-api-key-here"
```

Create the API key in: n8n Settings → n8n API → Create an API key.

## Auth header

All requests require this header:

```
X-N8N-API-KEY: $N8N_API_KEY
```

## Playground

The API playground is only available on self-hosted n8n and operates on real data. For safe experiments, use a test workflow or a separate test instance.

## Quick actions

### Workflows: list
```bash
curl -s -H "X-N8N-API-KEY: $N8N_API_KEY" "$N8N_API_BASE_URL/workflows" \
  | jq '.data[] | {id, name, active}'
```

### Workflows: details
```bash
curl -s -H "X-N8N-API-KEY: $N8N_API_KEY" "$N8N_API_BASE_URL/workflows/{id}"
```

### Workflows: activate or deactivate
```bash
# Activate (publish)
curl -s -X POST -H "X-N8N-API-KEY: $N8N_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"versionId":"","name":"","description":""}' \
  "$N8N_API_BASE_URL/workflows/{id}/activate"

# Deactivate
curl -s -X POST -H "X-N8N-API-KEY: $N8N_API_KEY" \
  "$N8N_API_BASE_URL/workflows/{id}/deactivate"
```

### Webhook trigger
```bash
# Production webhook
curl -s -X POST "$N8N_API_BASE_URL/../webhook/{webhook-path}" \
  -H "Content-Type: application/json" \
  -d '{"key":"value"}'

# Test webhook
curl -s -X POST "$N8N_API_BASE_URL/../webhook-test/{webhook-path}" \
  -H "Content-Type: application/json" \
  -d '{"key":"value"}'
```

### Executions: list
```bash
# Recent executions
curl -s -H "X-N8N-API-KEY: $N8N_API_KEY" \
  "$N8N_API_BASE_URL/executions?limit=10" \
  | jq '.data[] | {id, workflowId, status, startedAt}'

# Failed only
curl -s -H "X-N8N-API-KEY: $N8N_API_KEY" \
  "$N8N_API_BASE_URL/executions?status=error&limit=5"
```

### Executions: retry
```bash
curl -s -X POST -H "X-N8N-API-KEY: $N8N_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"loadWorkflow":true}' \
  "$N8N_API_BASE_URL/executions/{id}/retry"
```

## Common flows

### Health check summary
Count active workflows and recent failures:
```bash
ACTIVE=$(curl -s -H "X-N8N-API-KEY: $N8N_API_KEY" \
  "$N8N_API_BASE_URL/workflows?active=true" | jq '.data | length')

FAILED=$(curl -s -H "X-N8N-API-KEY: $N8N_API_KEY" \
  "$N8N_API_BASE_URL/executions?status=error&limit=100" \
  | jq '[.data[] | select(.startedAt > (now - 86400 | todate))] | length')

echo "Active workflows: $ACTIVE | Failed (24h): $FAILED"
```

### Debug a failed run
1. List failed executions to get the execution ID.
2. Fetch execution details and identify the failing node.
3. Review node parameters and input data.
4. Suggest a fix based on the error message.

## Endpoint index

See `assets/n8n-api.endpoints.md` for the full list of endpoints.

## REST basics (optional)
If you want a refresher, these are commonly recommended:
- KnowledgeOwl: working with APIs (intro)
- IBM Cloud Learn Hub: what is an API / REST API
- MDN: overview of HTTP

## Notes and tips
- The n8n API node can call the public API from inside workflows.
- Webhook URLs are not the same as API URLs and do not use the API key header.
- Execution records may be pruned based on instance retention settings.

Popular in AI Agent

More from codedao12

Data month: 2026-09 · Downloads, stars and installs are aggregated monthly from public skill registries (ClawHub, SkillHub). See methodology.