# Focus & Sleep Planner – Nap Planner

> Focus & Sleep Planner – Nap Planner is a paid API for AI agents from focus-sleep-calc.x402tookit.com, paid per call via x402, $0.02/call, status unknown (last checked 2026-10-29).

Given a nap start time, returns wake-up clock times for standard nap lengths (10, 20, 30, 60, 90 min plus an optional custom length), with a bedtime gap check flagging which naps are too close to tonight's bedtime.

## Facts

- Endpoint: GET https://focus-sleep-calc.x402tookit.com/nap-planner?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-29
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/focus-sleep-planner-nap-planner-5eb6c192
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_OXT_2KP6LBUvjWb5i8cub

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 focus-sleep-planner-nap-planner-5eb6c192
```

Example prompt: I'm lying down for a nap at 2:30 PM and need to be asleep by 10:30 PM tonight — can you show me all the nap length options (10, 20, 30, 60, and 90 minutes) with what time I'd wake up for each, and flag which ones are too close to bedtime? I usually take about 8 minutes to fall asleep.

## When to prefer this

Use this endpoint when you need to compute concrete nap wake-up times and assess bedtime safety for multiple standard nap durations at once. It is purpose-built for sleep scheduling with sleep-cycle awareness, unlike generic time calculators. Choose this over manual arithmetic when you need a structured multi-option output with bedtime gap validation in a single call.

## Known failure modes

- Missing required startTime parameter returns an error
- Invalid time format for startTime or bedtime (e.g. non-parseable string) causes a parsing failure
- customMinutes outside 5–240 range may be rejected or ignored
- fallAsleepMinutes outside 0–60 range may be rejected
- If bedtime is not provided, the gap check and tooCloseToBedtime flags are not computed

## How this service works

Nap lengths (10, 20, 30, 60, 90 minutes or your own) with the wake-up clock time for each, and a bedtime gap check.

## Output

Returns an array of nap options, each with the nap duration in minutes, the exact wake-up clock time, hours remaining before bedtime, a flag indicating whether the nap is too close to bedtime, and a day offset if the wake time crosses midnight. Also includes a summary verdict, disclaimer, the confirmed start and bedtime clocks, fall-asleep minutes used, and minimum gap hours applied.

## 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",
     "required": [
      "startTime"
     ],
     "properties": {
      "bedtime": {
       "type": "string",
       "description": "Tonight's bedtime; adds the gap between waking and bed"
      },
      "startTime": {
       "type": "string",
       "description": "When you lie down, like 1:30 PM or 13:30"
      },
      "minGapHours": {
       "type": "number",
       "description": "Smallest comfortable gap before bedtime in hours (default 6)"
      },
      "customMinutes": {
       "type": "number",
       "description": "One extra nap length in minutes to include (5 to 240)"
      },
      "fallAsleepMinutes": {
       "type": "number",
       "description": "Minutes to fall asleep, 0 to 60 (default 10)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "asOf": {
       "type": [
        "null",
        "string"
       ]
      },
      "source": {
       "type": [
        "null",
        "string"
       ]
      },
      "options": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "object",
        "properties": {
         "note": {
          "type": [
           "null",
           "string"
          ]
         },
         "wakeTime": {
          "type": [
           "null",
           "string"
          ]
         },
         "napMinutes": {
          "type": [
           "null",
           "number"
          ]
         },
         "wakeDayOffset": {
          "type": [
           "null",
           "number"
          ]
         },
         "tooCloseToBedtime": {
          "type": [
           "boolean",
           "null"
          ]
         },
         "hoursBeforeBedtime": {
          "type": [
           "null",
           "number"
          ]
         }
        }
       }
      },
      "reasons": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/focus-sleep-planner-nap-planner-5eb6c192/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from focus-sleep-calc.x402tookit.com](https://www.zero.xyz/host/focus-sleep-calc.x402tookit.com/llms.txt)
