merge api