It is the id of content type in document library.
You can get it like below.
/_api/web/lists(listid)/contenttypes