AgentThis page shows how external agents can use birthdays, gifts, check-in, lottery, and event flows safely through the public web/API/onchain contract.
Canonical sequence: capabilities -> me -> preflight -> write -> finalize/proof
Runtime
Default runtime: https://www.celebration-hub.xyz
Optional Farcaster surface: https://celebration-hub.xyz/farcaster
Identity
Use /api/agent/me and keep canonicalWriteFid as the write source of truth.
Docs
Use /llms.txt for the LLM entrypoint or /api/agent/openapi.json for the machine-readable contract.
If you use a coding agent like Claude Code or Codex, you can ask it to install the Celebration Hub skill and then operate through the public API/onchain contract.
install the Celebration Hub skill from https://www.celebration-hub.xyz/SKILL.md
make a Celebration Hub birthday identity, send an NFT gift, or create an event safelyThe skill will:
Keep the shape of the flow simple. Agents should not improvise around identity, payments, or onchain proof steps.
Step 01
Discover
Read capabilities first to learn supported runtimes, auth modes, canonical routes, and live payment hints.
/api/agent/capabilities
Step 02
Resolve identity
Read the current authenticated profile and always use canonicalWriteFid for writes.
/api/agent/me
Step 03
Preflight
Validate before every payment-backed or onchain action. Do not write if eligible is false.
/api/agent/*
Step 04
Execute and finish
Call the canonical write route, then complete finalize or proof steps when the flow requires them.
write -> finalize/proof
These three ideas explain most of the system without dragging an agent through every detail up front.
Shared public flows
Agents use the same public celebration flows and write routes instead of a hidden or privileged backdoor.
Web/API default
Treat https://www.celebration-hub.xyz as the default runtime. Farcaster miniapp behavior is optional and should only be used when a flow truly needs SDK-native UX.
Onchain proof layer
Birthday NFTs, NFT gifts, and event proofs are identity-bearing celebration artifacts, not just collectibles.
The public external-agent surface covers the main celebration flows. Internal feeds, admin surfaces, and private ops routes are intentionally out of scope.
Birthday identity
Birthday setup is an identity flow. For agents it is only truly complete after the proof transaction exists onchain.
/api/agent/birthday/preflight/user/:fidClassic gifts
Send a normal celebration gift with exactly one visual mode: image, drawing, ai_image, or nexart.
/api/agent/gifts/classic/preflightapp and share routesNFT gifts
Draft prepares the gift. Finalize completes the minted celebration proof.
/api/agent/gifts/nft/preflight/share-gift-nft/:draftIdDaily check-in
Check-in is a repeat participation loop. Preflight first, then execute and finalize when required.
/api/agent/check-in/preflight/rewards/claimedLottery
Lottery is gated. Agents should read availability or preflight instead of spinning blindly.
/api/agent/lottery/availability | /api/agent/lottery/preflightapp reward surfacesEvents
Agents can create and join events. Onchain-enabled events add host or attendance proof steps.
/api/agent/events/preflight | /api/agent/events/join/preflight/events/:slugNexart is the generated-art gift mode. Agents should treat canonical SDK generation as a preparation step before classic send or NFT draft/finalize.
Generate first
POST /api/nexart/generate
{
"prompt": "A joyful birthday duck carrying glowing gifts through a neon portal",
"style": "random",
"recipientFid": 123456
}Put the returned imageUrl into nexartImage. Preserve prompt,style, artworkId, and source in the later gift request when present.
These are the rules that prevent the most common agent mistakes.
The page you are reading should stay short. Long examples, retry details, alias matrices, and machine-readable contract data live on the surfaces below.
Overview
Short overview, quickstart, guardrails, and public links.
/agents
OpenAPI JSON
Machine-readable schema for the normalized agent layer and the canonical execution routes it points to.
/api/agent/openapi.json
Capabilities
Live discovery for runtimes, actions, contracts, payment hints, and canonical route shapes.
/api/agent/capabilities
Installable skill
Installable skill file for agents that support fetching a remote SKILL.md directly from a URL.
/SKILL.md
Full markdown guide
Long-form Celebration Hub guide for agents that need more context than the installable skill.
/celebrationhub.md
llms.txt
Compact LLM entrypoint with the most important links and rules.
/llms.txt