<@U04S8PLJWMT> I'm trying to follow the Connector ...
# ask-ai
j
@kapa.ai I'm trying to follow the Connector Builder tutorial with the Exchange Rates API. I've followed the instructions by setting up the path to /exchangerates_data/latest, and providing my API key in the Inputs. According to the tutorial, I should now test the API, but it shows the following error: Could not validate your connector as specified: Unauthorized If the error persists, please contact Airbyte support.
k
Based on the official Airbyte Connector Builder tutorials and documentation, here are the key steps and common pitfalls when connecting to the Exchange Rates API: 1. Base URL and Path: - The base URL should be
https://api.apilayer.com
. - The endpoint path should be
/exchangerates_data/latest
(or similar, depending on the stream you want) [see tutorial steps](https://docs.airbyte.com/platform/1.7/connector-development/connector-builder-ui/tutorial#step-2---basic-configuration). 2. API Key Authentication: - You must use the "API Key" authentication method. - The API key should be injected into the HTTP request header with the header name
apikey
(not
Authorization
or any other header) [see tutorial steps](https://docs.airbyte.com/platform/1.7/connector-development/connector-builder-ui/tutorial#step-2---basic-configuration). 3. Testing the Connection: - When testing, ensure you paste your API key into the "Testing values" dialog. - The API key you use must be valid and active for the Exchange Rates API on apilayer.com. Common Issues: - If you receive an "Unauthorized" error, it usually means: - The API key is missing, incorrect, or expired. - The header name is not set to
apikey
. - The base URL or endpoint path is incorrect. Troubleshooting Steps: - Double-check that your API key is correct and has not expired. - Ensure you are setting the header name to
apikey
exactly (case-sensitive). - Make sure the base URL is
https://api.apilayer.com
and the path is
/exchangerates_data/latest
. - If you recently signed up for the API, confirm that your account is active and the key is enabled for the correct endpoints. Example Configuration: - Base URL:
https://api.apilayer.com
- Authentication: API Key - Header:
apikey
- API Key: (your key, provided in the Inputs/testing values) - Endpoint Path:
/exchangerates_data/latest
If you have confirmed all of the above and still receive an "Unauthorized" error, it may be an issue with the API key itself or a temporary problem with the API provider. In that case, try generating a new API key from your apilayer.com dashboard, or contact Airbyte support as suggested in the error message. For more details, see the official tutorial steps: [Connector Builder Tutorial - Step 2: Basic configuration](https://docs.airbyte.com/platform/1.7/connector-development/connector-builder-ui/tutorial#step-2---basic-configuration). If you are still stuck, please provide the exact configuration (without sharing your actual API key) so we can help further.
j
There is no "testing Values" dialog. That seems to be part of an older version of Airbyte, I've got the most recent version of abctl and Airbyte (0.30.0 for abctl and 1.8.0 for self-hosted Airbyte). The API key in my app dialog is provided in the "Inputs" tab
k
A message from kapa.ai
Thank you for clarifying your Airbyte version and setup. You are correct: in the most recent versions of Airbyte (including 1.8.0), the API key is provided in the Inputs tab, not via a "Testing values" dialog. The documentation for the "Next" platform confirms this updated workflow: - You add your API key as a user input in the Inputs tab, marking it as a secret and required field. - When configuring your stream, you reference this input (e.g.,
{{ config['api_key'] }}
) and set up the authenticator to inject the API key into the request header named
apikey
[see: Step 2: Initial configuration](https://docs.airbyte.com/platform/next/connector-development/connector-builder-ui/tutorial#step-2-initial-configuration). If you are seeing an "Unauthorized" error: - Double-check that the API key input is referenced correctly in your stream configuration. - Ensure the authenticator is set to inject the API key into the header named
apikey
(case-sensitive). - Confirm that your API key is valid and active on apilayer.com. Example setup in the latest Airbyte: - Inputs tab: - Input name: API key - Field ID: api_key - Type: String - Secret field: On - Required field: On - Stream configuration: - API Endpoint URL:
https://api.apilayer.com/exchangerates_data/latest?base=USD
- HTTP Method: GET - Authenticator: On - Shared Authenticator: On - API Key:
{{ config['api_key'] }}
- Inject Into: Header - Header Name:
apikey
If all of the above is correct and you still get "Unauthorized," it is likely an issue with the API key itself or its permissions. The knowledge sources do not mention any additional troubleshooting steps specific to the latest UI, but the process described above matches the current documentation for Airbyte 1.8.0 and the Connector Builder UI [see: Connector Builder tutorial](https://docs.airbyte.com/platform/next/connector-development/connector-builder-ui/tutorial#step-2-initial-configuration). If the error persists, you may need to generate a new API key or contact Airbyte support as suggested in the error message.