{
  "openapi": "3.1.0",
  "info": {
    "title": "Snowline - The Trust Layer for Avalanche API",
    "description": "Public REST and Model Context Protocol (MCP) API for Snowline. Discover verified Avalanche businesses, ecosystem users, updates, press releases, tokens, wallet intelligence and stored chain metrics. No API keys are required. Public GET responses are CDN-cached and transport rate-limited. Prices and metrics include source attribution with asOf and stale flags.",
    "version": "1.0.0",
    "x-versioning-policy": {
      "strategy": "URL Path and Header",
      "currentVersion": "v1",
      "stableUntil": "2028-01-01T00:00:00Z",
      "headerParameter": "API-Version: 1.0.0"
    },
    "x-deprecation-policy": {
      "sunsetHeader": "Sunset: Sat, 01 Jan 2028 00:00:00 GMT",
      "deprecationHeader": "Deprecation: @1830297600",
      "noticePeriodDays": 180
    },
    "contact": {
      "name": "Snowline App",
      "url": "https://www.snowlineapp.xyz",
      "email": "frey@snowlineapp.xyz"
    },
    "license": {
      "name": "MIT",
      "url": "https://opensource.org/licenses/MIT"
    }
  },
  "servers": [
    {
      "url": "https://www.snowlineapp.xyz",
      "description": "Production (Apex Domain)"
    },
    {
      "url": "https://snowlinehq.vercel.app",
      "description": "Vercel Deployment"
    },
    {
      "url": "http://localhost:3000",
      "description": "Local Development"
    }
  ],
  "security": [],
  "tags": [
    {
      "name": "Catalog",
      "description": "Projects, businesses and ecosystem users."
    },
    {
      "name": "Feeds",
      "description": "Updates and press releases."
    },
    {
      "name": "Intel",
      "description": "Tokens, addresses and wallet intelligence."
    },
    {
      "name": "Metrics",
      "description": "Stored Avalanche chain metrics and market snapshots."
    },
    {
      "name": "System",
      "description": "Health, search and protocol metadata."
    },
    {
      "name": "Legacy",
      "description": "Pre-v1 aliases retained for compatibility."
    }
  ],
  "paths": {
    "/api/v1/projects": {
      "get": {
        "summary": "List tracked Avalanche projects",
        "description": "Returns projects from the database with stored price provenance. Unknown query parameters are rejected.",
        "operationId": "listProjectsV1",
        "tags": [
          "Catalog"
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/Category"
          },
          {
            "$ref": "#/components/parameters/Limit"
          }
        ],
        "responses": {
          "200": {
            "description": "Project list.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "success",
                    "count",
                    "projects",
                    "meta"
                  ],
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "const": true
                    },
                    "count": {
                      "type": "integer"
                    },
                    "projects": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Project"
                      }
                    },
                    "meta": {
                      "$ref": "#/components/schemas/Meta"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "503": {
            "$ref": "#/components/responses/Unavailable"
          }
        }
      }
    },
    "/api/v1/projects/{slug}": {
      "get": {
        "summary": "Get one project",
        "operationId": "getProjectV1",
        "tags": [
          "Catalog"
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/Slug"
          }
        ],
        "responses": {
          "200": {
            "description": "Project detail.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "const": true
                    },
                    "project": {
                      "$ref": "#/components/schemas/Project"
                    },
                    "meta": {
                      "$ref": "#/components/schemas/Meta"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "503": {
            "$ref": "#/components/responses/Unavailable"
          }
        }
      }
    },
    "/api/v1/businesses": {
      "get": {
        "summary": "List tracked businesses",
        "description": "Returns the business catalog. Each stored price carries priceSource, priceAsOf and priceStatus; the response meta lists every provider represented.",
        "operationId": "listBusinessesV1",
        "tags": [
          "Catalog"
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/Category"
          },
          {
            "$ref": "#/components/parameters/Limit"
          },
          {
            "name": "q",
            "in": "query",
            "required": false,
            "description": "Case-insensitive name, ticker or category search.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "ticker",
            "in": "query",
            "required": false,
            "description": "Legacy alias for q when searching by ticker.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Business list.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "success",
                    "count",
                    "businesses",
                    "meta"
                  ],
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "const": true
                    },
                    "count": {
                      "type": "integer"
                    },
                    "businesses": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Business"
                      }
                    },
                    "meta": {
                      "$ref": "#/components/schemas/Meta"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "503": {
            "$ref": "#/components/responses/Unavailable"
          }
        }
      }
    },
    "/api/v1/businesses/{slug}": {
      "get": {
        "summary": "Get one business",
        "operationId": "getBusinessV1",
        "tags": [
          "Catalog"
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/Slug"
          }
        ],
        "responses": {
          "200": {
            "description": "Business detail.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "const": true
                    },
                    "business": {
                      "$ref": "#/components/schemas/Business"
                    },
                    "meta": {
                      "$ref": "#/components/schemas/Meta"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "503": {
            "$ref": "#/components/responses/Unavailable"
          }
        }
      }
    },
    "/api/v1/organizations": {
      "get": {
        "summary": "List tracked organizations",
        "description": "Returns organizations from the database with stored price provenance. Unknown query parameters are rejected.",
        "operationId": "listOrganizationsV1",
        "tags": [
          "Catalog"
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/Category"
          },
          {
            "$ref": "#/components/parameters/Limit"
          }
        ],
        "responses": {
          "200": {
            "description": "Organization list.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "success",
                    "count",
                    "organizations",
                    "meta"
                  ],
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "const": true
                    },
                    "count": {
                      "type": "integer"
                    },
                    "organizations": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Organization"
                      }
                    },
                    "meta": {
                      "$ref": "#/components/schemas/Meta"
                    },
                    "timestamp": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "503": {
            "$ref": "#/components/responses/Unavailable"
          }
        }
      }
    },
    "/api/v1/organizations/{slug}": {
      "get": {
        "summary": "Get one organization",
        "operationId": "getOrganizationV1",
        "tags": [
          "Catalog"
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/Slug"
          }
        ],
        "responses": {
          "200": {
            "description": "Organization detail.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "const": true
                    },
                    "organization": {
                      "$ref": "#/components/schemas/Organization"
                    },
                    "meta": {
                      "$ref": "#/components/schemas/Meta"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "503": {
            "$ref": "#/components/responses/Unavailable"
          }
        }
      }
    },
    "/api/v1/layer1": {
      "get": {
        "summary": "List tracked Layer 1 chains",
        "description": "Returns the Layer 1 catalogue Snowline tracks, joined with stored live telemetry where available. Unknown query parameters are rejected.",
        "operationId": "listLayer1ChainsV1",
        "tags": [
          "Catalog"
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/Limit"
          }
        ],
        "responses": {
          "200": {
            "description": "Layer 1 chain list.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "success",
                    "count",
                    "chains",
                    "meta"
                  ],
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "const": true
                    },
                    "count": {
                      "type": "integer"
                    },
                    "chains": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Layer1Chain"
                      }
                    },
                    "meta": {
                      "$ref": "#/components/schemas/Meta"
                    },
                    "timestamp": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "503": {
            "$ref": "#/components/responses/Unavailable"
          }
        }
      }
    },
    "/api/v1/layer1/{slug}": {
      "get": {
        "summary": "Get one Layer 1 chain",
        "operationId": "getLayer1ChainV1",
        "tags": [
          "Catalog"
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/Slug"
          }
        ],
        "responses": {
          "200": {
            "description": "Layer 1 chain detail.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "const": true
                    },
                    "chain": {
                      "$ref": "#/components/schemas/Layer1Chain"
                    },
                    "meta": {
                      "$ref": "#/components/schemas/Meta"
                    },
                    "timestamp": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "503": {
            "$ref": "#/components/responses/Unavailable"
          }
        }
      }
    },
    "/api/v1/users": {
      "get": {
        "summary": "List ecosystem users",
        "operationId": "listUsersV1",
        "tags": [
          "Catalog"
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/Limit"
          }
        ],
        "responses": {
          "200": {
            "description": "Ecosystem user list.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "const": true
                    },
                    "count": {
                      "type": "integer"
                    },
                    "users": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/EcosystemUser"
                      }
                    },
                    "source": {
                      "type": "string"
                    },
                    "meta": {
                      "$ref": "#/components/schemas/Meta"
                    },
                    "timestamp": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "503": {
            "$ref": "#/components/responses/Unavailable"
          }
        }
      }
    },
    "/api/v1/users/{slug}": {
      "get": {
        "summary": "Get one ecosystem user",
        "operationId": "getUserV1",
        "tags": [
          "Catalog"
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/Slug"
          }
        ],
        "responses": {
          "200": {
            "description": "Ecosystem user detail.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "const": true
                    },
                    "user": {
                      "$ref": "#/components/schemas/EcosystemUser"
                    },
                    "meta": {
                      "$ref": "#/components/schemas/Meta"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "503": {
            "$ref": "#/components/responses/Unavailable"
          }
        }
      }
    },
    "/api/v1/updates": {
      "get": {
        "summary": "List builder updates",
        "operationId": "listUpdatesV1",
        "tags": [
          "Feeds"
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/BusinessFilter"
          },
          {
            "name": "company",
            "in": "query",
            "required": false,
            "description": "Alias for business.",
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/Category"
          },
          {
            "$ref": "#/components/parameters/Limit"
          }
        ],
        "responses": {
          "200": {
            "description": "Update feed.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "const": true
                    },
                    "count": {
                      "type": "integer"
                    },
                    "updates": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Update"
                      }
                    },
                    "meta": {
                      "$ref": "#/components/schemas/Meta"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "503": {
            "$ref": "#/components/responses/Unavailable"
          }
        }
      }
    },
    "/api/v1/updates/{slug}": {
      "get": {
        "summary": "Get one update",
        "operationId": "getUpdateV1",
        "tags": [
          "Feeds"
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/Slug"
          }
        ],
        "responses": {
          "200": {
            "description": "Update detail.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "const": true
                    },
                    "update": {
                      "$ref": "#/components/schemas/Update"
                    },
                    "meta": {
                      "$ref": "#/components/schemas/Meta"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "503": {
            "$ref": "#/components/responses/Unavailable"
          }
        }
      }
    },
    "/api/v1/press-releases": {
      "get": {
        "summary": "List published press releases",
        "operationId": "listPressReleasesV1",
        "tags": [
          "Feeds"
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/BusinessFilter"
          },
          {
            "$ref": "#/components/parameters/Limit"
          }
        ],
        "responses": {
          "200": {
            "description": "Published press-release feed.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "const": true
                    },
                    "count": {
                      "type": "integer"
                    },
                    "pressReleases": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/PressRelease"
                      }
                    },
                    "meta": {
                      "$ref": "#/components/schemas/Meta"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "503": {
            "$ref": "#/components/responses/Unavailable"
          }
        }
      }
    },
    "/api/v1/press-releases/{slug}": {
      "get": {
        "summary": "Get one press release",
        "operationId": "getPressReleaseV1",
        "tags": [
          "Feeds"
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/Slug"
          }
        ],
        "responses": {
          "200": {
            "description": "Press-release detail.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "const": true
                    },
                    "pressRelease": {
                      "$ref": "#/components/schemas/PressRelease"
                    },
                    "meta": {
                      "$ref": "#/components/schemas/Meta"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "503": {
            "$ref": "#/components/responses/Unavailable"
          }
        }
      }
    },
    "/api/v1/blog": {
      "get": {
        "summary": "List published blog articles",
        "operationId": "listBlogPostsV1",
        "tags": [
          "Feeds"
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/Category"
          },
          {
            "$ref": "#/components/parameters/Limit"
          }
        ],
        "responses": {
          "200": {
            "description": "Published blog feed, newest first.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "const": true
                    },
                    "count": {
                      "type": "integer"
                    },
                    "posts": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/BlogPost"
                      }
                    },
                    "meta": {
                      "$ref": "#/components/schemas/Meta"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "503": {
            "$ref": "#/components/responses/Unavailable"
          }
        }
      }
    },
    "/api/v1/blog/{slug}": {
      "get": {
        "summary": "Get one blog article",
        "operationId": "getBlogPostV1",
        "tags": [
          "Feeds"
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/Slug"
          }
        ],
        "responses": {
          "200": {
            "description": "One published blog article.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "const": true
                    },
                    "post": {
                      "$ref": "#/components/schemas/BlogPost"
                    },
                    "meta": {
                      "$ref": "#/components/schemas/Meta"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "503": {
            "$ref": "#/components/responses/Unavailable"
          }
        }
      }
    },
    "/api/v1/intel/tokens": {
      "get": {
        "summary": "Trending Avalanche tokens",
        "operationId": "listIntelTokensV1",
        "tags": [
          "Intel"
        ],
        "responses": {
          "200": {
            "description": "Trending-token feed.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "const": true
                    },
                    "count": {
                      "type": "integer"
                    },
                    "tokens": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/TokenIntel"
                      }
                    },
                    "meta": {
                      "$ref": "#/components/schemas/Meta"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "503": {
            "$ref": "#/components/responses/Unavailable"
          }
        }
      }
    },
    "/api/v1/intel/tokens/lookup": {
      "get": {
        "summary": "Resolve saved token addresses",
        "description": "Reads stored token rows for up to 50 comma-separated addresses. Unknown addresses are omitted.",
        "operationId": "lookupIntelTokensV1",
        "tags": [
          "Intel"
        ],
        "parameters": [
          {
            "name": "addresses",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Comma-separated 0x token addresses."
          }
        ],
        "responses": {
          "200": {
            "description": "Resolved token rows.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "const": true
                    },
                    "count": {
                      "type": "integer"
                    },
                    "tokens": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/TokenIntel"
                      }
                    },
                    "meta": {
                      "$ref": "#/components/schemas/Meta"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "503": {
            "$ref": "#/components/responses/Unavailable"
          }
        }
      }
    },
    "/api/v1/intel/token/{slug}": {
      "get": {
        "summary": "Token profile and market intel",
        "operationId": "getIntelTokenV1",
        "tags": [
          "Intel"
        ],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "description": "Token address or symbol.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Token profile.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "const": true
                    },
                    "profile": {
                      "$ref": "#/components/schemas/TokenIntel"
                    },
                    "meta": {
                      "$ref": "#/components/schemas/Meta"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "503": {
            "$ref": "#/components/responses/Unavailable"
          }
        }
      }
    },
    "/api/v1/intel/addresses": {
      "get": {
        "summary": "Tracked wallet intelligence",
        "operationId": "listIntelAddressesV1",
        "tags": [
          "Intel"
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/Refresh"
          }
        ],
        "responses": {
          "200": {
            "description": "Tracked addresses enriched with on-chain balances.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true,
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "const": true
                    },
                    "addresses": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": true
                      }
                    },
                    "count": {
                      "type": "integer"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "meta": {
                      "$ref": "#/components/schemas/Meta"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "503": {
            "$ref": "#/components/responses/Unavailable"
          }
        }
      }
    },
    "/api/v1/intel/addresses/lookup": {
      "get": {
        "summary": "Resolve specific wallet addresses",
        "operationId": "lookupIntelAddressesV1",
        "tags": [
          "Intel"
        ],
        "description": "Resolves up to 50 comma-separated addresses against `intel_addresses`, including rows that are not verified. Addresses with no stored row are omitted rather than erroring, and an empty `addresses` parameter returns an empty result.",
        "parameters": [
          {
            "name": "addresses",
            "in": "query",
            "required": false,
            "description": "Comma-separated 0x addresses (maximum 50). Omit for an empty result.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The stored rows that matched, with a count.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "const": true
                    },
                    "count": {
                      "type": "integer"
                    },
                    "addresses": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": true
                      }
                    },
                    "meta": {
                      "$ref": "#/components/schemas/Meta"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "503": {
            "$ref": "#/components/responses/Unavailable"
          }
        }
      }
    },
    "/api/v1/intel/transactions": {
      "get": {
        "summary": "Address transaction feed",
        "operationId": "getIntelTransactionsV1",
        "tags": [
          "Intel"
        ],
        "parameters": [
          {
            "name": "address",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "EVM address or resolved token slug."
          },
          {
            "name": "pageSize",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 30,
              "default": 30
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "slug",
            "in": "query",
            "required": false,
            "deprecated": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Paginated transaction feed.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true,
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "const": true
                    },
                    "transactions": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": true
                      }
                    },
                    "nextCursor": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "meta": {
                      "$ref": "#/components/schemas/Meta"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "503": {
            "$ref": "#/components/responses/Unavailable"
          }
        }
      }
    },
    "/api/v1/metrics": {
      "get": {
        "summary": "Metric catalog with latest values",
        "description": "Returns public metric definitions joined to the latest stored point for each key. This route reads metric_latest, not a provider.",
        "operationId": "listMetricsV1",
        "tags": [
          "Metrics"
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/Category"
          },
          {
            "$ref": "#/components/parameters/Limit"
          }
        ],
        "responses": {
          "200": {
            "description": "Metric catalog with latest values.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "const": true
                    },
                    "count": {
                      "type": "integer"
                    },
                    "metrics": {
                      "type": "array",
                      "items": {
                        "allOf": [
                          {
                            "$ref": "#/components/schemas/MetricDefinition"
                          },
                          {
                            "type": "object",
                            "properties": {
                              "latest": {
                                "type": "array",
                                "items": {
                                  "$ref": "#/components/schemas/MetricLatest"
                                }
                              }
                            }
                          }
                        ]
                      }
                    },
                    "meta": {
                      "$ref": "#/components/schemas/Meta"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "503": {
            "$ref": "#/components/responses/Unavailable"
          }
        }
      }
    },
    "/api/v1/metrics/{metric}": {
      "get": {
        "summary": "Metric time series",
        "operationId": "getMetricSeriesV1",
        "tags": [
          "Metrics"
        ],
        "parameters": [
          {
            "name": "metric",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/Range"
          }
        ],
        "responses": {
          "200": {
            "description": "Stored metric series.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "const": true
                    },
                    "metric": {
                      "$ref": "#/components/schemas/MetricDefinition"
                    },
                    "range": {
                      "type": "string",
                      "enum": [
                        "24h",
                        "7d",
                        "30d",
                        "90d"
                      ]
                    },
                    "granularity": {
                      "type": "string",
                      "enum": [
                        "hour",
                        "day"
                      ]
                    },
                    "count": {
                      "type": "integer"
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/MetricBucket"
                      }
                    },
                    "meta": {
                      "$ref": "#/components/schemas/Meta"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "503": {
            "$ref": "#/components/responses/Unavailable"
          }
        }
      }
    },
    "/api/v1/metrics/{metric}/latest": {
      "get": {
        "summary": "Latest metric point",
        "operationId": "getMetricLatestV1",
        "tags": [
          "Metrics"
        ],
        "parameters": [
          {
            "name": "metric",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Latest stored point(s).",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "const": true
                    },
                    "metric": {
                      "$ref": "#/components/schemas/MetricDefinition"
                    },
                    "latest": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/MetricLatest"
                      }
                    },
                    "meta": {
                      "$ref": "#/components/schemas/Meta"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "503": {
            "$ref": "#/components/responses/Unavailable"
          }
        }
      }
    },
    "/api/v1/stats": {
      "get": {
        "summary": "Latest chain-stats snapshot",
        "operationId": "getStatsV1",
        "tags": [
          "Metrics"
        ],
        "responses": {
          "200": {
            "description": "Latest stored chain-stats payload.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "const": true
                    },
                    "data": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "meta": {
                      "$ref": "#/components/schemas/Meta"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "503": {
            "$ref": "#/components/responses/Unavailable"
          }
        }
      }
    },
    "/api/v1/avax/block": {
      "get": {
        "summary": "Latest C-Chain block",
        "operationId": "getLatestBlockV1",
        "tags": [
          "Metrics"
        ],
        "description": "Live RPC read with a fallback to the newest stored `chain_stats_snapshots` row. When the fallback is used, `meta.fallback` is true and `meta.stale` reports whether the snapshot is older than 10 minutes. Takes no query parameters.",
        "responses": {
          "200": {
            "description": "Latest block number and its chain timestamp (seconds).",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "const": true
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "number": {
                          "type": "integer"
                        },
                        "timestamp": {
                          "type": "integer",
                          "description": "Unix seconds."
                        }
                      },
                      "required": [
                        "number",
                        "timestamp"
                      ]
                    },
                    "meta": {
                      "$ref": "#/components/schemas/Meta"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "503": {
            "$ref": "#/components/responses/Unavailable"
          }
        }
      }
    },
    "/api/v1/avax/l1-chains": {
      "get": {
        "summary": "List the mainnet Avalanche L1 chains",
        "operationId": "listL1ChainsV1",
        "tags": [
          "Metrics"
        ],
        "description": "Serves `public.l1_chains`, which the refresh cron keeps in sync with the Avalanche SDK. Takes no query parameters — the route ignores them, so it always returns the full catalogue.",
        "responses": {
          "200": {
            "description": "Every mainnet L1 with its recorded telemetry.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "const": true
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/L1Chain"
                      }
                    },
                    "meta": {
                      "$ref": "#/components/schemas/Meta"
                    },
                    "timestamp": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        }
      }
    },
    "/api/v1/avax/trending-tokens": {
      "get": {
        "summary": "Trending Avalanche tokens (stored prices)",
        "operationId": "listTrendingTokensV1",
        "tags": [
          "Intel"
        ],
        "description": "Database only: prices are refreshed by the price cron, so this route never calls DexScreener. Split into `apps` and `meme`. Takes no query parameters — unknown parameters are rejected with 400.",
        "responses": {
          "200": {
            "description": "Trending tokens split by category, with stored market data.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "const": true
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "apps": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/TrendingToken"
                          }
                        },
                        "meme": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/TrendingToken"
                          }
                        }
                      }
                    },
                    "meta": {
                      "$ref": "#/components/schemas/Meta"
                    },
                    "timestamp": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "503": {
            "$ref": "#/components/responses/Unavailable"
          }
        }
      }
    },
    "/api/v1/market": {
      "get": {
        "summary": "Stored market snapshot",
        "description": "DB-only snapshot built from stored business and token prices. Every value carries price provenance; the meta lists all providers in the response.",
        "operationId": "getMarketV1",
        "tags": [
          "Metrics"
        ],
        "parameters": [
          {
            "name": "symbols",
            "in": "query",
            "required": false,
            "description": "Comma-separated names, tickers, slugs or contract addresses (maximum 100).",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Market snapshot.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "const": true
                    },
                    "data": {
                      "type": "object",
                      "additionalProperties": {
                        "$ref": "#/components/schemas/MarketValue"
                      }
                    },
                    "dataSource": {
                      "type": "string"
                    },
                    "meta": {
                      "$ref": "#/components/schemas/Meta"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "503": {
            "$ref": "#/components/responses/Unavailable"
          }
        }
      }
    },
    "/api/v1/wallets/{address}/portfolio": {
      "get": {
        "summary": "On-chain wallet portfolio",
        "operationId": "getWalletPortfolioV1",
        "tags": [
          "Intel"
        ],
        "parameters": [
          {
            "name": "address",
            "in": "path",
            "required": true,
            "description": "42-character EVM address.",
            "schema": {
              "type": "string",
              "pattern": "^0x[a-fA-F0-9]{40}$"
            }
          },
          {
            "$ref": "#/components/parameters/Refresh"
          }
        ],
        "responses": {
          "200": {
            "description": "Native AVAX, ERC-20 holdings, collectibles and recent transactions.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "502": {
            "$ref": "#/components/responses/Unavailable"
          }
        }
      }
    },
    "/api/v1/search": {
      "get": {
        "summary": "Search businesses and updates",
        "operationId": "searchV1",
        "tags": [
          "System"
        ],
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "required": true,
            "description": "Search term. A leading $ is accepted for ticker searches.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Search results.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "query": {
                      "type": "string"
                    },
                    "total": {
                      "type": "integer"
                    },
                    "businesses": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": true
                      }
                    },
                    "updates": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": true
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "503": {
            "$ref": "#/components/responses/Unavailable"
          }
        }
      }
    },
    "/api/v1/health": {
      "get": {
        "summary": "Service health and agent metadata",
        "operationId": "getHealthV1",
        "tags": [
          "System"
        ],
        "responses": {
          "200": {
            "description": "Service status.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "string",
                      "const": "ok"
                    },
                    "service": {
                      "type": "string"
                    },
                    "version": {
                      "type": "string"
                    },
                    "timestamp": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "agentReadiness": {
                      "type": "object",
                      "additionalProperties": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        }
      }
    },
    "/api/v1/openapi.json": {
      "get": {
        "summary": "This OpenAPI document",
        "operationId": "getOpenApiV1",
        "tags": [
          "System"
        ],
        "responses": {
          "200": {
            "description": "OpenAPI 3.1 JSON document.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/reports": {
      "get": {
        "summary": "Macro report feed",
        "operationId": "listReportsV1",
        "tags": [
          "System"
        ],
        "responses": {
          "200": {
            "description": "Report list.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        }
      }
    },
    "/api/v1/mcp": {
      "get": {
        "summary": "MCP discovery",
        "operationId": "getMcpV1",
        "tags": [
          "System"
        ],
        "responses": {
          "200": {
            "description": "MCP discovery payload.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          }
        }
      },
      "post": {
        "summary": "Execute an MCP tool",
        "operationId": "postMcpV1",
        "tags": [
          "System"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": true
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "MCP tool result.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        }
      }
    },
    "/api/businesses": {
      "get": {
        "summary": "List tracked businesses (legacy alias)",
        "deprecated": true,
        "operationId": "listBusinessesLegacy",
        "tags": [
          "Legacy"
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/Category"
          },
          {
            "$ref": "#/components/parameters/Limit"
          },
          {
            "name": "q",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "ticker",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Business list.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean"
                    },
                    "count": {
                      "type": "integer"
                    },
                    "businesses": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Business"
                      }
                    },
                    "meta": {
                      "$ref": "#/components/schemas/Meta"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/businesses/{slug}": {
      "get": {
        "summary": "Get one business (legacy alias)",
        "deprecated": true,
        "operationId": "getBusinessLegacy",
        "tags": [
          "Legacy"
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/Slug"
          }
        ],
        "responses": {
          "200": {
            "description": "Business detail.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean"
                    },
                    "business": {
                      "$ref": "#/components/schemas/Business"
                    },
                    "meta": {
                      "$ref": "#/components/schemas/Meta"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/updates": {
      "get": {
        "summary": "List builder updates (legacy alias)",
        "deprecated": true,
        "operationId": "listUpdatesLegacy",
        "tags": [
          "Legacy"
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/BusinessFilter"
          },
          {
            "$ref": "#/components/parameters/Category"
          },
          {
            "$ref": "#/components/parameters/Limit"
          }
        ],
        "responses": {
          "200": {
            "description": "Update feed.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean"
                    },
                    "count": {
                      "type": "integer"
                    },
                    "updates": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Update"
                      }
                    },
                    "meta": {
                      "$ref": "#/components/schemas/Meta"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/updates/{slug}": {
      "get": {
        "summary": "Get one update (legacy alias)",
        "deprecated": true,
        "operationId": "getUpdateLegacy",
        "tags": [
          "Legacy"
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/Slug"
          }
        ],
        "responses": {
          "200": {
            "description": "Update detail.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          }
        }
      }
    },
    "/api/search": {
      "get": {
        "summary": "Search businesses and updates (legacy alias)",
        "deprecated": true,
        "operationId": "searchLegacy",
        "tags": [
          "Legacy"
        ],
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Search results.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          }
        }
      }
    },
    "/api/reports": {
      "get": {
        "summary": "Macro report feed (legacy alias)",
        "deprecated": true,
        "operationId": "listReportsLegacy",
        "tags": [
          "Legacy"
        ],
        "responses": {
          "200": {
            "description": "Report list.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          }
        }
      }
    },
    "/api/health": {
      "get": {
        "summary": "Service health (legacy alias)",
        "deprecated": true,
        "operationId": "getHealthLegacy",
        "tags": [
          "Legacy"
        ],
        "responses": {
          "200": {
            "description": "Service status.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "parameters": {
      "Slug": {
        "name": "slug",
        "in": "path",
        "required": true,
        "description": "Canonical slug, identifier or address.",
        "schema": {
          "type": "string"
        }
      },
      "Limit": {
        "name": "limit",
        "in": "query",
        "required": false,
        "description": "Maximum rows to return (1-100). Defaults depend on the route.",
        "schema": {
          "type": "integer",
          "minimum": 1,
          "maximum": 100
        }
      },
      "Category": {
        "name": "category",
        "in": "query",
        "required": false,
        "description": "Exact category name. 'All' is accepted as no filter.",
        "schema": {
          "type": "string"
        }
      },
      "BusinessFilter": {
        "name": "business",
        "in": "query",
        "required": false,
        "description": "Business slug or name.",
        "schema": {
          "type": "string"
        }
      },
      "Range": {
        "name": "range",
        "in": "query",
        "required": false,
        "description": "Series window. 24h uses hourly buckets; longer ranges use daily buckets.",
        "schema": {
          "type": "string",
          "enum": [
            "24h",
            "7d",
            "30d",
            "90d"
          ],
          "default": "7d"
        }
      },
      "Refresh": {
        "name": "refresh",
        "in": "query",
        "required": false,
        "description": "Set to 1 (wallet/intel) or true (chain views) to bypass the route cache. Public responses are CDN-cached by default.",
        "schema": {
          "type": "string",
          "enum": [
            "0",
            "1",
            "true",
            "false"
          ]
        }
      }
    },
    "responses": {
      "BadRequest": {
        "description": "Invalid or unknown query parameter.",
        "content": {
          "application/problem+json": {
            "schema": {
              "$ref": "#/components/schemas/Problem"
            }
          }
        }
      },
      "NotFound": {
        "description": "The requested resource does not exist.",
        "content": {
          "application/problem+json": {
            "schema": {
              "$ref": "#/components/schemas/Problem"
            }
          }
        }
      },
      "RateLimited": {
        "description": "Transport rate limit exceeded.",
        "headers": {
          "Retry-After": {
            "schema": {
              "type": "integer"
            }
          },
          "RateLimit-Limit": {
            "schema": {
              "type": "integer"
            }
          },
          "RateLimit-Remaining": {
            "schema": {
              "type": "integer"
            }
          },
          "RateLimit-Reset": {
            "schema": {
              "type": "integer"
            }
          }
        },
        "content": {
          "application/problem+json": {
            "schema": {
              "$ref": "#/components/schemas/Problem"
            }
          }
        }
      },
      "Unavailable": {
        "description": "The database, snapshot or upstream provider is unavailable.",
        "content": {
          "application/problem+json": {
            "schema": {
              "$ref": "#/components/schemas/Problem"
            }
          }
        }
      }
    },
    "schemas": {
      "Source": {
        "type": "object",
        "required": [
          "key",
          "name",
          "url"
        ],
        "properties": {
          "key": {
            "type": "string",
            "example": "chainlink"
          },
          "name": {
            "type": "string",
            "example": "Chainlink"
          },
          "url": {
            "type": [
              "string",
              "null"
            ],
            "format": "uri"
          }
        }
      },
      "Meta": {
        "type": "object",
        "required": [
          "asOf",
          "stale",
          "source"
        ],
        "properties": {
          "asOf": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "stale": {
            "type": "boolean"
          },
          "source": {
            "$ref": "#/components/schemas/Source"
          },
          "sources": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Source"
            }
          },
          "staleAfterHours": {
            "type": "number"
          },
          "latestBucket": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "fallback": {
            "type": "boolean"
          }
        }
      },
      "Problem": {
        "type": "object",
        "required": [
          "type",
          "title",
          "status",
          "detail",
          "code",
          "resolution",
          "timestamp"
        ],
        "properties": {
          "type": {
            "type": "string",
            "format": "uri"
          },
          "title": {
            "type": "string"
          },
          "status": {
            "type": "integer"
          },
          "detail": {
            "type": "string"
          },
          "code": {
            "type": "string"
          },
          "resolution": {
            "type": "string"
          },
          "timestamp": {
            "type": "string",
            "format": "date-time"
          },
          "instance": {
            "type": "string"
          },
          "retryAfter": {
            "type": "integer"
          }
        }
      },
      "PriceProvenance": {
        "type": "object",
        "properties": {
          "priceUsd": {
            "type": "number"
          },
          "priceChange24h": {
            "type": "number"
          },
          "priceStatus": {
            "type": "string",
            "enum": [
              "missing",
              "unknown",
              "stale",
              "fresh"
            ]
          },
          "priceAsOf": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "priceSource": {
            "type": [
              "string",
              "null"
            ],
            "description": "Attribution key: chainlink, yahoo, coingecko, dexscreener or manual."
          }
        }
      },
      "Project": {
        "type": "object",
        "allOf": [
          {
            "$ref": "#/components/schemas/PriceProvenance"
          }
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "slug": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "symbol": {
            "type": "string"
          },
          "category": {
            "type": "string"
          },
          "hasToken": {
            "type": "boolean"
          },
          "verified": {
            "type": "boolean"
          },
          "logoUrl": {
            "type": "string"
          },
          "websiteUrl": {
            "type": [
              "string",
              "null"
            ]
          },
          "twitterUrl": {
            "type": [
              "string",
              "null"
            ]
          },
          "telegramUrl": {
            "type": [
              "string",
              "null"
            ]
          },
          "dexscreenerUrl": {
            "type": [
              "string",
              "null"
            ]
          },
          "shortDescription": {
            "type": [
              "string",
              "null"
            ]
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "tokenAddress": {
            "type": "string"
          },
          "volume24h": {
            "type": "number"
          },
          "liquidityUsd": {
            "type": "number"
          },
          "marketCapUsd": {
            "type": "number"
          },
          "fdvUsd": {
            "type": "number"
          }
        }
      },
      "Business": {
        "type": "object",
        "allOf": [
          {
            "$ref": "#/components/schemas/PriceProvenance"
          }
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "slug": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "ticker": {
            "type": [
              "string",
              "null"
            ]
          },
          "category": {
            "type": "string"
          },
          "isPublic": {
            "type": "boolean"
          },
          "verified": {
            "type": "boolean"
          },
          "logoUrl": {
            "type": "string"
          },
          "shortDescription": {
            "type": [
              "string",
              "null"
            ]
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "websiteUrl": {
            "type": [
              "string",
              "null"
            ]
          },
          "twitterUrl": {
            "type": [
              "string",
              "null"
            ]
          },
          "marketCapUsd": {
            "type": "number"
          },
          "marketCapBillion": {
            "type": [
              "number",
              "null"
            ]
          },
          "marketCap": {
            "type": [
              "string",
              "null"
            ]
          },
          "valuationSource": {
            "type": [
              "string",
              "null"
            ]
          },
          "lastUpdated": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "volume24h": {
            "type": [
              "number",
              "null"
            ]
          },
          "fdvUsd": {
            "type": [
              "number",
              "null"
            ]
          }
        }
      },
      "Organization": {
        "type": "object",
        "allOf": [
          {
            "$ref": "#/components/schemas/PriceProvenance"
          }
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "slug": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "symbol": {
            "type": "string"
          },
          "category": {
            "type": "string"
          },
          "hasToken": {
            "type": "boolean"
          },
          "verified": {
            "type": "boolean"
          },
          "logoUrl": {
            "type": "string"
          },
          "websiteUrl": {
            "type": [
              "string",
              "null"
            ]
          },
          "twitterUrl": {
            "type": [
              "string",
              "null"
            ]
          },
          "telegramUrl": {
            "type": [
              "string",
              "null"
            ]
          },
          "dexscreenerUrl": {
            "type": [
              "string",
              "null"
            ]
          },
          "shortDescription": {
            "type": [
              "string",
              "null"
            ]
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "tokenAddress": {
            "type": "string"
          },
          "volume24h": {
            "type": "number"
          },
          "liquidityUsd": {
            "type": "number"
          },
          "marketCapUsd": {
            "type": "number"
          },
          "fdvUsd": {
            "type": "number"
          }
        }
      },
      "Layer1Chain": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "slug": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "symbol": {
            "type": "string"
          },
          "category": {
            "type": "string"
          },
          "chainId": {
            "type": "string"
          },
          "logoUrl": {
            "type": "string"
          },
          "websiteUrl": {
            "type": [
              "string",
              "null"
            ]
          },
          "explorerUrl": {
            "type": [
              "string",
              "null"
            ]
          },
          "rpcUrl": {
            "type": [
              "string",
              "null"
            ]
          },
          "vmName": {
            "type": [
              "string",
              "null"
            ]
          },
          "subnetId": {
            "type": [
              "string",
              "null"
            ]
          },
          "blockchainId": {
            "type": [
              "string",
              "null"
            ]
          },
          "shortDescription": {
            "type": [
              "string",
              "null"
            ]
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "verified": {
            "type": "boolean"
          },
          "height": {
            "type": [
              "number",
              "null"
            ]
          },
          "latestBlock": {
            "type": [
              "number",
              "null"
            ]
          },
          "latestBlockAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "txCountTotal": {
            "type": [
              "number",
              "null"
            ]
          },
          "txCount24h": {
            "type": [
              "number",
              "null"
            ]
          },
          "avgTps24h": {
            "type": [
              "number",
              "null"
            ]
          },
          "maxTps24h": {
            "type": [
              "number",
              "null"
            ]
          },
          "activeAddresses24h": {
            "type": [
              "number",
              "null"
            ]
          },
          "feesPaid24h": {
            "type": [
              "number",
              "null"
            ]
          },
          "validatorCount": {
            "type": [
              "number",
              "null"
            ]
          }
        }
      },
      "EcosystemUser": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "slug": {
            "type": "string"
          },
          "username": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "avatar": {
            "type": "string"
          },
          "photoUrl": {
            "type": "string"
          },
          "role": {
            "type": "string"
          },
          "category": {
            "type": "string"
          },
          "bio": {
            "type": "string"
          },
          "verified": {
            "type": "boolean"
          },
          "websiteUrl": {
            "type": "string"
          },
          "twitterUrl": {
            "type": "string"
          },
          "githubUrl": {
            "type": "string"
          },
          "telegramUrl": {
            "type": "string"
          }
        }
      },
      "Update": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "slug": {
            "type": "string"
          },
          "businessName": {
            "type": "string"
          },
          "businessSlug": {
            "type": "string"
          },
          "newsTitle": {
            "type": "string"
          },
          "publishedAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "platform": {
            "type": "string"
          },
          "category": {
            "type": "string"
          },
          "summary": {
            "type": "string"
          },
          "content": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "sourceUrl": {
            "type": "string"
          },
          "sourceArticles": {
            "type": "array",
            "items": {}
          }
        }
      },
      "PressRelease": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "slug": {
            "type": "string"
          },
          "businessId": {
            "type": [
              "string",
              "null"
            ]
          },
          "businessName": {
            "type": "string"
          },
          "businessSlug": {
            "type": [
              "string",
              "null"
            ]
          },
          "title": {
            "type": "string"
          },
          "summary": {
            "type": "string"
          },
          "content": {
            "type": [
              "array",
              "null"
            ],
            "items": {
              "type": "string"
            }
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "category": {
            "type": "string"
          },
          "versionTag": {
            "type": [
              "string",
              "null"
            ]
          },
          "publishedAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "platform": {
            "type": "string"
          },
          "sourceUrl": {
            "type": "string"
          },
          "logoUrl": {
            "type": [
              "string",
              "null"
            ]
          },
          "officialSource": {
            "type": "string"
          },
          "officialUrl": {
            "type": [
              "string",
              "null"
            ]
          },
          "keyPoints": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "verified": {
            "type": "boolean"
          },
          "status": {
            "type": "string"
          },
          "source": {
            "type": "string"
          }
        }
      },
      "BlogPost": {
        "type": "object",
        "description": "A published blog article. `content` is one entry per paragraph. `category` is free text so a new category needs no migration.",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "slug": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "subtitle": {
            "type": "string"
          },
          "category": {
            "type": "string"
          },
          "publishedAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time"
          },
          "readTime": {
            "type": "string"
          },
          "emoji": {
            "type": "string"
          },
          "coverGradient": {
            "type": "string"
          },
          "author": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string"
              },
              "role": {
                "type": "string"
              }
            }
          },
          "summary": {
            "type": "string"
          },
          "tags": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "relatedBusinessSlugs": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "content": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "status": {
            "type": "string",
            "enum": [
              "draft",
              "published",
              "archived"
            ]
          },
          "source": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "slug",
          "title",
          "content"
        ]
      },
      "MetricDefinition": {
        "type": "object",
        "properties": {
          "key": {
            "type": "string"
          },
          "label": {
            "type": "string"
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "unit": {
            "type": [
              "string",
              "null"
            ]
          },
          "category": {
            "type": "string"
          },
          "source": {
            "type": "string"
          },
          "upstreamName": {
            "type": [
              "string",
              "null"
            ]
          },
          "derivation": {
            "type": [
              "string",
              "null"
            ]
          },
          "defaultGranularity": {
            "type": "string",
            "enum": [
              "hour",
              "day"
            ]
          },
          "precision": {
            "type": "integer"
          },
          "isPublic": {
            "type": "boolean"
          },
          "isActive": {
            "type": "boolean"
          },
          "sortOrder": {
            "type": "integer"
          },
          "metadata": {
            "type": "object",
            "additionalProperties": true
          }
        }
      },
      "MetricBucket": {
        "type": "object",
        "properties": {
          "chainId": {
            "type": "string"
          },
          "metric": {
            "type": "string"
          },
          "granularity": {
            "type": "string",
            "enum": [
              "hour",
              "day"
            ]
          },
          "bucketStart": {
            "type": "string",
            "format": "date-time"
          },
          "dimensionKey": {
            "type": "string"
          },
          "dimensions": {
            "type": "object",
            "additionalProperties": true
          },
          "value": {
            "type": [
              "number",
              "null"
            ]
          },
          "source": {
            "type": "string"
          },
          "fetchedAt": {
            "type": "string",
            "format": "date-time"
          },
          "provisional": {
            "type": "boolean"
          }
        }
      },
      "MetricLatest": {
        "type": "object",
        "properties": {
          "chainId": {
            "type": "string"
          },
          "metric": {
            "type": "string"
          },
          "dimensionKey": {
            "type": "string"
          },
          "value": {
            "type": [
              "number",
              "null"
            ]
          },
          "bucketStart": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "source": {
            "type": "string"
          },
          "fetchedAt": {
            "type": "string",
            "format": "date-time"
          },
          "stale": {
            "type": "boolean"
          }
        }
      },
      "L1Chain": {
        "type": "object",
        "description": "A mainnet Avalanche L1 (subnet) with live telemetry. The C-Chain primary network (43114) is not part of this collection — use /api/v1/stats for C-Chain figures.",
        "properties": {
          "chainId": {
            "type": "string",
            "description": "EVM chain ID, e.g. '4337'."
          },
          "name": {
            "type": "string"
          },
          "symbol": {
            "type": [
              "string",
              "null"
            ]
          },
          "network": {
            "type": [
              "string",
              "null"
            ]
          },
          "isTestnet": {
            "type": "boolean"
          },
          "status": {
            "type": [
              "string",
              "null"
            ]
          },
          "vmName": {
            "type": [
              "string",
              "null"
            ]
          },
          "blockchainId": {
            "type": [
              "string",
              "null"
            ]
          },
          "subnetId": {
            "type": [
              "string",
              "null"
            ]
          },
          "rpcUrl": {
            "type": [
              "string",
              "null"
            ]
          },
          "explorerUrl": {
            "type": [
              "string",
              "null"
            ]
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "tokenName": {
            "type": [
              "string",
              "null"
            ]
          },
          "tokenDecimals": {
            "type": [
              "integer",
              "null"
            ]
          },
          "isPrivate": {
            "type": [
              "boolean",
              "null"
            ]
          },
          "logoUri": {
            "type": [
              "string",
              "null"
            ]
          },
          "projectSlug": {
            "type": [
              "string",
              "null"
            ]
          },
          "latestBlock": {
            "type": [
              "integer",
              "null"
            ]
          },
          "latestBlockAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "txCountTotal": {
            "type": [
              "integer",
              "null"
            ]
          },
          "txCount24h": {
            "type": [
              "integer",
              "null"
            ]
          },
          "avgTps24h": {
            "type": [
              "number",
              "null"
            ]
          },
          "maxTps24h": {
            "type": [
              "number",
              "null"
            ]
          },
          "activeAddresses24h": {
            "type": [
              "integer",
              "null"
            ]
          },
          "feesPaid24h": {
            "type": [
              "number",
              "null"
            ]
          },
          "metricsAt": {
            "type": [
              "string",
              "null"
            ]
          },
          "fetchedAt": {
            "type": [
              "string",
              "null"
            ]
          },
          "error": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "chainId",
          "name"
        ]
      },
      "TrendingToken": {
        "type": "object",
        "description": "A trending token with stored market data. `priceAsOf` records when the price was captured; treat prices as third-party market data.",
        "properties": {
          "name": {
            "type": "string"
          },
          "symbol": {
            "type": "string"
          },
          "address": {
            "type": "string"
          },
          "priceUsd": {
            "type": [
              "number",
              "null"
            ]
          },
          "priceChange24h": {
            "type": [
              "number",
              "null"
            ]
          },
          "volume24h": {
            "type": [
              "number",
              "null"
            ]
          },
          "liquidityUsd": {
            "type": [
              "number",
              "null"
            ]
          },
          "marketCapUsd": {
            "type": [
              "number",
              "null"
            ]
          },
          "fdvUsd": {
            "type": [
              "number",
              "null"
            ]
          },
          "iconUrl": {
            "type": [
              "string",
              "null"
            ]
          },
          "dexUrl": {
            "type": [
              "string",
              "null"
            ]
          },
          "pairAddress": {
            "type": [
              "string",
              "null"
            ]
          },
          "category": {
            "type": [
              "string",
              "null"
            ]
          },
          "verified": {
            "type": [
              "boolean",
              "null"
            ]
          },
          "slug": {
            "type": [
              "string",
              "null"
            ]
          },
          "priceAsOf": {
            "type": [
              "string",
              "null"
            ]
          },
          "priceSource": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "name",
          "symbol",
          "address"
        ]
      },
      "MarketValue": {
        "type": "object",
        "allOf": [
          {
            "$ref": "#/components/schemas/PriceProvenance"
          }
        ],
        "properties": {
          "name": {
            "type": "string"
          },
          "ticker": {
            "type": "string"
          },
          "marketCapBillion": {
            "type": "number"
          },
          "marketCapUsd": {
            "type": "number"
          },
          "formatted": {
            "type": "string"
          },
          "isPublic": {
            "type": "boolean"
          },
          "source": {
            "type": "string",
            "description": "Human-readable display label."
          },
          "sourceInfo": {
            "$ref": "#/components/schemas/Source"
          },
          "lastUpdated": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "contractAddress": {
            "type": "string"
          },
          "volume24h": {
            "type": "number"
          },
          "fdvUsd": {
            "type": "number"
          }
        }
      },
      "TokenIntel": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "symbol": {
            "type": "string"
          },
          "address": {
            "type": "string"
          },
          "isContract": {
            "type": "boolean"
          },
          "isPersonalWallet": {
            "type": "boolean"
          },
          "source": {
            "type": "string",
            "enum": [
              "dexscreener",
              "database",
              "fallback"
            ]
          },
          "category": {
            "type": "string"
          },
          "priceUsd": {
            "type": "number"
          },
          "priceChange24h": {
            "type": "number"
          },
          "volume24h": {
            "type": "number"
          },
          "liquidityUsd": {
            "type": "number"
          },
          "marketCapUsd": {
            "type": "number"
          },
          "fdvUsd": {
            "type": "number"
          },
          "pairAddress": {
            "type": "string"
          },
          "dexUrl": {
            "type": "string"
          },
          "snowtraceUrl": {
            "type": "string"
          },
          "iconUrl": {
            "type": "string"
          },
          "verified": {
            "type": "boolean"
          },
          "slug": {
            "type": "string"
          },
          "priceAsOf": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "priceSource": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      }
    }
  }
}
