# Document api problems

**URL:** <http://forum.companieshouse.gov.uk/t/document-api-problems/3094>\
**Category:** API Issues\
**Created:** [June 14, 2020, 11:27am UTC](http://forum.companieshouse.gov.uk/t/document-api-problems/3094 "2020-06-14T11:27:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tim\_savigar](http://forum.companieshouse.gov.uk/letter_avatar_proxy/v4/letter/t/e8c25b/32.png) [@tim\_savigar](http://forum.companieshouse.gov.uk/u/tim_savigar)\
**Post date:** [June 14, 2020, 11:27am UTC](http://forum.companieshouse.gov.uk/t/document-api-problems/3094/1 "2020-06-14T11:27:46Z")

</div>

Hi

I’m trying to get documents using the API

I’m using the interface in the documentation using the following:-

GET /document/MzAyNjIwOTY3OWFkaXF6a2N4/content HTTP/1.1  
Host: document-api.companieshouse.gov.ukundefined  
Authorization: \*\*Basic Auth that works for company info \*\*\*  
Accept: application/pdf

But I get this …

Failure while contacting API. Some possible causes are connection problems or cross-origin resource sharing protection. Please check javascript domains registered against APIKey / OAuth2 registration.

Any ideas?

---

<div class="post-metadata">

**Author:** ![voracityemail](http://forum.companieshouse.gov.uk/letter_avatar_proxy/v4/letter/v/b77776/32.png) [@voracityemail](http://forum.companieshouse.gov.uk/u/voracityemail)\
**Post date:** [June 15, 2020, 11:08am UTC](http://forum.companieshouse.gov.uk/t/document-api-problems/3094/2 "2020-06-15T11:08:10Z")

</div>

Presumably still doesn’t work - did you search around the forum to see if anyone has got it working?

See this thread:

[https://forum.aws.chdev.org/t/document-api-doesnt-work-returns-0-error/2515](https://forum.aws.chdev.org/t/document-api-doesnt-work-returns-0-error/2515)
