# Moirai Labs API

**Canonical:** https://apis.io/apis/moirailabs-com/moirai-labs-api/  
**Provider:** Moirai Labs — https://apis.io/providers/moirailabs-com/  
**Base URL:** https://api.moirailabs.com/api/v1  
**Documentation:** https://moirailabs.com/a2a

Moirai Labs API is one of 2 APIs that [Moirai Labs](https://apis.io/providers/moirailabs-com/) publishes on the [APIs.io](https://apis.io/) network, described by a machine-readable OpenAPI specification. Tagged areas include Smart Contracts, Analytics, cohort-analysis, Wallet Profiling, and Blockchain. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, authentication docs, and rate-limit docs.

REST API for smart-contract analytics on EVM chains: register contracts and track indexer sync, run cohort / method / metrics / dashboard / token analytics synchronously or as durable asynchronous invocations (Idempotency-Key, Prefer: wait=N | respond-async, 202 + Location + Retry-After, cancel), fetch daily reports, profile wallets, and read plans and subscriptions. Bearer JWT; 36 operations; OpenAPI 3.0.1 published at https://moirailabs.com/openapi.json.

## Operations (36)

| Method | Path | Summary |
|---|---|---|
| GET | `/users/{id}` | Get info about user |
| PUT | `/users/{id}` | PUT method |
| GET | `/subscriptions/{id}` | GET Subscription |
| PUT | `/subscriptions/{id}` | PUT Subscription |
| GET | `/plans/{id}` | GET info about plan |
| PUT | `/plans/{id}` | UPDATE plan |
| DELETE | `/plans/{id}` | DELETE plan |
| POST | `/wallet-profiling/simple` | — |
| POST | `/wallet-profiling/enriched` | — |
| POST | `/users` | POST method |
| POST | `/subscriptions` | CREATE new Subscription |
| GET | `/plans` | GET all plans |
| POST | `/plans` | POST-method to create a new plan |
| POST | `/contracts` | Register new contract for user |
| POST | `/analytics/invocations` | Create an analytics invocation |
| POST | `/analytics/invocations/{id}/cancel` | Request analytics invocation cancellation |
| GET | `/wallet-profiling/requests/{requestId}` | — |
| GET | `/users/registration-status` | Check user registration status |
| GET | `/subscriptions/current/wallet-profiling-quota` | — |
| GET | `/plans/active` | GET all active plans |
| GET | `/functions/balance` | Get price for tokens |
| GET | `/contracts/{id}` | Get exact contract |
| GET | `/contracts/{contractAddress}/fetchdata` | Retrieve method |
| GET | `/contracts/user` | Get all user's contracts |
| GET | `/contracts/status` | Get contract sync status |
| GET | `/api/reports/daily/{contractAddress}` | — |
| GET | `/analytics/tokens` | GET info about tokens on contract |
| GET | `/analytics/product-dashboard` | Get product analytics dashboard |
| GET | `/analytics/metrics` | Calculate Metrics |
| GET | `/analytics/methods` | Calculate used methods |
| GET | `/analytics/invocations/{id}` | Get analytics invocation status |
| GET | `/analytics/invocations/{id}/result` | Get the stored analytics invocation result |
| GET | `/analytics/dashboard` | Get full analytics dashboard payload |
| GET | `/analytics/cohorts` | Calculate Cohort Analysis |
| GET | `/analytics/cohort-transactions` | GET info about tokens on contract |
| DELETE | `/contracts/{contractAddress}` | DELETE contract for user to analysis |

## Machine-readable artifacts (12)

- **OpenAPI** — https://raw.githubusercontent.com/api-evangelist/moirailabs-com/refs/heads/main/openapi/moirailabs-com-openapi.yml
- **OpenAPI** — https://moirailabs.com/openapi.json
- **Documentation** — https://moirailabs.com/a2a
- **Authentication** — https://raw.githubusercontent.com/api-evangelist/moirailabs-com/refs/heads/main/authentication/moirailabs-com-authentication.yml
- **Conventions** — https://raw.githubusercontent.com/api-evangelist/moirailabs-com/refs/heads/main/conventions/moirailabs-com-conventions.yml
- **Idempotency** — https://raw.githubusercontent.com/api-evangelist/moirailabs-com/refs/heads/main/conventions/moirailabs-com-conventions.yml
- **ErrorCatalog** — https://raw.githubusercontent.com/api-evangelist/moirailabs-com/refs/heads/main/errors/moirailabs-com-problem-types.yml
- **RateLimits** — https://raw.githubusercontent.com/api-evangelist/moirailabs-com/refs/heads/main/rate-limits/moirailabs-com-rate-limits.yml
- **DataModel** — https://raw.githubusercontent.com/api-evangelist/moirailabs-com/refs/heads/main/data-model/moirailabs-com-data-model.yml
- **Overlay** — https://raw.githubusercontent.com/api-evangelist/moirailabs-com/refs/heads/main/overlays/moirailabs-com-openapi-overlay.yaml
- **AgentSkill** — https://raw.githubusercontent.com/api-evangelist/moirailabs-com/refs/heads/main/skills/_index.yml
- **APIsJSON** — https://raw.githubusercontent.com/api-evangelist/moirailabs-com/refs/heads/main/apis.yml

## Other Moirai Labs APIs (1)

- [Moirai Agents API (A2A + MCP)](https://apis.io/apis/moirailabs-com/moirai-agents-api/)

## Tags

Smart Contracts, Analytics, cohort-analysis, Wallet Profiling, Blockchain

---

Profiled by [API Evangelist](https://apievangelist.com) and published on [APIs.io](https://apis.io/apis/moirailabs-com/moirai-labs-api/). The API's provider profile, Kin Score and agent-readiness rating are at https://apis.io/providers/moirailabs-com/.
