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

# 広告ウォッチのイベントを一覧

> new、stopped、changed、restarted のイベントを Webhook 配信状態とともに一覧します。



## OpenAPI

````yaml GET /v1/ad-watches/{id}/events
openapi: 3.1.0
info:
  title: querying.ai
  description: >-
    One API for every AI answer engine. Every task is asynchronous: submit, then
    collect the result via webhook or polling.
  version: 1.0.0
servers:
  - url: https://api.querying.ai
    description: Production
security:
  - bearerAuth: []
paths:
  /v1/ad-watches/{id}/events:
    get:
      tags:
        - Ad watches
      summary: List ad watch events
      description: >-
        The watch's events, newest first, each with its webhook delivery state.
        Events are recorded whether or not the watch has a webhookUrl.
      operationId: listAdWatchEvents
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: Watch id from GET /v1/ad-watches.
        - name: type
          in: query
          schema:
            type: string
            enum:
              - new
              - stopped
              - changed
              - restarted
              - watch_paused
        - name: since
          in: query
          schema:
            type: string
            format: date-time
        - name: limit
          in: query
          schema:
            type: integer
            minimum: 1
          description: Page size.
        - name: cursor
          in: query
          description: nextCursor from the previous page.
          schema:
            type: string
      responses:
        '200':
          description: Events and their delivery state.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AdWatchEventsResponse'
        '400':
          $ref: '#/components/responses/ValidationError'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/AdWatchNotFound'
components:
  schemas:
    AdWatchEventsResponse:
      type: object
      required:
        - success
        - data
      properties:
        success:
          type: boolean
          const: true
        data:
          type: object
          properties:
            events:
              type: array
              items:
                $ref: '#/components/schemas/AdWatchEvent'
            nextCursor:
              type:
                - string
                - 'null'
              description: Pass as cursor for the next page; null on the last.
          required:
            - events
    AdWatchEvent:
      type: object
      properties:
        id:
          type: string
          description: Also the querying-webhook-id header of every delivery.
        type:
          type: string
          enum:
            - new
            - stopped
            - changed
            - restarted
            - watch_paused
        adKey:
          type:
            - string
            - 'null'
        data:
          type: object
          additionalProperties: true
          description: >-
            new: libraryId, advertiserName, format, startDate. stopped: reason
            (not_seen or library_inactive), lastSeenAt. changed: fields (changed
            field names), and before and after for the text fields title, body,
            ctaText, linkUrl and format. restarted: stoppedAt. watch_paused:
            reason.
        createdAt:
          type: string
          format: date-time
        webhook:
          type: object
          properties:
            deliveredAt:
              type:
                - string
                - 'null'
              format: date-time
            attempts:
              type: integer
            error:
              type:
                - string
                - 'null'
    ErrorResponse:
      type: object
      required:
        - success
        - error
      properties:
        success:
          type: boolean
          const: false
        error:
          $ref: '#/components/schemas/ErrorDetail'
    ErrorDetail:
      type: object
      required:
        - code
        - message
      properties:
        code:
          type: string
          description: Stable, safe to branch on. See the Errors guide for the full list.
        message:
          type: string
          description: For humans. May change.
        details:
          description: >-
            Context for the error. An array of `{field, message}` on most
            `VALIDATION_ERROR`s; an object elsewhere (for example `{id}` on
            `RESOURCE_NOT_FOUND`, `retryAfterSec` on 429 and 503 codes). Omitted
            when there is nothing to add.
          oneOf:
            - type: array
              items:
                type: object
                properties:
                  field:
                    type: string
                  message:
                    type: string
            - type: object
              additionalProperties: true
        timestamp:
          type: string
          format: date-time
  responses:
    ValidationError:
      description: >-
        The request is malformed: bad JSON, unrecognised `taskType`, or neither
        `payload.prompt` nor `payload.query` present. `details` names the
        offending field.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          examples:
            missingPrompt:
              summary: Neither prompt nor query supplied
              value:
                success: false
                error:
                  code: VALIDATION_ERROR
                  message: Request validation failed
                  details:
                    - field: payload.prompt
                      message: payload.prompt or payload.query is required
                  timestamp: '2026-07-09T04:12:00.000Z'
            badTaskType:
              summary: Unrecognised taskType
              value:
                success: false
                error:
                  code: VALIDATION_ERROR
                  message: Request validation failed
                  details:
                    - field: taskType
                      message: '''NOPE'' is not recognized'
                  timestamp: '2026-07-09T04:12:00.000Z'
    Unauthorized:
      description: Missing or invalid bearer token.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            success: false
            error:
              code: MISSING_API_KEY
              message: Missing or invalid API key
              timestamp: '2026-07-09T04:12:00.000Z'
    AdWatchNotFound:
      description: >-
        No ad watch, ad, event or archived file with that id for this key. A
        watch owned by another account is reported the same way rather than as a
        403.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            success: false
            error:
              code: NOT_FOUND
              message: No ad watch with that id
              timestamp: '2026-11-23T09:00:00.000Z'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: 'Your API key, sent as `Authorization: Bearer <key>`.'

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.