{% import '_includes/forms' as forms %} {% import 'verbb-base/_macros' as macros %} {% set displayName = integration.displayName() %} {% set instructions %} ### Step 1. Connect to the {name} API 1. Go to {name} and login to your account. 1. Click on the settings icon on the top-right of the screen. 1. In the left-hand sidebar menu, click on **Integrations** → **API key**. 1. Copy the **API Key** from {name} and paste in the **API Key** field below. ### Step 2. Test Connection 1. Save this integration. 1. Click on the **Refresh** button in the right-hand sidebar. {% endset %}
{{ instructions | t('formie', { name: displayName }) | md }}
Starting November 30, 2022, HubSpot API keys will no longer be able to be used as an authentication method to access HubSpot APIs. In addition, starting July 15, 2022, you'll no longer be able to create new API keys.

Learn more about this change and use the HubSpot integration instead.
{% if not craft.app.config.general.allowAdminChanges %} {{ 'Integration settings can only be editable on an environment with `allowAdminChanges` enabled.' | t('formie') | md(inlineOnly=true) }} {% endif %} {{ macros.proxyField(fieldVariables, 'autosuggestField', { label: 'API Key' | t('formie'), instructions: 'Enter your {name} {label} here.' | t('formie'), name: 'apiKey', required: true, suggestEnvVars: true, value: integration.settings.apiKey ?? '', warning: macros.configWarning('apiKey', 'formie'), errors: integration.getErrors('apiKey'), }) }}