{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/hint-health/main/json-schema/hint-health-platform-integration-blueprint-one-with-access-token-schema.json",
  "title": "Platform.IntegrationBlueprint_one_with_access_token",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/hint-health-oauth-api-openapi.yml#/components/schemas/Platform.IntegrationBlueprint_one_with_access_token",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "access_token": {
      "type": "string"
    },
    "expires_in": {
      "type": "string"
    },
    "refresh_token": {
      "type": "string"
    },
    "status": {
      "type": "string"
    },
    "token_type": {
      "type": "string"
    },
    "webhook_url_default": {
      "type": "string",
      "deprecated": true
    },
    "webhook_url_override": {
      "type": "string",
      "deprecated": true
    },
    "activated_by": {
      "$ref": "#/$defs/Platform.UserBlueprint_min"
    },
    "api_keys": {
      "$ref": "#/$defs/Platform.ApiKeyBlueprint_shared"
    },
    "practice": {
      "$ref": "#/$defs/Platform.PracticeBlueprint_for_integration"
    },
    "product": {
      "$ref": "#/$defs/Platform.PartnerProductBlueprint_min"
    }
  },
  "$defs": {
    "Platform.ApiKeyBlueprint_shared": {
      "type": "object",
      "properties": {
        "deactivated_at": {
          "type": "string"
        },
        "description": {
          "type": "string"
        },
        "last_used_at": {
          "type": "string"
        },
        "token": {
          "type": "string"
        }
      }
    },
    "Platform.PartnerProductBlueprint_min": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "slug": {
          "type": "string"
        }
      }
    },
    "Platform.PracticeBlueprint_for_integration": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        }
      }
    },
    "Platform.UserBlueprint_min": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "email": {
          "type": "string"
        }
      }
    }
  }
}