Merged
S
Change Breakdown
Feature100%
AI Gateway credentials now return instance URL

The AI Gateway credentials endpoint now includes the n8n instance base URL in its response, giving client applications the context they need to connect back to the right server.
The AI Gateway credentials endpoint at POST /v1/gateway/credentials now returns the instance base URL alongside the credentials data. Client applications that consume this endpoint — particularly those running AI workflows that need to communicate back with the n8n server — can now determine the correct endpoint without separate configuration. The change injects the dependency into and maps its getInstanceBaseUrl() result into the response payload under the instanceUrl field.
View Original GitHub Description
Summary
PR adds instanceUrl to the body of /v1/gateway/credentials
Related Linear tickets, Github issues, and Community forum posts
<!-- Include links to **Linear ticket** or Github issue or Community forum post. Important in order to close *automatically* and provide context to reviewers. https://linear.app/n8n/issue/[TICKET-ID] --> <!-- Use "closes #<issue-number>", "fixes #<issue-number>", or "resolves #<issue-number>" to automatically close issues when the PR is merged. -->Review / Merge checklist
- I have seen this code, I have run this code, and I take responsibility for this code.
- PR title and summary are descriptive. (conventions) <!-- **Remember, the title automatically goes into the changelog. Use `(no-changelog)` otherwise.** -->
- Docs updated or follow-up ticket created.
- Tests included. <!-- A bug is not considered fixed, unless a test is added to prevent it from happening again. A feature is not complete without tests. -->
- PR Labeled with
Backport to Beta,Backport to Stable, orBackport to v1(if the PR is an urgent fix that needs to be backported)