See the section called “Replication Functions” for detailed documentation on the SQL-level API for interacting with logical decoding.
Synchronous replication (see the section called “Synchronous Replication”) is only supported on replication slots used over the streaming replication interface. The function interface and additional, non-core interfaces do not support synchronous replication.