For the complete documentation index, see llms.txt. This page is also available as Markdown.

n8n API

Feature availability

The n8n API isn't available during the free trial. Please upgrade to access this feature.

Using n8n's public API, 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

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:

Use the API playground

Trying out the API in the playground can help you understand how APIs work. If you're worried about changing live data, consider setting up a test workflow, or test n8n instance, to explore safely.

Last updated

Was this helpful?