In Airbyte, the primary key is used to uniquely identify each record in a table or API resource. This is crucial for tasks like deduplication, especially when using sync modes such as "Incremental - Append + Deduped." - For databases (like JDBC sources), the primary key is often defined in the table's metadata, so Airbyte can automatically detect it without user input. - For APIs, many have a dedicated field (such as an id) that serves as the primary key. If no single field is unique, a combination of fields can be used as the primary key (for example, using both code and type fields together if their combination is unique). Setting the correct primary key ensures that Airbyte can properly identify and deduplicate records during synchronization. If a source does not have a natural primary key, you may need to specify a combination of fields that together guarantee uniqueness for each record [Meta data - Primary key](
https://docs.airbyte.com/platform/connector-development/connector-builder-ui/record-processing#meta-data) [Source-Defined Primary key](
https://docs.airbyte.com/platform/using-airbyte/core-concepts/sync-modes/incremental-append-deduped#source-defined-primary-key).