Skip to main content
GET
https://searchcompany-main.up.railway.app
/
api
/
prompts
/
{org_slug}
"https://searchcompany-main.up.railway.app/api/prompts/nike?limit=10&offset=0"
{
  "org_slug": "nike",
  "item_id": null,
  "prompts": [
    {
      "id": 1,
      "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,
        "googleai": true
      }
    },
    {
      "id": 2,
      "query": "How does Nike compare to Adidas for basketball shoes?",
      "platforms": {
        "chatgpt": true,
        "gemini": false,
        "claude": true,
        "perplexity": true,
        "copilot": true,
        "deepseek": false,
        "grok": false,
        "googleai": true
      }
    }
  ],
  "total": 100,
  "limit": 10,
  "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.

Path Parameters

org_slug
string
required
The Clerk organization slug

Query Parameters

item_id
string
Filter by product/item ID
limit
integer
default:"100"
Maximum prompts to return
offset
integer
default:"0"
Pagination offset

Response

org_slug
string
The organization slug
item_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
querystringThe prompt text
platformsobjectVisibility status per platform

Platforms Object

Each platform has a boolean indicating if the business was mentioned:
  • 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
  • googleai - Google AI visibility
"https://searchcompany-main.up.railway.app/api/prompts/nike?limit=10&offset=0"
{
  "org_slug": "nike",
  "item_id": null,
  "prompts": [
    {
      "id": 1,
      "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,
        "googleai": true
      }
    },
    {
      "id": 2,
      "query": "How does Nike compare to Adidas for basketball shoes?",
      "platforms": {
        "chatgpt": true,
        "gemini": false,
        "claude": true,
        "perplexity": true,
        "copilot": true,
        "deepseek": false,
        "grok": false,
        "googleai": true
      }
    }
  ],
  "total": 100,
  "limit": 10,
  "offset": 0
}