What apps and agents can do
- Look up a tree by its 8-character code: its name, its type, the day its messages open and how many gifts it has.
- Leave a gift with a message of up to 500 characters on someone’s tree.
- Report a tree or a message that breaks the Community Guidelines.
- List the owner’s trees in an AI assistant the owner connected: names, links, gift counts and opening days. Never the messages.
Creating a tree and reading its messages stay with the tree owner, who signs in with their own email and password at decomytree.link/create-tree.
API
Base address: https://api.decomytree.link. Requests and answers are JSON, and anyone can call the API from any website (CORS is open). Every answer has success: the result is in data, or error says what went wrong. The full description is openapi.json (OpenAPI 3.1).
| Request | What it does |
|---|---|
GET /v1/trees/{code} | A tree: name, type (christmas, birthday or valentine), the day it opens and its gift count |
POST /v1/messages | Leaves a gift with a message |
POST /v1/reports | Reports a tree or one of its messages for review |
GET /v1/status | Whether Deco My Tree is working right now |
Leave a message
curl -X POST https://api.decomytree.link/v1/messages \
-H 'Content-Type: application/json' \
-d '{"shareCode":"ABCD2345","senderName":"Emma","message":"Merry Christmas! 🎄","giftAssetId":"card","showSenderName":true}'shareCode: the tree code, 8 letters and digits, as in a link likedecomytree.link/send-message?tree=ABCD2345.senderName: up to 30 characters, which the tree owner sees; a name that starts with 🔒 (what the website’s Hide my name sends) shows as “🔒 Secret” in the owner’s language."showSenderName": falseleaves it off the gift on the tree.message: up to 500 characters. A word filter turns away offensive words with status 422.giftAssetId: one of the gift ids listed in openapi.json, for examplecard,snow-globeorpink-teddy.
Requests are limited per IP address and per tree (for example 10 messages a minute from one address). Past the limit the API answers with status 429; wait a minute and try again.
MCP server
Deco My Tree is an MCP server (Streamable HTTP). Add it as a connector in Claude, ChatGPT, Cursor or any MCP client:
| Address | Sign-in | Tools |
|---|---|---|
https://decomytree.link/mcp | None | get_tree, list_gifts, leave_message, days_until |
https://decomytree.link/mcp/account | The tree owner signs in and allows the app (OAuth) | The same, plus my_trees |
The server card describes both. leave_message follows the same rules and limits as the API.
Sign-in for apps and agents
- OAuth 2.0 with PKCE and dynamic client registration, for public clients: authorization server metadata and protected resource metadata. MCP clients find them by themselves from the 401 of
/mcp/account. - The only scope is
trees:read: the owner’s trees, their links and codes, gift counts and opening days. Apps never get the messages. - Agents without a browser: auth.md explains how to register and have the owner claim you with a 6-digit code.
- Access tokens last an hour. Access ends after 30 days, or sooner when the owner changes their password.
Rules for apps and agents
- Send only messages that the person you act for wrote or approved, to trees whose link they were given.
- No bulk, automated or unsolicited messages, no advertising and nothing the Community Guidelines forbid.
- Never present a message as coming from someone else.
- Never ask anyone for their Deco My Tree password: tree owners sign in on this website themselves.
For AI agents
- llms.txt explains Deco My Tree in a few lines; llms-full.txt holds every guide in one file.
- Markdown pages: every guide is also in Markdown at the same address ending in
.md, like deco-my-tree.md; the page links it in its HTML and in itsLinkheader. - API catalog (RFC 9727) and the OpenAPI description.
- Agent skills: how to leave a message on a tree and how to help someone create one.
- AI catalog: the skills, the API and the MCP server in one list.
- poppy.json (Personal Agent Protocol): personal agents use the website as any visitor does.
- MCP server card and auth.md for signing in.
- WebMCP: in browsers that support it, the pages offer the tools
open_tree,create_treeanddays_until, and an agent can fill in the tree-code and message forms; the person still presses Send.
Contact
Questions or a bigger idea? Write to support@decomytree.link.