# WritersLogic Age Threshold Checker

> WritersLogic Age Threshold Checker is a paid API for AI agents from agents.writerslogic.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-11-19).

Computes age in complete years and months for up to 100 people on a given date and checks whether each person meets min/max age eligibility requirements

## Facts

- Endpoint: POST https://agents.writerslogic.com/api/v1/age-threshold?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/writerslogic-age-threshold-checker-4c287aa5
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_7s1n5AGX5e-kKgqqsKeDU

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 writerslogic-age-threshold-checker-4c287aa5 -d '<json body>'
```

Example prompt: Can you check whether these 3 applicants meet our 21-and-over requirement as of today, July 14 2025? Their birth dates are 2004-07-13, 2003-01-15, and 2000-03-01. Use the feb-28 leap day rule.

## When to prefer this

Use this endpoint when you need calendar-accurate age computation and eligibility checking for one or more people without relying on a live clock. It is ideal for batch eligibility workflows (employment, alcohol sales, insurance, event registration) where you supply the reference date explicitly, need the precise birthday milestones, and require correct handling of leap-day birthdays across jurisdictions. Prefer it over general-purpose date libraries when the agent needs a verifiable, structured pass/fail result with milestone dates rather than just a raw age number.

## Known failure modes

- Missing required leapDayRule when any birth date is Feb 29 — returns a validation error
- Invalid date format (not YYYY-MM-DD) for birthDate or asOf — returns schema validation error
- More than 100 items in the batch — rejected with max items exceeded error
- birthDate set to a future date relative to asOf — may return zero or negative age
- minAgeYears or maxAgeYears out of 0–150 integer range — schema validation error
- Payment not provided or insufficient USDC — x402 payment required error

## How this service works

Pay-per-call agents settled in USDC on Base via x402. Every response carries a signed provenance envelope.

## Output

For each person in the batch, the endpoint returns their computed age in complete years and months as of the asOf date, whether they satisfy any specified min/max age thresholds (pass/fail), the calendar date on which they reach the minimum age, and the first calendar date on which they exceed the maximum age. No clock or timezone is used — purely calendar-date arithmetic.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "asOf": {
   "type": "string",
   "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
   "maxLength": 10
  },
  "items": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "birthDate"
    ],
    "properties": {
     "id": {
      "type": "string",
      "maxLength": 64
     },
     "birthDate": {
      "type": "string",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
      "maxLength": 10
     },
     "maxAgeYears": {
      "type": "integer",
      "maximum": 150,
      "minimum": 0,
      "description": "Inclusive: age must still be at most this many complete years."
     },
     "minAgeYears": {
      "type": "integer",
      "maximum": 150,
      "minimum": 0
     }
    }
   },
   "maxItems": 100,
   "minItems": 1
  },
  "leapDayRule": {
   "enum": [
    "feb-28",
    "mar-1"
   ],
   "type": "string",
   "description": "In common years a 29 February birthday is observed on 28 February or on 1 March depending on the legal context you apply; you must choose. Required if any birth date is 29 February."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/writerslogic-age-threshold-checker-4c287aa5/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agents.writerslogic.com](https://www.zero.xyz/host/agents.writerslogic.com/llms.txt)
