Adding API definition