write about get credential API and list credential API