# Generating an API Key

**URL:** <http://forum.companieshouse.gov.uk/t/generating-an-api-key/3942>\
**Category:** Uncategorized\
**Created:** [May 21, 2021, 1:54pm UTC](http://forum.companieshouse.gov.uk/t/generating-an-api-key/3942 "2021-05-21T13:54:54Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![jenny.purser](http://forum.companieshouse.gov.uk/letter_avatar_proxy/v4/letter/j/46a35a/32.png) [@jenny.purser](http://forum.companieshouse.gov.uk/u/jenny.purser)\
**Post date:** [May 21, 2021, 1:54pm UTC](http://forum.companieshouse.gov.uk/t/generating-an-api-key/3942/1 "2021-05-21T13:54:54Z")

</div>

Hello

I need to get an API key for us to use within Thomson Reuters Contract Express software, and Companies House have advised me to come and post on here.

Adding the correct key to the Contract Express API will allow us to directly query Companies House data to populate our questionnaires.

How do I go about obtaining the correct key in order to do this?

Looking at the Contracts Express documentation it references [https://api.companieshouse.gov.uk](https://api.companieshouse.gov.uk) which I think is the JSON API Developer Hub, rather than [https://xmlgw.companieshouse.gov.uk](https://xmlgw.companieshouse.gov.uk) which appears to be the XML gateway. Can anyone please assist on the correct way to obtain a working key for this situation?

Thank you in advance  
Jenny

---

<div class="post-metadata">

**Author:** ![MArkWilliams](http://forum.companieshouse.gov.uk/user_avatar/forum.companieshouse.gov.uk/markwilliams/32/194_2.png) [@MArkWilliams](http://forum.companieshouse.gov.uk/u/MArkWilliams)\
**Post date:** [May 21, 2021, 2:16pm UTC](http://forum.companieshouse.gov.uk/t/generating-an-api-key/3942/2 "2021-05-21T14:16:48Z")

</div>

go to [https://developer.company-information.service.gov.uk/](https://developer.company-information.service.gov.uk/), ensure you are logged in.  
click on the ‘create an application’ on the left hand menu, give it a name and description, select live, click create.  
It then takes you back to ‘application overview’ screen, find and select the application you just created.  
that takes you to the application details, click on ‘Create new key’.  
takes you to the ‘new API client key’ page.  
Give it a name and description, select ‘REST’ for the type, click ‘create’  
Takes you to the ‘application details’ page, scroll down to ‘Keys for this application’ and there is your key.  
It even has a convenient ‘copy’ link.

---

<div class="post-metadata">

**Author:** ![jenny.purser](http://forum.companieshouse.gov.uk/letter_avatar_proxy/v4/letter/j/46a35a/32.png) [@jenny.purser](http://forum.companieshouse.gov.uk/u/jenny.purser)\
**Post date:** [May 21, 2021, 4:18pm UTC](http://forum.companieshouse.gov.uk/t/generating-an-api-key/3942/3 "2021-05-21T16:18:42Z")

</div>

Hi Mark

Thank you for your reply. I had followed those steps previously but the key format looked different to one we have received in the past that worked so I wasn’t sure if I had generated the correct key type.

I will try the new key in our environment.

Thank you for your help.  
Jenny

---

<div class="post-metadata">

**Author:** ![suthe.yogalingam](http://forum.companieshouse.gov.uk/letter_avatar_proxy/v4/letter/s/b4bc9f/32.png) [@suthe.yogalingam](http://forum.companieshouse.gov.uk/u/suthe.yogalingam)\
**Post date:** [July 28, 2021, 10:49am UTC](http://forum.companieshouse.gov.uk/t/generating-an-api-key/3942/4 "2021-07-28T10:49:56Z")

</div>

Hi @MArkWilliams, I’m trying to create a key now and getting a 504 Gateway Time-out error - looks like a few others are experiencing the same. Can you help?

Thanks!

---

<div class="post-metadata">

**Author:** ![MArkWilliams](http://forum.companieshouse.gov.uk/user_avatar/forum.companieshouse.gov.uk/markwilliams/32/194_2.png) [@MArkWilliams](http://forum.companieshouse.gov.uk/u/MArkWilliams)\
**Post date:** [July 29, 2021, 8:57am UTC](http://forum.companieshouse.gov.uk/t/generating-an-api-key/3942/5 "2021-07-29T08:57:38Z")

</div>

This is being investigated.

---

<div class="post-metadata">

**Author:** ![MArkWilliams](http://forum.companieshouse.gov.uk/user_avatar/forum.companieshouse.gov.uk/markwilliams/32/194_2.png) [@MArkWilliams](http://forum.companieshouse.gov.uk/u/MArkWilliams)\
**Post date:** [July 29, 2021, 10:06am UTC](http://forum.companieshouse.gov.uk/t/generating-an-api-key/3942/6 "2021-07-29T10:06:20Z")

</div>

This has now been resolved. Apologies for the delay.
