addedOutput schema / oneOf
Added value: +[
+ {
+ "additionalProperties": false,
+ "properties": {
+ "data": {
+ "additionalProperties": false,
+ "properties": {
+ "matched": {
+ "type": "boolean"
+ },
+ "message": {
+ "oneOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "attachments": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "content_id": {
+ "description": "Content ID for inline attachments, when present.",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "content_type": {
+ "example": "application/pdf",
+ "type": "string"
+ },
+ "disposition": {
+ "example": "attachment",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "download_url": {
+ "description": "Short-lived URL for this exact attachment. Fetch it promptly; if it expires, call the message or attachment metadata endpoint again to receive a fresh URL.",
+ "example": "https://app.sendmux.ai/api/v1/mailbox/messages/msg_123/attachment-downloads/attref_abc123?download_token=...",
+ "type": "string"
+ },
+ "filename": {
+ "example": "invoice.pdf",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "id": {
+ "description": "Attachment blob ID.",
+ "type": "string"
+ },
+ "size_bytes": {
+ "example": 12345,
+ "type": [
+ "integer",
+ "null"
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "filename",
+ "content_type",
+ "size_bytes",
+ "disposition",
+ "content_id"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "id": {
+ "type": "string"
+ },
+ "received_at": {
+ "type": [
+ "string",
+ "null"
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "received_at",
+ "attachments"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "next_after": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "matched",
+ "message",
+ "next_after"
+ ],
+ "type": "object"
+ },
+ "meta": {
+ "additionalProperties": false,
+ "properties": {
+ "request_id": {
+ "type": "string"
+ },
+ "sync_state": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "request_id"
+ ],
+ "type": "object"
+ },
+ "ok": {
+ "const": true
+ }
+ },
+ "required": [
+ "ok",
+ "data"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "error": {
+ "additionalProperties": false,
+ "properties": {
+ "code": {
+ "type": "string"
+ },
+ "doc_url": {
+ "type": "string"
+ },
+ "errors": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "code": {
+ "type": "string"
+ },
+ "field": {
+ "type": "string"
+ },
+ "message": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "field",
+ "code",
+ "message"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "message": {
+ "type": "string"
+ },
+ "param": {
+ "type": "string"
+ },
+ "retryable": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "code",
+ "message"
+ ],
+ "type": "object"
+ },
+ "meta": {
+ "additionalProperties": false,
+ "properties": {
+ "request_id": {
+ "type": "string"
+ },
+ "sync_state": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "request_id"
+ ],
+ "type": "object"
+ },
+ "ok": {
+ "const": false
+ }
+ },
+ "required": [
+ "ok",
+ "error"
+ ],
+ "type": "object"
+ }
+]