Open API v2 / Emails / Emails

Emails

Every request needs a bearer token: Authorization: Bearer <token>. Base URL https://your-site.webinone.com. New to field types? See the type reference.

GET/api/v2/admin/emails#

Retrieves a list of emails by using a "where" filtering

Parameters
systemEventstring · queryrequired
SystemEvent.
Wherestring · query
JSON filter expression. Combine operators ($eq, $contains, $gt, $in, …) with $and / $or.
Order_Bystring · query
Sort field. Prefix with - for descending; comma-separate for tie-breakers.
Semantic_Querystring · query
Natural-language search, ranked by relevance.
Min_Scorenumber · query
Lowest relevance score to include when using Semantic_Query.
Offsetinteger · query
Number of items to skip before returning results. Defaults to 0.
Limitinteger · query
Maximum number of items to return. Defaults to 100.
Response
Idinteger
Unique identifier. Technical record number in the database. Read-only.
Namestring · nullable
Name of the email.
EmailTemplateIdinteger
The identifier of the visual framework (template) that defines the design (logos, footer, fonts).
FromNamestring · nullable
Sender display name.
FromEmailstring · nullable
The system address from which the letter originates.
Subjectstring · nullable
A message subject that clearly indicates the essence of the event.
Bodystring · nullable
Message body.
CreatedDateTimestring · date-time
Date and time of case creation in UTC. Read-only.
GroupNamestring · nullable
The name of the group or category to which this letter belongs.
curl "https://your-site.webinone.com/api/v2/admin/emails" \
  -H "Authorization: Bearer <token>"
Response · 200
{
  "Items": [
    {
      "Id": 1,
      "Name": "Example",
      "EmailTemplateId": 1,
      "FromName": "Example",
      "FromEmail": "user@example.com",
      "Subject": "string",
      "Body": "string",
      "CreatedDateTime": "2026-07-01T00: 00: 00Z",
      "GroupName": "Example"
    }
  ],
  "TotalItemsCount": 0
}
POST/api/v2/admin/emails#

Creates a new email

Body parameters
EmailGroupTypeenumrequired
Specifies the category and purpose of the letter. Possible values: WorkflowNotification, FollowUpNotification, AbandonedCartNotification, RecurringReminderNotification.Possible values: WorkflowNotificationFollowUpNotificationAbandonedCartNotificationRecurringReminderNotification
Namestringrequired
Name of the email.
FromNamestringrequired
Sender display name.
FromEmailstringrequired
The system address from which the letter originates.
Subjectstringrequired
A message subject that clearly indicates the essence of the event.
EmailTemplateIdinteger
The identifier of the visual framework (template) that defines the design (logos, footer, fonts).
Bodystringrequired
Message body.
Response
Idinteger
Unique identifier. Technical record number in the database. Read-only.
Namestring · nullable
Name of the email.
EmailTemplateIdinteger
The identifier of the visual framework (template) that defines the design (logos, footer, fonts).
FromNamestring · nullable
Sender display name.
FromEmailstring · nullable
The system address from which the letter originates.
Subjectstring · nullable
A message subject that clearly indicates the essence of the event.
Bodystring · nullable
Message body.
CreatedDateTimestring · date-time
Date and time of case creation in UTC. Read-only.
GroupNamestring · nullable
The name of the group or category to which this letter belongs.
curl -X POST "https://your-site.webinone.com/api/v2/admin/emails" \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{"EmailGroupType":"WorkflowNotification","Name":"Example","FromName":"Example","FromEmail":"user@example.com","Subject":"string","EmailTemplateId":1,"Body":"string"}'
Response · 200
{
  "Id": 1,
  "Name": "Example",
  "EmailTemplateId": 1,
  "FromName": "Example",
  "FromEmail": "user@example.com",
  "Subject": "string",
  "Body": "string",
  "CreatedDateTime": "2026-07-01T00: 00: 00Z",
  "GroupName": "Example"
}
GET/api/v2/admin/emails/{id}#

Retrieves a single email

Parameters
idinteger · pathrequired
Email id.
Response
Idinteger
Unique identifier. Technical record number in the database. Read-only.
Namestring · nullable
Name of the email.
EmailTemplateIdinteger
The identifier of the visual framework (template) that defines the design (logos, footer, fonts).
FromNamestring · nullable
Sender display name.
FromEmailstring · nullable
The system address from which the letter originates.
Subjectstring · nullable
A message subject that clearly indicates the essence of the event.
Bodystring · nullable
Message body.
CreatedDateTimestring · date-time
Date and time of case creation in UTC. Read-only.
GroupNamestring · nullable
The name of the group or category to which this letter belongs.
curl "https://your-site.webinone.com/api/v2/admin/emails/1" \
  -H "Authorization: Bearer <token>"
Response · 200
{
  "Id": 1,
  "Name": "Example",
  "EmailTemplateId": 1,
  "FromName": "Example",
  "FromEmail": "user@example.com",
  "Subject": "string",
  "Body": "string",
  "CreatedDateTime": "2026-07-01T00: 00: 00Z",
  "GroupName": "Example"
}
PUT/api/v2/admin/emails/{id}#

Updates an existing email

Parameters
idinteger · pathrequired
Existent email id.
Body parameters
Namestringrequired
Name of the email update.
FromNamestringrequired
Sender display name.
FromEmailstringrequired
The system address from which the letter originates.
Subjectstringrequired
A message subject that clearly indicates the essence of the event.
EmailTemplateIdinteger
The identifier of the visual framework (template) that defines the design (logos, footer, fonts).
Bodystringrequired
Message body.
Response
Idinteger
Unique identifier. Technical record number in the database. Read-only.
Namestring · nullable
Name of the email.
EmailTemplateIdinteger
The identifier of the visual framework (template) that defines the design (logos, footer, fonts).
FromNamestring · nullable
Sender display name.
FromEmailstring · nullable
The system address from which the letter originates.
Subjectstring · nullable
A message subject that clearly indicates the essence of the event.
Bodystring · nullable
Message body.
CreatedDateTimestring · date-time
Date and time of case creation in UTC. Read-only.
GroupNamestring · nullable
The name of the group or category to which this letter belongs.
curl -X PUT "https://your-site.webinone.com/api/v2/admin/emails/1" \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{"Name":"Example","FromName":"Example","FromEmail":"user@example.com","Subject":"string","EmailTemplateId":1,"Body":"string"}'
Response · 200
{
  "Id": 1,
  "Name": "Example",
  "EmailTemplateId": 1,
  "FromName": "Example",
  "FromEmail": "user@example.com",
  "Subject": "string",
  "Body": "string",
  "CreatedDateTime": "2026-07-01T00: 00: 00Z",
  "GroupName": "Example"
}
DELETE/api/v2/admin/emails/{id}#

Deletes an existing email

Parameters
idinteger · pathrequired
Existent email id.
curl -X DELETE "https://your-site.webinone.com/api/v2/admin/emails/1" \
  -H "Authorization: Bearer <token>"
GET/api/v2/admin/emails/custom-email-groups#

Retrieves a list of email groups

Response
Idstring · nullable
Unique identifier. Technical record number in the database. Read-only.
Typestring · nullable
Machine key of the email group, identifying its category and purpose (for example WorkflowNotification or AbandonedCartNotification).
DisplayNamestring · nullable
Display name of the email group, shown to users.
curl "https://your-site.webinone.com/api/v2/admin/emails/custom-email-groups" \
  -H "Authorization: Bearer <token>"
Response · 200
[
  {
    "Id": "string",
    "Type": "string",
    "DisplayName": "Example"
  }
]
GET/api/v2/admin/emails/variables#

Retrieves a list of variables

Parameters
emailSectionstring · query
EmailSection.
Response
curl "https://your-site.webinone.com/api/v2/admin/emails/variables" \
  -H "Authorization: Bearer <token>"
Response · 200
[
  "string"
]