{
  "openapi": "3.0.1",
  "info": {
    "title": "HAR File Sanitizer - Remove Cookies & Tokens Before Sharing",
    "description": "Sharing a HAR with support leaks session cookies, bearer tokens and API keys. This strips cookies, auth headers, JWTs, secret query and form fields, optionally emails, and returns a clean HAR with a change log plus a performance and third-party summary. Runs offline.",
    "version": "1.0",
    "x-build-id": "JY7YHSjJo8dmFbL3X"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/that_red_bird~har-file-sanitizer/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-that_red_bird-har-file-sanitizer",
        "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/that_red_bird~har-file-sanitizer/runs": {
      "post": {
        "operationId": "runs-sync-that_red_bird-har-file-sanitizer",
        "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/that_red_bird~har-file-sanitizer/run-sync": {
      "post": {
        "operationId": "run-sync-that_red_bird-har-file-sanitizer",
        "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": {
          "harUrls": {
            "title": "HAR file URLs",
            "type": "array",
            "description": "Public or signed URLs of .har files to sanitize (for example a link from a ticket or a cloud bucket). Leave everything empty to run on a built-in demo HAR with fake secrets.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "harJson": {
            "title": "Paste HAR JSON",
            "type": "string",
            "description": "Paste the full contents of one HAR file here. Useful for a single quick clean from an API call or an AI agent. Large files should use a URL or a key-value store instead.",
            "default": ""
          },
          "keyValueStoreId": {
            "title": "Key-value store with HAR files (optional)",
            "type": "string",
            "description": "Pick a key-value store that holds HAR files. If you leave 'Record keys' empty, every record ending in .har or .json (up to 200) is processed."
          },
          "recordKeys": {
            "title": "Record keys",
            "type": "array",
            "description": "Only these records of the selected key-value store are processed. Leave empty to process all .har and .json records.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "redactCookies": {
            "title": "Strip cookies",
            "type": "boolean",
            "description": "Replace the value of every Cookie / Set-Cookie header and cookie object. Cookie names are kept so the file stays useful for debugging.",
            "default": true
          },
          "redactAuthHeaders": {
            "title": "Strip auth headers",
            "type": "boolean",
            "description": "Replace Authorization, Proxy-Authorization, X-Api-Key, CSRF and any header whose name contains token, secret, key or session. The auth scheme (Bearer, Basic) is kept.",
            "default": true
          },
          "redactQueryParams": {
            "title": "Strip secret query parameters",
            "type": "boolean",
            "description": "Replace the value of query parameters such as access_token, api_key, signature, password, code and state, in URLs, redirects and the queryString lists.",
            "default": true
          },
          "redactBodies": {
            "title": "Strip secrets in request and response bodies",
            "type": "boolean",
            "description": "Redact secret-looking fields in JSON and form bodies (password, token, secret, card number) and JWTs, bearer tokens, cloud keys and private keys found anywhere in body text.",
            "default": true
          },
          "redactPii": {
            "title": "Strip personal data",
            "type": "boolean",
            "description": "Also redact email addresses, card numbers (Luhn-checked), US social security numbers and fields named email, phone, first name, address and similar.",
            "default": true
          },
          "redactIps": {
            "title": "Strip IP addresses",
            "type": "boolean",
            "description": "Replace the serverIPAddress and client IP fields of every entry. Off by default because server IPs are often useful for support.",
            "default": false
          },
          "dropResponseBodies": {
            "title": "Remove all response bodies",
            "type": "boolean",
            "description": "Delete the response content text entirely. Safest option and makes the file much smaller. Timings, sizes and headers are kept.",
            "default": false
          },
          "extraSensitiveNames": {
            "title": "Extra sensitive names",
            "type": "array",
            "description": "Header, query, form or JSON field names to always redact, matched exactly and case-insensitively, for example x-tenant-secret or customer_id.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "firstPartyDomains": {
            "title": "First-party domains",
            "type": "array",
            "description": "Domains that count as your own site in the third-party summary, for example example.com. Leave empty to use the domain of the first HTML document in the HAR.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "maxHarMb": {
            "title": "Max size per HAR (MB)",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "Files larger than this are skipped with an error row. HAR files are loaded fully into memory, so keep this reasonable.",
            "default": 60
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}