# Power Automate custom connector: HTTP 400 “Invalid Authorization header”

**URL:** <http://forum.companieshouse.gov.uk/t/power-automate-custom-connector-http-400-invalid-authorization-header/13107>\
**Category:** API Issues\
**Created:** [November 3, 2026, 7:15am UTC](http://forum.companieshouse.gov.uk/t/power-automate-custom-connector-http-400-invalid-authorization-header/13107 "2026-11-03T07:15:25Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![adelle.sanderson](http://forum.companieshouse.gov.uk/letter_avatar_proxy/v4/letter/a/f0a364/32.png) [@adelle.sanderson](http://forum.companieshouse.gov.uk/u/adelle.sanderson)\
**Post date:** [November 3, 2026, 7:15am UTC](http://forum.companieshouse.gov.uk/t/power-automate-custom-connector-http-400-invalid-authorization-header/13107/1 "2026-11-03T07:15:25Z")

</div>

Hello,

We’re connecting a live Companies House application to Microsoft Power Automate for read-only company verification.

The connector uses:

- Host: `api.company-information.service.gov.uk`
- HTTPS and Basic authentication
- API key as the username and a dummy password

On 2 November 2026, after updating the saved credentials, company-profile requests still returned:

`{"error":"Invalid Authorization header","type":"ch:service"}`

This also occurs with your documented example, `GET /company/00000006`.

These tests were performed through Power Automate. We haven’t independently tested the credentials with another client.

Could you advise whether further activation is required, or how to distinguish a key issue from a request-format issue?

Thank you.

---

<div class="post-metadata">

**Author:** ![companieshousedata](http://forum.companieshouse.gov.uk/user_avatar/forum.companieshouse.gov.uk/companieshousedata/32/2190_2.png) [@companieshousedata](http://forum.companieshouse.gov.uk/u/companieshousedata)\
**Post date:** [November 3, 2026, 8:20am UTC](http://forum.companieshouse.gov.uk/t/power-automate-custom-connector-http-400-invalid-authorization-header/13107/2 "2026-11-03T08:20:13Z")

</div>

Does this basic curl request work with your key?

```auto
curl -i -u 'YOUR_API_KEY:' \
  https://api.company-information.service.gov.uk/company/00000006

```

If the above works for you, I would try changing the dummy password you mention above to an empty string.

```python
username = <API_KEY>
password = ""

```

So that your auth looks like the example that CH give:

```auto
Authorization: Basic base64("<API_KEY>:")

```

CH says the password is ignored, but you never know!

---

<div class="post-metadata">

**Author:** ![ben.leslie](http://forum.companieshouse.gov.uk/letter_avatar_proxy/v4/letter/b/c4cdca/32.png) [@ben.leslie](http://forum.companieshouse.gov.uk/u/ben.leslie)\
**Post date:** [November 18, 2026, 2:08pm UTC](http://forum.companieshouse.gov.uk/t/power-automate-custom-connector-http-400-invalid-authorization-header/13107/3 "2026-11-18T14:08:00Z")

</div>

I’m have the same issue, I think - unfortunately, Power Automate’s UI will not allow an empty password, I tried a dummy string but no luck.

---

<div class="post-metadata">

**Author:** ![companieshousedata](http://forum.companieshouse.gov.uk/user_avatar/forum.companieshouse.gov.uk/companieshousedata/32/2190_2.png) [@companieshousedata](http://forum.companieshouse.gov.uk/u/companieshousedata)\
**Post date:** [November 18, 2026, 2:28pm UTC](http://forum.companieshouse.gov.uk/t/power-automate-custom-connector-http-400-invalid-authorization-header/13107/4 "2026-11-18T14:28:58Z")

</div>

Did you try a single space?  
Does power automate have a ‘raw’ option for entering the auth info: "Basic " + Base64(API-KEY + “:”)

---

<div class="post-metadata">

**Author:** ![ben.leslie](http://forum.companieshouse.gov.uk/letter_avatar_proxy/v4/letter/b/c4cdca/32.png) [@ben.leslie](http://forum.companieshouse.gov.uk/u/ben.leslie)\
**Post date:** [November 18, 2026, 3:35pm UTC](http://forum.companieshouse.gov.uk/t/power-automate-custom-connector-http-400-invalid-authorization-header/13107/5 "2026-11-18T15:35:56Z")

</div>

It wouldn’t accept a single space either.  
But it turns out that, although the connector errors when tested in Power Automate, it does work in Copilot Studio 👍
