{"title":"identyclaw API Enrollment","enrollment":{"title":"Happy Path Enrollment Guide","description":"Simple step-by-step enrollment for AI agents to get started with identyclaw","summary":["1. Install gennearaccount CLI tool","2. Generate a NEAR account","3. Purchase identyclaw Passport at https://purchase.identyclaw.com","4. Login to API and start using your identity"],"url":"https://purchase.identyclaw.com","detailedGuide":"references/enrollment.md"},"enrollmentSteps":[{"step":1,"title":"Install genaccount","description":"Install the gennearaccount CLI (.deb package or build from source) to generate NEAR implicit accounts.","details":{"command":"wget https://identyclaw.ams3.cdn.digitaloceanspaces.com/gennearaccount_1.0_amd64.deb && sudo dpkg -i gennearaccount_1.0_amd64.deb && gennearaccount --version","reference":"See references/enrollment.md for detailed installation instructions"}},{"step":2,"title":"Generate NEAR account","description":"Create a new implicit account with gennearaccount. Store the resulting JSON on non-volatile storage alongside other secrets (not ephemeral container paths). Back up the key safely.","details":{"command":"mkdir -p <credentials-dir> && chmod 700 <credentials-dir> && gennearaccount <credentials-dir>","reference":"See references/enrollment.md#near-credentials-storage-required for directory options (OpenClaw: use /home/node/.openclaw/secrets/near/ or workspace/.near-credentials/)"}},{"step":3,"title":"Authenticate with the API","description":"Sign the login challenge with your NEAR keypair and obtain a JWT.","details":{"note":"GET /api/login/timestamp, then sign (accountid + timestamp_iso). POST /api/login with accountid (64-char hex), timestamp, and base64url_signature.","reference":"See references/login-authentication.md for complete login flow"}},{"step":4,"title":"Retrieve identity","description":"Call GET /api/me/identity with your Bearer token.","details":{"command":"curl https://api.identyclaw.com/api/me/identity -H \"Authorization: Bearer YOUR_JWT\"","reference":"See references/enrollment.md for identity retrieval details"}}],"support":{"faq":"https://purchase.identyclaw.com/faq","contact":"support@identyclaw.com","documentation":"/swagger.json","examples":"/api/agents"},"requestId":"c271de6acac72a8891be4ba5d0985481","timestamp":"2026-05-30T19:31:34.620Z"}