getEmailTemplateByOrgIDAndEventType

This query retrieves email templates for an organization and filters by its event type.

General Pattern

query{
    getEmailTemplateByOrgIDAndEventType(orgID: UUID! eventType:EventType){
    field_1
    field_2 {
       nested_field_1
       ...
    }
  }
}

Sample Query

query{
  getEmailTemplateByOrgIDAndEventType(orgID:"a1dc174d-abf4-47d3-be3c-9281c6eba456"
  eventType:TokenTransferComplete){
    id
    organizationID
    organization{
      id
      handle
      name
      jwtIssuerDomain
      afterPaymentTransferSuspendTime
      buyNowInvoiceExpiryMins
    }
    eventType
    active
    templateContent
    subject
  }
}

Arguments

Name

Type

Description

Required

orgID

UUID

The organization ID.

Yes

eventType

Enum

An enum which contains options, such as LeadingBid, BidWon, BidCancelled, UserInvitations, etc.

Yes

Fields

Name

Type

Description

EmailTemplate

Object

An object that contains the EmailTemplate object information, such as email template ID, organization ID, Organization object, active, subject, and template content.

Example

Retrieve an email template using the organization ID anf Event Type filter: