Skip to content
CareDailyAIPublic

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

3 watching

Forks

Repository files navigation

Care Daily Developer Documentation

Care Daily is the Ambient Operating System that helps people live independently, in homes and communities. Sensors in a home or an apartment report to the Care Daily cloud. Bots running in the cloud turn those signals into insights, alerts and a daily picture of how someone is doing. Apps, consoles, partner clouds and AI agents read all of it through open APIs, and talk back to the bots to act on it.

This repository is the guide. The complete, generated API reference lives online:

Reference What is in it
Application API Everything an app or web console calls: users, locations, devices, spaces, commands, files, and the data stream and state calls behind the Synthetic APIs
Admin API Organization management for command centers: people, places and things at administrator scope, plus reports
Bots API Bot instances, and what a bot microservice calls back into the platform

How the platform fits together

flowchart TB
    DEV["🔌 <b>Devices</b><br/>sensors<br/>gateways · radar"]
    APP["📱 <b>Apps</b><br/><b>and consoles</b><br/>mobile · web<br/>voice"]
    AG["🤖 <b>AI agents</b>"]
    P["☁️ <b>Care Daily</b><br/><b>Ambient</b><br/><b>Operating System</b><br/>users<br/>locations<br/>devices · spaces"]
    B["🧠 <b>Bot</b><br/><b>microservices</b><br/>application<br/>logic"]
    EXT["🏢 <b>Partner cloud</b>"]

    DEV -->|"MQTT<br/>device API"| P
    APP <-->|"Application API<br/>REST + WebSocket"| P
    AG <-->|"the same<br/>open APIs"| P
    P -->|"data stream<br/>messages"| B
    B -->|"location state<br/>variables"| P
    P -.->|"event<br/>streaming"| EXT

    classDef plat fill:#eef2ff,stroke:#3f3bf2,stroke-width:2px
    classDef bot  fill:#f0fdf4,stroke:#1b873f,stroke-width:2px
    classDef edge fill:#fff7ed,stroke:#b54708
    classDef ext  fill:#f8fafc,stroke:#94a3b8
    class P plat
    class B bot
    class DEV,APP,AG edge
    class EXT ext
Loading

There are two layers, and knowing which one you are talking to answers most first-week questions.

The platform stores and moves the real things: users, locations, devices, spaces, measurements, commands. It is a synchronous REST API, with WebSockets where latency matters.

The bot layer is where features are invented. Bots receive data stream messages and write location state variables back. An app reads those state variables like any other API response, which is why we call them Synthetic APIs: they look like platform APIs to the app, but a bot is answering.


Start here

flowchart LR
    Q["⏱️ <b>Quick Start</b><br/>first call in<br/>ten minutes"] --> C["🧩 <b>Concepts</b><br/>the five nouns"] --> R["📚 <b>References</b><br/>Platform and<br/>Synthetic APIs"] --> G["🗺️ <b>Guides</b><br/>whole stories"]
    style Q fill:#eef2ff,stroke:#3f3bf2,stroke-width:2px
Loading
Step Page You will know
1 Start here A reading order, and which track is yours
2 Quick Start How to log in and read a real home in ten minutes
3 Concepts Organizations, locations, users, devices, bots, data streams and state
4 Authentication Key types, and the two-step administrator login
5 Result codes and gotchas What a number other than 0 means

Find your way by what you are building

You are building Read
A mobile or web app Synthetic APIs, then WebSockets
An administrative console Concepts, the Admin API, then The life of an alert
Device firmware or a gateway MQTT and Devices and parameters
A partner cloud Event Streaming
An AI agent Agent Kit
One screen, and it half works Message Sequence Charts

What is in this repository

getting_started/          Start here and the Quick Start
concepts/                 The five nouns behind every API call
platform_apis/            Authentication, REST conventions, result codes, WebSockets,
                          Event Streaming, MQTT, modes
synthetic_apis/           Every bot-provided API: dashboard, insights, trends, alerts, and more
guides/                   The life of an alert, watching a home live, troubleshooting
message_sequence_charts/  The exact call order behind each app screen
agent_kit/                Instructions that teach an AI agent to use the open APIs safely

Provided by the platform itself, for applications, devices and administrators: the role-based REST APIs, WebSockets, cloud-to-cloud event streaming, the MQTT device path, and location modes.

Provided by the bot layer on top of the platform. This is how the flagship user interfaces are driven, and how you can invent features the platform does not offer on its own.

Whole stories that cross several APIs, such as following one fall from the sensor to the family's phones and back.

How clients work, end to end, as diagrams: login and registration, the app's structure, device onboarding and configuration, the device UI, and services and alerts.

The same knowledge written for AI agents: standing rules, a login helper that never prints a key, discovery, reading, safe writes, errors and retries, and live events.


Conventions used in this repository

Term Meaning
Location A home, apartment, or community space. Nearly everything is scoped to one
Data stream message An asynchronous message into a bot. Has an address and arbitrary JSON content. The input half of a Synthetic API
Location state variable Non-volatile JSON stored against a location, written by a bot and readable by any app. The output half of a Synthetic API
Scope 1 is the location, 2 is the organization. Determines which bots receive a data stream message
Microservice package A bundle of bot logic. The Synthetic APIs here map to our most popular packages
TODO(verify) A note on a fact we have not yet confirmed as public and current. Treat it as unconfirmed

Contributing

Corrections and additions are welcome. Pages marked in progress are the ones we most want help with, and the fastest way to get one prioritized is to say what you are building.

Contact dmoss@caredaily.ai.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

3 watching

Forks

Releases

Packages

Contributors

Languages