n8n 2.49: agents by API and tool guardrails
On November 17, 2026, n8n published version 2.49.0 as a pre-release. In that version, saved agents can be created, read, and deleted through the public API. The same version checks five patterns in the data of a tool call during chat runs of a saved agent. That is not the stable line for day-to-day operations: on November 23, 2026, the stable release tag pointed at 2.48.8, and the beta tag pointed at 2.49.5. This article sets out what an SME takes from that for the next test, and what it leaves on the production instance.
If you already build agents in the n8n editor, the frame for that work is in AI agents with n8n in business. This piece stays with what the 2.49 line changed on November 17, at the API and in the check on tool calls. The page on n8n implementation describes how Lyron sets up those instances. It does not replace reading the changelog.
In short
- Pre-release: 2.49.0 came out on November 17, 2026 as a pre-release. On November 23, 2.48.8 was stable and 2.49.5 was the current beta.
- Four routes for agents: POST creates, GET lists and reads, DELETE deletes. The scopes are agent:create, agent:list, agent:read, and agent:delete.
- Patterns, no screen: Five pattern kinds run on chat runs. A check before the call stops the call, and a check after keeps the result away from the model. This release has no switch in the editor.
- Not every run: Calls from a workflow, and runs of a sub-agent, are out of scope. Model-based checks are in the schema, but they do not run here.
- API channel: A published agent answers over HTTP. If a tool needs approval, the request comes back in the response. A GET on the approval URL does not change the run.
What 2.49.0 added on November 17
The n8n 2.49.0 changelog is dated November 17, 2026, and GitHub marks it as a pre-release. For agents it lists, among other items, a POST endpoint, a DELETE endpoint, reading through GET, an archive state, archive and restore in the editor, and the replacement of the MCP delete tool with an archive tool. It also lists tool guardrails in the config schema and their execution for the pattern-based checks, a webhook channel for agents, the rename of that channel to API in the interface, and approvals over the same channel.
Two smaller API items belong in the same changelog, because scripts depend on them. The OpenAPI description carries the n8n version as metadata. Each operation description states which API key scope it requires. The export flag for archived items is now named includeArchived. An audit event is sent when a public API limit changes. The 2.49.0 changelog does not give a number for that limit.
The later beta pages do not add endpoints. 2.49.1 on November 18 lists bug fixes and explains the last run in the migration report. 2.49.2 on November 19 lists no changes. 2.49.3 on November 20, 2.49.4 on November 23, and 2.49.5 on the same day list bug fixes. None of these five changelogs adds another public agent endpoint.
Stable stays on 2.48.8
If you run an instance that sends orders, invoices, or messages, stay on the stable line. n8n 2.48.8 was published on November 23, 2026, and is not marked as a pre-release. The changelog lists bug fixes, including access to the migration report for custom instance roles, and an explanation of the last run in the migration report. The agent endpoints and the tool guardrails are not in it.
On the same day, the stable release tag pointed at 2.48.8 and the beta tag pointed at 2.49.5. A test of the new endpoints belongs on a copy of the instance, not on the instance that already sends customer mail. How self-hosting and Cloud differ is covered in n8n self-hosting or Cloud. The version number inside your own instance is the only one that decides the next step. A changelog in the browser does not replace it.
The n8n API documentation describes the public API for n8n Cloud on the Starter, Pro, and Enterprise plans, and for every self-hosted edition. It is not part of the free trial. The same page says the endpoint reference is generated from the OpenAPI description, and that the playground is available on self-hosted n8n only. In the pull requests for the agent endpoints, the item “Docs updated” was not checked. The public docs site is therefore not the proof that the routes are already listed there. The proof is the release and the pull requests. On a self-hosted test instance running 2.49, read the routes in that instance’s playground.
Create, read, and delete agents
Before 2.49, the public API could address workflows and data tables, but it could not create agents. Three pull requests, all released with 2.49.0, close that gap. They use the same API key header that the tests in the pull requests use: X-N8N-API-KEY.
| Call | Scope | What the pull request describes |
|---|---|---|
| POST /api/v1/agents | agent:create | Creates an agent. Response 201 with id, name, project, configuration, tools, and creation time. |
| GET /api/v1/agents | agent:list | One cursor page of lean rows. Parameters limit, cursor, and projectId. A row carries no configuration. |
| GET /api/v1/agents/{agentId} | agent:read | One agent, including the configuration an update writes back. Unknown id: 404. |
| DELETE /api/v1/agents/{agentId} | agent:delete | Response 200 with metadata. The agent is removed, together with its files, channels, threads, and tasks. |
The POST pull request accepts a name, and optionally a projectId, an initial configuration, custom tools, and availableInMCP. If projectId is omitted, the agent is created in the caller’s personal project. If a projectId is sent, the caller must be allowed to create agents there. The test in the pull request sends a name alone once, and once adds a configuration with a model and instructions. The same schema check used by the internal create applies here.
The endpoint accepts custom tool descriptors. The review of the pull request left open whether they are validated there the same way as on the other path for custom tools. For an SME, the order is plain: create an agent with a name, or with a model and instructions, open it in the editor, and only then add tools. The docs were not marked as updated in that pull request.
The API documentation describes an idempotency key for supported POST calls: the same key returns the first successful response instead of running the request again. The agent POST pull request does not say whether this endpoint is one of those calls. If a script may run twice, check that on the test instance before you rely on it.
What the list does not return
The GET pull request separates the list from the single read on purpose. The list is one cursor page. A row carries no configuration, and it is not a body a client can use to replace the agent in full. The single read returns the configuration that the update writes back, so a client can read it and write it again. State that only the builder needs stays out of the response. A key without the scope gets 403, a user without the project permission also gets 403, an unknown id gets 404, and an invalid cursor gets 400.
Deleting is a different step from archiving. The DELETE pull request describes a 200 response with metadata: id, name, project, availableInMCP, versionId, activeVersionId, and the created and updated times. After that, the agent is gone from the interface, together with its files, channels, threads, and tasks. Without the agent:delete scope, or without the project permission, the response is 403. An unknown id returns 404. The 2.49.0 changelog also names an archive state, and archive plus restore in the editor. The MCP tool that deleted an agent is replaced by an archive tool. A script that deleted through MCP archives in this release. A script that calls DELETE on the public API removes the agent. The two paths are not the same.
In practice, a key that should only list agents gets agent:list and agent:read. agent:delete stays on a separate key, which the inventory script does not carry. If you want to mirror the inventory, read the list and fetch the configuration only for the agents you actually need to compare. The list alone is not enough for that.
Tool guardrails before and after a call
Next to the API, 2.49 changes what a saved agent may do with a tool. The schema pull request from November 10 extends the agent configuration with config.guardrails.tools, next to the existing config.guardrails.budget. Each entry has a stable id, an optional name, a required stage of before or after, and a non-empty list of tool references. A reference points at a workflow by its workflowId, or at a node by name. Nine kinds are in the schema: five pattern kinds and four model-based kinds. In that schema pull request, the runtime did not read the field yet. A reference that points at no configured tool blocks publish and preview runs, but it does not block saving a draft.
The runtime pull request, merged on November 17, 2026 and released with 2.49.0, turns on the five pattern kinds: keywords, pii, secretKeys, urls, and customRegex. It applies to every tool call in the chat runs of a saved agent. A before-stage check sees the tool input as JSON text and stops the call. An after-stage check sees the final tool result and keeps it away from the model. The stop becomes an error tool result, the model relays the refusal, and the run continues. Model-based kinds, sub-agent runs, and calls from a workflow stay out of this pull request. There is no interface. The check is server-side.
| Stage | What is checked | What follows |
|---|---|---|
| before | The tool input, as JSON text | The call stops. The tool does not run. |
| after | The final tool result | The model does not see the result. It receives an error result. |
The author of the pull request describes a manual test on a running instance. An after-stage keyword blocked the whole word “percent”, and a before-stage keyword blocked the whole word “pineapple”. The keyword check matches whole words: “pineapple” does not match “pineapples”. The transcript showed “Tool call stopped by guardrail” and “Tool result blocked by guardrail”, and the model went on to say it could not retrieve the fact. That is the test from the pull request, not a client case, and not a promise about the exact wording in every language of the interface.
The name guardrails appears in two places in n8n. The Guardrails node sits in a workflow and checks text going into a model or coming out of it. The check in 2.49 sits in the configuration of the saved agent and runs around the tool call. The kind names overlap. The place does not. Adding only that node to the canvas does not turn on the agent check from 2.49.
What the check does not cover yet
The five pattern kinds are a filter on text a tool sends or returns. They are not an approval by a person. An email, a booking, or a deletion stays a separate decision. How approvals and permissions are set up otherwise is covered in AI agent permissions and approvals. The pattern check for personal data does not replace a decision about which data may leave the company.
The runtime pull request states three limits. First, only chat runs of a saved agent. If a workflow calls the agent, this check does not apply. Second, sub-agent runs are out of scope. Third, the four model-based kinds from the schema, jailbreak, NSFW, topical alignment, and a custom prompt, do not run in this pull request. The author points to a follow-up ticket for them. Writing one of those kinds into the configuration does not, by itself, give you a running check.
The missing interface sits on top of that. The pull request says there is no user-facing surface yet, and that the check is server-side only. A group that only clicks in the editor cannot create the rules there. The test in the pull request ran through MCP. For an SME, that is a reason to replay the check on a test instance with a harmless tool before a real system is connected. Whether a run could see the check at all shows up only in that run’s log. The frame for that is in monitoring AI workflows.
The API channel and approvals
The webhook channel pull request gives a published agent an HTTP endpoint. Your own backend sends a message and receives the reply in the same response. The endpoint speaks a subset of the OpenAI Responses API: input is text, and conversation is optional, either an id or an object with id. The agent’s memory keeps the conversation, so the caller sends only the new message. The model field is ignored. stream true is refused. Errors use that API’s error shape, with status values 400, 401, 403, 404, 409, and 500.
Authentication follows the Webhook node: no authentication, header auth, or JWT. Only main instances serve the endpoint. The address does not fall back to the webhook address, because webhook processes do not serve this route. The environment names in the pull request are N8N_AGENT_WEBHOOK_URL and N8N_ENDPOINT_AGENT_WEBHOOK, and the path ends with the agent id and /responses. Without memory, the agent does not keep the conversation on any channel. An unpublished agent returns 404, an unknown conversation returns 404, two parallel turns in one conversation return 409, and stream true returns 400.
In the interface, the channel has been named API since the rename pull request. What changed are the label, the icon, the copy, the origin shown on sessions, the validation messages, and the MCP tool descriptions. The internal type stays webhook. Addresses, the settings schema, and agents that were already saved stay as they were. If you publish the channel with no authentication, anyone who has the address gets an answer. For a company, header auth or JWT is the setting to choose before the agent is published.
Approvals are described in the pull request from November 12, also in 2.49.0. Until then, the channel declined every action that needed approval, and the agent answered without it. Now the caller decides. When a run stops on such an action, the response holds one approval_request item for each of them, with the tool, the arguments as JSON text, and a URL. The caller sends a POST to that URL with approved true or false, using the same authentication as the responses endpoint. If supports_session_approval is true, the caller can also send scope session. The run continues. The response can hold new approval requests. There is no browser page and no GET link. A GET on the URL does not change the run. In the pull request’s test, that GET returns 404. A new message while the approval is still open gets 409 approval_pending. An approval that was already decided, or that expired, gets 404 approval_not_found. The channel setup includes a collapsed “API quick start” panel with examples.
Example scenario from an SME
Example scenario, not a client case: A wholesaler in North Rhine-Westphalia with 22 employees already uses n8n for incoming orders. Accounting wants an agent that looks up the status of an order when someone asks. As long as the question is always the same, a fixed workflow is the closer step. The difference is set out in AI agent or workflow.
For the open question of where a given order stands, and whether the delivery address matches the order, an agent is created on a copy of the instance running 2.49. A script creates it with POST /api/v1/agents, with a name and instructions, and still without tools that write. A before-stage guardrail on the order workflow blocks tool inputs whose JSON contains the whole word “delete”. An after-stage guardrail of kind secretKeys is meant to stop a tool result that contains a key from going back to the model. The agent does not send a customer email itself. That stays an approval on the API channel, because the pattern check does not replace a send, and because calls from a workflow are outside this runtime check. Whether “delete” matches as a whole word shows up only in the test on that copy, following the pattern from the pull request.
What to settle before a test
The points are an order for a test instance. They are not instructions to move the production instance to 2.49. The page on AI agents describes how Lyron takes assistants like these into operation, with approvals.
- Read the version on the instance. Production stays on 2.48.8 while 2.49 is a pre-release. On November 23, 2026, 2.49.5 was the current beta.
- Use a copy. The new endpoints and the pattern check belong on an instance that no customer process depends on.
- Cut the API key down. Listing needs agent:list and agent:read. Creating needs agent:create. agent:delete stays separate, because DELETE removes the agent together with its channels and threads.
- Create a draft and read it back. Start with the name only, then the single read. The list alone does not show the configuration. Without the scope the response has to be 403, and an invented id has to return 404.
- Replay a harmless pattern. One before check and one after check on whole words, as in the test of the runtime pull request. Connect a real system only after that.
- Put writes behind an approval. The API channel returns the request to the caller. A GET on the approval URL does not approve anything.
- Write the limits down. This runtime check does not see workflow calls or sub-agents. Model-based kinds do not run in this release. There is no interface.
- Do not publish the API channel without authentication. Use header auth or JWT, turn memory on, and give the address only to the backend that needs it. The route is served by the main instance, not by a webhook-only process.
Common questions
Is n8n 2.49 the stable release on November 24, 2026?
No. n8n 2.49.0 was published on November 17, 2026 as a pre-release. On November 23, 2026, 2.48.8 was the stable release and 2.49.5 was the current beta. The public agent endpoints and the pattern check on tool calls are in the 2.49.0 changelog. The changelogs from 2.49.1 through 2.49.5 do not add another public agent endpoint. 2.49.2 lists no changes.
Which endpoints does 2.49 add for agents on the public API?
POST /api/v1/agents creates an agent. The test in the pull request uses an API key with the agent:create scope. GET /api/v1/agents lists with agent:list, GET /api/v1/agents/{agentId} reads with agent:read, and DELETE /api/v1/agents/{agentId} deletes with agent:delete. On read and delete, the API answers 403 without the scope and 404 for an unknown id.
Does a tool guardrail replace approval by a person?
No. The pull request from November 17 runs five pattern kinds: keywords, personal data, secret keys, URLs, and custom regular expressions. A check before the call stops the call. A check after it keeps the tool result away from the model, and the run continues with an error result for the model. That does not replace an approval before a message goes out or a record is deleted.
Do the tool guardrails also apply when a workflow calls the agent?
No, not in the state this pull request describes. The runtime check applies to chat runs of a saved agent. Calls from a workflow, and runs of a sub-agent, are out of scope. The model-based kinds from the schema do not run in this pull request. There is no interface for them yet.
Does the public API delete an agent, or does it archive the agent?
DELETE /api/v1/agents/{agentId} removes the agent. The pull request describes a 200 response, and says that files, channels, threads, and tasks are removed with it. The 2.49.0 changelog also names an archive state in the editor. The MCP tool for deleting is replaced by an archive tool. The two paths are not the same.
How does a caller decide an approval on the API channel?
When a run stops on an action that needs approval, the response holds one approval_request item for each such action. The item names the tool, gives the arguments as JSON text, and gives a URL. The caller sends a POST to that URL with approved true or false, using the same authentication as the responses endpoint. If supports_session_approval is true, the caller can also send scope session. A GET on the URL does not change the run and, in the test, returns 404. A new message while the approval is open gets 409 approval_pending. An approval that was already decided, or that expired, gets 404 approval_not_found.
Sources
As of November 24, 2026. Versions, endpoints, status values, and the limits of the tool guardrails come from the linked n8n release pages and pull requests. The reading for day-to-day work, and the example scenario, come from Lyron.
- n8n 2.49.0 – published on November 17, 2026, marked as a pre-release on GitHub. Contains the agent endpoints, the tool guardrails, and the API channel.
- n8n 2.48.8 – published on November 23, 2026, the stable line. The changelog does not list the agent endpoints.
- n8n 2.49.5 – beta of November 23, 2026. Two bug fixes, no new agent endpoint. The pages for 2.49.1 through 2.49.4 are linked in the text above.
- POST /api/v1/agents – scope agent:create, response 201, released with 2.49.0.
- GET for one agent and for the list – scopes agent:read and agent:list, released with 2.49.0.
- DELETE /api/v1/agents/{agentId} – scope agent:delete, response 200, released with 2.49.0.
- Schema for tool guardrails – config.guardrails.tools, nine kinds, from November 10, 2026.
- Pattern-based tool guardrails at runtime – five kinds, stages before and after, merged on November 17, 2026.
- Webhook channel for agents – HTTP endpoint for a published agent, merged on November 11, 2026.
- Rename of the channel to API – visible names only, the internal type stays webhook.
- Approvals on the API channel – approval_request, POST with approved, merged on November 12, 2026.
- n8n documentation: public API – availability, idempotency key for supported POST calls, playground on self-hosted n8n only.
- n8n documentation: Guardrails node – the workflow node, not the agent check from 2.49.
Do you want to create agents in n8n without putting the production instance on a beta?
Lyron sets up a test instance with you, limits API keys to the scopes you need, and decides which tool calls a person approves.
Free consultation