write about example of create credential API