Add api for fetching custom fields