> ## Documentation Index
> Fetch the complete documentation index at: https://docs.oviond.com/llms.txt
> Use this file to discover all available pages before exploring further.

# List Datasource Metrics

> List the metrics available for a datasource, grouped by data view. Use the returned metric `id`s as the `metrics` array in POST /v1/data/query. Pass `data_view` to filter to a single view (e.g. ACCOUNT, CAMPAIGNS).



## OpenAPI

````yaml https://api.oviond.com/openapi.json get /v1/data/{datasource_id}/metrics
openapi: 3.1.0
info:
  title: Oviond Backend API
  version: 1.0.0
  description: Authentication, account management, billing, and media services for Oviond.
  x-logo:
    url: https://app.oviond.com/img/oviond-full-logo.svg
    altText: Oviond
servers:
  - url: https://api.oviond.com
    description: Production
security:
  - ApiKeyAuth: []
  - BearerAuth: []
paths:
  /v1/data/{datasource_id}/metrics:
    get:
      tags:
        - Data
      summary: List Datasource Metrics
      description: >-
        List the metrics available for a datasource, grouped by data view. Use
        the returned metric `id`s as the `metrics` array in POST /v1/data/query.
        Pass `data_view` to filter to a single view (e.g. ACCOUNT, CAMPAIGNS).
      operationId: list_datasource_metrics
      parameters:
        - schema:
            type: string
            example: gadw
          required: true
          name: datasource_id
          in: path
        - schema:
            type: string
            example: ACCOUNT
          required: false
          name: data_view
          in: query
      responses:
        '200':
          description: Metrics grouped by data view
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DataProxyResponse'
        '404':
          description: Datasource not found or has no metrics
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                  - error
components:
  schemas:
    DataProxyResponse:
      type: object
      properties:
        success:
          type: boolean
          enum:
            - true
        data: {}
        meta: {}
      required:
        - success
  securitySchemes:
    ApiKeyAuth:
      type: http
      scheme: bearer
      description: >-
        Oviond API key (prefix `oviond_`) sent as a Bearer token — the
        credential for REST/programmatic and headless integrations. Manage keys
        in Settings → API Keys. API keys do NOT authenticate the MCP endpoint
        (/mcp), which uses OAuth 2.1 + PKCE.
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        Supabase-issued JWT used by the Oviond web app session. External API
        consumers should authenticate with an Oviond API key (ApiKeyAuth)
        instead.

````