{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/getmattered/json-schema/getmattered-send-follow-up-gmail-response-schema.json",
  "title": "SendFollowUpGmailResponse",
  "description": "Successful API response",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/getmattered-follow-ups-api-openapi.yml#/components/schemas/SendFollowUpGmailResponse",
  "type": "object",
  "properties": {
    "data": {
      "$ref": "#/$defs/SendFollowUpGmailData"
    },
    "meta": {
      "$ref": "#/$defs/ResponseMetadata"
    },
    "success": {
      "type": "boolean",
      "enum": [
        true
      ]
    }
  },
  "required": [
    "data",
    "success"
  ],
  "additionalProperties": false,
  "$defs": {
    "ResponseMetadata": {
      "type": "object",
      "properties": {
        "duration": {
          "type": "number",
          "minimum": 0,
          "description": "Request duration in milliseconds"
        },
        "performance": {
          "type": "object",
          "properties": {
            "dbQueries": {
              "type": "integer",
              "minimum": 0
            },
            "totalDbTime": {
              "type": "number",
              "minimum": 0
            }
          },
          "description": "Performance metrics (preview/local only)"
        },
        "requestId": {
          "type": "string",
          "description": "Unique request identifier"
        },
        "timestamp": {
          "type": "string",
          "format": "date-time",
          "description": "ISO 8601 timestamp"
        },
        "version": {
          "type": "string",
          "description": "API version"
        }
      }
    },
    "SendFollowUpGmailData": {
      "type": "object",
      "properties": {
        "applicationResultId": {
          "type": "integer",
          "exclusiveMinimum": 0
        },
        "followUpCount": {
          "type": "integer",
          "minimum": 0
        },
        "followUpEventId": {
          "type": "integer",
          "exclusiveMinimum": 0
        },
        "lastFollowUpAt": {
          "type": "string"
        },
        "messageId": {
          "type": [
            "string",
            "null"
          ],
          "description": "Provider message id of the sent email (null for Outlook, whose send API returns none)"
        },
        "nextFollowUpDueAt": {
          "type": [
            "string",
            "null"
          ]
        },
        "urgency": {
          "type": "string",
          "enum": [
            "urgent",
            "overdue",
            "waiting",
            "cold",
            "none"
          ],
          "description": "Urgency tier for the next follow-up nudge on an application"
        }
      },
      "required": [
        "applicationResultId",
        "followUpCount",
        "followUpEventId",
        "lastFollowUpAt",
        "messageId",
        "nextFollowUpDueAt",
        "urgency"
      ],
      "additionalProperties": false
    }
  }
}