<@U04S8PLJWMT> i'm building a connector in UI , no...
# ask-ai
h
@kapa.ai i'm building a connector in UI , now want to use the stream, but i dont want to show in discover schema, is it possible to hide the stream,
k
Based on the available knowledge sources, Airbyte provides a way to hide specific configuration fields from the UI using the
"airbyte_hidden": true
property in the connector specification. This is intended for hiding technical or advanced configuration fields from the user interface, but still allowing them to be set via the API or outside the UI. Here is an example:
Copy code
json {   "first_name": {     "type": "string",     "title": "First Name"   },   "secret_name": {     "type": "string",     "title": "You can't see me!!!",     "airbyte_hidden": true   } }
This will hide the
secret_name
field from the UI, but it will still be available in the specification and can be set programmatically [see documentation](https://docs.airbyte.com/platform/connector-development/connector-specification-reference#hiding-inputs-in-the-ui). However, there is no documented way to hide an entire stream from appearing in the discovered schema in the UI. The documentation and tutorials focus on hiding configuration fields, not streams. Streams discovered by the connector are shown in the schema tab, and there is no mention of a mechanism to hide a stream from the discover schema output in the UI or via the connector builder. Summary: You can hide configuration fields from the UI, but there is no supported way to hide a stream from the discover schema in the UI according to the current documentation [see here](https://docs.airbyte.com/platform/connector-development/connector-specification-reference#hiding-inputs-in-the-ui).
h
@kapa.ai version: 0.36.5 type: DeclarativeSource check: type: CheckStream stream_names: - login streams: - type: DeclarativeStream name: login primary_key: [] schema_loader: type: InlineSchemaLoader schema: $schema: http://json-schema.org/schema# properties: api_key: type: string debug: type: string http_status: type: integer login_response_text: type: string status: type: string type: object retriever: type: SimpleRetriever requester: type: HttpRequester url_base: https://connectbl.test.gonockpoint.com path: /api/v2/connectors/acuamatica/ http_method: GET request_parameters: {} request_headers: {} request_body_json: tenant: '{{config[''tenant'']}}' password: '{{config[''password'']}}' username: '{{config[''username'']}}' subdomain: '{{config[''subdomain'']}}' authenticator: type: NoAuth record_selector: type: RecordSelector extractor: type: DpathExtractor field_path: [] paginator: type: NoPagination how to hide this stream
k
A message from kapa.ai
Based on the knowledge sources provided, Airbyte currently does not support hiding an entire stream from the "Discover schema" step or the schema tab in the UI. The available mechanism for hiding is limited to configuration fields within the connector specification, using the
"airbyte_hidden": true
property. This property is not applicable to streams—only to individual configuration fields in the connector's spec file [see documentation](https://docs.airbyte.com/platform/connector-development/connector-specification-reference#hiding-inputs-in-the-ui). There is no documented way to mark a stream as hidden or to prevent it from appearing in the discovered schema in the UI using the declarative YAML or any other connector configuration. All streams defined in your connector will be shown to users during schema discovery. Summary: You cannot hide a stream from the discover schema in the Airbyte UI. Only configuration fields can be hidden, not streams themselves, according to current documentation and features [see here](https://docs.airbyte.com/platform/connector-development/connector-specification-reference#hiding-inputs-in-the-ui).
h
@kapa.ai okay how to hide the api_key then from the given response
k
A message from kapa.ai
To hide the
api_key
field from the UI in your connector's configuration, you should add the
"airbyte_secret": true
property to the
api_key
field in your connector specification (the spec.json or equivalent section). This will mark the field as a secret, so it will be obfuscated in the UI and API. If you want to completely hide it from the UI (not just obfuscate), you can use
"airbyte_hidden": true
. Here is how you can define the
api_key
field in your connector specification to hide it:
Copy code
json "api_key": {   "type": "string",   "airbyte_hidden": true }
Or, if you want it to be a secret (obfuscated, but still visible for input):
Copy code
json "api_key": {   "type": "string",   "airbyte_secret": true }
This approach is supported and documented in Airbyte's connector specification reference [see here](https://docs.airbyte.com/platform/connector-development/connector-specification-reference#hiding-inputs-in-the-ui). Note: This only hides or obfuscates the field in the connector configuration UI, not in the stream's response schema. If
api_key
is present in the data returned by your stream (i.e., in the records themselves), there is no built-in way to hide or mask it in the discovered schema or output records using declarative YAML alone. You would need to remove it from the response at the source or use a transformation to exclude it from the output if supported. The documentation does not provide a declarative way to do this for stream data.