{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/amigo/main/json-schema/amigo-external-integration-response-schema.json",
  "title": "ExternalIntegrationResponse",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amigo-external-integrations-api-openapi.yml#/components/schemas/ExternalIntegrationResponse",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid",
      "title": "Id"
    },
    "workspace_id": {
      "type": "string",
      "format": "uuid",
      "title": "Workspace Id"
    },
    "name": {
      "type": "string",
      "maxLength": 128,
      "minLength": 2,
      "pattern": "^[a-z0-9][a-z0-9_-]*[a-z0-9]$",
      "title": "Name"
    },
    "display_name": {
      "$ref": "#/$defs/NameString"
    },
    "description": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 4096
        },
        {
          "type": "null"
        }
      ],
      "title": "Description"
    },
    "is_active": {
      "type": "boolean",
      "title": "Is Active"
    },
    "created_by_entity_id": {
      "type": "string",
      "format": "uuid",
      "title": "Created By Entity Id"
    },
    "created_by_credential_id": {
      "anyOf": [
        {
          "type": "string",
          "format": "uuid"
        },
        {
          "type": "null"
        }
      ],
      "title": "Created By Credential Id"
    },
    "created_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Created At"
    },
    "updated_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Updated At"
    }
  },
  "type": "object",
  "required": [
    "id",
    "workspace_id",
    "name",
    "display_name",
    "is_active",
    "created_by_entity_id"
  ],
  "$defs": {
    "NameString": {
      "type": "string",
      "maxLength": 256,
      "minLength": 1
    }
  }
}