Authorize credential without portal (i.e. via API)

Question

With the public API it seems that one can do everything they can in the portal UI except authorize a credential. Am I missing something or is this by design? Is there any way to authorize a credential (i.e. generate a authorization url where my n8n instance would accept the authorization redirect) through an API/outside the UI?

Information on your n8n setup

  • n8n version: 1.36.0
  • Database (default: SQLite): SQLite
  • n8n EXECUTIONS_PROCESS setting (default: own, main): own
  • Running n8n via (Docker, npm, n8n cloud, desktop app): Docker
  • Operating system: Ubuntu

Hey @shawnpatel,

Welcome to the community :raised_hands:

You can use the API to create a credential but the API doesn’t have an option for providing an oauth authorization service. Instead you would possibly need to look into using hooks Configuration | n8n Docs although we don’t have an example for this.

If you are looking at authorizing third party users outside of n8n you may also need an embed license so I would recommend reaching out to our sales team who will be able to let you know if this is the case and possibly talk about how other embed customers are managing this.

Thanks @Jon!

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