Custom API working example