# Schedule & Timezone Tools **Schedule & Timezone Tools** is an independently documented x402 Atlas bridge at https://schedule-tools.use.x402atlas.com. This document describes only this bridge; it does not aggregate routes, schemas, or content from any other bridge. ## How payment works Paid operations use the [x402 payment protocol](https://x402.org) and settle in USDC. Atlas supports deployments on Base, Polygon, and Arbitrum, plus configured Solana networks. This bridge currently advertises Arbitrum One (`eip155:42161`), Base (`eip155:8453`), Polygon (`eip155:137`), Solana mainnet (`solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp`). 1. Send the HTTP request without a payment signature. 2. Read the `402 Payment Required` response. Its `accepts` entries are the authoritative network, asset, amount, and recipient options for that call. 3. Select an option, sign it with an x402-compatible wallet or SDK, and repeat the request with the `PAYMENT-SIGNATURE` header. The successful response is returned after verification and settlement. TypeScript clients can automate the challenge, signing, and retry flow with [`x402-fetch`](https://www.npmjs.com/package/x402-fetch) or [`x402-axios`](https://www.npmjs.com/package/x402-axios). Fund a dedicated wallet only with the working USDC balance it needs and keep that key separate from treasury accounts. ## Pricing Atlas route prices start at $0.005 per successful call. This bridge's fallback price is $0.005; operations below state their exact configured price in `x-x402` and `x-payment-info`. The live `402` challenge remains authoritative. ## Worked payment example Request one documented operation without a signature to inspect its live terms: ```bash curl -i --request POST 'https://schedule-tools.use.x402atlas.com/availability-intersect' --header 'Content-Type: application/json' --data '{ "participants": [ { "id": "engineering", "mode": "available", "intervals": [ { "start": "2024-06-03T09:00:00Z", "end": "2024-06-03T12:00:00Z" } ] }, { "id": "design", "mode": "available", "intervals": [ { "start": "2024-06-03T10:00:00Z", "end": "2024-06-03T11:30:00Z" } ] }, { "id": "product", "mode": "available", "intervals": [ { "start": "2024-06-03T10:30:00Z", "end": "2024-06-03T12:30:00Z" } ] } ], "window_start": "2024-06-03T09:00:00Z", "window_end": "2024-06-03T13:00:00Z", "minimum_duration_seconds": 1800 }' # HTTP/1.1 402 Payment Required # Read accepts[].network, asset, amount, and payTo from this response. ``` Sign one accepted option and repeat the identical request with the `PAYMENT-SIGNATURE` header. Do not invent or cache payment terms; read them from the current challenge. ## Use this API - Interactive reference: https://schedule-tools.use.x402atlas.com/docs - OpenAPI 3.1 specification: https://schedule-tools.use.x402atlas.com/openapi.json - Agent-readable route corpus: https://schedule-tools.use.x402atlas.com/llms.txt - Endpoint index: https://schedule-tools.use.x402atlas.com/index.json Use the operation schemas and examples below to construct requests. Copy the server URL, path, method, parameters, and request body from the operation you want to call. Path and query examples are concrete and can be used directly. ## Atlas response metadata Successful JSON responses include an additive top-level `_atlas` block, kept separate from the bridge's data fields. `_atlas.docs` links this bridge's `/llms.txt` corpus. `_atlas.related` suggests adjacent APIs, each with a callable `url`, its own `docs` link, and a short `summary`. Suppress this block by sending `X-Atlas-Meta: none` or by adding `?_atlas=0` to the request. ## Errors and compatibility Validation failures use HTTP `400`. Paid operations may return `402` before dispatch. Upstream and internal failures use the documented `5xx` responses. Clients should rely on documented fields and tolerate additive response fields, including `_atlas` unless they explicitly opt out. ## Protocol reference - x402 protocol and SDKs: https://x402.org ## Schedule & Timezone Tools Docs: https://schedule-tools.use.x402atlas.com/docs · OpenAPI: https://schedule-tools.use.x402atlas.com/openapi.json ### POST /availability-intersect Meeting availability intersection — find maximal common free time slots across participant calendars within a bounded window. Find maximal common availability across 2–20 participants. Each participant supplies explicit available RFC3339 half-open intervals; the service clips and merges each calendar, intersects every participant, and returns only slots meeting the minimum whole-second duration. No business hours are inferred. **Price:** $0.005 per call. Body fields: - `minimum_duration_seconds` (required, integer) — Minimum returned common-slot duration in whole seconds; minimum: `1`, maximum: `315576000` - `participants` (required, array) — Participant calendars to intersect; at most 512 intervals total; minItems: `2`, maxItems: `20` - `window_end` (required, string) — Exclusive RFC3339 query-window end, at most ten years after start - `window_start` (required, string) — Inclusive RFC3339 query-window start Request body (`application/json`): ```json { "participants": [ { "id": "engineering", "mode": "available", "intervals": [ { "start": "2024-06-03T09:00:00Z", "end": "2024-06-03T12:00:00Z" } ] }, { "id": "design", "mode": "available", "intervals": [ { "start": "2024-06-03T10:00:00Z", "end": "2024-06-03T11:30:00Z" } ] }, { "id": "product", "mode": "available", "intervals": [ { "start": "2024-06-03T10:30:00Z", "end": "2024-06-03T12:30:00Z" } ] } ], "window_start": "2024-06-03T09:00:00Z", "window_end": "2024-06-03T13:00:00Z", "minimum_duration_seconds": 1800 } ``` Example: ```sh curl --request POST 'https://schedule-tools.use.x402atlas.com/availability-intersect' --header 'Content-Type: application/json' --data '{"participants":[{"id":"engineering","mode":"available","intervals":[{"start":"2024-06-03T09:00:00Z","end":"2024-06-03T12:00:00Z"}]},{"id":"design","mode":"available","intervals":[{"start":"2024-06-03T10:00:00Z","end":"2024-06-03T11:30:00Z"}]},{"id":"product","mode":"available","intervals":[{"start":"2024-06-03T10:30:00Z","end":"2024-06-03T12:30:00Z"}]}],"window_start":"2024-06-03T09:00:00Z","window_end":"2024-06-03T13:00:00Z","minimum_duration_seconds":1800}' ``` Response example: ```json { "operation": "availability-intersect", "algorithm_version": "schedule-v1", "participant_ids": [ "engineering", "design", "product" ], "participant_count": 3, "window": { "start": "2024-06-03T09:00:00Z", "end": "2024-06-03T13:00:00Z" }, "minimum_duration_seconds": 1800, "slots": [ { "start": "2024-06-03T10:30:00Z", "end": "2024-06-03T11:30:00Z" } ], "slot_count": 1, "warnings": [] } ``` ### POST /cron-next Cron next-run calculator — generate future times for bounded five-field POSIX cron schedules in IANA timezones with explicit daylight-saving (DST) policies. Compute the next 1–100 instants strictly after a supplied RFC3339 instant for a bounded five-field numeric POSIX cron expression in an IANA timezone. Lists, ranges, steps, Sunday 0/7, and traditional day-of-month/day-of-week OR semantics are supported; DST folds and gaps follow explicit caller policies. **Price:** $0.005 per call. Body fields: - `after` (required, string) — Exclusive RFC3339 whole-second instant - `ambiguous_time` (required, string) — Policy for a repeated generated civil minute; allowed: ["earlier","later","reject"] - `count` (required, integer) — Number of future occurrences to return; minimum: `1`, maximum: `100` - `expression` (required, string) — Five numeric POSIX fields; supports *, lists, ranges, and steps; */n retains wildcard DOM/DOW semantics and x/n expands through the field maximum; minLength: `9`, maxLength: `256` - `nonexistent_time` (required, string) — Policy for a skipped generated civil minute; allowed: ["reject","shift_forward"] - `timezone` (required, string) — UTC or IANA area/location name; minLength: `3`, maxLength: `128` Request body (`application/json`): ```json { "expression": "0 9 * * 1-5", "timezone": "Europe/London", "after": "2024-03-28T12:00:00Z", "count": 5, "ambiguous_time": "reject", "nonexistent_time": "shift_forward" } ``` Example: ```sh curl --request POST 'https://schedule-tools.use.x402atlas.com/cron-next' --header 'Content-Type: application/json' --data '{"expression":"0 9 * * 1-5","timezone":"Europe/London","after":"2024-03-28T12:00:00Z","count":5,"ambiguous_time":"reject","nonexistent_time":"shift_forward"}' ``` Response example: ```json { "operation": "cron-next", "algorithm_version": "schedule-v1", "tzdata_source": "bridge-embedded", "go_toolchain_version": "go1.26.3", "iana_tzdata_version": "2026a", "expression": "0 9 * * 1-5", "timezone": "Europe/London", "after": "2024-03-28T12:00:00Z", "count": 5, "ambiguous_time": "reject", "nonexistent_time": "shift_forward", "candidate_minutes_checked": 11460, "occurrences": [ { "utc": "2024-03-29T09:00:00Z", "local": { "local_time": "2024-03-29T09:00:00+00:00", "timezone": "Europe/London", "offset_seconds": 0, "abbreviation": "GMT" } }, { "utc": "2024-04-01T08:00:00Z", "local": { "local_time": "2024-04-01T09:00:00+01:00", "timezone": "Europe/London", "offset_seconds": 3600, "abbreviation": "BST" } }, { "utc": "2024-04-02T08:00:00Z", "local": { "local_time": "2024-04-02T09:00:00+01:00", "timezone": "Europe/London", "offset_seconds": 3600, "abbreviation": "BST" } }, { "utc": "2024-04-03T08:00:00Z", "local": { "local_time": "2024-04-03T09:00:00+01:00", "timezone": "Europe/London", "offset_seconds": 3600, "abbreviation": "BST" } }, { "utc": "2024-04-04T08:00:00Z", "local": { "local_time": "2024-04-04T09:00:00+01:00", "timezone": "Europe/London", "offset_seconds": 3600, "abbreviation": "BST" } } ], "warnings": [] } ``` ### POST /intervals-merge Time interval merger — sort, deduplicate, and combine overlapping or adjacent RFC 3339 date-time ranges. Sort and merge up to 1,000 RFC3339 whole-second half-open intervals. Overlaps always merge; exact adjacency merges when merge_adjacent is true. Duplicates collapse and total covered seconds use checked arithmetic. **Price:** $0.005 per call. Body fields: - `intervals` (required, array) — Intervals to sort and merge; duplicates are allowed; minItems: `0`, maxItems: `1000` - `merge_adjacent` (optional, boolean) — Merge intervals that touch exactly as well as intervals that overlap; default: `true` Request body (`application/json`): ```json { "intervals": [ { "start": "2024-06-03T09:00:00Z", "end": "2024-06-03T10:30:00Z" }, { "start": "2024-06-03T10:00:00Z", "end": "2024-06-03T11:00:00Z" }, { "start": "2024-06-03T11:00:00Z", "end": "2024-06-03T12:00:00Z" } ], "merge_adjacent": true } ``` Example: ```sh curl --request POST 'https://schedule-tools.use.x402atlas.com/intervals-merge' --header 'Content-Type: application/json' --data '{"intervals":[{"start":"2024-06-03T09:00:00Z","end":"2024-06-03T10:30:00Z"},{"start":"2024-06-03T10:00:00Z","end":"2024-06-03T11:00:00Z"},{"start":"2024-06-03T11:00:00Z","end":"2024-06-03T12:00:00Z"}],"merge_adjacent":true}' ``` Response example: ```json { "operation": "intervals-merge", "algorithm_version": "schedule-v1", "merge_adjacent": true, "input_count": 3, "output_count": 1, "intervals": [ { "start": "2024-06-03T09:00:00Z", "end": "2024-06-03T12:00:00Z" } ], "total_covered_seconds": 10800, "warnings": [] } ``` ### POST /rrule-expand RRULE recurrence expander — generate bounded RFC 5545 iCalendar occurrences in IANA timezones with windows, work limits, and daylight-saving (DST) policies. Expand one bounded RFC 5545 recurrence in an IANA timezone. V1 supports DAILY/WEEKLY/MONTHLY/YEARLY with INTERVAL, COUNT or UTC UNTIL, BYDAY, BYMONTHDAY, BYMONTH, BYSETPOS, and WKST. The result window is half-open and iteration enforces explicit candidate and BY-part work counters. **Price:** $0.005 per call. Body fields: - `ambiguous_time` (required, string) — Policy for repeated civil occurrences; allowed: ["earlier","later","reject"] - `dtstart_local` (required, string) — Civil DTSTART in YYYY-MM-DDTHH:MM:SS; pattern: `"^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}$"` - `limit` (required, integer) — Maximum occurrences to return; minimum: `1`, maximum: `100` - `nonexistent_time` (required, string) — Policy for skipped civil occurrences; allowed: ["reject","shift_forward"] - `rrule` (required, string) — One RFC5545 RRULE using the documented bounded V1 subset; minLength: `10`, maxLength: `2048` - `timezone` (required, string) — UTC or IANA area/location name; minLength: `3`, maxLength: `128` - `window_end` (required, string) — Exclusive RFC3339 whole-second window end within the five- and ten-year ceilings - `window_start` (required, string) — Inclusive RFC3339 whole-second window start at or after DTSTART Request body (`application/json`): ```json { "dtstart_local": "1997-09-02T09:00:00", "timezone": "America/New_York", "rrule": "FREQ=WEEKLY;COUNT=10;BYDAY=TU,TH", "window_start": "1997-09-02T09:00:00-04:00", "window_end": "1997-10-01T00:00:00-04:00", "limit": 8, "ambiguous_time": "reject", "nonexistent_time": "reject" } ``` Example: ```sh curl --request POST 'https://schedule-tools.use.x402atlas.com/rrule-expand' --header 'Content-Type: application/json' --data '{"dtstart_local":"1997-09-02T09:00:00","timezone":"America/New_York","rrule":"FREQ=WEEKLY;COUNT=10;BYDAY=TU,TH","window_start":"1997-09-02T09:00:00-04:00","window_end":"1997-10-01T00:00:00-04:00","limit":8,"ambiguous_time":"reject","nonexistent_time":"reject"}' ``` Response example: ```json { "operation": "rrule-expand", "algorithm_version": "schedule-v1", "tzdata_source": "bridge-embedded", "go_toolchain_version": "go1.26.3", "iana_tzdata_version": "2026a", "dtstart_local": "1997-09-02T09:00:00", "timezone": "America/New_York", "normalized_rrule": "FREQ=WEEKLY;INTERVAL=1;COUNT=10;BYDAY=TU,TH;WKST=MO", "window_start": "1997-09-02T13:00:00Z", "window_end": "1997-10-01T04:00:00Z", "limit": 8, "ambiguous_time": "reject", "nonexistent_time": "reject", "occurrences": [ { "utc": "1997-09-02T13:00:00Z", "local": { "local_time": "1997-09-02T09:00:00-04:00", "timezone": "America/New_York", "offset_seconds": -14400, "abbreviation": "EDT" } }, { "utc": "1997-09-04T13:00:00Z", "local": { "local_time": "1997-09-04T09:00:00-04:00", "timezone": "America/New_York", "offset_seconds": -14400, "abbreviation": "EDT" } }, { "utc": "1997-09-09T13:00:00Z", "local": { "local_time": "1997-09-09T09:00:00-04:00", "timezone": "America/New_York", "offset_seconds": -14400, "abbreviation": "EDT" } }, { "utc": "1997-09-11T13:00:00Z", "local": { "local_time": "1997-09-11T09:00:00-04:00", "timezone": "America/New_York", "offset_seconds": -14400, "abbreviation": "EDT" } }, { "utc": "1997-09-16T13:00:00Z", "local": { "local_time": "1997-09-16T09:00:00-04:00", "timezone": "America/New_York", "offset_seconds": -14400, "abbreviation": "EDT" } }, { "utc": "1997-09-18T13:00:00Z", "local": { "local_time": "1997-09-18T09:00:00-04:00", "timezone": "America/New_York", "offset_seconds": -14400, "abbreviation": "EDT" } }, { "utc": "1997-09-23T13:00:00Z", "local": { "local_time": "1997-09-23T09:00:00-04:00", "timezone": "America/New_York", "offset_seconds": -14400, "abbreviation": "EDT" } }, { "utc": "1997-09-25T13:00:00Z", "local": { "local_time": "1997-09-25T09:00:00-04:00", "timezone": "America/New_York", "offset_seconds": -14400, "abbreviation": "EDT" } } ], "occurrence_count": 8, "work": { "candidate_occurrences": 8, "combination_checks": 52, "periods_checked": 4 }, "warnings": [] } ``` ### POST /timezone-convert Timezone converter — resolve civil-time daylight-saving (DST) folds or gaps and convert one local time between IANA zones. Resolve a whole-second civil timestamp in one IANA timezone under explicit DST fold and gap policies, then return the same instant in UTC, the source zone, and a destination zone. Abbreviations are display-only; comparisons use instants and numeric offsets. **Price:** $0.005 per call. Body fields: - `ambiguous_time` (required, string) — Policy for a repeated civil time; allowed: ["earlier","later","reject"] - `destination_timezone` (required, string) — UTC or destination IANA area/location name; minLength: `3`, maxLength: `128` - `local_time` (required, string) — Civil timestamp in YYYY-MM-DDTHH:MM:SS; pattern: `"^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}$"` - `nonexistent_time` (required, string) — Policy for a skipped civil time; allowed: ["reject","shift_forward"] - `source_timezone` (required, string) — UTC or source IANA area/location name; minLength: `3`, maxLength: `128` Request body (`application/json`): ```json { "local_time": "2024-11-03T01:30:00", "source_timezone": "America/New_York", "destination_timezone": "Europe/London", "ambiguous_time": "later", "nonexistent_time": "reject" } ``` Example: ```sh curl --request POST 'https://schedule-tools.use.x402atlas.com/timezone-convert' --header 'Content-Type: application/json' --data '{"local_time":"2024-11-03T01:30:00","source_timezone":"America/New_York","destination_timezone":"Europe/London","ambiguous_time":"later","nonexistent_time":"reject"}' ``` Response example: ```json { "operation": "timezone-convert", "algorithm_version": "schedule-v1", "tzdata_source": "bridge-embedded", "go_toolchain_version": "go1.26.3", "iana_tzdata_version": "2026a", "input_local": "2024-11-03T01:30:00", "source_timezone": "America/New_York", "destination_timezone": "Europe/London", "ambiguous_time": "later", "nonexistent_time": "reject", "resolved_utc": "2024-11-03T06:30:00Z", "source": { "local_time": "2024-11-03T01:30:00-05:00", "timezone": "America/New_York", "offset_seconds": -18000, "abbreviation": "EST" }, "destination": { "local_time": "2024-11-03T06:30:00+00:00", "timezone": "Europe/London", "offset_seconds": 0, "abbreviation": "GMT" }, "warnings": [] } ```