addedOutput schema / oneOf
Added value: +[
+ {
+ "additionalProperties": false,
+ "properties": {
+ "data": {
+ "additionalProperties": false,
+ "properties": {
+ "attachment_id": {
+ "description": "Temporary attachment ID to use in email attachments[].",
+ "example": "att_tz4a98xxat96iws9zmbrgj3a",
+ "pattern": "^att_[a-z0-9]{24}$",
+ "type": "string"
+ },
+ "content_type": {
+ "description": "Stored attachment MIME type",
+ "example": "application/pdf",
+ "type": "string"
+ },
+ "expires_at": {
+ "description": "ISO timestamp when this temporary attachment reference expires.",
+ "example": "2026-07-07T08:15:00.000Z",
+ "format": "date-time",
+ "type": "string"
+ },
+ "filename": {
+ "description": "Stored attachment filename",
+ "example": "analysis.pdf",
+ "type": "string"
+ },
+ "size_bytes": {
+ "description": "Stored attachment byte size",
+ "example": 20480,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "attachment_id",
+ "filename",
+ "content_type",
+ "size_bytes",
+ "expires_at"
+ ],
+ "type": "object"
+ },
+ "meta": {
+ "additionalProperties": false,
+ "properties": {
+ "request_id": {
+ "type": "string"
+ }
+ },
+ "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"
+ }
+ },
+ "type": "object"
+ },
+ "ok": {
+ "const": false
+ }
+ },
+ "required": [
+ "ok",
+ "error"
+ ],
+ "type": "object"
+ }
+]