Skip to content

Deployment + Activation via API does not register webhook path #21614

@rileypx

Description

@rileypx

Bug Description

When deploying and activating a workflow using the REST API, no webhook paths are being registered, which causes this error when attempting to execute such workflows:

HTTP error executing workflow 'workflow name': status=404, response={"code":404,"message":"The requested webhook "POST 4c60e797-b8bf-4955-9daa-a1de775c4df6" is not registered.","hint":"The workflow must be active for a production URL to run successfully. You can activate the workflow using the toggle in the top-right of the editor. Note that unlike test URL calls, production URL calls aren't shown on the canvas (only in the executions list)"}

However, the workflow is both deployed and active. The only solution I've found is to make a change and save via the UI, which is not possible at scale.

I notice the frontend makes an internal call to /rest/webhooks/find with the path whenever it is saved - this seems to do the registering:

Image Image

This behavior is not included in the API, and I am unable to mimic the request using my existing API key with any combination of headers. I am making a POST request to a webhook configured for POST method. From my perspective, this makes the API unusable headlessly.

To Reproduce

Deploy a workflow using API
Activate said workflow using API
Make request to production webhook URL

Expected behavior

Workflow executes

Debug Info

Debug info

core

  • n8nVersion: 1.111.1
  • platform: docker (cloud)
  • nodeJsVersion: 22.19.0
  • database: sqlite
  • executionMode: regular
  • concurrency: 20
  • license: community
  • consumerId: 00000000-0000-0000-0000-000000000000

storage

  • success: all
  • error: all
  • progress: false
  • manual: true
  • binaryMode: filesystem

pruning

  • enabled: true
  • maxAge: 720 hours
  • maxCount: 25000 executions

client

  • userAgent: mozilla/5.0 (macintosh; intel mac os x 10_15_7) applewebkit/537.36 (khtml, like gecko) chrome/141.0.0.0 safari/537.36
  • isTouchDevice: false

Generated at: 2025-11-06T18:22:42.956Z

Operating System

n8n cloud

n8n Version

1.111.1

Node.js Version

n8n cloud

Database

SQLite (default)

Execution mode

main (default)

Hosting

n8n cloud

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions