Request for cURL Example for NEMS API – ECONNRESET Issue

Hi,

We are a TIF Framework partner of the NHS and are currently working on integrating with the NEMS API.

We are attempting to invoke the API using cURL; however, the request consistently results in an ECONNRESET error, despite trying multiple configurations from our end.

Could you please assist by sharing a validated cURL example (including required headers and certificates, if applicable) or any guidance on common causes for this error when accessing the NEMS API?

Your support would be greatly appreciated.

Kind regards,

Are you trying to create a subscription to NEMS using Create Subscription | Events-Managment

This is not a question for PDS - I’ll try get someone from NEMS/MNS to look at it.

Yes, we are looking to create a subscription using NEMS. As there was no specific tagged topic available for NEMS, we selected PDS instead.

Please feel free to take your time and let us know which option—NEMS or MNS—we should use going forward, as it currently appears that the NEMS API may be deprecated.

Yes, NEMS is deprecated, and if you haven’t already been OK’d to use it, you should look at MNS events.

It would be good to understand what you are trying to achieve and maybe I can help.

Hi Manish,

Following our email conversation on 27/01/2026 the curl command you provided me with indicated that you were trying to send a NEMS subscription creation to the MNS API. Whilst MNS is expected to replace NEMS it does not currently cover the Use Case you are required to meet under TIFF. Have you tried transmitting your subscription creation message to the URL I pointed you to in the NEMS onboarding guide? This will be either https://msg.int.spine2.ncrs.nhs.uk/STU3/Subscription if you are using HSCN or https://msg.intspineservices.nhs.uk/STU3/Subscription if you are connecting over the internet gateway.

Thanks for your message. We’ll be in touch shortly with an update.