{"uid":"cap_FClaocQuLhJEOqUFhJGz4","slug":"writerslogic-appointment-fit-validator-f9be8c8e","name":"WritersLogic Appointment Fit Validator","description":"Pay-per-call agents settled in USDC on Base via x402. Every response carries a signed provenance envelope.","url":"https://agents.writerslogic.com/api/v1/appointment-fit?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"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},"maxItems":400,"description":"Extra non-business dates YYYY-MM-DD (company closures, a calendar we do not carry)."},"timeZone":{"type":"string","pattern":"^[A-Za-z][A-Za-z0-9_+-]*(/[A-Za-z0-9_+-]+){0,2}$","maxLength":64,"description":"Venue zone in which hours apply."},"bufferMinutes":{"type":"integer","maximum":1440,"minimum":0,"description":"Required gap on each side of the appointment."},"durationMinutes":{"type":"integer","maximum":1440,"minimum":1},"minNoticeMinutes":{"type":"integer","maximum":525600,"minimum":0,"description":"Needs asOf."}}},"responseSchema":{"type":"json"},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_bjZECe4PtoDQexlmdaLW1","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"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.","exampleAgentPrompt":"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)?","exampleUseCases":[{"title":"Booking conflict check for a clinic","prompt":"I need to verify a patient appointment for Monday April 7 at 10:30 AM UTC, lasting 60 minutes — the clinic is open weekdays 08:00 to 17:00 in America/Chicago, we're closed on US federal holidays, there are about 80 existing bookings with a 10-minute buffer each side, and the booking is being requested as of now (2025-04-01T09:00:00Z). Can you tell me if it conflicts with anything?"},{"title":"Event venue availability validation","prompt":"Check if hosting a 3-hour event on Saturday June 21 at 14:00 UTC works for our venue — we're open Saturdays and Sundays from 10:00 to 22:00 in Europe/London, we have 45 existing bookings to check against with a 30-minute buffer, we're closed on UK England and Wales holidays, and the request is coming in as of 2025-06-01T08:00:00Z."},{"title":"Minimum notice enforcement for a co-working space","prompt":"Can you validate a desk reservation for tomorrow March 12 at 09:00 AM UTC for 2 hours — our co-working space in America/Los_Angeles is open Monday through Friday 08:00 to 20:00, we require at least 4 hours notice from right now (2025-03-11T16:00:00Z), and we have 200 existing bookings with a 5-minute buffer? I want to know if the notice period or any hours rule is violated."}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-19T06:37:17.183Z","isFirstParty":false,"canonicalSlug":"writerslogic-appointment-fit-validator-f9be8c8e"}