{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/groundmail-dev/json-schema/groundmail-dev-list-smtp-credentials-response-schema.json",
  "title": "ListSmtpCredentialsResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/groundmail-dev-smtpcredentials-api-openapi.yml#/components/schemas/ListSmtpCredentialsResponse",
  "type": "object",
  "required": [
    "data",
    "has_more",
    "next_cursor"
  ],
  "properties": {
    "data": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/SmtpCredential"
      }
    },
    "has_more": {
      "type": "boolean"
    },
    "next_cursor": {
      "type": [
        "string",
        "null"
      ]
    }
  },
  "$defs": {
    "SmtpCredential": {
      "type": "object",
      "required": [
        "id",
        "name",
        "password_prefix",
        "username",
        "host",
        "port",
        "last_used_at",
        "revoked_at",
        "created_at"
      ],
      "properties": {
        "id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "password_prefix": {
          "type": "string",
          "description": "First characters of the SMTP password for identification"
        },
        "username": {
          "type": "string",
          "description": "Always `groundmail`"
        },
        "host": {
          "type": "string"
        },
        "port": {
          "type": "integer"
        },
        "last_used_at": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "revoked_at": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "created_at": {
          "type": "string",
          "format": "date-time"
        }
      }
    }
  }
}