{
  "openapi": "3.0.1",
  "info": {
    "title": "AWS CUR Tag Coverage Audit by Account and Service",
    "description": "Find untagged AWS costs in a batch of legacy CUR records for one billing month. Returns usageAccountId, productCode, unallocatedUsageUnblendedCost, tagCoveragePercent and resourceEvidence. $0.05 per account and service with qualifying untagged usage.",
    "version": "0.2",
    "x-build-id": "DsfSHstlxCG4g2imW"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/natstandridge~aws-cur-tag-coverage-audit/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-natstandridge-aws-cur-tag-coverage-audit",
        "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/natstandridge~aws-cur-tag-coverage-audit/runs": {
      "post": {
        "operationId": "runs-sync-natstandridge-aws-cur-tag-coverage-audit",
        "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/natstandridge~aws-cur-tag-coverage-audit/run-sync": {
      "post": {
        "operationId": "run-sync-natstandridge-aws-cur-tag-coverage-audit",
        "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",
        "required": [
          "tagKey",
          "billingMonth"
        ],
        "properties": {
          "records": {
            "title": "Legacy CUR line-item records",
            "minItems": 1,
            "maxItems": 3000,
            "type": "array",
            "description": "Batch of 1–3,000 projected CUR 1.0 objects with string values. Each object needs lineItem/UnblendedCost, lineItem/LineItemType, lineItem/UsageAccountId, lineItem/ProductCode and resourceTags/user:<tagKey>. Use an empty tag string for unallocated cost. Optional fields are lineItem/ResourceId, lineItem/CurrencyCode and bill/BillingPeriodStartDate. Choose records or curCsv.",
            "items": {
              "type": "object"
            }
          },
          "curCsv": {
            "title": "One legacy AWS CUR CSV excerpt",
            "minLength": 1,
            "maxLength": 256000,
            "type": "string",
            "description": "Alternative for legacy workflows. Paste a CUR 1.0 CSV header and up to 3,000 rows, with the four required lineItem columns and resourceTags/user:<tagKey>. Supply either curCsv or records."
          },
          "tagKey": {
            "title": "Activated user-defined tag key",
            "minLength": 1,
            "maxLength": 128,
            "type": "string",
            "description": "Exact case-sensitive key, such as CostCenter. The input CSV must contain resourceTags/user:CostCenter. Activate the cost allocation tag in AWS Billing before exporting the report."
          },
          "billingMonth": {
            "title": "Billing month label (YYYY-MM)",
            "pattern": "^[0-9]{4}-(0[1-9]|1[0-2])$",
            "type": "string",
            "description": "Month label supplied by you. When bill/BillingPeriodStartDate exists, every data row must match this month; otherwise the label cannot be verified from the CSV."
          },
          "minUnallocatedCost": {
            "title": "Minimum unallocated cost per account/service",
            "pattern": "^(0|[1-9][0-9]{0,14})(\\.[0-9]{1,18})?$",
            "type": "string",
            "description": "Only deliver a paid finding when blank-tag positive Usage cost for an account/service reaches this amount, in the CUR currency. Use 0 to include every positive gap.",
            "default": "1.00"
          },
          "maxFindings": {
            "title": "Maximum account/service findings",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Hard cap. If more groups qualify, the run rejects the CSV before writing paid findings. Narrow the CSV or raise the cap.",
            "default": 25
          },
          "maxEvidenceIds": {
            "title": "Resource IDs shown per finding",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Show the highest-cost resource IDs per finding. Counts and total costs still include every resource ID in the pasted CSV.",
            "default": 20
          },
          "maxRunSeconds": {
            "title": "Maximum work time",
            "minimum": 40,
            "maximum": 180,
            "type": "integer",
            "description": "Bounds CSV parsing, checkpointing, and paid dataset delivery.",
            "default": 120
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}