Get Prompts
curl --request GET \
--url https://searchcompany-main.up.railway.app/api/prompts/{org_slug}import requests
url = "https://searchcompany-main.up.railway.app/api/prompts/{org_slug}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://searchcompany-main.up.railway.app/api/prompts/{org_slug}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://searchcompany-main.up.railway.app/api/prompts/{org_slug}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://searchcompany-main.up.railway.app/api/prompts/{org_slug}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://searchcompany-main.up.railway.app/api/prompts/{org_slug}")
.asString();require 'uri'
require 'net/http'
url = URI("https://searchcompany-main.up.railway.app/api/prompts/{org_slug}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"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
}
π’ GET - Prompts
Get Prompts
Retrieve prompts with visibility status for the dashboard
GET
/
api
/
prompts
/
{org_slug}
Get Prompts
curl --request GET \
--url https://searchcompany-main.up.railway.app/api/prompts/{org_slug}import requests
url = "https://searchcompany-main.up.railway.app/api/prompts/{org_slug}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://searchcompany-main.up.railway.app/api/prompts/{org_slug}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://searchcompany-main.up.railway.app/api/prompts/{org_slug}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://searchcompany-main.up.railway.app/api/prompts/{org_slug}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://searchcompany-main.up.railway.app/api/prompts/{org_slug}")
.asString();require 'uri'
require 'net/http'
url = URI("https://searchcompany-main.up.railway.app/api/prompts/{org_slug}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"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
string
required
The Clerk organization slug
Query Parameters
string
Filter by product/item ID. Use
"business" for business-only prompts.string
Comma-separated entity IDs to filter by (for multi-select)
integer
default:"100"
Maximum prompts to return
integer
default:"0"
Pagination offset
Response
string
The organization slug
string
Product ID if filtered
array
Array of prompt objects
integer
Total number of prompts
integer
Limit used
integer
Offset used
Prompt Object
| Field | Type | Description |
|---|---|---|
id | integer | Prompt database ID |
entity_id | string | Entity UUID this prompt belongs to |
query | string | The prompt text |
platforms | object | Visibility status per platform |
last_tested_at | string | ISO 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/recommendedfalse(β): Entity was not foundnull(-): Not yet tested
chatgpt- ChatGPT visibilitygemini- Google Gemini visibilityclaude- Anthropic Claude visibilityperplexity- Perplexity AI visibilitycopilot- Microsoft Copilot visibilitydeepseek- DeepSeek visibilitygrok- xAI Grok visibilitygoogle_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
}