API Reference
Exact endpoint map from current backend routes and auth middleware.
Quick Start
Base URL: https://api.registrai.cc
# Public read
curl "https://api.registrai.cc/stats"
# Developer-auth write
curl -X POST "https://api.registrai.cc/webhooks" \
-H "Content-Type: application/json" \
-H "X-API-Key: kya_..." \
-d '{"url":"https://example.com/hook","events":["feedback.received"]}'
# Admin-auth call
curl "https://api.registrai.cc/admin/overview" \
-H "X-Admin-Key: ..."Note: Non-GET endpoints generally require `X-API-Key`, except registration build/confirm and admin routes.
Core Public
These are public reads plus registration helper writes.
/healthPublicAPI health and basic counts.
/statsPublicGlobal ecosystem stats.
/agentsPublicList agents with filters/pagination.
/agents/:idPublicGet full agent profile.
/agents/:id/reputationPublicCurrent reputation snapshot.
/agents/:id/reputation/historyPublicHistorical reputation snapshots.
/agents/:id/attestationsPublicSATI attestations for an agent.
/agents/register/buildPublicBuild unsigned ERC-8004 register tx.
/agents/register/confirmPublicRecord submitted registration tx hash.
Feedback / Presence / Link
/agents/:id/feedbackX-API-KeyStore feedback comment metadata.
/agents/:id/feedbackPublicList feedback comments.
/agents/:id/feedback/:commentId/txX-API-KeyAttach on-chain tx hash to comment.
/agents/:id/feedback/buildX-API-KeyBuild unsigned giveFeedback tx.
/agents/:id/feedback/chainsPublicList chains where feedback can be sent.
/agents/:id/presenceX-API-KeyAdd verified presence address.
/agents/:id/presencePublicList presence claims.
/agents/:id/presenceX-API-KeyRemove presence claim.
/agents/linkX-API-KeyLink two agent wallets.
/agents/:id/linksPublicGet link info for an agent.
/agents/:id/linksX-API-KeyUnlink linked wallets.
Developer Self-Service
Requires a valid developer key in `X-API-Key`.
/meX-API-KeyGet current developer profile.
/me/usageX-API-Key30-day usage summary for this developer.
/me/quotaX-API-KeyCurrent quota, remaining, 429 stats, active plan.
/me/planX-API-KeyCurrent effective plan and quota.
/me/billingX-API-KeyCurrent subscription + today usage counters.
/me/keysX-API-KeyList developer API keys.
/me/keysX-API-KeyCreate additional API key.
/me/keys/rotateX-API-KeyRotate currently-used API key.
/me/keys/:keyIdX-API-KeyRevoke one API key.
/me/organizationsX-API-KeyList organizations you belong to.
/me/organizations/:organizationId/usageX-API-KeyOrg-level 30-day usage (member only).
Webhooks (Developer)
Managed by developer key.
/webhooksX-API-KeyCreate webhook subscription.
/webhooksX-API-KeyList your webhooks.
/webhooks/:idX-API-KeyGet one webhook.
/webhooks/:idX-API-KeyUpdate webhook URL/events/active.
/webhooks/:idX-API-KeyDelete webhook.
/webhooks/:id/deliveriesX-API-KeyList webhook delivery attempts.
Admin
Requires `X-Admin-Key`.
/admin/overviewX-Admin-KeyOperational overview metrics.
/admin/auditX-Admin-KeyAudit log stream.
/developersX-Admin-KeyList developers.
/developersX-Admin-KeyCreate developer and issue initial key.
/developers/:idX-Admin-KeyDeveloper detail.
/developers/:id/keysX-Admin-KeyIssue key for developer.
/developers/:id/keysX-Admin-KeyList developer keys.
/developers/:id/keys/:keyX-Admin-KeyRevoke developer key.
/developers/:id/usageX-Admin-KeyDeveloper 30-day usage.
/developers/:id/webhooksX-Admin-KeyDeveloper webhook list.
/organizationsX-Admin-KeyList organizations.
/organizationsX-Admin-KeyCreate organization.
/organizations/:id/membersX-Admin-KeyList organization members.
/organizations/:id/membersX-Admin-KeyUpsert organization member role.
/organizations/:id/members/:developerIdX-Admin-KeyRemove organization member.
/organizations/:id/usageX-Admin-KeyOrganization 30-day usage.
/admin/plansX-Admin-KeyList plans.
/admin/plansX-Admin-KeyCreate plan.
/admin/developers/:id/planX-Admin-KeyGet active developer plan assignment.
/admin/developers/:id/planX-Admin-KeyAssign plan to developer.
/admin/billing/overviewX-Admin-KeyBilling KPIs (MRR/ARR etc).
/admin/billing/subscriptionsX-Admin-KeyList subscriptions.
/admin/billing/subscriptions/upsertX-Admin-KeyCreate/update subscription record.
/admin/billing/events/ingestX-Admin-KeyIngest external billing events.
/admin/billing/usage-exportX-Admin-KeyExport usage metering (json/csv).