getEmailTemplateByOrgIDAndEventType

This query returns an email template using the organization ID and a specified event.

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:UserSignUp){
    id
    organizationID
    eventType
    active
    templateContent
    subject
  }
}

Arguments

NameTypeDescription
orgIDUUIDThe organization ID.
eventTypeEnumThe type of the event. The value can be either LeadingBid , BidWon, BidCanceled, BidOutBid, OrderCompletion, TokenClaimed, UserSignUp, ResetPassowrd, VerifyAccount, TokenTransferComplete, or UserInvitation.

Field

NameTypeDescription
EmailTemplateObjectThe template of the email. Contains the ID, organization ID, basic information of the organization, etc.

Example

Retrieve an email template for User Sign Up event by the organization ID: