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

# Run monitor now

> Trigger a monitor run immediately instead of waiting for its next scheduled time.

# POST /api/v1/monitors/:id/run-now

> Trigger an immediate run of a monitor.

Trigger an immediate execution outside the regular cadence.

## Example

```bash theme={null} theme={"theme":{"light":"github-light","dark":"github-dark"}}
curl -X POST https://developer.thehog.ai/api/v1/monitors/mon_01HZXYZ/run-now \
  -H "X-Access-Key: ak_xxxxxxxxxxxxxxxx" \
  -H "X-Secret-Key: sk_xxxxxxxxxxxxxxxx"
```


## OpenAPI

````yaml api-reference/openapi.json POST /api/v1/monitors/{id}/run-now
openapi: 3.0.0
info:
  title: The Hog API
  description: Public API reference for The Hog.
  version: '1.0'
  contact: {}
servers:
  - url: https://developer.thehog.ai
security: []
tags: []
paths:
  /api/v1/monitors/{id}/run-now:
    post:
      tags:
        - Monitors
      summary: Run monitor now
      description: >-
        Trigger a monitor run immediately instead of waiting for its next
        scheduled time.
      operationId: runMonitorNow
      parameters:
        - name: id
          required: true
          in: path
          description: Monitor ID.
          schema:
            type: string
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RunNowBodyDto'
      responses:
        '202':
          description: Monitor run accepted.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MonitorResponseDto'
        '400':
          description: The request body or parameters are invalid.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicErrorResponseDto'
              example:
                statusCode: 400
                error: Bad Request
                message: Validation failed
                path: /api/v1/search
                timestamp: '2026-05-21T09:08:10.000Z'
                requestId: 506af9b3-01a9-43be-9eb4-8458fe3e4f5b
                errors:
                  - property: body.query
                    message: query must be a string
                    constraints:
                      isString: query must be a string
        '401':
          description: Authentication is required.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicErrorResponseDto'
              example:
                statusCode: 401
                error: Unauthorized
                message: Authentication is required.
                path: /api/v1/search
                timestamp: '2026-05-21T09:08:10.000Z'
                requestId: 506af9b3-01a9-43be-9eb4-8458fe3e4f5b
        '404':
          description: The requested resource was not found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicErrorResponseDto'
              example:
                statusCode: 404
                error: Not Found
                message: Resource not found.
                path: /api/v1/search
                timestamp: '2026-05-21T09:08:10.000Z'
                requestId: 506af9b3-01a9-43be-9eb4-8458fe3e4f5b
        '500':
          description: An unexpected error occurred.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicErrorResponseDto'
              example:
                statusCode: 500
                error: Internal Server Error
                message: An unexpected error occurred.
                path: /api/v1/search
                timestamp: '2026-05-21T09:08:10.000Z'
                requestId: 506af9b3-01a9-43be-9eb4-8458fe3e4f5b
      security:
        - AccessKey: []
          SecretKey: []
components:
  schemas:
    RunNowBodyDto:
      type: object
      properties:
        force_fresh:
          type: boolean
          description: Force a fresh scrape for this run, bypassing cache
    MonitorResponseDto:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        type:
          type: string
          enum:
            - linkedin_keyword
            - linkedin_profile
            - linkedin_company
            - linkedin_post
            - instagram_profile
            - instagram_post
            - x_profile
            - x_keyword
            - reddit_keyword
            - reddit_subreddit
            - tiktok_keyword
            - tiktok_hashtag
            - web_search
            - site_search
        status:
          type: string
          enum:
            - active
            - paused
            - disabled
        config:
          type: object
          additionalProperties: true
        cadence_minutes:
          type: number
        last_run_at:
          type: string
          nullable: true
        next_run_at:
          type: string
          nullable: true
        consecutive_failures:
          type: number
        created_at:
          type: string
        updated_at:
          type: string
      required:
        - id
        - name
        - type
        - status
        - config
        - cadence_minutes
        - last_run_at
        - next_run_at
        - consecutive_failures
        - created_at
        - updated_at
    PublicErrorResponseDto:
      type: object
      properties:
        statusCode:
          type: number
          example: 400
        error:
          type: string
          example: Bad Request
        message:
          type: string
          example: Validation failed
        path:
          type: string
          example: /api/v1/search
        requestId:
          type: string
          example: 506af9b3-01a9-43be-9eb4-8458fe3e4f5b
        timestamp:
          type: string
          example: '2026-05-21T09:08:10.000Z'
        errors:
          type: array
          items:
            $ref: '#/components/schemas/PublicValidationErrorItemDto'
      required:
        - statusCode
        - error
        - message
        - path
        - timestamp
    PublicValidationErrorItemDto:
      type: object
      properties:
        property:
          type: string
          example: body.query
        message:
          type: string
          example: query must be a string
        constraints:
          type: object
          additionalProperties:
            type: string
          example:
            isString: query must be a string
      required:
        - property
        - message
  securitySchemes:
    AccessKey:
      type: apiKey
      in: header
      name: X-Access-Key
      description: The public API key from the Credentials page.
    SecretKey:
      type: apiKey
      in: header
      name: X-Secret-Key
      description: The API secret shown when the credential is created.

````