{
  "openapi": "3.0.1",
  "info": {
    "title": "Microsoft Error Diagnosis: Windows, M365, Entra & Intune Fixes",
    "description": "Decode any Windows, Microsoft 365, Entra ID, Intune or Azure error (10,000+ codes) and get the likely cause, Microsoft's fix steps with links, an outage and known-issue check, and read-only tenant checks for failed sign-ins, licences and devices. Bulk-friendly.",
    "version": "0.1",
    "x-build-id": "HiR9o3VA8mUet8QNY"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/best_actors~microsoft-error-diagnosis/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-best_actors-microsoft-error-diagnosis",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/best_actors~microsoft-error-diagnosis/runs": {
      "post": {
        "operationId": "runs-sync-best_actors-microsoft-error-diagnosis",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/best_actors~microsoft-error-diagnosis/run-sync": {
      "post": {
        "operationId": "run-sync-best_actors-microsoft-error-diagnosis",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "problems": {
            "title": "Problems to diagnose",
            "type": "array",
            "description": "Error messages, log lines or descriptions, one per line (up to 4,000 characters each). Each gets decoded codes, likely cause, Microsoft fix steps with links, commands labelled read-only or changes-the-system, outage and known-issue checks.",
            "items": {
              "type": "string"
            }
          },
          "codes": {
            "title": "Error codes to decode",
            "type": "array",
            "description": "e.g. 0x80070005, -2147024891, C0000005, AADSTS50076, stop code 0x7E, ERROR_ACCESS_DENIED, Event ID 41, 1603.",
            "items": {
              "type": "string"
            }
          },
          "searches": {
            "title": "Search Microsoft support articles",
            "type": "array",
            "description": "Free-text searches across 6,000+ Microsoft support articles plus live Microsoft Learn.",
            "items": {
              "type": "string"
            }
          },
          "windowsVersions": {
            "title": "Windows known issues",
            "type": "array",
            "description": "Windows versions (11 24H2, 10 22H2, Server 2022) or KB numbers (KB5124008). Returns Microsoft release health known issues.",
            "items": {
              "type": "string"
            }
          },
          "outageCheck": {
            "title": "Check for Microsoft 365 / Azure outages",
            "type": "boolean",
            "description": "Adds one row with live Microsoft 365 and Azure public incidents.",
            "default": false
          },
          "useMicrosoftLearn": {
            "title": "Also search Microsoft Learn live",
            "type": "boolean",
            "description": "Adds live Microsoft Learn results (covers Outlook, Teams and Exchange). Turn off for faster bulk runs.",
            "default": true
          },
          "graphToken": {
            "title": "Graph access token (tenant checks)",
            "type": "string",
            "description": "A read-only Microsoft Graph access token from your own app registration (see README). Used only during this run and never stored in results."
          },
          "signinUsers": {
            "title": "Users: why can't they sign in?",
            "type": "array",
            "description": "Sign-in names (user@domain). Returns failed sign-ins decoded and the Conditional Access policy that blocked them. Needs AuditLog.Read.All and Entra ID P1/P2.",
            "items": {
              "type": "string"
            }
          },
          "signinDays": {
            "title": "Sign-in days to check",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "How far back to read sign-ins.",
            "default": 3
          },
          "checkUsers": {
            "title": "Users: account, licence, device and MFA check",
            "type": "array",
            "description": "Sign-in names. Finds blocked accounts, missing or disabled licences, non-compliant Intune devices and missing MFA. Needs User.Read.All.",
            "items": {
              "type": "string"
            }
          },
          "tenantHealth": {
            "title": "Tenant service health",
            "type": "boolean",
            "description": "Adds one row with degraded services and open incidents in your tenant. Needs ServiceHealth.Read.All.",
            "default": false
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}