Email notifications report API

POST https://api.zenoti.com/v1/reports/notifications/email/flat_file

Purpose: The purpose of this API is to fetch a list of email notification details associated with a center.

Before you begin

Permission: Manage API Keys (on the Administrator security object) — Required to access Zenoti APIs.

Endpoint

POST /v1/reports/notifications/email/flat_file

Base URL: https://api.zenoti.com

Request

Headers

Header Required Description
Authorization Yes bearer {{access_token}}

Query parameters

Parameter Type Required Default Description
page string No — Page number to search
size string No — Size of the list to return

Request body

Field Type Required Description
start_date string (date) Yes Start date and time of the request. This will fetch all the email notifications from the date specified in the body.
end_date string (date) Yes End date of the request. The API will fetch the email notification details till the date and time specified in the body.

Response

Success (201 Created)

{}

Example

curl --request POST \
  --url 'https://api.zenoti.com/v1/reports/notifications/email/flat_file' \
  --header 'Authorization: bearer {{access_token}}' \
  --header 'Content-Type: application/json' \
  --data '{
  "start_date": "2026-01-15",
  "end_date": "2026-01-15"
}'
const response = await fetch('https://api.zenoti.com/v1/reports/notifications/email/flat_file', {
  method: 'POST',
  headers: {
    'Authorization': 'bearer {{access_token}}',
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({ start_date: '2026-01-15', end_date: '2026-01-15' })
});
const data = await response.json();
import requests

response = requests.post(
    'https://api.zenoti.com/v1/reports/notifications/email/flat_file',
    headers={
        'Authorization': 'bearer {{access_token}}',
    },
    json={'start_date': '2026-01-15', 'end_date': '2026-01-15'}
)
data = response.json()
using var client = new HttpClient();
client.DefaultRequestHeaders.Add("Authorization", "bearer {{access_token}}");
var content = new StringContent(
    JsonSerializer.Serialize(new { start_date = "2026-01-15", end_date = "2026-01-15" }),
    Encoding.UTF8, "application/json");
var response = await client.PostAsync(
    "https://api.zenoti.com/v1/reports/notifications/email/flat_file", content);
var data = await response.Content.ReadAsStringAsync();
require 'net/http'
require 'json'

uri = URI('https://api.zenoti.com/v1/reports/notifications/email/flat_file')
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true
request = Net::HTTP::Post.new(uri)
request['Authorization'] = 'bearer {{access_token}}'
request['Content-Type'] = 'application/json'
request.body = { start_date: '2026-01-15', end_date: '2026-01-15' }.to_json
response = http.request(request)
data = JSON.parse(response.body)

Error codes

Status Description
400 400
401 Unauthorized -- invalid or expired access token
429 Too many requests -- rate limit exceeded