adapt api