add api call for fetching encodings