Properties
| Name | Type | Description |
|---|---|---|
| id | string | |
| direction | string | |
| from | string | |
| to | string | |
| subject | stringnull | |
| snippet | stringnull | First 280 characters of the text body. |
| code | stringnull | One-time code detected in the email, if any. |
| status | string | |
| read | boolean | |
| hasAttachments | boolean | |
| createdAt | string | |
| text | stringnull | |
| html | stringnull | |
| messageId | stringnull | |
| inReplyTo | stringnull | |
| attachments | array |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://artifacts.apis.io/agentline-nz/json-schema/agentline-nz-email-schema.json",
"title": "Email",
"x-generated": "2026-11-01",
"x-method": "derived",
"x-generator": "derive-json-schema.py",
"x-source": "openapi/_original/agentline-nz-api-openapi.json#/components/schemas/Email",
"allOf": [
{
"$ref": "#/$defs/EmailSummary"
},
{
"type": "object",
"required": [
"text",
"html",
"messageId",
"inReplyTo",
"attachments"
],
"properties": {
"text": {
"type": [
"string",
"null"
]
},
"html": {
"type": [
"string",
"null"
]
},
"messageId": {
"type": [
"string",
"null"
]
},
"inReplyTo": {
"type": [
"string",
"null"
]
},
"attachments": {
"type": "array",
"items": {
"type": "object",
"required": [
"filename",
"mimeType",
"size"
],
"properties": {
"filename": {
"type": "string"
},
"mimeType": {
"type": "string"
},
"size": {
"type": "integer"
}
}
}
}
}
}
],
"$defs": {
"EmailSummary": {
"type": "object",
"required": [
"id",
"direction",
"from",
"to",
"subject",
"snippet",
"code",
"status",
"read",
"hasAttachments",
"createdAt"
],
"properties": {
"id": {
"type": "string"
},
"direction": {
"type": "string",
"enum": [
"in",
"out"
]
},
"from": {
"type": "string"
},
"to": {
"type": "string"
},
"subject": {
"type": [
"string",
"null"
]
},
"snippet": {
"type": [
"string",
"null"
],
"description": "First 280 characters of the text body."
},
"code": {
"type": [
"string",
"null"
],
"description": "One-time code detected in the email, if any."
},
"status": {
"type": "string"
},
"read": {
"type": "boolean"
},
"hasAttachments": {
"type": "boolean"
},
"createdAt": {
"type": "string",
"format": "date-time"
}
}
}
}
}
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/agentline-nz-email"
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. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.