<@U04S8PLJWMT> is there a way to define a custom c...
# ask-ai
a
@kapa.ai is there a way to define a custom connector that has namespaces
k
Yes—Airbyte supports namespaces as a core concept, but both the source and destination connectors must support namespaces for them to be used. Connectors need to be version 0.3.0+ and Airbyte version 0.21.0-alpha+ for namespace support. [[Requirements](https://docs.airbyte.com/platform/using-airbyte/core-concepts/namespaces#requirements); [1.7 Requirements](https://docs.airbyte.com/platform/1.7/using-airbyte/core-concepts/namespaces#requirements)] When enabled in a connection, you can choose: - Custom: write all streams to a user-defined namespace (you can also use ${SOURCE_NAMESPACE} if the source provides one). [[What is a Namespace?](https://docs.airbyte.com/platform/using-airbyte/core-concepts/namespaces#what-is-a-namespace)] - Destination-defined: write to the destination’s default namespace. [[What is a Namespace?](https://docs.airbyte.com/platform/using-airbyte/core-concepts/namespaces#what-is-a-namespace)] - Source-defined: mirror the source’s provided namespace; otherwise fall back to the destination default. [[What is a Namespace?](https://docs.airbyte.com/platform/using-airbyte/core-concepts/namespaces#what-is-a-namespace)] If you’re building a custom connector, ensure it surfaces namespace information (for sources) or respects the chosen namespace (for destinations) so the connection-level namespace settings can take effect. The docs do not provide connector-specific implementation steps beyond these requirements. [[Requirements](https://docs.airbyte.com/platform/using-airbyte/core-concepts/namespaces#requirements); [What is a Namespace?](https://docs.airbyte.com/platform/using-airbyte/core-concepts/namespaces#what-is-a-namespace)]
a
@kapa.ai how do I build a custom connector, and ensure it surfaces namespace information
k
A message from kapa.ai
Short answer: - Build your custom connector using Connector Builder (recommended) or the CDKs, then publish it to your workspace. [[Connector development](https://docs.airbyte.com/platform/connector-development); [Next connector dev](https://docs.airbyte.com/platform/next/connector-development)] - To “surface namespace information,” your source must provide a namespace per stream so the destination can mirror it when the connection is set to Source-defined; otherwise Airbyte will fall back to the destination/default or a custom namespace selected at the connection level. [[What is a Namespace?](https://docs.airbyte.com/platform/using-airbyte/core-concepts/namespaces#what-is-a-namespace); [Namespaces](https://docs.airbyte.com/platform/using-airbyte/core-concepts/namespaces)] Practical guidance from the docs: - Use Connector Builder for most HTTP-based sources; publish as a custom connector, or contribute it later. [[Connector development](https://docs.airbyte.com/platform/connector-development); [Integrations: custom connector](https://docs.airbyte.com/integrations/custom-connectors)] - Airbyte supports three connection-level namespace modes: Custom, Destination-defined, and Source-defined. To enable Source-defined behavior, ensure your source emits namespace information for its streams so the destination can write to the same namespace; if not present, it falls back to the destination default. [[Namespaces](https://docs.airbyte.com/platform/using-airbyte/core-concepts/namespaces); [What is a Namespace?](https://docs.airbyte.com/platform/using-airbyte/core-concepts/namespaces#what-is-a-namespace)] Limitations: - The knowledge sources do not include connector-implementation code or exact CDK fields for setting per-stream namespaces; they only describe that sources can provide namespace information and how destinations use it at runtime. [[What is a Namespace?](https://docs.airbyte.com/platform/using-airbyte/core-concepts/namespaces#what-is-a-namespace)]