# WritersLogic Appointment Fit Validator

> WritersLogic Appointment Fit Validator 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).

Validates whether a proposed appointment fits within a venue's opening hours, holiday closures, minimum notice window, and existing bookings, returning every violated rule as a witness.

## Facts

- Endpoint: POST https://agents.writerslogic.com/api/v1/appointment-fit?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-appointment-fit-validator-f9be8c8e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_FClaocQuLhJEOqUFhJGz4

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-appointment-fit-validator-f9be8c8e -d '<json body>'
```

Example prompt: Can you check if scheduling a 90-minute appointment at the downtown studio on Friday March 14 at 2:00 PM UTC is valid — the studio is open Monday through Friday 09:00 to 18:00 in America/New_York, we have 12 existing bookings to check against with a 15-minute buffer on each side, and the request is being made as of now (2025-03-10T10:00:00Z)?

## When to prefer this

Use this endpoint when you need to definitively validate a single proposed appointment against a full set of scheduling constraints — opening hours, holiday calendars, existing bookings with buffers, and minimum notice — and need to know exactly which rules are violated and why. Prefer this over a slot-search endpoint when you already have a proposed time and need a go/no-go decision with detailed conflict witnesses. Do not use this to find available slots (use a slot-intersection endpoint instead), to check staff or resource capacity, or to get the current time.

## Known failure modes

- Invalid or missing 'start' datetime — returns a validation error indicating the field is required and must match ISO 8601 format
- Missing 'hours' array — returns error since opening hours are required when no named calendar is used
- More than 500 bookings supplied — exceeds the maximum and returns a schema validation error
- 'close' time not after 'open' time in an hours block — overnight blocks are unsupported and return a validation error
- Named calendar used outside its supported date range — returns an error indicating the calendar does not cover the requested date
- Invalid IANA timezone string — returns a timezone resolution error
- Malformed 'asOf' datetime — returns a validation error on the minimum notice reference field

## How this service works

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

## Output

A structured response listing every violated rule as a witness object — each witness identifies whether the conflict is with an existing booking (including the conflicting booking's start/end) or an opening-hours block, along with the specific constraint that was breached (e.g., outside operating hours, insufficient notice, booking buffer overlap, holiday closure). If no rules are violated, the response indicates the appointment is valid.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "asOf": {
   "type": "string",
   "pattern": "^\\d{4}-\\d{2}-\\d{2}[Tt ]\\d{2}:\\d{2}(:\\d{2}(\\.\\d{1,9})?)?(Z|z|[+-]\\d{2}:?\\d{2})$",
   "maxLength": 36,
   "description": "Reference instant for minimum notice."
  },
  "hours": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "days",
     "open",
     "close"
    ],
    "properties": {
     "days": {
      "type": "array",
      "items": {
       "type": "integer",
       "maximum": 6,
       "minimum": 0
      },
      "maxItems": 7,
      "minItems": 1,
      "description": "0=Sunday..6=Saturday."
     },
     "open": {
      "type": "string",
      "pattern": "^([01]\\d|2[0-3]):[0-5]\\d$",
      "maxLength": 5
     },
     "close": {
      "type": "string",
      "pattern": "^([01]\\d|2[0-3]):[0-5]\\d$",
      "maxLength": 5,
      "description": "Exclusive end, local; must be after open (no overnight blocks)."
     }
    }
   },
   "maxItems": 28,
   "minItems": 1
  },
  "start": {
   "type": "string",
   "pattern": "^\\d{4}-\\d{2}-\\d{2}[Tt ]\\d{2}:\\d{2}(:\\d{2}(\\.\\d{1,9})?)?(Z|z|[+-]\\d{2}:?\\d{2})$",
   "maxLength": 36
  },
  "weekend": {
   "type": "array",
   "items": {
    "type": "integer",
    "maximum": 6,
    "minimum": 0
   },
   "maxItems": 6,
   "description": "Ignored for hours; with a named calendar only its holidays are used."
  },
  "bookings": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "start",
     "end"
    ],
    "properties": {
     "end": {
      "type": "string",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}[Tt ]\\d{2}:\\d{2}(:\\d{2}(\\.\\d{1,9})?)?(Z|z|[+-]\\d{2}:?\\d{2})$",
      "maxLength": 36
     },
     "start": {
      "type": "string",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}[Tt ]\\d{2}:\\d{2}(:\\d{2}(\\.\\d{1,9})?)?(Z|z|[+-]\\d{2}:?\\d{2})$",
      "maxLength": 36
     }
    }
   },
   "maxItems": 500
  },
  "calendar": {
   "enum": [
    "us-federal",
    "us-federal-reserve",
    "nyse",
    "us-equities-settlement",
    "uk-england-and-wales",
    "uk-scotland",
    "uk-northern-ireland",
    "weekends-only",
    "caller"
   ],
   "type": "string",
   "description": "Optional named holiday calendar for closed days (unsupported outside its range). Without it only holidays/weekend you list apply; hours decide the weekdays."
  },
  "holidays": {
   "type": "array",
   "items": {
    "type": "string",
    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
    "maxLength": 10
 
… (truncated)
```

## Response schema (JSON Schema)

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/writerslogic-appointment-fit-validator-f9be8c8e/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)
