Connection tags
Connection tags are key-value labels that link a Nango connection to the user, organization, project, workspace, or other entity it belongs to in your app. Example tags includeend_user_id: user_123, organization_id: org_456, workspace_id: ws_789, and department: finance.
Choose tags based on how your app needs to find connections and control access. For an internal integration, you can tag Finance’s shared connections with department: finance and scope an agent session to that department.
Set tags when you create a Connect session. Nango tags the resulting connection and includes those tags in auth webhooks. Save the connection ID in your app if you need to reference a specific connection directly.
Tags are designed for identifiers and routing metadata. Avoid putting secrets or large/free-form payloads in tags.
Add tags when creating a Connect session
When requesting a new Connect session token from Nango, pass atags object:
- Node
- cURL
Filter connections by tags
Filter by tags to find the connections for a user, organization, or workspace in your app. A connection must match all the tag keys and values you pass (AND).- Node
- cURL
Update tags on an existing connection
If you need to update tags after a connection is created, patch the connection:Updating tags replaces the whole tag object. If you want to add or remove a single tag, fetch the current connection first, merge locally, then patch.
- Node
- cURL
Reserved UI tags
Two tags help you identify connections in the Nango dashboard.end_user_display_name- shown instead of the connection ID in the connections list, making it easier to identify who a connection belongs toend_user_email- Nango shows it alongsideend_user_display_namein the connections list. The domain from the email address is also used to display the end user’s company logo on the connection detail page.
Tag rules
- A connection can have up to 10 tags.
- Keys have up to 64 characters. Start with a letter and use only letters, numbers, underscores, hyphens, periods, or slashes.
- Keys are case-insensitive. Nango lowercases them and rejects duplicates after lowercasing.
- Values are case-sensitive strings of 1–255 characters.
end_user_emailmust be a valid email address.
Connection configuration
Connection configuration is provider-specific information stored on a connection because the connection needs it to work. It can be required to:- build an OAuth authorization URL, such as a Zendesk subdomain
- choose the correct API base URL, such as a region or account-specific host
- call API endpoints later, such as a tenant ID, account ID, portal ID, or workspace ID
- store values Nango discovers during authorization, such as an API instance URL or provider account ID
nango.auth():
- Node
- cURL
Connection metadata
Connection metadata stores settings for your app and Nango functions as a JSON object on each connection. Good metadata examples:- field mappings chosen by a customer
- folder, project, board, or object IDs selected during onboarding
- filters and feature flags used by Nango functions and tools
- tenant-specific identifiers discovered by your setup flow
- provider webhook subscription IDs used by webhook functions
updateMetadata or PATCH /connections/metadata to change only the top-level fields you send. Each supplied field replaces its previous value, including when that value is an object. To replace the entire metadata object, use setMetadata or POST /connections/metadata.
- Node
- cURL
- Setup guide - add authorization to your app
- Customize Connect UI - change branding or build your own with headless auth
- Storage - read and update connection metadata from Nango functions
- List connections API - filter connections by tags