Benji Pays · Schema
GetEmailResponse
Single email response
PaymentsAccountingIntegrationQuickBooksXero
Properties
| Name | Type | Description |
|---|---|---|
| data | object |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://artifacts.apis.io/benjipays-com/json-schema/benjipays-com-get-email-response-schema.json",
"title": "GetEmailResponse",
"description": "Single email response",
"x-generated": "2026-11-10",
"x-method": "derived",
"x-generator": "derive-json-schema.py",
"x-source": "openapi/benjipays-com-emails-api-openapi.yml#/components/schemas/GetEmailResponse",
"type": "object",
"properties": {
"data": {
"$ref": "#/$defs/EmailDetail"
}
},
"required": [
"data"
],
"additionalProperties": false,
"$defs": {
"EmailDetail": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "Email identifier (Mongo `_id`)"
},
"type": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Email type (e.g. invoice, receipt, emailreminder)"
},
"status": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Delivery status (sent, queued, error)"
},
"subject": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"from": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"to": {
"type": "array",
"items": {
"type": "string"
}
},
"cc": {
"type": "array",
"items": {
"type": "string"
}
},
"bcc": {
"type": "array",
"items": {
"type": "string"
}
},
"sentDate": {
"anyOf": [
{
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
},
{
"type": "null"
}
],
"description": "ISO-8601 UTC timestamp the email was created/sent"
},
"opened": {
"type": "boolean"
},
"lastOpened": {
"anyOf": [
{
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
},
{
"type": "null"
}
],
"description": "ISO-8601 UTC timestamp of the last non-bot open"
},
"bounced": {
"type": "boolean"
},
"delivered": {
"type": "boolean"
},
"customerId": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Accounting customer ID"
},
"invoiceIds": {
"type": "array",
"items": {
"type": "string"
},
"description": "Associated accounting invoice IDs"
},
"sentBy": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Display name of the user who sent the email"
},
"reminderRule": {
"$ref": "#/$defs/EmailReminderRule"
},
"hasAttachments": {
"type": "boolean"
},
"html": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "HTML body of the email"
},
"text": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Plain-text body of the email"
},
"events": {
"type": "array",
"items": {
"$ref": "#/$defs/EmailEvent"
},
"description": "Full delivery event timeline"
}
},
"required": [
"id",
"type",
"status",
"subject",
"from",
"to",
"cc",
"bcc",
"sentDate",
"opened",
"lastOpened",
"bounced",
"delivered",
"customerId",
"invoiceIds",
"sentBy",
"reminderRule",
"hasAttachments",
"html",
"text",
"events"
],
"additionalProperties": false,
"description": "A sent email (detail, with body and event timeline)"
},
"EmailEvent": {
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Event type (e.g. Send, Delivery, Open, Bounce, Complaint)"
},
"timestamp": {
"anyOf": [
{
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
},
{
"type": "null"
}
],
"description": "ISO-8601 UTC timestamp of the event"
},
"recipients": {
"description": "Recipients for delivery events",
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"type",
"timestamp"
],
"additionalProperties": false,
"description": "A single delivery event"
},
"EmailReminderRule": {
"anyOf": [
{
"type": "object",
"properties": {
"displayName": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Friendly reminder rule name, resolved from email-reminder settings"
}
},
"required": [
"displayName"
],
"additionalProperties": false
},
{
"type": "null"
}
],
"description": "Reminder rule descriptor for reminder emails; null for non-reminder emails"
}
}
}
Work with this as data
Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for schemas
4 MCP tools reach this
find_json_schemasBrowse and filter every JSON Schema in the catalog.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.
Call it yourself
curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/benjipays-com-get-email-response"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.