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

Name

Type

Description

orgID

UUID

The organization ID.

eventType

Enum

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

Field

Name

Type

Description

EmailTemplate

Object

The 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: