Ah - you may have spotted this already but the documents “try it out” parts on the Developer Hub weren’t working and presumably still are not. E.g. see:
The documents API does seem to be a little under-documented compared with the rest of the API. That’s where this forum comes in I suppose! Always worth a search here and a search will likely save time before waiting for someone to get back to you…