Organization webhook event
Mindoo sends this request to the webhook URL configured in your organization settings. The JSON body includes your organization id and a discriminated payload whose type indicates the event (for example encounter.status when an encounter’s status changes). Respond with any 2xx status to acknowledge receipt.
JSON body POSTed to your organization webhook URL configured in settings.
- Type: stringorganization
Id Pattern: ^[0-9a-z]+$Format: cuid2requiredThe organization this webhook event belongs to.
- payloadrequired
Emitted when a new encounter is created.
- agentType: string
Id Pattern: ^[0-9a-z]+$Format: cuid2 nullablerequiredThe agent associated with the encounter, or null when the encounter has no agent (for example a scribe encounter).
- consultType: string
Invitation Id Pattern: ^[0-9a-z]+$Format: cuid2 nullablerequiredThe consult invitation that led to the encounter, or null when the encounter was not created from an invitation.
- encounterType: string
Id Pattern: ^[0-9a-z]+$Format: cuid2requiredThe encounter this event applies to.
- teamType: string
Id Pattern: ^[0-9a-z]+$Format: cuid2requiredThe team the encounter belongs to.
- typeconst:encounter.createdrequired
- 200
Webhook acknowledged
{
"organizationId": "",
"payload": {
"agentId": "",
"consultInvitationId": "",
"encounterId": "",
"teamId": "",
"type": "encounter.created"
}
}
