Adapt API to Document