You can list available target classes for your documents as follows:
libraryId is mandatory.
fields query parameter with items(displayName,id,kind),kind with %2C in place of each comma as follows:
id (of the class)displayName(of the class)libraryId (of the library we searched)defaultClass (whether or not this is the library’s default class)