Document metadata 500 error

the endpoint as HTTP {not https}

Indeed you’re right, the documentation for both document endpoints says “http” (e.g. at https://developer.companieshouse.gov.uk/document/docs/document/id/fetchDocumentMeta.html). I had just assumed https everywhere because the rest of the API states this and the guidelines do:

The API can only be accessed over TLS. We recommend using TLS 1.2.

Unfortunately the documentation has not been corrected / updated since it was created (AFAIK) and has some “features” of its own (as of last cursory look a month or so ago). I was surprised that http worked since this rather waters down the “security” of having an API key e.g. you’re sending this in the clear.

Don’t have time to investigate what’s happening with Python / Postman ATM plus I don’t use either. Do post if you find the solution as that’s always helpful.