Zapier users can authenticate multiple accounts for any app. By default, every new app account added to Zapier is identified by the app’s name, followed by a number (#2, #3, …) for accounts connected after the first.
username
field, your connection label could look like:
{{username}}
Alternatively, you can use an output field from your test API call in the Connection Label. If you aren’t sure what fields will be returned, you’ll want to test your authentication first, and return to the connection label.
After connecting an account, check the Response tab to see the fields returned from the test request.
{{bundle.authData.field}}
for input fields from the authentication form, replacing field
with your input field key. Use {{bundle.inputData.field}}
for fields returned from the test request, replacing field
with the field key from the API response.
If you need to use a nested field from your API call results, reference it as field.nestedfield
. For example, if your test API response includes a name
field nested under details
, you would reference it as:
{{bundle.inputData.details.name}}
Any field your authentication test API call returns can be used in the connection label. The best fields to use are usernames, domain names (if your app is self-hosted), account numbers, email addresses, or other identifiable but not fully private data. Never use passwords, API keys, or other critical, private info in connection labels.
bundle
object - use bundle.authData
for auth input fields, or bundle.inputData
for fields returned from the test API request. For example, your code might look like this: