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

# Run a prompt now

> Queue one manual run through the same workspace execution policy as the dashboard. An optional Idempotency-Key retains the successful response for 24 hours; reusing it returns that response without another execution request, including after the original run completes. The execution request and retry receipt commit atomically. Omit the key only when you do not need retry guarantees. Queuing is not proof that an answer is complete.

Required scopes: `read`, `write`.


## OpenAPI

````yaml POST /api/v2/prompts/{id}/rerun
openapi: 3.1.1
info:
  title: chatobserver public API
  version: '2026-09-09'
  description: >-
    Track AI visibility, manage prompts, inspect collected answers and
    citations, and integrate workspace data with your own tools. Visibility
    endpoints use workspace API keys. Data endpoints use scoped service-account
    keys; spreadsheet client endpoints use authorised client sessions. See the
    authentication guide for each credential type.
  contact:
    name: chatobserver support
    url: https://chatobserver.com/contact
    email: support@chatobserver.com
servers:
  - url: https://app.chatobserver.com
    description: Production API
security:
  - WorkspaceKey: []
  - BearerKey: []
tags:
  - name: Workspace
    description: Validate access and list the workspace project and available platforms.
  - name: Prompts
    description: Create, schedule, organise, activate and retrieve tracked prompts.
  - name: Answers
    description: Retrieve collected AI answers, their analysis and visibility trends.
  - name: Brands
    description: Manage brands and compare their visibility in AI answers.
  - name: Sources and citations
    description: Analyse cited domains, pages and ownership across answers.
  - name: Visitor analytics
    description: Read website visitor and crawler analytics for the workspace.
  - name: Content opportunities
    description: Retrieve content-gap findings and recommendations for tracked prompts.
  - name: Usage
    description: Read workspace consumption and allowance summaries.
  - name: Data connections
    description: Discover authorised connections, source accounts and connector catalogues.
  - name: Data queries
    description: >-
      Create versioned queries, publish definitions and inspect integration
      contracts.
  - name: Data operations
    description: >-
      Execute, validate, cancel and inspect operations and page through result
      rows.
  - name: Data delivery
    description: Manage schedules, transfers, destinations and import workflows.
  - name: Data definitions
    description: Manage reusable definitions and their immutable versions.
  - name: Data webhooks
    description: >-
      Configure event delivery, inspect deliveries, replay events and rotate
      secrets.
  - name: Client authorisation
    description: Authorise spreadsheet clients using a user-approved challenge exchange.
  - name: Spreadsheet clients
    description: >-
      Access document-bound client sessions, queries, schedules, bindings and
      write claims.
  - name: AI visibility audits
    description: Create website visibility audits and retrieve their report links.
  - name: Version 1
    description: Integrate with the version 1 visibility and analytics endpoints.
  - name: Tracked coverage
    description: >-
      Track published coverage, maintain its metadata and inspect exact-page
      citation evidence with the same workspace feature access as the dashboard.
  - name: Reports
    description: >-
      Discover accessible native reports and assess exact saved revisions using
      measured, context-specific evidence.
  - name: SEO
    description: >-
      Use authorized workspace SEO tools through the stateless MCP endpoint.
      Availability follows native workspace access and rollout controls; paid
      tools require a separately configured SEO allowance and spending
      admission. OpenSEO AI visibility tools remain unavailable.
paths:
  /api/v2/prompts/{id}/rerun:
    post:
      tags:
        - Prompts
      summary: Run a prompt now
      description: >-
        Queue one manual run through the same workspace execution policy as the
        dashboard. An optional Idempotency-Key retains the successful response
        for 24 hours; reusing it returns that response without another execution
        request, including after the original run completes. The execution
        request and retry receipt commit atomically. Omit the key only when you
        do not need retry guarantees. Queuing is not proof that an answer is
        complete.
      operationId: postV2PromptsIdRerun
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: Resource identifier returned by the API.
        - name: Idempotency-Key
          in: header
          required: false
          schema:
            type: string
            maxLength: 255
          description: >-
            Unique key for one logical command. Reuse it only when retrying the
            same request and payload.
      responses:
        '202':
          description: >-
            Accepted. Follow the returned operation or answer state to determine
            the final outcome.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/postV2PromptsIdRerunResponse202'
        default:
          description: >-
            Request failed. Inspect the error code and request identifier; retry
            only when the failure is retryable.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
components:
  schemas:
    postV2PromptsIdRerunResponse202:
      type: object
      properties:
        data:
          type: object
          properties:
            success:
              type: boolean
              const: true
            status:
              type: string
            queuedAt:
              type: string
            requestId:
              type: 'null'
          required:
            - success
            - status
            - queuedAt
            - requestId
      required:
        - data
    ApiError:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
            message:
              type: string
            details: {}
          required:
            - code
            - message
        requestId:
          type: string
      required:
        - error
        - requestId
  securitySchemes:
    WorkspaceKey:
      type: apiKey
      in: header
      name: x-chatobserver-key
      description: >-
        A workspace API key. Data endpoints require a service-account key with
        the specified scopes.
    BearerKey:
      type: http
      scheme: bearer
      description: The workspace or service-account API key as a bearer token.

````

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