API、CLI 与扩展

n8n API

Using n8n's public API1, you can programmatically perform many of the same tasks as you can in the GUI. This section introduces n8n's REST API, including:

n8n provides an n8n API node to access the API in your workflows.

Choose your interaction method

REST API (This section)

Interact with n8n directly using HTTP requests. Ideal for:

  • Custom integrations and applications
  • Language-agnostic HTTP calls
  • Direct REST API usage in workflows

n8n CLI (Recommended for developers)

Use n8n CLI for a command-line experience. It wraps the public API and is optimized for:

  • Command-line automation and scripting
  • CI/CD pipeline integration
  • AI agent integration (Claude Code, Cursor, etc.)
  • Developers who prefer CLI tools

Learn about REST APIs

The API documentation assumes you are familiar with REST APIs. If you're not, these resources may be helpful:

Footnotes

  1. APIs, or application programming interfaces, offer programmatic access to a service's data and functionality. APIs make it easier for software to interact with external systems. They're often offered as an alternative to traditional user-focused interfaces accessed through web browsers or UI.

    Back

官方原文和授权

本页来自 N8N 英文官方网站固定快照,并转换成 xueai 静态页面。内容以 N8N 持续更新的官方页面为准。

来源、授权与修改

本站保留许可证、固定提交号、社区作者和修改说明,不代表 n8n 对本站背书。

查看许可证查看来源和修改说明