Skip to content

Get Started

To begin using the CGP client library, you'll need to follow these steps:

Register Your Application

To access the CGP APIs, you must first register an application on the NHS Developer Hub.

Once logged in, navigate to Environment access. You'll land in My applications and teams. Click Add new application.

When registering:

  • Choose the appropriate environment: Development, Integration, or Production.
  • Ensure this matches the --api_host parameter in your scripts.

Authenticate

The CGP client supports multiple authentication methods:

  • API Key Authentication:
  • JWT Token Authentication (Recommended):
  • Sandbox Environment (No Authentication Required):
    • For testing and experimentation in the APIM sandbox.
    • Useful for quickly exploring API functionality without setting up authentication.

Add Configuration

You can configure the CGP client library using a YAML configuration file, simplifying command-line usage. This file allows you to specify API host, API keys, private keys, and other settings. For more details on configuration options and file structure, please see the configuration documentation.