# New Live REST API key returns HTTP 400

**URL:** <http://forum.companieshouse.gov.uk/t/new-live-rest-api-key-returns-http-400/13075>\
**Category:** API Issues\
**Created:** [October 16, 2026, 8:02am UTC](http://forum.companieshouse.gov.uk/t/new-live-rest-api-key-returns-http-400/13075 "2026-10-16T08:02:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![freya.ashton956](http://forum.companieshouse.gov.uk/letter_avatar_proxy/v4/letter/f/7993a0/32.png) [@freya.ashton956](http://forum.companieshouse.gov.uk/u/freya.ashton956)\
**Post date:** [October 16, 2026, 8:02am UTC](http://forum.companieshouse.gov.uk/t/new-live-rest-api-key-returns-http-400/13075/1 "2026-10-16T08:02:24Z")

</div>

My Live REST API key returns HTTP 400 Bad Request for GET requests to the Companies House public company endpoint. I created a new REST key and left Restricted IPs and JavaScript domains blank. The issue affects every company lookup. My refresh reports 0 updated and 162 failed. Please advise how to check whether the key is active and correctly provisioned.

---

<div class="post-metadata">

**Author:** ![info18](http://forum.companieshouse.gov.uk/letter_avatar_proxy/v4/letter/i/7ba0ec/32.png) [@info18](http://forum.companieshouse.gov.uk/u/info18)\
**Post date:** [October 19, 2026, 12:33pm UTC](http://forum.companieshouse.gov.uk/t/new-live-rest-api-key-returns-http-400/13075/2 "2026-10-19T12:33:18Z")

</div>

Strips any accidental `Basic` prefix or trailing `:` before encoding `base64_encode( $api_key . ':' )`  
Refer GIT for working example : [pawansharma06/company-house: Company House Search Wordpress Plugin](https://github.com/pawansharma06/company-house)
