Skip to main content

Purpose

Returns prompts with their visibility status across AI platforms for the dashboard β€œTracked Queries” table.

Architecture

Query Parameters

ParameterTypeDescription
product_idstring”business” for business only, or product slug
entity_idsstringComma-separated entity IDs for multi-select
limitintMaximum prompts (default 100)
offsetintPagination offset

Filtering Options

FilterBehavior
No filterReturns all prompts (business + products)
product_id=businessReturns only business prompts
product_id=<slug>Returns only that product’s prompts
entity_ids=id1,id2Returns prompts for specific entities

Response Format

{
  "org_slug": "org-slug-123",
  "product_id": null,
  "prompts": [
    {
      "id": 123,
      "entity_id": "uuid-...",
      "query": "best payment gateway for startups",
      "platforms": {
        "chatgpt": true,
        "claude": false,
        "gemini": true,
        "perplexity": null,
        ...
      },
      "last_tested_at": "2024-01-15T10:30:00Z"
    }
  ],
  "total": 50,
  "limit": 100,
  "offset": 0
}

Platform Values

ValueMeaningUI Display
trueVisible on platformGreen checkmark
falseNot visibleRed X
nullNot tested yetGray dash ”-β€œ

Sorting

Prompts are sorted by last_tested_at descending (tested prompts first, then untested).

Code Location

src/app/apis/current_setup/prompts/routes.py