Skip to main content

This is a new service. Help us improve it by giving feedback.

Welsh translation in progress

This service is being translated. Content that has not been translated yet is shown in English.

Publish an API

List your team’s API in the marketplace so other teams can find it, understand what it does, and request access.

The marketplace doesn’t own or run any of the APIs it lists — your team keeps that. What it does is make your API discoverable, documented in plain English, and reachable through a consistent access request process.

In this section

What you will need

Before your API can be listed, you will need:

  • a published OpenAPI specification, reachable at a stable URL
  • a named owning team and a contact email
  • a data classification for everything the API returns
  • a description of what the API is for
  • a DPIA in place that covers the data being shared as part of the API

Onboarding process

  1. Make sure your API repository is public on GitHub under the HMCTS organisation.
  2. Add the publish-api-docs.yml workflow to .github/workflows/ and raise a pull request.
  3. Once merged, trigger the workflow manually or cut a GitHub release — the version is stamped from the release tag.
  4. Confirm the Swagger UI documentation site is live at https://hmcts.github.io/<repo-name>/.
  5. Sign in to your developer account, or create one if you do not have one yet.
  6. Submit your API using the publish an API form.
  7. The marketplace team will review your submission and confirm.
  8. Once approved, your API appears in the catalogue and is kept in sync with your specification automatically.

Ongoing responsibilities

Keeping the spec current
Update your OpenAPI specification whenever you change the API. Cut a new GitHub release to publish the updated documentation.
Notifying consumers of breaking changes
Tell consumers about breaking changes with enough notice to act on them.
Reviewing access requests promptly
Respond to consumer access requests promptly. Give a clear reason if you reject one.
Maintaining contact details
Keep info.contact.email in your spec pointing at an active team inbox.
Deprecation and removal
If you need to remove an API, tell all consumers and the marketplace team at least 30 days in advance.

Get help

If you’re not sure whether your API is ready, or you want to talk through the process first, contact the marketplace team.