Scrunch AI Prompts API

The Prompts API from Scrunch AI — 2 operation(s) for prompts.

Operations 4

DELETE /{brand_id}/prompts/{prompt_id} Archive Prompt #
GET /{brand_id}/prompts/{prompt_id} Get Prompt #
POST /{brand_id}/prompts Create Prompt #
GET /{brand_id}/prompts List Prompts #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/scrunch-ai-prompts-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no email required.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

scrunch-ai-prompts-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Scrunch Ai Prompts API
  version: 0.1.0
  description: 'Operations tagged Prompts across 2 of this provider''s published API definitions: scrunch-ai-data-api-openapi.yml, scrunch-ai-data-api-runtime-openapi.json. Each path carries the servers of the definition it was published in.'
servers:
- url: https://api.scrunchai.com/v1
- url: /v1
tags:
- name: Prompts
paths:
  /{brand_id}/prompts/{prompt_id}:
    delete:
      summary: Archive Prompt
      description: Archives a prompt (soft delete). The prompt will no longer be tracked but historical data is preserved. Requires the `configure` scope.
      operationId: archivePrompt
      parameters:
      - name: brand_id
        in: path
        required: true
        schema:
          type: integer
          description: The unique identifier for the brand
          title: Brand Id
        description: The unique identifier for the brand
      - name: prompt_id
        in: path
        required: true
        schema:
          type: integer
          description: The unique identifier for the prompt to archive
          title: Prompt Id
        description: The unique identifier for the prompt to archive
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - HTTPBearer:
        - configure
      tags:
      - Prompts
    get:
      summary: Get Prompt
      description: Returns a single prompt by its ID, including all associated metadata such as platforms, tags, and topics. Archived prompts are returned with `status=archived`; check the field if you only want active ones.
      operationId: getPrompt
      security:
      - HTTPBearer: []
      parameters:
      - name: brand_id
        in: path
        required: true
        schema:
          type: integer
          description: The unique identifier for the brand
          title: Brand Id
        description: The unique identifier for the brand
      - name: prompt_id
        in: path
        required: true
        schema:
          type: integer
          description: The unique identifier for the prompt
          title: Prompt Id
        description: The unique identifier for the prompt
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PromptListing_2'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Prompts
    servers:
    - url: https://api.scrunchai.com/v1
  /{brand_id}/prompts:
    post:
      summary: Create Prompt
      description: 'Creates a new prompt with variants for the specified platforms. Requires the `configure` scope.


        **Behavior:**

        - `stage` is optional. If omitted, the journey stage is auto-classified against your brand''s active stages using an LLM.

        - If `stage` is provided, it must match one of your brand''s active stages (case-sensitive display name). An unknown value returns `400`. An explicit stage is treated as a manual assertion and won''t be overwritten by later re-classification.

        - Creates variants for each specified platform.

        - Reactivates an archived prompt if a duplicate exists.

        - Dispatches collection events to begin tracking.'
      operationId: createPrompt
      parameters:
      - name: brand_id
        in: path
        required: true
        schema:
          type: integer
          description: The unique identifier for the brand
          title: Brand Id
        description: The unique identifier for the brand
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/APIPromptInputModel'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PromptListing'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - HTTPBearer:
        - configure
      tags:
      - Prompts
    get:
      summary: List Prompts
      description: Returns a paginated list of active prompts for the specified brand, including their variants, tags, and topics. Use this endpoint to retrieve all prompts configured for AI visibility tracking.
      operationId: listPrompts
      parameters:
      - name: brand_id
        in: path
        required: true
        schema:
          type: integer
          description: The unique identifier for the brand
          title: Brand Id
        description: The unique identifier for the brand
      - name: limit
        in: query
        required: false
        schema:
          type: integer
          minimum: 1
          description: Maximum number of prompts to return per page.
          default: 100
          title: Limit
        description: Maximum number of prompts to return per page.
      - name: offset
        in: query
        required: false
        schema:
          type: integer
          minimum: 0
          description: Number of prompts to skip for pagination.
          default: 0
          title: Offset
        description: Number of prompts to skip for pagination.
      - name: stage
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          description: 'Filter prompts by journey stage. Values are resolved from your brand''s configured stages, so they vary per brand.


            **Default stage sets:**

            - **Intent (v1)** — `Advice`, `Awareness`, `Evaluation`, `Comparison`, `Other`

            - **Funnel (v2)** — `Awareness`, `Consideration`, `Conversion`, `Loyalty`, `Other`


            Brands that rename or add stages accept those custom names too. A value that doesn''t match any of the brand''s active stages matches zero rows rather than erroring.'
          title: Stage
        description: 'Filter prompts by journey stage. Values are resolved from your brand''s configured stages, so they vary per brand.


          **Default stage sets:**

          - **Intent (v1)** — `Advice`, `Awareness`, `Evaluation`, `Comparison`, `Other`

          - **Funnel (v2)** — `Awareness`, `Consideration`, `Conversion`, `Loyalty`, `Other`


          Brands that rename or add stages accept those custom names too. A value that doesn''t match any of the brand''s active stages matches zero rows rather than erroring.'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CollectionResponse_PromptListing_'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - HTTPBearer: []
      tags:
      - Prompts
    servers:
    - url: https://api.scrunchai.com/v1
components:
  schemas:
    PromptListing:
      properties:
        id:
          type: integer
          title: Id
          description: Unique identifier for the prompt
        text:
          type: string
          title: Text
          description: The prompt text being tracked
        stage:
          type: string
          title: Stage
          description: The customer journey stage this prompt represents. Returned as the display name of the brand's active stage — one of the brand's default set (`Advice`, `Awareness`, `Evaluation`, `Comparison`, `Other` for intent brands; `Awareness`, `Consideration`, `Conversion`, `Loyalty`, `Other` for funnel brands) or a custom stage name.
        persona_id:
          anyOf:
          - type: integer
          - type: 'null'
          title: Persona Id
          description: ID of the associated persona, if any
        platforms:
          items:
            type: string
            enum:
            - chatgpt
            - claude
            - google_ai_overviews
            - perplexity
            - meta
            - google_ai_mode
            - google_gemini
            - copilot
            - grok
          type: array
          title: Platforms
          description: AI platforms this prompt is tracked on
        tags:
          items:
            type: string
          type: array
          title: Tags
          description: Custom tags assigned to this prompt
        topics:
          items:
            type: string
          type: array
          title: Topics
          description: Auto-detected or assigned topics for this prompt
        created_at:
          type: string
          format: date-time
          title: Created At
          description: Timestamp when the prompt was created
      type: object
      required:
      - id
      - text
      - stage
      - persona_id
      - platforms
      - tags
      - topics
      - created_at
      title: PromptListing
      description: Represents a prompt being tracked for AI visibility, including its configuration and metadata.
    APIPromptInputModel:
      properties:
        text:
          type: string
          title: Text
          description: The prompt text to track across AI platforms
        persona_id:
          anyOf:
          - type: integer
          - type: 'null'
          title: Persona Id
          description: Optional persona ID to associate with this prompt for segmented analysis
        stage:
          anyOf:
          - type: string
          - type: 'null'
          title: Stage
          description: 'The customer journey stage this prompt represents. Must match one of your brand''s active stages (case-sensitive display name); custom stage names are accepted. Omit to auto-classify against the brand''s stage definitions.


            **Default stage sets:**

            - **Intent (v1)** — `Advice`, `Awareness`, `Evaluation`, `Comparison`, `Other`

            - **Funnel (v2)** — `Awareness`, `Consideration`, `Conversion`, `Loyalty`, `Other`


            Unknown stage names return `400 Bad Request`. An explicit stage is treated as a manual selection and won''t be reclassified later.'
        tags:
          items:
            type: string
          type: array
          title: Tags
          description: Custom tags for categorizing and filtering prompts
          default: []
        key_topics:
          items:
            type: string
          type: array
          title: Key Topics
          description: Key topics to associate with this prompt from the brand's topic list
          default: []
        language:
          anyOf:
          - type: string
          - type: 'null'
          title: Language
          description: Lowercase ISO 639-1 code of the language the prompt text is written in (e.g. `pt`, `ja`, `es`). Case-insensitive; uppercase input is normalized. Invalid codes return `422 Unprocessable Entity`. If omitted, the language is auto-detected from the prompt text, falling back to the brand's default language.
        platforms:
          items:
            type: string
            enum:
            - chatgpt
            - claude
            - google_ai_overviews
            - perplexity
            - meta
            - google_ai_mode
            - google_gemini
            - copilot
            - grok
          type: array
          title: Platforms
          description: 'AI platforms to track this prompt on. If empty, defaults to all supported platforms.


            **Supported platforms:**

            - `chatgpt` - OpenAI ChatGPT

            - `claude` - Anthropic Claude

            - `google_ai_overviews` - Google AI Overviews (Search)

            - `perplexity` - Perplexity AI

            - `meta` - Meta AI

            - `google_ai_mode` - Google AI Mode

            - `google_gemini` - Google Gemini

            - `copilot` - Microsoft Copilot'
          default: []
      type: object
      required:
      - text
      title: APIPromptInputModel
      description: Input model for creating a new prompt to track AI visibility.
    CollectionResponse_PromptListing_:
      properties:
        total:
          type: integer
          title: Total
        offset:
          type: integer
          title: Offset
          default: 0
        limit:
          anyOf:
          - type: integer
          - type: 'null'
          title: Limit
        items:
          items:
            $ref: '#/components/schemas/PromptListing'
          type: array
          title: Items
        metadata:
          anyOf:
          - $ref: '#/components/schemas/TimeSeriesMetadata'
          - type: 'null'
      type: object
      required:
      - total
      - items
      title: CollectionResponse[PromptListing]
    TimeSeriesMetadata:
      properties:
        aggregation_granularity:
          $ref: '#/components/schemas/AggregationGranularity'
          description: 'The aggregation granularity: daily, weekly, or monthly'
        period_count:
          type: integer
          title: Period Count
          description: The number of periods in the time series
        start_date:
          type: string
          format: date-time
          title: Start Date
          description: The start date of the time series
        end_date:
          type: string
          format: date-time
          title: End Date
          description: The end date of the time series
        top_domains:
          anyOf:
          - $ref: '#/components/schemas/TopDomainsMetadata'
          - type: 'null'
          description: Top domains metadata (only populated by sources/domains endpoints)
      type: object
      required:
      - aggregation_granularity
      - period_count
      - start_date
      - end_date
      title: TimeSeriesMetadata
    TopDomainSummary:
      properties:
        domain:
          type: string
          title: Domain
        domain_owner:
          type: string
          title: Domain Owner
        observation_count:
          type: integer
          title: Observation Count
      type: object
      required:
      - domain
      - domain_owner
      - observation_count
      title: TopDomainSummary
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    OwnerTimeSeriesPoint:
      properties:
        time_bucket:
          type: string
          title: Time Bucket
          description: Date string for the time bucket (YYYY-MM-DD)
        brand:
          type: integer
          title: Brand
          description: Observation count for brand-owned domains
        competitor:
          type: integer
          title: Competitor
          description: Observation count for competitor-owned domains
        other:
          type: integer
          title: Other
          description: Observation count for third-party domains
      type: object
      required:
      - time_bucket
      - brand
      - competitor
      - other
      title: OwnerTimeSeriesPoint
      description: A single time bucket with observation counts by owner type.
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
    TopDomainsMetadata:
      properties:
        domains:
          items:
            $ref: '#/components/schemas/TopDomainSummary'
          type: array
          title: Domains
          description: Top domains by observation count (always domain-level aggregated)
        grand_total:
          type: integer
          title: Grand Total
          description: Total observation count across all domains (for calculating 'Other')
        owner_totals:
          additionalProperties:
            type: integer
          type: object
          title: Owner Totals
          description: Observation counts by owner type (brand, competitor, other)
        owner_time_series:
          anyOf:
          - items:
              $ref: '#/components/schemas/OwnerTimeSeriesPoint'
            type: array
          - type: 'null'
          title: Owner Time Series
          description: Time series data by owner type for trend visualization
        segment_totals:
          items:
            $ref: '#/components/schemas/SegmentTotal'
          type: array
          title: Segment Totals
          description: Server-side observation counts per citation segment (covers all domains, not just top-N)
      type: object
      required:
      - domains
      - grand_total
      - owner_totals
      title: TopDomainsMetadata
      description: Metadata about top domains, used by sources/domains endpoints.
    AggregationGranularity:
      type: string
      enum:
      - daily
      - weekly
      - monthly
    SegmentTotal:
      properties:
        name:
          type: string
          title: Name
        observation_count:
          type: integer
          title: Observation Count
      type: object
      required:
      - name
      - observation_count
      title: SegmentTotal
      description: Observation count for a citation segment, computed server-side.
    PromptListing_2:
      properties:
        id:
          type: integer
          title: Id
          description: Unique identifier for the prompt
        text:
          type: string
          title: Text
          description: The prompt text being tracked
        stage:
          type: string
          title: Stage
          description: The customer journey stage this prompt represents — one of the brand's stages (custom stage names included)
        persona_id:
          anyOf:
          - type: integer
          - type: 'null'
          title: Persona Id
          description: ID of the associated persona, if any
        platforms:
          items:
            type: string
            enum:
            - chatgpt
            - claude
            - google_ai_overviews
            - perplexity
            - meta
            - google_ai_mode
            - google_gemini
            - copilot
            - grok
          type: array
          title: Platforms
          description: AI platforms this prompt is tracked on
        tags:
          items:
            type: string
          type: array
          title: Tags
          description: Custom tags assigned to this prompt
        topics:
          items:
            type: string
          type: array
          title: Topics
          description: Auto-detected or assigned topics for this prompt
        branded:
          type: boolean
          title: Branded
          description: Whether this prompt explicitly mentions the brand
        favorite:
          type: boolean
          title: Favorite
          description: Whether this prompt is marked as a favorite
        status:
          type: string
          enum:
          - active
          - archived
          title: Status
          description: Lifecycle status of the prompt (`active` or `archived`)
        created_at:
          type: string
          format: date-time
          title: Created At
          description: Timestamp when the prompt was created
      type: object
      required:
      - id
      - text
      - stage
      - persona_id
      - platforms
      - tags
      - topics
      - branded
      - favorite
      - status
      - created_at
      title: PromptListing
      description: Represents a prompt being tracked for AI visibility, including its configuration and metadata.
    APIPromptInputModel_2:
      properties:
        text:
          type: string
          title: Text
          description: The prompt text to track across AI platforms
        persona_id:
          anyOf:
          - type: integer
          - type: 'null'
          title: Persona Id
          description: Optional persona ID to associate with this prompt for segmented analysis
        stage:
          anyOf:
          - type: string
          - type: 'null'
          title: Stage
          description: 'The customer journey stage this prompt represents. Must be the name of one of the brand''s active stages (custom stage names included); omit to auto-categorize with an LLM against the brand''s stage definitions. Default sets:

            - `Advice` - Seeking recommendations or guidance

            - `Awareness` - Exploring a topic or problem space

            - `Evaluation` - Assessing specific options

            - `Comparison` - Comparing multiple options

            - `Other` - Doesn''t fit other categories'
        tags:
          items:
            type: string
          type: array
          title: Tags
          description: Custom tags for categorizing and filtering prompts
          default: []
        key_topics:
          items:
            type: string
          type: array
          title: Key Topics
          description: Key topics to associate with this prompt from the brand's topic list
          default: []
        language:
          anyOf:
          - type: string
          - type: 'null'
          title: Language
          description: Lowercase ISO 639-1 code of the language the prompt text is written in (e.g. `pt`). If omitted, the language is detected from the text, falling back to the brand's default language.
        platforms:
          items:
            type: string
            enum:
            - chatgpt
            - claude
            - google_ai_overviews
            - perplexity
            - meta
            - google_ai_mode
            - google_gemini
            - copilot
            - grok
          type: array
          title: Platforms
          description: 'AI platforms to track this prompt on. If empty, defaults to all supported platforms.


            **Supported platforms:**

            - `chatgpt` - OpenAI ChatGPT

            - `claude` - Anthropic Claude

            - `google_ai_overviews` - Google AI Overviews (Search)

            - `perplexity` - Perplexity AI

            - `meta` - Meta AI

            - `google_ai_mode` - Google AI Mode

            - `google_gemini` - Google Gemini

            - `copilot` - Microsoft Copilot'
          default: []
      type: object
      required:
      - text
      title: APIPromptInputModel
      description: Input model for creating a new prompt to track AI visibility.
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer
x-refined-from:
- scrunch-ai-data-api-openapi.yml
- scrunch-ai-data-api-runtime-openapi.json