Pretty much the only way is to just read the C api header and figure things out from there.
It does contain comments, which are mostly helpful, but sometimes incomplete or out of date.