Emails
These are the endpoints that are available under the /emailCategories path, which lists all the different email categories on your business' account.
Endpoint | Description |
---|---|
GET /emails | Returns all email sent objects by a business' account in array format. |
GET /emails/{emailId} | Returns a JSON object for the specified email sent. |
GET /emails/emailTemplates/{emailTemplateId} | Returns all email sent objects out that use specified email template in array format. |
GET /emails/calendar/{calendarId} | Returns all email sent objects for specified appointment in array format. |
GET /emails/recurringAppointment/{recurringAppointmentId} | Returns all email sent objects for specified recurring appointment in array format. |
GET /emails/calendar/{calendarId}/recurringAppointment/{recurringAppointmentId} | Returns all email sent objects for specified appointment and any email objects sent for the recurring appointment series it belongs to in array format. |
GET /emails/client/{clientId} | Returns all email sent objects to specified client in array format. |
GET /emails/invoice/{invoiceId} | Returns all email sent objects for specified invoice in array format. |
GET /emails/invitation/{invitationUUId} | Returns all emails sent out for specified invitation. |
GET /emails/disclaimerForm/{disclaimerFormUUId}/DISCLAIMER_FORM_CLIENT | Returns email with proper link for client to click when they receive it to fill in specified disclaimer form. |
GET /emails/status/bounced | Returns all email sent objects that have status = BOUNCED. |
GET /emails/waitlist/{waitlistId}/{emailTemplateCode} | Returns an email object for a person to edit before it gets sent out for the specified waitlist ID. |
POST /emailDelivery | Returns all emailDelivery objects on the sent email. Request body/payload: Must pass the sendId from the email send object in request body/payload. |
POST /email/calendar/{calendarId}/{emailCategoryCode} | Returns an email set object with status sent to "QUEUED" and body property merged with correct values from specified calendarId. |
POST /emails | Sends an email out to one appointment. Request body/payload: Must pass an email sent object in request body/payload. For these calls, you need to pass an email sent object with all required fields and any fields you want to set filled in the body of the payload, and with the calendarId property set to match the ID of the appointment it is sending for. We have an example of an email sent object in the responses section below and have indicated the required fields in the object values table at the bottom of this page. |
POST /emails/calendar/{calendarIdList} | Sends an email out to multiple recipients. Request body/payload: Must pass an email sent object in request body/payload. For these calls, you need to pass an email sent object with all required fields and any fields you want to set filled in the body of the payload, and with the commaSeparatedCalendarIdList property set to match the IDs of the appointments it is sending for. We have an example of an email sent object in the responses section below and have indicated the required fields in the object values table at the bottom of this page. |
POST /emails/invoice/{invoiceId} | Sends an email out for specified invoice. Request body/payload: Must pass an email template object in request body/payload. For these calls, you need to pass an email template object with all required fields and any fields you want to set filled in the body of the payload, and with the calendarId property set to match the ID of the appointment it is sending for. We have an example of an email template object in the responses section of the Email Templates API page and have indicated the required fields in the object values table at the bottom of this page. |
Data points passed on in the request URL portion of the API call that are used to filter the data being requested.
Paramater | Type | Endpoints to be used with | Description |
---|---|---|---|
pageNumber | integer | GET /emails, GET /emails/status/bounced | Works with the pageSize parameter to determine how emails get returned following a GET emails/status/bounced call. The pageNumber value represents the number of pages on which the emails that get returned appear. |
pageSize | integer | GET /emails, GET /emails/status/bounced | Works with the pageNumber parameter to determine how emails gets returned following a GET emails/status/bounced call. The pageSize value represents the number of emails appearing on each page that gets returned. |
The objects below represent the minimum viable objects to pass that are needed to create or update an emails object. Check whether or not a property can be written to by looking at the Object Values table below to see if the property is writable.
emails
Property Name | Type | Description |
---|---|---|
atachFileLibraryUUids | array | Displays as an array containing all UUIds of attachments for the specified email. |
bccAddress | string | Displays as the Bcc of the specified email. |
body | string | Displays as the HTML coding for Body of the specified email. |
businessId | integer | Provides unique numeric ID for the business to which the specified email belongs. |
calendarId | integer | Provides unique numeric ID for the appointment connected to the specified email. |
ccAddress | string | Displays as the Cc of the specified email. |
clientId | integer | Provides unique numeric ID for the client connected to the specified email. |
classScheduleId | integer | Provides unique numeric ID for the class schedule connected to the specified email. |
clientAccountId | integer | If the client connected to the specified email has registered on the scheduler or you have provided the client with a password to the scheduler, this would provide their unique numeric ID for the scheduler login. |
createdDate | integer | Displays as date the specified email was created in milliseconds elapsed since January 1, 1970 00:00:00 UTC form. |
createdUser | string | Displays the username of user who created the specified email. |
dateProcessed | integer | Displays as date the specified email got processed in milliseconds elapsed since January 1, 1970 00:00:00 UTC form. |
disclaimerFormUUid | string | Provides unique alphanumeric ID of any disclaimer form connected to the specified email. |
emailBecause | string | Displays as the reason the specified email was sent. |
emailCategory | object | Displays as email category object of the specified email. |
emailFinal | string | Displays as the final part of the specified email. |
emailFooter | string | Displays as the Footer of the specified email. |
emailId | integer | Provides unique numeric ID for the specified email. |
emailStatusId | integer | Provides unique numeric ID for the email status connected to the specified email. |
emailTemplateId | integer | Provides unique numeric ID for the email template connected to the specified email. |
fromAddress | string | Displays as the From Address of the specified email. |
fromName | string | Displays as the From Name of the specified email. |
gateway | string | Displays as unique email sending provider/gateway if default (Postmark) is not used. |
icalText | string | Set to the HTML value for any .ics file attachment sent with the specified email. |
invitationUUId | string | Provides unique alphanumeric ID for any invitation connected to the specified email. |
invoiceId | integer | Displays as unique numeric ID of any invoice connected to the specified email. |
jobRequisitionId | integer | Provides unique numeric ID for any job requisitions connected to the specified email. |
locale | string | Displays as language/locale of the specified email. |
location | string | Displays as the Location of the specified email. |
modifiedDate | integer | Displays as date the specified email was last modified in milliseconds elapsed since January 1, 1970 00:00:00 UTC form. |
msgType | string | Displays as the message type of the specified email. Has available options "EMAIL" and "SMS". |
noHeader | boolean | Indicates whether or not the specified email uses no header. |
packageSoldId | integer | Provides unique numeric ID for any packages sold connected to the specified email. |
postmarkAPIKey | string | If the account uses Postmark to send emails, this displays as the Postmark API key connected to the specified email. |
professionalId | integer | Provides unique numeric ID of any staff connected to the specified email. |
recurringAppointmentId | integer | Displays as unique numeric ID of any recurring appointment series the specified email belongs to. |
replyToAddress | string | Displays as the Reply to Address of the specified email. |
s3FileName | string | Displays as the location/name of the specified email file as stored in Amazon Web Services repository. |
s3FinalFileName | string | Displays as the final file location/name of the specified email file as stored in Amazon Web Services repository. |
s3ICSFileName | string | Displays as the ICS file name of the specified email file as stored in Amazon Web Services repository. |
sendError | string | Displays as the Send Error of the specified email. |
sendId | string | Provides unique alphanumeric ID for sent email. |
sendgridAPIKey | string | If the account uses Sendgrid to send emails, this displays as the Sendgrid API Key connected to the specified email. |
sentAge | string | Displays as how long ago the specified email was sent. |
status | string | Displays as status of the specified email. Has available options "DELIVERED", "OPENED", "FAILED", "BOUNCED". |
subject | string | Displays as the Subject of the specified email. |
toAddress | string | Displays as the To Address of the specified email. |
toName | string | Displays as the To Name of the specified email. |
twilioAuthToken | string | Provides the Twilio auth token connected to the specified email. |
twilioSID | string | Displays as the Twilio String Identifier connected to the specified email. |
waitListId | integer | Provides unique numeric ID of any waitlist connected to the specified email. |
waitListInviteUUId | string | Provides unique alphanumeric ID of any waitlist invite connected to the specified email. |
emailDelivery
Property Name | Type | Required | Description |
---|---|---|---|
bounceSubType | string | Gives greater description as to the bounce type reason | |
bounceType | string | Indicates whether the bounce was a permanent bounce, transient bounce, or if it was undetermined | |
dateCreated | integer | Displays as date the specified email delivery was created in milliseconds elapsed since January 1, 1970 00:00:00 UTC form. | |
diagnosticsCode | string | Displays as reason the specified email delivery was unable to send. | |
emailAddress | string | Displays as email address the specified email delivery was sent to. | |
emailDeliveryId | string | Provides unique numeric ID for the specified email delivery. | |
emailId | integer | Provides unique numeric ID for email connected to the specified email delivery. | |
jsonText | string | Displays as JSON text for the specified email delivery. | |
messageId | string | Provides unique alphanumeric ID for the specified email delivery. | |
notificationType | string | Displays as type of notification connected to the specified email delivery. |