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

# List queries

> Every Query on your Account, with the events each caught in the last 24 hours. Free — does not charge credits.



## OpenAPI

````yaml /openapi.json get /v1/queries
openapi: 3.1.0
info:
  title: Nephia API
  description: >-
    The brand-monitoring API. Create a **Query** and it polls the live Sources
    (X, Reddit, Youtube, TikTok, Bluesky, Hacker News, Mastodon, Lemmy, GitHub,
    Product Hunt, Stack Overflow, RSS, AI answers — and Vinted) on an interval,
    keeps what matches, reads each mention for sentiment and intent, sorts it
    into your buckets and answers your own agent step over it. Read the result
    back as **mentions** — `GET /v1/mentions` across the whole Account, or per
    Query — or have it pushed to you as signed webhook events and delivery
    channels. A search can carry several terms at once, OR'd into one upstream
    request at one tick's cost. Authenticate with an API key on your Account.
    Monitoring is sold as a subscription — queries, terms, freshness and AI —
    with credits as the meter underneath; credit packs are overflow and never
    change a limit. Reading your own mentions is free; the semantic search mode
    and the AI passes are what meter. Request quota is per Account (all API keys
    share one bucket), by Plan: Free 60/min, Solo 350/min, Growth 700/min, Pro
    1200/min.
  version: 1.0.0
servers:
  - url: https://api.nephia.cc
    description: Production
  - url: http://localhost:3000
    description: Local
security:
  - ApiKeyAuth: []
tags:
  - name: Account
    description: Account balance
  - name: Mentions
    description: Everything your Queries caught, across every Source
  - name: Queries
    description: The saved searches that do the catching — read, create, edit, pause
  - name: AI
    description: Group, classify, agent and summarise passes over items you name
  - name: X — Watches
    description: X watches, events, and activity
  - name: Reddit — Watches
    description: Reddit watches, events, and activity
  - name: Youtube — Watches
    description: Youtube watches, events, and activity
  - name: TikTok — Watches
    description: TikTok watches, events, and activity
  - name: Bluesky — Watches
    description: Bluesky watches, events, and activity
  - name: Hacker News — Watches
    description: Hacker News watches, events, and activity
  - name: Mastodon — Watches
    description: Mastodon watches, events, and activity
  - name: Lemmy — Watches
    description: Lemmy watches, events, and activity
  - name: GitHub — Watches
    description: GitHub watches, events, and activity
  - name: Product Hunt — Watches
    description: Product Hunt watches, events, and activity
  - name: Stack Overflow — Watches
    description: Stack Overflow watches, events, and activity
  - name: RSS — Watches
    description: RSS watches, events, and activity
  - name: AI answers — Watches
    description: AI answers watches, runs, events, and activity
  - name: Vinted — Watches
    description: Vinted watches, events, and activity
  - name: Vinted — Analytics
    description: Observed price history and per-day market statistics
paths:
  /v1/queries:
    get:
      tags:
        - Queries
      summary: List queries
      description: >-
        Every Query on your Account, with the events each caught in the last 24
        hours. Free — does not charge credits.
      operationId: getV1Queries
      responses:
        '200':
          description: Queries
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/QueriesResponse'
        '429':
          description: >-
            Request quota exceeded. Retry after the `Retry-After` header
            (seconds). Response includes `RateLimit-*` headers (IETF draft-7).
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  code:
                    type: string
                required:
                  - error
              example:
                error: Rate limit exceeded
                code: TOO_MANY_REQUESTS
components:
  schemas:
    QueriesResponse:
      type: object
      properties:
        queries:
          type: array
          items:
            $ref: '#/components/schemas/QueryListItem'
      required:
        - queries
    QueryListItem:
      allOf:
        - $ref: '#/components/schemas/Query'
      properties:
        eventCount:
          type: number
        unclassifiedCount:
          type: number
      required:
        - eventCount
        - unclassifiedCount
    Query:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        kind:
          type: string
          enum:
            - catalog
            - listening
        globalCriteria:
          type: object
          additionalProperties: {}
        refreshIntervalSeconds:
          type: number
        sources:
          type: array
          items:
            $ref: '#/components/schemas/QuerySource'
        webhookUrl:
          type:
            - string
            - 'null'
        webhookMode:
          type: string
          enum:
            - all
            - rules
        aiEnabled:
          type: boolean
        aiPreset:
          type:
            - string
            - 'null'
        aiPrompt:
          type:
            - string
            - 'null'
        aiStep:
          type:
            - object
            - 'null'
          additionalProperties: {}
        sentimentEnabled:
          type: boolean
        coBrandsEnabled:
          type: boolean
        muteRules:
          type: array
          items: {}
        vipAuthors:
          type: array
          items: {}
        rules:
          type: array
          items: {}
        schedule:
          type:
            - object
            - 'null'
          additionalProperties: {}
        isActive:
          type: boolean
        pausedReason:
          type:
            - string
            - 'null'
        createdAt:
          type: string
        updatedAt:
          type: string
      required:
        - id
        - name
        - kind
        - globalCriteria
        - refreshIntervalSeconds
        - sources
        - webhookUrl
        - webhookMode
        - aiEnabled
        - aiPreset
        - aiPrompt
        - aiStep
        - sentimentEnabled
        - coBrandsEnabled
        - muteRules
        - vipAuthors
        - rules
        - schedule
        - isActive
        - pausedReason
        - createdAt
        - updatedAt
    QuerySource:
      type: object
      properties:
        source:
          type: string
          enum:
            - x
            - reddit
            - youtube
            - tiktok
            - bluesky
            - hackernews
            - mastodon
            - lemmy
            - github
            - producthunt
            - stackoverflow
            - rss
            - ai_answers
            - vinted
        enabled:
          type: boolean
        searches:
          type: array
          items:
            $ref: '#/components/schemas/QuerySearch'
        refreshIntervalSeconds:
          type:
            - number
            - 'null'
      required:
        - source
        - enabled
        - searches
        - refreshIntervalSeconds
    QuerySearch:
      type: object
      properties:
        id:
          type: string
        label:
          type:
            - string
            - 'null'
        overridesEnabled:
          type: boolean
        overrides:
          type: object
          additionalProperties: {}
        resolvedCriteria:
          type: object
          additionalProperties: {}
      required:
        - id
        - label
        - overridesEnabled
        - overrides
        - resolvedCriteria
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: API key created from the Nephia dashboard for your Account.

````