{
  "@context": {
    "@vocab": "https://mails.ai/schema#",
    "schema": "https://schema.org/",
    "xsd": "http://www.w3.org/2001/XMLSchema#",
    "dcterms": "http://purl.org/dc/terms/",
    "mails": "https://mails.ai/schema#",
    "SendMessageRequest": "mails:SendMessageRequest",
    "agent": {
      "@id": "mails:agent",
      "@type": "xsd:string"
    },
    "from": {
      "@id": "mails:from",
      "@type": "xsd:string"
    },
    "to": {
      "@id": "mails:to"
    },
    "cc": {
      "@id": "mails:cc",
      "@container": "@list"
    },
    "bcc": {
      "@id": "mails:bcc",
      "@container": "@list"
    },
    "subject": {
      "@id": "mails:subject",
      "@type": "xsd:string"
    },
    "body_text": {
      "@id": "mails:body_text",
      "@type": "xsd:string"
    },
    "body_html": {
      "@id": "mails:body_html",
      "@type": "xsd:string"
    },
    "html": {
      "@id": "mails:html",
      "@type": "xsd:string"
    },
    "text": {
      "@id": "mails:text",
      "@type": "xsd:string"
    },
    "reply_to": {
      "@id": "mails:reply_to",
      "@type": "xsd:string"
    },
    "in_reply_to_message_id": {
      "@id": "mails:in_reply_to_message_id",
      "@type": "xsd:string"
    },
    "references": {
      "@id": "mails:references",
      "@container": "@list"
    },
    "attachments": {
      "@id": "mails:attachments",
      "@container": "@list"
    },
    "metadata": {
      "@id": "mails:metadata"
    },
    "scheduled_at": {
      "@id": "mails:scheduled_at",
      "@type": "xsd:dateTime"
    },
    "tags": {
      "@id": "mails:tags",
      "@container": "@list"
    },
    "list_unsubscribe": {
      "@id": "mails:list_unsubscribe",
      "@type": "xsd:boolean"
    },
    "ReplyMessageRequest": "mails:ReplyMessageRequest",
    "reply_all": {
      "@id": "mails:reply_all",
      "@type": "xsd:boolean"
    },
    "ForwardMessageRequest": "mails:ForwardMessageRequest",
    "RescheduleMessageRequest": "mails:RescheduleMessageRequest",
    "CreateDraftRequest": "mails:CreateDraftRequest",
    "send_at": {
      "@id": "mails:send_at",
      "@type": "xsd:dateTime"
    },
    "UpdateDraftRequest": "mails:UpdateDraftRequest",
    "SendDraftRequest": "mails:SendDraftRequest",
    "UpdateThreadRequest": "mails:UpdateThreadRequest",
    "labels": {
      "@id": "mails:labels",
      "@container": "@list"
    },
    "label_ids": {
      "@id": "mails:label_ids",
      "@container": "@list"
    },
    "status": {
      "@id": "mails:status",
      "@type": "xsd:string"
    },
    "read": {
      "@id": "mails:read",
      "@type": "xsd:boolean"
    },
    "folder": {
      "@id": "mails:folder",
      "@type": "xsd:string"
    },
    "CreateAgentRequest": "mails:CreateAgentRequest",
    "name": {
      "@id": "mails:name",
      "@type": "xsd:string"
    },
    "domain": {
      "@id": "mails:domain",
      "@type": "xsd:string"
    },
    "address": {
      "@id": "mails:address",
      "@type": "xsd:string"
    },
    "forwarding": {
      "@id": "mails:forwarding",
      "@type": "xsd:boolean"
    },
    "allowlist_domains": {
      "@id": "mails:allowlist_domains",
      "@container": "@list"
    },
    "blocklist_domains": {
      "@id": "mails:blocklist_domains",
      "@container": "@list"
    },
    "daily_send_limit": {
      "@id": "mails:daily_send_limit",
      "@type": "xsd:integer"
    },
    "hourly_send_limit": {
      "@id": "mails:hourly_send_limit",
      "@type": "xsd:integer"
    },
    "classify_inbound": {
      "@id": "mails:classify_inbound",
      "@type": "xsd:boolean"
    },
    "UpdateAgentRequest": "mails:UpdateAgentRequest",
    "CreateApiKeyRequest": "mails:CreateApiKeyRequest",
    "agent_id": {
      "@id": "mails:agent_id",
      "@type": "xsd:string"
    },
    "scopes": {
      "@id": "mails:scopes",
      "@container": "@list"
    },
    "mode": {
      "@id": "mails:mode",
      "@type": "xsd:string"
    },
    "expires_at": {
      "@id": "mails:expires_at",
      "@type": "xsd:dateTime"
    },
    "CreateWebhookRequest": "mails:CreateWebhookRequest",
    "url": {
      "@id": "mails:url",
      "@type": "@id"
    },
    "event_types": {
      "@id": "mails:event_types",
      "@container": "@list"
    },
    "description": {
      "@id": "mails:description",
      "@type": "xsd:string"
    },
    "UpdateWebhookRequest": "mails:UpdateWebhookRequest",
    "active": {
      "@id": "mails:active",
      "@type": "xsd:boolean"
    },
    "AllowSuppressionRequest": "mails:AllowSuppressionRequest",
    "attestation": {
      "@id": "mails:attestation",
      "@type": "xsd:string"
    },
    "BillingPortalRequest": "mails:BillingPortalRequest",
    "return_url": {
      "@id": "mails:return_url",
      "@type": "@id"
    },
    "price_lookup_key": {
      "@id": "mails:price_lookup_key",
      "@type": "xsd:string"
    },
    "TestInboundRequest": "mails:TestInboundRequest",
    "from_name": {
      "@id": "mails:from_name",
      "@type": "xsd:string"
    },
    "raw_base64": {
      "@id": "mails:raw_base64",
      "@type": "xsd:string"
    },
    "spf": {
      "@id": "mails:spf",
      "@type": "xsd:string"
    },
    "dkim": {
      "@id": "mails:dkim",
      "@type": "xsd:string"
    },
    "CreateDomainRequest": "mails:CreateDomainRequest",
    "CreateLabelRequest": "mails:CreateLabelRequest",
    "color": {
      "@id": "mails:color",
      "@type": "xsd:string"
    },
    "UpdateLabelRequest": "mails:UpdateLabelRequest",
    "FieldError": "mails:FieldError",
    "code": {
      "@id": "mails:code",
      "@type": "xsd:string"
    },
    "message": {
      "@id": "mails:message",
      "@type": "xsd:string"
    },
    "param": {
      "@id": "mails:param",
      "@type": "xsd:string"
    },
    "Error": "mails:Error",
    "error": {
      "@id": "mails:error"
    },
    "Tag": "mails:Tag",
    "value": {
      "@id": "mails:value",
      "@type": "xsd:string"
    },
    "AttachmentMeta": "mails:AttachmentMeta",
    "filename": {
      "@id": "mails:filename",
      "@type": "xsd:string"
    },
    "content_type": {
      "@id": "mails:content_type",
      "@type": "xsd:string"
    },
    "size_bytes": {
      "@id": "mails:size_bytes",
      "@type": "xsd:integer"
    },
    "content_id": {
      "@id": "mails:content_id",
      "@type": "xsd:string"
    },
    "SentMessage": "mails:SentMessage",
    "id": {
      "@id": "mails:id",
      "@type": "xsd:string"
    },
    "thread_id": {
      "@id": "mails:thread_id",
      "@type": "xsd:string"
    },
    "classifier_score": {
      "@id": "mails:classifier_score",
      "@type": "xsd:decimal"
    },
    "refused_recipients": {
      "@id": "mails:refused_recipients",
      "@container": "@list"
    },
    "cost_usd": {
      "@id": "mails:cost_usd",
      "@type": "xsd:decimal"
    },
    "ses_message_id": {
      "@id": "mails:ses_message_id",
      "@type": "xsd:string"
    },
    "sent_at": {
      "@id": "mails:sent_at",
      "@type": "xsd:dateTime"
    },
    "delivered_at": {
      "@id": "mails:delivered_at",
      "@type": "xsd:dateTime"
    },
    "canceled_at": {
      "@id": "mails:canceled_at",
      "@type": "xsd:dateTime"
    },
    "bounced_at": {
      "@id": "mails:bounced_at",
      "@type": "xsd:dateTime"
    },
    "complained_at": {
      "@id": "mails:complained_at",
      "@type": "xsd:dateTime"
    },
    "forwarded_from": {
      "@id": "mails:forwarded_from",
      "@type": "xsd:string"
    },
    "test_mode": {
      "@id": "mails:test_mode",
      "@type": "xsd:boolean"
    },
    "classifier_warning": {
      "@id": "mails:classifier_warning"
    },
    "created_at": {
      "@id": "mails:created_at",
      "@type": "xsd:dateTime"
    },
    "ReceivedMessage": "mails:ReceivedMessage",
    "envelope_from": {
      "@id": "mails:envelope_from",
      "@type": "xsd:string"
    },
    "delivered_to": {
      "@id": "mails:delivered_to",
      "@type": "xsd:string"
    },
    "is_thread_reply": {
      "@id": "mails:is_thread_reply",
      "@type": "xsd:boolean"
    },
    "thread_root_message_id": {
      "@id": "mails:thread_root_message_id",
      "@type": "xsd:string"
    },
    "body_text_excerpt": {
      "@id": "mails:body_text_excerpt",
      "@type": "xsd:string"
    },
    "extracted_text": {
      "@id": "mails:extracted_text",
      "@type": "xsd:string"
    },
    "extracted_html": {
      "@id": "mails:extracted_html",
      "@type": "xsd:string"
    },
    "codes": {
      "@id": "mails:codes",
      "@container": "@list"
    },
    "links": {
      "@id": "mails:links",
      "@container": "@list"
    },
    "spf_pass": {
      "@id": "mails:spf_pass",
      "@type": "xsd:boolean"
    },
    "dkim_pass": {
      "@id": "mails:dkim_pass",
      "@type": "xsd:boolean"
    },
    "dkim_domain": {
      "@id": "mails:dkim_domain",
      "@type": "xsd:string"
    },
    "dmarc": {
      "@id": "mails:dmarc",
      "@type": "xsd:string"
    },
    "auth_failed": {
      "@id": "mails:auth_failed",
      "@type": "xsd:boolean"
    },
    "has_attachment": {
      "@id": "mails:has_attachment",
      "@type": "xsd:boolean"
    },
    "attachments_omitted": {
      "@id": "mails:attachments_omitted",
      "@container": "@list"
    },
    "attachments_omitted_count": {
      "@id": "mails:attachments_omitted_count",
      "@type": "xsd:integer"
    },
    "raw_omitted": {
      "@id": "mails:raw_omitted",
      "@type": "xsd:string"
    },
    "over_limit": {
      "@id": "mails:over_limit",
      "@type": "xsd:string"
    },
    "parse_status": {
      "@id": "mails:parse_status",
      "@type": "xsd:string"
    },
    "injection_score": {
      "@id": "mails:injection_score",
      "@type": "xsd:decimal"
    },
    "quarantined": {
      "@id": "mails:quarantined",
      "@type": "xsd:boolean"
    },
    "received_at": {
      "@id": "mails:received_at",
      "@type": "xsd:dateTime"
    },
    "raw_url": {
      "@id": "mails:raw_url",
      "@type": "xsd:string"
    },
    "ReceivedAttachment": "mails:ReceivedAttachment",
    "size": {
      "@id": "mails:size",
      "@type": "xsd:integer"
    },
    "inline": {
      "@id": "mails:inline",
      "@type": "xsd:boolean"
    },
    "OmittedAttachment": "mails:OmittedAttachment",
    "reason": {
      "@id": "mails:reason",
      "@type": "xsd:string"
    },
    "Agent": "mails:Agent",
    "email": {
      "@id": "mails:email",
      "@type": "xsd:string"
    },
    "receiving_address": {
      "@id": "mails:receiving_address",
      "@type": "xsd:string"
    },
    "workspace_id": {
      "@id": "mails:workspace_id",
      "@type": "xsd:string"
    },
    "pause_reason": {
      "@id": "mails:pause_reason",
      "@type": "xsd:string"
    },
    "unread_count": {
      "@id": "mails:unread_count",
      "@type": "xsd:integer"
    },
    "forwarding_address": {
      "@id": "mails:forwarding_address",
      "@type": "xsd:string"
    },
    "forwarding_status": {
      "@id": "mails:forwarding_status",
      "@type": "xsd:string"
    },
    "forwarding_test_sent_at": {
      "@id": "mails:forwarding_test_sent_at",
      "@type": "xsd:dateTime"
    },
    "forwarding_verified_at": {
      "@id": "mails:forwarding_verified_at",
      "@type": "xsd:dateTime"
    },
    "updated_at": {
      "@id": "mails:updated_at",
      "@type": "xsd:dateTime"
    },
    "ApiKey": "mails:ApiKey",
    "prefix": {
      "@id": "mails:prefix",
      "@type": "xsd:string"
    },
    "last_used_at": {
      "@id": "mails:last_used_at",
      "@type": "xsd:string"
    },
    "revoked_at": {
      "@id": "mails:revoked_at",
      "@type": "xsd:string"
    },
    "ApiKeyCreated": "mails:ApiKeyCreated",
    "key": {
      "@id": "mails:key",
      "@type": "xsd:string"
    },
    "ConnectedApp": "mails:ConnectedApp",
    "client_id": {
      "@id": "mails:client_id",
      "@type": "xsd:string"
    },
    "client_name": {
      "@id": "mails:client_name",
      "@type": "xsd:string"
    },
    "first_party": {
      "@id": "mails:first_party",
      "@type": "xsd:boolean"
    },
    "scope": {
      "@id": "mails:scope",
      "@type": "xsd:string"
    },
    "approved_at": {
      "@id": "mails:approved_at",
      "@type": "xsd:dateTime"
    },
    "created_api_keys": {
      "@id": "mails:created_api_keys",
      "@type": "xsd:integer"
    },
    "created_webhooks": {
      "@id": "mails:created_webhooks",
      "@type": "xsd:integer"
    },
    "signing_secrets_known": {
      "@id": "mails:signing_secrets_known",
      "@type": "xsd:integer"
    },
    "ConnectedAppRevoked": "mails:ConnectedAppRevoked",
    "Webhook": "mails:Webhook",
    "secret_rotated_at": {
      "@id": "mails:secret_rotated_at",
      "@type": "xsd:dateTime"
    },
    "previous_secret_expires_at": {
      "@id": "mails:previous_secret_expires_at",
      "@type": "xsd:dateTime"
    },
    "WebhookSecretRotated": "mails:WebhookSecretRotated",
    "signing_secret": {
      "@id": "mails:signing_secret",
      "@type": "xsd:string"
    },
    "WebhookCreated": "mails:WebhookCreated",
    "WebhookDelivery": "mails:WebhookDelivery",
    "webhook_endpoint_id": {
      "@id": "mails:webhook_endpoint_id",
      "@type": "xsd:string"
    },
    "event_id": {
      "@id": "mails:event_id",
      "@type": "xsd:string"
    },
    "attempt_number": {
      "@id": "mails:attempt_number",
      "@type": "xsd:integer"
    },
    "http_status": {
      "@id": "mails:http_status",
      "@type": "xsd:integer"
    },
    "response_body_excerpt": {
      "@id": "mails:response_body_excerpt",
      "@type": "xsd:string"
    },
    "next_retry_at": {
      "@id": "mails:next_retry_at",
      "@type": "xsd:dateTime"
    },
    "Event": "mails:Event",
    "type": {
      "@id": "mails:type",
      "@type": "xsd:string"
    },
    "source_message_id": {
      "@id": "mails:source_message_id",
      "@type": "xsd:string"
    },
    "intent": {
      "@id": "mails:intent",
      "@type": "xsd:string"
    },
    "urgency": {
      "@id": "mails:urgency",
      "@type": "xsd:decimal"
    },
    "sender_reputation": {
      "@id": "mails:sender_reputation",
      "@type": "xsd:decimal"
    },
    "entities": {
      "@id": "mails:entities"
    },
    "injection_categories": {
      "@id": "mails:injection_categories",
      "@container": "@list"
    },
    "classifier_model": {
      "@id": "mails:classifier_model",
      "@type": "xsd:string"
    },
    "data": {
      "@id": "mails:data"
    },
    "Thread": "mails:Thread",
    "root_message_id": {
      "@id": "mails:root_message_id",
      "@type": "xsd:string"
    },
    "last_message_id": {
      "@id": "mails:last_message_id",
      "@type": "xsd:string"
    },
    "last_message_at": {
      "@id": "mails:last_message_at",
      "@type": "xsd:dateTime"
    },
    "message_count": {
      "@id": "mails:message_count",
      "@type": "xsd:integer"
    },
    "participants": {
      "@id": "mails:participants",
      "@container": "@list"
    },
    "trashed_at": {
      "@id": "mails:trashed_at",
      "@type": "xsd:dateTime"
    },
    "ThreadMessageOutbound": "mails:ThreadMessageOutbound",
    "direction": {
      "@id": "mails:direction",
      "@type": "xsd:string"
    },
    "snippet": {
      "@id": "mails:snippet",
      "@type": "xsd:string"
    },
    "ThreadMessageInbound": "mails:ThreadMessageInbound",
    "Label": "mails:Label",
    "SearchHit": "mails:SearchHit",
    "date": {
      "@id": "mails:date",
      "@type": "xsd:dateTime"
    },
    "InboxSummary": "mails:InboxSummary",
    "folders": {
      "@id": "mails:folders"
    },
    "MetricsBucket": "mails:MetricsBucket",
    "start": {
      "@id": "mails:start",
      "@type": "xsd:dateTime"
    },
    "sent": {
      "@id": "mails:sent",
      "@type": "xsd:integer"
    },
    "delivered": {
      "@id": "mails:delivered",
      "@type": "xsd:integer"
    },
    "bounced": {
      "@id": "mails:bounced",
      "@type": "xsd:integer"
    },
    "complained": {
      "@id": "mails:complained",
      "@type": "xsd:integer"
    },
    "received": {
      "@id": "mails:received",
      "@type": "xsd:integer"
    },
    "replies": {
      "@id": "mails:replies",
      "@type": "xsd:integer"
    },
    "Metrics": "mails:Metrics",
    "interval": {
      "@id": "mails:interval",
      "@type": "xsd:string"
    },
    "totals": {
      "@id": "mails:totals"
    },
    "Draft": "mails:Draft",
    "sent_message_id": {
      "@id": "mails:sent_message_id",
      "@type": "xsd:string"
    },
    "error_message": {
      "@id": "mails:error_message",
      "@type": "xsd:string"
    },
    "SuppressionEntry": "mails:SuppressionEntry",
    "SuppressedRecipient": "mails:SuppressedRecipient",
    "detail": {
      "@id": "mails:detail",
      "@type": "xsd:string"
    },
    "suppressed_at": {
      "@id": "mails:suppressed_at",
      "@type": "xsd:dateTime"
    },
    "SuppressionLookup": "mails:SuppressionLookup",
    "suppressed": {
      "@id": "mails:suppressed",
      "@type": "xsd:boolean"
    },
    "since": {
      "@id": "mails:since",
      "@type": "xsd:dateTime"
    },
    "allowed": {
      "@id": "mails:allowed"
    },
    "ReputationWorkspace": "mails:ReputationWorkspace",
    "reputation": {
      "@id": "mails:reputation",
      "@type": "xsd:decimal"
    },
    "agents_count": {
      "@id": "mails:agents_count",
      "@type": "xsd:integer"
    },
    "last_computed_at": {
      "@id": "mails:last_computed_at",
      "@type": "xsd:string"
    },
    "ReputationAgent": "mails:ReputationAgent",
    "send_count_30d": {
      "@id": "mails:send_count_30d",
      "@type": "xsd:integer"
    },
    "bounce_count_30d": {
      "@id": "mails:bounce_count_30d",
      "@type": "xsd:integer"
    },
    "complaint_count_30d": {
      "@id": "mails:complaint_count_30d",
      "@type": "xsd:integer"
    },
    "reply_count_30d": {
      "@id": "mails:reply_count_30d",
      "@type": "xsd:integer"
    },
    "BillingUsage": "mails:BillingUsage",
    "tier": {
      "@id": "mails:tier",
      "@type": "xsd:string"
    },
    "tier_status": {
      "@id": "mails:tier_status",
      "@type": "xsd:string"
    },
    "period_start": {
      "@id": "mails:period_start",
      "@type": "xsd:dateTime"
    },
    "period_end": {
      "@id": "mails:period_end",
      "@type": "xsd:dateTime"
    },
    "usage": {
      "@id": "mails:usage"
    },
    "caps": {
      "@id": "mails:caps"
    },
    "Me": "mails:Me",
    "api_key": {
      "@id": "mails:api_key"
    },
    "workspace": {
      "@id": "mails:workspace"
    },
    "Classification": "mails:Classification",
    "TestInboundResult": "mails:TestInboundResult",
    "message_id": {
      "@id": "mails:message_id",
      "@type": "xsd:string"
    },
    "event_type": {
      "@id": "mails:event_type",
      "@type": "xsd:string"
    },
    "classification": {
      "@id": "mails:classification",
      "@type": "@id"
    },
    "Health": "mails:Health",
    "version": {
      "@id": "mails:version",
      "@type": "xsd:string"
    },
    "db": {
      "@id": "mails:db"
    },
    "ses": {
      "@id": "mails:ses"
    },
    "classifier": {
      "@id": "mails:classifier"
    },
    "schemas": {
      "@id": "mails:schemas",
      "@type": "xsd:integer"
    },
    "timestamp": {
      "@id": "mails:timestamp",
      "@type": "xsd:dateTime"
    },
    "DnsRecord": "mails:DnsRecord",
    "host": {
      "@id": "mails:host",
      "@type": "xsd:string"
    },
    "purpose": {
      "@id": "mails:purpose",
      "@type": "xsd:string"
    },
    "required": {
      "@id": "mails:required",
      "@type": "xsd:boolean"
    },
    "verified": {
      "@id": "mails:verified",
      "@type": "xsd:boolean"
    },
    "instruction": {
      "@id": "mails:instruction",
      "@type": "xsd:string"
    },
    "merge_token": {
      "@id": "mails:merge_token",
      "@type": "xsd:string"
    },
    "Domain": "mails:Domain",
    "provider": {
      "@id": "mails:provider",
      "@type": "xsd:string"
    },
    "dns_records": {
      "@id": "mails:dns_records",
      "@container": "@list"
    },
    "fail_reason": {
      "@id": "mails:fail_reason",
      "@type": "xsd:string"
    },
    "last_check_at": {
      "@id": "mails:last_check_at",
      "@type": "xsd:dateTime"
    },
    "verified_at": {
      "@id": "mails:verified_at",
      "@type": "xsd:dateTime"
    }
  },
  "@type": "schema:Dataset",
  "schema:name": "mails-ai API JSON-LD context",
  "schema:description": "A JSON-LD @context for the objects mails-ai's own API contract declares: one class per component schema, one property per declared field, typed from the contract. Derived by script (derive-json-ld.py, 2026-10-31) from openapi/api_mails_ai_v1.json.",
  "dcterms:created": "2026-10-31",
  "dcterms:source": [
    "openapi/api_mails_ai_v1.json"
  ]
}