OrganizationWebhookRequestBody

JSON body POSTed to your organization webhook URL configured in settings.

  • organizationId
    Type: string Pattern: ^[0-9a-z]+$Format: cuid2
    required

    The organization this webhook event belongs to.

  • payload
    required

    Emitted when a new encounter is created.

    • agentId
      Type: string Pattern: ^[0-9a-z]+$Format: cuid2 nullable
      required

      The agent associated with the encounter, or null when the encounter has no agent (for example a scribe encounter).

    • consultInvitationId
      Type: string Pattern: ^[0-9a-z]+$Format: cuid2 nullable
      required

      The consult invitation that led to the encounter, or null when the encounter was not created from an invitation.

    • encounterId
      Type: string Pattern: ^[0-9a-z]+$Format: cuid2
      required

      The encounter this event applies to.

    • teamId
      Type: string Pattern: ^[0-9a-z]+$Format: cuid2
      required

      The team the encounter belongs to.

    • type
      const:  
      encounter.created
      required