Documents API issue

Hi guys, I am trying to retrieve document’s content data as it described at https://developer.companieshouse.gov.uk/document/docs/document/id/content/fetchDocument.html. Also I tried to follow steps described at Help with Document API & Fetch a Document page. But I can’t grab any document from there.For example when I am calling https://document-api.companieshouse.gov.uk/document/8kA9VcE9QmGEqZuAqZmxb4ytZqT3ssscthZgIfLIJBY/content with all required headers as a response I just get 500 HTTP code (Internal Server Error)

Am I doing something wrong with request or this issue on your side?

I have just tried to retrieve the image you have used as an example and it works fine for me. Can you try:

curl -v -u YOUR-API-KEY-FOLLOWED-BY-COLON -H “Accept: application/pdf” https://document-api.companieshouse.gov.uk/document/8kA9VcE9QmGEqZuAqZmxb4ytZqT3ssscthZgIfLIJBY/content

Note - You do not need to base encode the api key in the curl command

Does this work?

Thanks

Mark.

Thank you for your response.
That was my fault. I was using RestSharp and PostMan. Restsharp adds to accept header additional types while PostMan usually forwards requests via own proxy.

Glad to hear you’ve resolved the problem