Skip to main content

OS Data Hub API Key Management

The OS Data Hub is the MoJ’s product of choice for incorporating gepgraphic data into applications.

Service Teams require keys to access the APIs.

Pre-requisites

You must have access to the OS Data Hub. If not, please contact your administrator.

Creating a new API key

  1. Login the the OS Data Hub.

  2. Go to “API Dashboard”.

  3. Click on “My Projects”

  4. Click “Create a New Project”.

  5. Enter “Project Name” in the format <Organisation> <Application> <Type of Environment>.

e.g. HMCTS Apply For Probate Online Production

  1. Click “Create Project” to save the project.

  2. Click “Add API”

  3. Find the correct API and click “Add”

This will take you to the page where you can see the key has been created. You should copy the Project API Key. This is the key that you will send to the requester.

Note - This key is a secret and should only be transfered via a secure method e.g. email of an encrypted archive with password in a separate message.

Rotating an API key

  1. Login the the OS Data Hub.

  2. Go to “API Dashboard”.

  3. Click on the link to the project for the key you wish to revoke.

  4. Click on “Actions”

  5. Select “Regenerate API Key”.

  6. A prompt will appear. Enter code provided.

  7. Click “Regenerate API Key” to confirm action and rotate key.

Note that as soon as a key is rotated the old API key will immediatly stop working.

Revoking an API key

  1. Login the the OS Data Hub.

  2. Go to “API Dashboard”.

  3. Click on the link to the project for the key you wish to revoke.

  4. Select “Delete Project”. This will automatically revoke the key.

Revoked keys cannot be recovered.

This page was last reviewed on 5 June 2024. It needs to be reviewed again on 5 September 2024 by the page owner #operations-engineering-alerts .
This page was set to be reviewed before 5 September 2024 by the page owner #operations-engineering-alerts. This might mean the content is out of date.