> ## 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.

# Remove a personal prompt draft

> Same workspace feature and role permissions as the app. Writes commit their successful retry receipt atomically. Personal drafts require user-authorized OAuth; service API keys cannot access a member’s drafts. New saves use null ID and revision; updates/removal require the current revision. Multiple-draft feature access remains enforced. Saving does not create or run a prompt.



## OpenAPI

````yaml DELETE /api/v2/prompts/drafts
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.
paths:
  /api/v2/prompts/drafts:
    delete:
      tags:
        - Prompts
      summary: Remove a personal prompt draft
      description: >-
        Same workspace feature and role permissions as the app. Writes commit
        their successful retry receipt atomically. Personal drafts require
        user-authorized OAuth; service API keys cannot access a member’s drafts.
        New saves use null ID and revision; updates/removal require the current
        revision. Multiple-draft feature access remains enforced. Saving does
        not create or run a prompt.
      operationId: deleteV2PromptsDrafts
      parameters:
        - name: Idempotency-Key
          in: header
          required: false
          schema:
            type: string
            maxLength: 255
          description: >-
            Required for MCP writes. Keep unchanged when retrying the same
            operation within 24 hours.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                id:
                  anyOf:
                    - type: string
                      format: uuid
                    - type: string
                      const: legacy
                expectedRevision:
                  type: string
                  minLength: 1
                  maxLength: 200
              required:
                - id
                - expectedRevision
              additionalProperties: false
      responses:
        '200':
          description: Successful operation.
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: object
                    properties:
                      drafts:
                        type: array
                        items:
                          type: object
                          properties:
                            id:
                              anyOf:
                                - type: string
                                  format: uuid
                                - type: string
                                  const: legacy
                            revision:
                              type: string
                              minLength: 1
                              maxLength: 200
                            updatedAt:
                              type: string
                            values:
                              type: object
                              properties:
                                promptText:
                                  type: string
                                  maxLength: 399
                                targetPlatforms:
                                  type: array
                                  items:
                                    enum:
                                      - chatgpt
                                      - ai_overview
                                      - ai_mode
                                      - gemini
                                      - perplexity
                                      - claude
                                    type: string
                                targetRegions:
                                  type: array
                                  items:
                                    type: string
                                    minLength: 1
                                    maxLength: 100
                                analysisPolicy:
                                  type: object
                                  properties:
                                    ranking:
                                      type: string
                                      enum:
                                        - auto
                                        - always
                                        - never
                                    sentiment:
                                      type: string
                                      enum:
                                        - auto
                                        - always
                                        - never
                                  additionalProperties: false
                                scheduleFrequency:
                                  type: string
                                  enum:
                                    - daily
                                    - weekly
                                    - manual
                                scheduleHour:
                                  type: integer
                                  minimum: 0
                                  maximum: 23
                                scheduleMinute:
                                  type: integer
                                  minimum: 0
                                  maximum: 59
                                scheduleTimezone:
                                  type: string
                                  minLength: 1
                                  maxLength: 64
                                scheduleIntervalMinutes:
                                  type: 'null'
                                scheduleDaysOfWeek:
                                  anyOf:
                                    - type: array
                                      items:
                                        type: integer
                                        minimum: 0
                                        maximum: 6
                                      maxItems: 7
                                    - type: 'null'
                                personaIds:
                                  type: array
                                  items:
                                    type: integer
                                    exclusiveMinimum: 0
                                  maxItems: 50
                                groupIds:
                                  type: array
                                  items:
                                    type: integer
                                    exclusiveMinimum: 0
                                  maxItems: 50
                              additionalProperties: false
                          required:
                            - id
                            - revision
                            - updatedAt
                            - values
                          additionalProperties: false
                      saved:
                        type: object
                        properties:
                          id:
                            anyOf:
                              - type: string
                                format: uuid
                              - type: string
                                const: legacy
                          revision:
                            type: string
                            minLength: 1
                            maxLength: 200
                          updatedAt:
                            type: string
                          values:
                            type: object
                            properties:
                              promptText:
                                type: string
                                maxLength: 399
                              targetPlatforms:
                                type: array
                                items:
                                  enum:
                                    - chatgpt
                                    - ai_overview
                                    - ai_mode
                                    - gemini
                                    - perplexity
                                    - claude
                                  type: string
                              targetRegions:
                                type: array
                                items:
                                  type: string
                                  minLength: 1
                                  maxLength: 100
                              analysisPolicy:
                                type: object
                                properties:
                                  ranking:
                                    type: string
                                    enum:
                                      - auto
                                      - always
                                      - never
                                  sentiment:
                                    type: string
                                    enum:
                                      - auto
                                      - always
                                      - never
                                additionalProperties: false
                              scheduleFrequency:
                                type: string
                                enum:
                                  - daily
                                  - weekly
                                  - manual
                              scheduleHour:
                                type: integer
                                minimum: 0
                                maximum: 23
                              scheduleMinute:
                                type: integer
                                minimum: 0
                                maximum: 59
                              scheduleTimezone:
                                type: string
                                minLength: 1
                                maxLength: 64
                              scheduleIntervalMinutes:
                                type: 'null'
                              scheduleDaysOfWeek:
                                anyOf:
                                  - type: array
                                    items:
                                      type: integer
                                      minimum: 0
                                      maximum: 6
                                    maxItems: 7
                                  - type: 'null'
                              personaIds:
                                type: array
                                items:
                                  type: integer
                                  exclusiveMinimum: 0
                                maxItems: 50
                              groupIds:
                                type: array
                                items:
                                  type: integer
                                  exclusiveMinimum: 0
                                maxItems: 50
                            additionalProperties: false
                        required:
                          - id
                          - revision
                          - updatedAt
                          - values
                        additionalProperties: false
                      multipleDraftsEnabled:
                        type: boolean
                    required:
                      - drafts
                      - multipleDraftsEnabled
                    additionalProperties: false
                required:
                  - data
                additionalProperties: false
        '400':
          description: Invalid input.
        '403':
          description: Scope, role, personal ownership or feature access denied.
        '404':
          description: Record not found.
        '409':
          description: Revision, opportunity or retry conflict.
components:
  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.

````