Getting 500 response when trying to retrieve Document

When using the following https://document-api.company-information.service.gov.uk/document/ I am always getting a 500 response. I get a 500 when also using the front-end url as well. Has anything changed?

I found the solution. I needed to base encode the API Key.