{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/clearstream-io/json-schema/clearstream-io-get-v1-threads-response-schema.json",
  "title": "GetV1ThreadsResponse",
  "x-generated": "2026-11-16",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/clearstream-io-openapi-generated.yml#/components/schemas/GetV1ThreadsResponse",
  "type": "object",
  "properties": {
    "id": {
      "type": "integer"
    },
    "unread": {
      "type": "boolean"
    },
    "reply_count": {
      "type": "integer"
    },
    "replied_at": {
      "type": "string",
      "format": "date-time"
    },
    "subscriber": {
      "type": "object",
      "properties": {
        "mobile_number": {
          "type": "string"
        },
        "status": {
          "type": "string"
        },
        "first": {
          "type": "string"
        },
        "last": {
          "type": "string"
        },
        "email": {
          "type": [
            "string",
            "null"
          ]
        },
        "avatar_url": {
          "type": [
            "string",
            "null"
          ]
        }
      }
    },
    "related_message": {
      "type": "object",
      "properties": {
        "id": {
          "type": "integer"
        },
        "type": {
          "type": "string"
        },
        "sent_at": {
          "type": "string",
          "format": "date-time"
        },
        "text": {
          "type": "object",
          "properties": {
            "full": {
              "type": "string"
            },
            "header": {
              "type": "string"
            },
            "body": {
              "type": "string"
            }
          }
        },
        "media": {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer"
            },
            "url": {
              "type": "string"
            },
            "type": {
              "type": "string"
            },
            "filename": {
              "type": "string"
            }
          }
        }
      }
    },
    "recent_replies": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer"
          },
          "text": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "incoming": {
            "type": "boolean"
          },
          "user": {
            "type": [
              "string",
              "null"
            ]
          },
          "sent_at": {
            "type": "string",
            "format": "date-time"
          }
        }
      }
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "updated_at": {
      "type": "string",
      "format": "date-time"
    },
    "archived_at": {
      "type": [
        "string",
        "null"
      ]
    }
  }
}