How can i add api into n8n api

how can i add my own api into n8n api?
means custom api into this -----> http://localhost:5678/api/v1/docs/

Hi @Alireza, there is no supported way of customizing the n8n REST API. So you’d essentially have to rewrite n8n itself here to achieve what you have in mind.

It might be much easier instead to add custom n8n endpoints using workflows. Here’s a quick example of how this would look like:

You can even set the N8N_ENDPOINT_WEBHOOK=api environment variable to have your custom endpoint available under the /api path.

1 Like

thank you for answer :raised_hands:

1 Like

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