processApi for api profile