# habits.insights — Habit Intelligence Insights

> habits.insights — Habit Intelligence Insights is a paid API for AI agents from api.mydev-tools.tech, paid per call via x402, $0.05/call, status unknown (last checked 2026-10-27).

Generates AI-driven insights from user habit data, surfacing patterns, trends, and actionable intelligence about behavioral habits.

## Facts

- Endpoint: POST https://api.mydev-tools.tech/agent/v1/habits/insights?utm_source=zero.xyz
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-27
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/habits-insights-habit-intelligence-insights-27265415
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Hw-RvskpVk61w5FkBuF_h

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 habits-insights-habit-intelligence-insights-27265415 -d '<json body>'
```

Example prompt: Look at my habit tracking data from the last 30 days and give me the key insights — what patterns are emerging, which habits are sticking, and where am I struggling?

## When to prefer this

Choose this endpoint when you need to extract meaningful intelligence and patterns from existing habit data rather than creating a plan or performing raw analysis. It is best suited for surfacing trends, behavioral summaries, and key takeaways — as opposed to habits.analyze (raw analysis) or habits.plan (plan generation). Use it when the user wants to understand what their habit history means.

## Known failure modes

- Insufficient habit data provided — not enough records to generate meaningful insights
- Malformed or missing required fields in the request body
- Payment not completed or USDC balance insufficient (x402 payment required)
- Habit data format not recognized or unparseable
- Service temporarily unavailable or rate limit exceeded

## How this service works

Summarised insights for agent workflows.

## Output

Returns AI-generated insights derived from habit data, including identified patterns, consistency trends, behavioral observations, and potentially actionable recommendations based on the submitted habit records.

## 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",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "required": [
      "habits"
     ],
     "properties": {
      "habits": {
       "type": "array",
       "items": {
        "type": "object",
        "required": [
         "name",
         "completion_rate",
         "current_streak",
         "best_streak"
        ],
        "properties": {
         "name": {
          "type": "string"
         },
         "risk_score": {
          "type": "number",
          "maximum": 1,
          "minimum": 0
         },
         "best_streak": {
          "type": "integer",
          "minimum": 0
         },
         "average_mood": {
          "type": "number",
          "maximum": 10,
          "minimum": 1
         },
         "energy_trend": {
          "enum": [
           "rising",
           "stable",
           "falling"
          ],
          "type": "string"
         },
         "current_streak": {
          "type": "integer",
          "minimum": 0
         },
         "completion_rate": {
          "type": "number",
          "maximum": 1,
          "minimum": 0
         },
         "mood_correlation": {
          "type": "number",
          "maximum": 1,
          "minimum": -1
         }
        }
       },
       "maxItems": 25,
       "minItems": 1
      },
      "locale": {
       "type": "string"
      },
      "persona": {
       "type": "string"
      },
      "horizon_days": {
       "type": "integer",
       "default": 35,
       "maximum": 180,
       "minimum": 7
      }
     },
     "description": "Caller-supplied habit summaries. Stateless: no identifier of any stored human user is accepted or resolved. Batch habits into one call — the price is per request, not per habit.",
     "additionalProperties": false
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 
… (truncated)
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "watchouts": [
   "Single-habit sample: correlations are indicative, not significant."
  ],
  "highlights": [
   "Rising energy trend correlates with completion above 0.7."
  ],
  "recommendations": [
   "Add a second habit to enable cross-habit correlation."
  ],
  "aggregate_summary": {
   "risk_level": "low",
   "habits_tracked": 1
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/habits-insights-habit-intelligence-insights-27265415/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.mydev-tools.tech](https://www.zero.xyz/host/api.mydev-tools.tech/llms.txt)
