v0.0.79
The changes documented here consolidate the main changes made from v0.0.72 to v0.0.79.
Breaking Changes
- Removed support for legacy static API keys (
Authorization: ApiKey <token>). All requests must be authenticated with a JWT, as described on theAuthenticationpage. - Removed the deprecated
statusfield from referral responses in the API reference and SDK. It is still returned for backwards compatibility but may be removed in the future, so usecoreStatusinstead. - The following referral response fields are now optional, and are omitted rather than returned as an empty string when no value was provided:
patient.uin,patient.phoneNumberandpatient.dobreferringDoctor.emailandreferringDoctor.contactNumber
POST /api/v1/referrals/:referralId/back-to-draftnow only accepts referrals that are still pending email acknowledgement, so rejected referrals can no longer be sent back to draft.
Additions
- Added new
POST /api/v1/referrals/:referralId/action-links/:typeendpoint, which returns a freshly issued referral link for a single action type (amend,select-timeslot,fill-singhealth-formsg,attachmentorview). It requiresrequesterIdentifier,institutionIdTypeandinstitutionIdin the request body, plusattachmentIdwhentypeisattachment. - Added new
actionsfield to theGET /api/v1/referrals/:referralIdresponse, listing the actions available on the referral. Each action has atypeandlabel, andattachmentactions also includeattachment(idanduploadedAt). - Added new fields to referral responses (
GET /api/v1/institutions/:institutionIdType/:institutionId/referrals,GET /api/v1/referrals/:referralId,DELETE /api/v1/referrals/:referralId,POST /api/v1/referrals/:referralId/cancel,POST /api/v1/referrals/:referralId/back-to-draft):canBackToDraft— whether the referral can be sent back to draft to be amended and resubmitted.offeringClinician— the clinician (name) at the receiving institution for the referral’s latest appointment, when available.patient.raceandpatient.email.
- Added new
buildingName,city,geographicalAreaandcountryfields to the patient address (addressin thePOST /api/v1/links/upsertrequest body, andpatient.addressin referral responses). - Added new values to the timeline event
typefield (timelineEvents[].type) returned byGET /api/v1/referrals/:referralId:referral.sender-hci-changed— the referral’s sender HCI code was changed, e.g. when clinics merge under a new HCI code.referral.offering-fallback— the referral was automatically rerouted to a fallback offering because its original offering was deactivated.appt.booking-fallback— the selected appointment timeslot could not be confirmed with the receiving system, so the institution will schedule the appointment instead.attachment.uploaded— the receiving system uploaded an attachment to the referral. The attachment is listed as anattachmentaction in the referral’sactionsarray.
Documentation Changes
- Added a new
Referral Link V2page in theConceptssection, explaining how to list a referral’s availableactionsand fetch a fresh link only when the user acts. - Added
Get action link by typeto theAPI Overviewpage, and fixed its broken API reference links. - Updated the file upload limit on the
Request and Response Limitspage from 50 MB to 5 MB. - Documented
400,403,404and429error responses in the API reference. - Clarified that
clinicalInfoin thePOST /api/v1/links/upsertrequest body is optional but strongly recommended, as it pre-fills the referral form.
Recommendations
- Use the
actionsfield withPOST /api/v1/referrals/:referralId/action-links/:typeinstead of theurlandlinksfields, so that every link you open is freshly issued. See theReferral Link V2page for details. - Use the
canBackToDraftfield in referral responses to determine whether to show an amend option in the UI. - If you have any questions or need support with these changes, please reach out to the RefX team at refx-support@health.gov.sg.

