Two distinct Live REST API keys generated today for the same application are both rejected by the Companies House Public Data API.
Application: MILADVector
Application environment: Live
Key type: REST API key
Restrictions: no restricted IPs and no JavaScript domains
Endpoint tested:
GET https://api.company-information.service.gov.uk/company/05386273
Minimal reproduction:
curl -i -u '<API_KEY>:' \
-H 'User-Agent: MILADVector/1.0' \
https://api.company-information.service.gov.uk/company/05386273
Expected: HTTP 200 with the company profile.
Actual response from both keys:
HTTP 400
{"error":"Invalid Authorization header","type":"ch:service"}
Checks already completed:
- Copied each key using the Developer Hub Copy key control.
- Used HTTP Basic authentication exactly as documented, with the API key as username and a blank password.
- Tested independently using macOS curl and Node fetch from a production server in London.
- Generated a second distinct Live REST key after the first failed; it produced the identical response.
- Retried the original key after more than ten minutes to rule out a short propagation delay.
- As a control, a deliberately invalid short credential returns HTTP 401 Invalid Authorization rather than this HTTP 400 Invalid Authorization header response.
- Confirmed the application is Live and both credentials are REST API keys.
No key values are included in this public post. Please check whether newly issued Live REST keys for this account/application are being activated correctly, or advise what additional non-secret diagnostic information is required.