I am trying to access `http://localhost:5678/rest/workflows` in n8n, but I encountered an error: "Unauthorized, Rejected"

Describe the problem/error/question

I am trying to access http://localhost:5678/rest/workflows in n8n, but I encountered an error: “Unauthorized, Rejected”.

What is the error message (if any)?

The error message is: “Unauthorized, Rejected”.

Please share your workflow

复制

(No workflow shared yet. Please provide the workflow details if needed.)

Share the output returned by the last node

复制

(No output shared yet. Please provide the output details if needed.)

Information on your n8n setup

  • n8n version: (Please provide your n8n version)
  • Database (default: SQLite): (Please specify if you are using a different database)
  • n8n EXECUTIONS_PROCESS setting (default: own, main): (Please specify if you have changed this setting)
  • Running n8n via (Docker, npm, n8n cloud, desktop app): (Please specify how you are running n8n)
  • Operating system: (Please specify your operating system)

Hey @cdxiaodong , if your goal is to access all your workflows via API, you need to use the endpoint /api/v1/workflows:

1 Like

nice Thank you for your answer.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.