write about create credential API and get credential API