{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/scribe-mail-com/json-schema/scribe-mail-com-api-v1-teammate-response-schema.json",
  "title": "api_v1_teammate_response",
  "x-generated": "2026-11-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/scribe-mail-com-openapi.json#/components/schemas/api_v1_teammate_response",
  "type": "object",
  "properties": {
    "data": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "type": {
          "type": "string",
          "enum": [
            "teammate"
          ]
        },
        "attributes": {
          "type": "object",
          "properties": {
            "first_name": {
              "type": [
                "string",
                "null"
              ]
            },
            "last_name": {
              "type": [
                "string",
                "null"
              ]
            },
            "emails": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "address": {
                    "type": "string"
                  },
                  "primary": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "address",
                  "primary"
                ]
              }
            },
            "role": {
              "type": [
                "string",
                "null"
              ]
            },
            "integration_entities": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string"
                  },
                  "name": {
                    "type": "string"
                  },
                  "kind": {
                    "type": "string"
                  }
                },
                "required": [
                  "id",
                  "name",
                  "kind"
                ]
              }
            },
            "signature_status": {
              "type": "object",
              "properties": {
                "assigned_templates": {
                  "type": "integer"
                },
                "installed": {
                  "type": "integer"
                },
                "pending": {
                  "type": "integer"
                },
                "failed": {
                  "type": "integer"
                }
              },
              "required": [
                "assigned_templates",
                "installed",
                "pending",
                "failed"
              ]
            },
            "smart_fields": {
              "type": "object"
            },
            "created_at": {
              "type": "string"
            }
          },
          "required": [
            "first_name",
            "last_name",
            "emails",
            "role",
            "integration_entities",
            "signature_status",
            "smart_fields",
            "created_at"
          ]
        }
      },
      "required": [
        "id",
        "type",
        "attributes"
      ]
    },
    "meta": {
      "$ref": "#/$defs/api_v1_meta"
    }
  },
  "required": [
    "data",
    "meta"
  ],
  "$defs": {
    "api_v1_meta": {
      "type": "object",
      "properties": {
        "request_id": {
          "type": "string"
        }
      },
      "required": [
        "request_id"
      ],
      "additionalProperties": true
    }
  }
}