Finished pibot api