Finished template for API