# cookie-audit

> cookie-audit is a paid API for AI agents from intel.rallylive.ca, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Audits HTTP Set-Cookie headers for a given URL, reporting each cookie's security flags (Secure, HttpOnly, SameSite), expiry, domain, path, and counts of cookies missing key flags.

## Facts

- Endpoint: GET https://intel.rallylive.ca/site/cookies
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/cookie-audit-4fd5413e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_v4kjZl1b-OsLEW_QBcTkP

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability cookie-audit-4fd5413e
```

Example prompt: Can you audit the cookies set by https://example.com and tell me which ones are missing the Secure or SameSite flag?

## When to prefer this

Use this endpoint when you need a fast, headless audit of a website's HTTP-level Set-Cookie headers without running a full browser. It's ideal for security reviews, compliance checks, and CI/CD pipeline hygiene scans where you want structured flag-level data (Secure, HttpOnly, SameSite) and counts of insecure cookies per URL. Prefer it over manual browser DevTools inspection when automating audits across many URLs at low cost ($0.01/call).

## Known failure modes

- URL unreachable or returns non-200 status — no cookies reported, error returned
- Site sets cookies only via JavaScript (document.cookie) not Set-Cookie headers — those cookies will be missed
- Redirect chains may result in cookies from intermediate pages being captured or missed depending on follow behavior
- Malformed Set-Cookie headers may be partially parsed or skipped
- Rate limiting or bot-blocking on target site may prevent page load

## How this service works

Cookie audit from the Set-Cookie headers of a page load: each cookie's name, Secure, HttpOnly and SameSite flags, expiry/max-age, domain and path, with counts of cookies missing Secure or SameSite. Privacy and security hygiene without a browser. $0.01 per page.

## Output

Returns a structured breakdown of every cookie set by the page's HTTP Set-Cookie headers, including each cookie's name, Secure flag status, HttpOnly flag status, SameSite attribute value, expiry or max-age, domain scope, and path — plus aggregate counts of cookies missing the Secure flag and the SameSite attribute.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {}
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/cookie-audit-4fd5413e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from intel.rallylive.ca](https://www.zero.xyz/host/intel.rallylive.ca/llms.txt)
