Adding api object.