Invalid Authorization when using API key

Hello,

I have signed up for rest api new application to test I created api key.

Its been 3 days I keep getting this error: {“error”:“Invalid Authorization”,“type”:“ch:service”}

curl -XGET -u 33111333-6272-4373-3651-663417361711: ``https://api.company-information.service.gov.uk/company/00000006

the api key I have pasted is not the actual key but I have pasted for awareness of its format.

Hi , I have same issue . Has this been resolved for you ?

No I am still having this issue . Have you got any progress?

Are you using the API or Streaming service as they need different keys?

ok, what fixed it in my case was creating a new Live app, rather than test. They must have something wrong with the test environment not working properly. Sandbox api worked fine, however, not what I needed.

I get the same error, with rest api key, sending a simple python request:
BASE_URL = “https ://api.company-information.service.gov.uk” #space added so it doesnt complain about url

COMPANY_NUMBER = “00002065”

url = f"{BASE_URL}/company/{COMPANY_NUMBER}"

response = requests.get(
url,
auth=(API_KEY, “”),
headers={“Accept”: “application/json”},
timeout=30
)

print(“URL:”, url)
print(“Status:”, response.status_code)
print(“Body:”, response.text[:1000])