# MindPulse Sleep & Mental Health Guide

> MindPulse Sleep & Mental Health Guide is a paid API for AI agents from mindpulse-lilac.vercel.app, paid per call via x402, $0.08/call, status unknown (last checked 2026-09-14).

Provides evidence-based guidance on CBT-I sleep protocols, the sleep-mood connection, and advice on when to seek specialist help

## Facts

- Endpoint: GET https://mindpulse-lilac.vercel.app/api/mind/sleep
- Price: $0.08/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/mindpulse-sleep-mental-health-guide-21551df4
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_iVkQ1S6P3MUp-53rJDv-z

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 mindpulse-sleep-mental-health-guide-21551df4
```

Example prompt: I've been struggling with insomnia for weeks and my mood has been really low — can you walk me through CBT-I techniques for better sleep, explain how my sleep and mental health might be connected, and tell me when I should actually see a specialist about this?

## When to prefer this

Choose this endpoint when a user needs actionable, evidence-based sleep guidance grounded in CBT-I protocols, particularly when they want to understand the interplay between sleep quality and mental health, or need triage guidance on whether professional help is warranted. Prefer over generic wellness APIs when clinical framework (CBT-I, sleep-mood nexus) is specifically needed.

## Known failure modes

- Missing or invalid query parameters may return an error or generic response
- Network timeout if the Vercel deployment is cold-starting
- Payment failure (x402) if USDC payment is not properly attached
- Service unavailability during Vercel deployment outages

## How this service works

Sleep and mental health for mental-health and wellness agents. Returns a CBT-I protocol, the sleep-mood connection, and when to seek specialist help.

## Output

Returns structured guidance covering CBT-I protocol steps, an explanation of the bidirectional sleep-mood relationship, and criteria or indicators for when to seek professional specialist help for sleep or related mental health issues.

## Example request

```json
{}
```

## 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",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "lang": {
       "type": "string",
       "description": "en | es | fr | de | zh | ja | ko | pt | ar | hi"
      },
      "concern": {
       "type": "string",
       "description": "insomnia | oversleeping | nightmares | sleep-apnea | restless-legs | jet-lag | shift-work"
      },
      "symptoms": {
       "type": "string",
       "description": "trouble falling asleep | waking at 3am | tired despite 8hrs | snoring"
      },
      "mental_health_context": {
       "type": "string",
       "description": "anxiety | depression | ptsd | none"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "errors": {
     "type": "object",
     "description": "Documented error responses, keyed by HTTP status code",
     "additionalProperties": {
      "type": "object",
      "required": [
       "description"
      ],
      "properties": {
       "example": {
        "type": "object"
       },
       "description": {
        "type": "string"
       }
      }
     }
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "diagnosis_likely": "chronic insomnia",
  "cbt_i_recommended": true,
  "sleep_hygiene_tips": [
   "Consistent wake time — even weekends",
   "No screens 60 min before bed"
  ],
  "when_to_see_doctor": "Snoring + daytime sleepiness — sleep apnea screen"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/mindpulse-sleep-mental-health-guide-21551df4/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from mindpulse-lilac.vercel.app](https://www.zero.xyz/host/mindpulse-lilac.vercel.app/llms.txt)
