{
  "openapi": "3.0.1",
  "info": {
    "title": "Agent Receipt Verifier",
    "description": "Check what an AI agent says it did. Give file claims (expected sha256) or URL claims (expected HTTP status). Each claim gets PROVEN, REJECTED or UNVERIFIABLE with evidence hashes, plus a sha256 run receipt.",
    "version": "1.1",
    "x-build-id": "oPiJ2ewjhY0zeejQs"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/honestagentkit~agent-receipt-verifier/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-honestagentkit-agent-receipt-verifier",
        "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/honestagentkit~agent-receipt-verifier/runs": {
      "post": {
        "operationId": "runs-sync-honestagentkit-agent-receipt-verifier",
        "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/honestagentkit~agent-receipt-verifier/run-sync": {
      "post": {
        "operationId": "run-sync-honestagentkit-agent-receipt-verifier",
        "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": [
          "claims"
        ],
        "properties": {
          "claims": {
            "title": "Claims",
            "minItems": 1,
            "maxItems": 500,
            "type": "array",
            "description": "One object per claim. Every claim needs an id and a type (\"file\" or \"url\").\n\nFile claim: {\"id\", \"type\": \"file\", \"expectedSha256\", and exactly one of \"fileUrl\" (http/https), \"contentBase64\" or \"kvKey\" (a record in the File store below)}. A bare local \"path\" is accepted but always comes back UNVERIFIABLE, because a cloud run cannot read your disk.\n\nURL claim: {\"id\", \"type\": \"url\", \"url\", \"expectedStatus\", optional \"method\": \"GET\" or \"HEAD\" (default GET)}.",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "title": "Claim id",
                  "type": "string",
                  "description": "Your id for the claim. Must be unique within the run.",
                  "minLength": 1,
                  "maxLength": 200
                },
                "type": {
                  "title": "Claim type",
                  "type": "string",
                  "description": "file or url",
                  "enum": [
                    "file",
                    "url"
                  ]
                },
                "expectedSha256": {
                  "title": "Expected sha256",
                  "type": "string",
                  "description": "File claims: the sha256 the agent says the file has (64 hex characters).",
                  "pattern": "^[0-9a-fA-F]{64}$"
                },
                "fileUrl": {
                  "title": "File URL",
                  "type": "string",
                  "description": "File claims: an http(s) URL that serves the exact file bytes. Downloaded once, up to maxFileBytes.",
                  "maxLength": 2048
                },
                "contentBase64": {
                  "title": "Inline content (base64)",
                  "type": "string",
                  "description": "File claims: the file bytes as standard base64."
                },
                "kvKey": {
                  "title": "Key-value store key",
                  "type": "string",
                  "description": "File claims: the key of a record in the File store.",
                  "maxLength": 256
                },
                "path": {
                  "title": "Local path",
                  "type": "string",
                  "description": "Accepted for completeness, never read. Always UNVERIFIABLE on the cloud.",
                  "maxLength": 2048
                },
                "url": {
                  "title": "URL",
                  "type": "string",
                  "description": "URL claims: the http(s) URL to request once.",
                  "maxLength": 2048
                },
                "expectedStatus": {
                  "title": "Expected HTTP status",
                  "type": "integer",
                  "description": "URL claims: the status the agent says the URL returns, for example 200, 301 or 404.",
                  "minimum": 100,
                  "maximum": 599
                },
                "method": {
                  "title": "Method",
                  "type": "string",
                  "description": "URL claims: GET (default; the body is not read) or HEAD.",
                  "enum": [
                    "GET",
                    "HEAD"
                  ]
                }
              },
              "required": [
                "id"
              ]
            }
          },
          "fileStore": {
            "title": "File store",
            "type": "string",
            "description": "Key-value store that holds the records named by kvKey in file claims. Pick it here, or pass its ID (or username~store-name) through the API. Leave empty to use this run's default store. Read-only access is requested."
          },
          "maxClaims": {
            "title": "Max claims per run",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Claims after this many are returned as UNVERIFIABLE (not checked) and are not charged.",
            "default": 100
          },
          "timeoutSecs": {
            "title": "Timeout per request",
            "minimum": 1,
            "maximum": 60,
            "type": "integer",
            "description": "Seconds allowed for one request, including the download. A timeout is UNVERIFIABLE.",
            "default": 15
          },
          "maxFileBytes": {
            "title": "Max file size",
            "minimum": 1,
            "maximum": 52428800,
            "type": "integer",
            "description": "Largest file that is hashed. Bigger files are UNVERIFIABLE (not hashed). Default 10 MB, maximum 50 MB.",
            "default": 10485760
          },
          "maxConcurrency": {
            "title": "Parallel checks",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "How many claims are checked at the same time.",
            "default": 4
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}