Key Features
Type-safe
Full TypeScript support with auto-generated types from OpenAPI specs
Modern
Built with modern TypeScript features and best practices
Well-documented
Comprehensive documentation and examples
Developer-friendly
Intuitive API design with built-in error handling
Installation
Authorization
You’ll need a Messari API key to use the SDK. See our docs for more information.API Services
Each endpoint in the API has a corresponding method in the SDK. Here are some examples:API Route | SDK Method | Description |
---|---|---|
/ai/v1/chat/completions | client.ai.v1.chat.generateCompletion() | AI chat completion using Messari’s standard format |
/ai/openai/chat/completions | client.ai.openai.chat.generateCompletion() | AI chat completion in OpenAI-compatible format |
/api/v1/assets | client.signal.v0.assets.list() | List all tracked assets |
/api/v1/assets/{assetId} | client.signal.v0.assets.retrieve() | Get details for a specific asset |