Update api.py

Add allowed params from API reference according to the documentation.