Skip to main content
GET
https://searchcompany-main.up.railway.app
/
api
/
prompts
/
{org_slug}
Get Prompts
curl --request GET \
  --url https://searchcompany-main.up.railway.app/api/prompts/{org_slug}
{
  "org_slug": "nike",
  "product_id": null,
  "prompts": [
    {
      "id": 1,
      "entity_id": "550e8400-e29b-41d4-a716-446655440000",
      "query": "What are the best Nike running shoes for beginners?",
      "platforms": {
        "chatgpt": true,
        "gemini": true,
        "claude": false,
        "perplexity": true,
        "copilot": false,
        "deepseek": false,
        "grok": true,
        "google_ai": true
      },
      "last_tested_at": "2025-12-29T10:30:00Z"
    },
    {
      "id": 2,
      "entity_id": "550e8400-e29b-41d4-a716-446655440000",
      "query": "How does Nike compare to Adidas for basketball shoes?",
      "platforms": {
        "chatgpt": null,
        "gemini": null,
        "claude": null,
        "perplexity": null,
        "copilot": null,
        "deepseek": null,
        "grok": null,
        "google_ai": null
      },
      "last_tested_at": null
    }
  ],
  "total": 50,
  "limit": 100,
  "offset": 0
}
Gets prompts for a business along with their visibility status across AI platforms. Used to populate the β€œTracked Queries” table in the dashboard. Sorting: Prompts are sorted by last_tested_at DESC NULLS LAST, so recently tested prompts appear first, followed by untested prompts.

Path Parameters

org_slug
string
required
The Clerk organization slug

Query Parameters

product_id
string
Filter by product/item ID. Use "business" for business-only prompts.
entity_ids
string
Comma-separated entity IDs to filter by (for multi-select)
limit
integer
default:"100"
Maximum prompts to return
offset
integer
default:"0"
Pagination offset

Response

org_slug
string
The organization slug
product_id
string
Product ID if filtered
prompts
array
Array of prompt objects
total
integer
Total number of prompts
limit
integer
Limit used
offset
integer
Offset used

Prompt Object

FieldTypeDescription
idintegerPrompt database ID
entity_idstringEntity UUID this prompt belongs to
querystringThe prompt text
platformsobjectVisibility status per platform
last_tested_atstringISO timestamp of last test (null if never tested)

Platforms Object

Each platform has a boolean indicating if the business was mentioned:
  • true (βœ“): Entity was found/recommended
  • false (βœ—): Entity was not found
  • null (-): Not yet tested
Platforms:
  • chatgpt - ChatGPT visibility
  • gemini - Google Gemini visibility
  • claude - Anthropic Claude visibility
  • perplexity - Perplexity AI visibility
  • copilot - Microsoft Copilot visibility
  • deepseek - DeepSeek visibility
  • grok - xAI Grok visibility
  • google_ai - Google AI visibility
{
  "org_slug": "nike",
  "product_id": null,
  "prompts": [
    {
      "id": 1,
      "entity_id": "550e8400-e29b-41d4-a716-446655440000",
      "query": "What are the best Nike running shoes for beginners?",
      "platforms": {
        "chatgpt": true,
        "gemini": true,
        "claude": false,
        "perplexity": true,
        "copilot": false,
        "deepseek": false,
        "grok": true,
        "google_ai": true
      },
      "last_tested_at": "2025-12-29T10:30:00Z"
    },
    {
      "id": 2,
      "entity_id": "550e8400-e29b-41d4-a716-446655440000",
      "query": "How does Nike compare to Adidas for basketball shoes?",
      "platforms": {
        "chatgpt": null,
        "gemini": null,
        "claude": null,
        "perplexity": null,
        "copilot": null,
        "deepseek": null,
        "grok": null,
        "google_ai": null
      },
      "last_tested_at": null
    }
  ],
  "total": 50,
  "limit": 100,
  "offset": 0
}