Yuvraj Rimal (युवराज)
03/03/2026, 2:37 PMkapa.ai
03/03/2026, 2:37 PMYuvraj Rimal (युवराज)
03/03/2026, 2:47 PMConfig validation error: 'api_key' is a required property
'api_key' is a required propertykapa.ai
03/03/2026, 2:47 PM'api_key' is a required property occurs because the BearerAuthenticator requires a field named api_token (not api_key) in your YAML configuration. This is a common naming confusion.
Here is the correct YAML structure for the `BearerAuthenticator`:
authenticator:
type: "BearerAuthenticator"
api_token: "{{ config['api_token'] }}"
Key points:
• The required property is api_token, not api_key. [BearerAuthenticator reference]
• The BearerAuthenticator automatically sets the Authorization header as Bearer token — you don't need to specify the header name manually. [Authentication YAML]
• The token value should reference your connector config (e.g., {{ config['api_token'] }}) so the end user can provide it when setting up the source.
Make sure your connector's config schema also defines api_token as an input field so the value is available at runtime. 👍 0 button 👎 0 button ℹ️ Tip: Mention @kapa.ai in the thread for follow-ups or DM the app for 1-to-1 help.Yuvraj Rimal (युवराज)
03/03/2026, 2:50 PMrequester:
type: HttpRequester
http_method: GET
url: ....
authenticator:
type: BearerAuthenticator
api_token: value_of_token
This is the current yaml and airbyte is throwing an error.
Traceback (most recent call last):
File "/home/airbyte/.pyenv/versions/3.10.18/lib/python3.10/site-packages/airbyte_cdk/connector_builder/test_reader/reader.py", line 413, in _read_stream
yield from AirbyteEntrypoint(source).read(
File "/home/airbyte/.pyenv/versions/3.10.18/lib/python3.10/site-packages/airbyte_cdk/entrypoint.py", line 276, in read
self.validate_connection(source_spec, config)
File "/home/airbyte/.pyenv/versions/3.10.18/lib/python3.10/site-packages/airbyte_cdk/entrypoint.py", line 321, in validate_connection
check_config_against_spec_or_exit(connector_config, source_spec)
File "/home/airbyte/.pyenv/versions/3.10.18/lib/python3.10/site-packages/airbyte_cdk/sources/utils/schema_helpers.py", line 202, in check_config_against_spec_or_exit
raise AirbyteTracedException(
airbyte_cdk.utils.traced_exception.AirbyteTracedException: 'api_key' is a required propertykapa.ai
03/03/2026, 2:50 PM