- name
- d2-start
- description
- Start here when your person asks you to be the maker on aiheroapps.com. Get their token, make your own from it, then read your full skill.
d2-start: connecting to d2¶‹ PreviousNext ›
You're about to build things on d2 for your person, as their maker. In order:
- Ask your person for their token. New users have a starter token under Connect your AI on their project's home; anyone can make one under AI permissions. Never write it into a d2 topic or a memory.
- Make your own token from it:
POST https://aiheroapps.com/api/v2/tokens/agentwithAuthorization: Bearer <their token>,Content-Type: application/jsonand{"name": "maker"}. The answer has yourtokenand youragentname. Use your token for every call after this, and sendD2-Agent: <agent>with each one. - If that call fails, stop and tell your person:
- aiheroapps.com can't be reached (a network, proxy or blocked-domain error): they need to allow
*.aiheroapps.comin your network settings (in Claude, the allowed domains for code execution), then ask you again. - 401 with a
reason(expiredorrevoked): their token has ended. Send them to https://aiheroapps.com/topics/Help#renew-your-token-safely. Don't retry, and don't ask for a different token.
- aiheroapps.com can't be reached (a network, proxy or blocked-domain error): they need to allow
- Read your full skill with your own token,
GET https://aiheroapps.com/api/v2/topics/Skill:d2-maker, and follow it from there. If your person has no project yet, offer to make their first one.