{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://raw.githubusercontent.com/api-evangelist/elation-health/main/json-schema/elation-health-paginated-message-thread-list-schema.json", "title": "PaginatedMessageThreadList", "x-generated": "2026-10-12", "x-method": "derived", "x-generator": "derive-json-schema.py", "x-source": "openapi/elation-health-messaging-api-openapi.yml#/components/schemas/PaginatedMessageThreadList", "allOf": [ { "$ref": "#/$defs/PaginationMeta" }, { "type": "object", "properties": { "results": { "type": "array", "items": { "$ref": "#/$defs/MessageThread" } } } } ], "$defs": { "MessageThread": { "allOf": [ { "$ref": "#/$defs/MessageThreadCreate" }, { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "created_date": { "type": "string", "format": "date-time", "readOnly": true }, "last_modified": { "type": "string", "format": "date-time", "readOnly": true }, "deleted_date": { "type": [ "string", "null" ], "format": "date-time", "readOnly": true } } } ] }, "MessageThreadCreate": { "type": "object", "required": [ "subject" ], "properties": { "subject": { "type": "string", "description": "Thread subject" }, "members": { "type": "array", "items": { "type": "integer" }, "description": "User IDs of thread members" }, "patient": { "type": [ "integer", "null" ], "description": "Associated patient ID" }, "note": { "type": "string", "description": "Initial message content" } } }, "PaginationMeta": { "type": "object", "properties": { "count": { "type": "integer", "description": "Total number of results" }, "next": { "type": [ "string", "null" ], "description": "URL for next page" }, "previous": { "type": [ "string", "null" ], "description": "URL for previous page" } } } } }