CreateWebhookInput
Input for creating a webhook subscription.
Integration guide: Webhooks guide
Interactive mutation builder: Create Webhook mutation builder
eventTypes
Use lowercase dotted strings. These are the same values returned in delivered webhook payloads (eventType).
Subscribe to each event you need; event types do not overlap (for example, booking.updated does not include patient journey events).
Valid values:
availability.blocker.createdavailability.blocker.removedavailability.blocker.updatedavailability.recurring.createdavailability.recurring.removedavailability.recurring.updatedavailability.specific.createdavailability.specific.removedavailability.specific.updatedbooking.createdbooking.deletedbooking.patientJourney.arrivedbooking.patientJourney.completedbooking.patientJourney.inConsultationbooking.patientJourney.noShowbooking.updatedepisode.createdepisode.deletedepisode.updatedclinicalReport.submittedForApprovalinvoice.createdinvoice.deletedinvoice.integrations.healthcode.statusUpdatedinvoice.integrations.xero.syncedinvoice.lineItems.addedinvoice.lineItems.removedinvoice.paidinvoice.partiallyPaidinvoice.refundedinvoice.sharedinvoice.updatedlab.createdlab.results.addedletter.createdletter.deletedletter.reviewStatus.updatedletter.sharedlocation.createdlocation.deletedlocation.updatedlocationGroup.createdlocationGroup.deletedlocationGroup.updatedpatient.archivedpatient.createdpatient.customAttribute.addedpatient.customAttribute.removedpatient.customAttribute.updatedpatient.deletedpatient.label.addedpatient.label.removedpatient.membership.updatedpatient.mergedpatient.number.addedpatient.number.removedpatient.number.updatedpatient.phone.addedpatient.phone.removedpatient.phone.updatedpatient.relationship.addedpatient.relationship.removedpatient.relationship.updatedpatient.unarchivedpatient.updatedpatientDocument.deletedpatientDocument.renamedpatientDocument.uploadInitiatedpathway.booking.assignedpathway.booking.unassignedpathway.createdpathway.deletedpathway.updatedprescription.createdprescription.deletedprescription.eprescription.generatedprescription.orderedprescription.recordedInErrorprescription.sharedproduct.label.addedproduct.label.removedquestionnaire.response.received
input CreateWebhookInput {
url: String!
eventTypes: [String!]!
label: String!
headers: [WebhookHeaderInput!]
}
Fields
CreateWebhookInput.url ● String! non-null scalar
Destination URL (HTTPS only).
CreateWebhookInput.eventTypes ● [String!]! non-null scalar
Event types to subscribe to. See CreateWebhookInput for the full list of valid values.
CreateWebhookInput.label ● String! non-null scalar
Short label to identify this subscription (e.g. in your admin UI).
CreateWebhookInput.headers ● [WebhookHeaderInput!] list input
Optional headers to include on each webhook delivery.
Member Of
createWebhook mutation