Prompts and tags
List and manage tracked prompts and the tags used to organise them.
Code example
curl -X GET 'https://api.trakkr.ai/get-prompts?brand_id=00000000-0000-4000-8000-234e03c0ef68&active_only=false&limit=100&offset=0' \
-H "Authorization: Bearer $TRAKKR_API_KEY"{
"prompts": [
{
"id": "00000000-0000-4000-8000-234e03c0ef68",
"brand_id": "00000000-0000-4000-8000-81f286d10c3c",
"text": "What are the best CRM tools for enterprise?",
"active": true,
"focus_area": "enterprise",
"intent": "recommendation",
"audience": "enterprise",
"specificity": 3,
"quality_score": 85,
"source": "generated",
"created_at": "2026-01-05T08:00:00Z",
"updated_at": "2026-01-08T14:30:00Z",
"tags": [
{ "id": "a1b2c3d4-...", "name": "Enterprise", "colour": "#2563eb" }
]
}
],
"total": 25,
"limit": 100,
"offset": 0
}Synthetic example. Values are made up.
API key required
60 req/minList Prompts
/get-promptsAuthenticate with Authorization: Bearer $TRAKKR_API_KEY. Key and access guide
Request parameters
brand_idstringqueryRequired
Brand UUID
Format: uuid
active_onlybooleanqueryOptional
Only return active prompts
Default: false
tag_idsstring | nullqueryOptional
Comma-separated tag UUIDs to filter by
limitintegerqueryOptional
Results per page
Default: 100 · Minimum: 1 · Maximum: 500
offsetintegerqueryOptional
Pagination offset
Default: 0 · Minimum: 0
Responses and errors
200Successful Response
application/json
promptsobject[]Required
Fields in prompts
Array of object.
idstringRequired
brand_idstringRequired
textstringRequired
activebooleanOptional
Default: true
focus_areastring | nullOptional
intentstring | nullOptional
audiencestring | nullOptional
specificityinteger | nullOptional
quality_scoreinteger | nullOptional
sourcestringOptional
Default: "api"
created_atstringRequired
updated_atstring | nullOptional
tagsobject[] | nullOptional
totalintegerRequired
limitintegerRequired
offsetintegerRequired
401Missing, malformed, or expired credentials
application/json
detailstring | object | nullOptional
errorstring | nullOptional
402The current plan does not fund this operation
application/json
detailstring | object | nullOptional
errorstring | nullOptional
403Invalid credentials, missing brand access, or insufficient role
application/json
detailstring | object | nullOptional
errorstring | nullOptional
422Validation Error
application/json
detailobject[]Optional
Fields in detail
Array of object.
locstring | integer[]Required
Fields in loc
Array of string | integer.
string
string.
integer
integer.
msgstringRequired
typestringRequired
429Rate limit exceeded
application/json
detailstring | object | nullOptional
errorstring | nullOptional
500The operation failed
application/json
detailstring | object | nullOptional
errorstring | nullOptional
503Authentication, entitlement, or a required dependency is temporarily unavailable
application/json
detailstring | object | nullOptional
errorstring | nullOptional
Returns all prompts for a brand. Use active_only=true to filter to only active prompts.
/get-brands. Pass it as brand_id when listing prompts or tags.Try GET /get-prompts
Create Prompt
/get-promptsAuthenticate with Authorization: Bearer $TRAKKR_API_KEY. Key and access guide
JSON request body (required)
brand_idstringRequired
Format: uuid
textstringRequired
activebooleanOptional
Default: true
focus_areastring | nullOptional
intentstring | nullOptional
audiencestring | nullOptional
Responses and errors
201Successful Response
application/json
idstringRequired
brand_idstringRequired
textstringRequired
activebooleanOptional
Default: true
focus_areastring | nullOptional
intentstring | nullOptional
audiencestring | nullOptional
specificityinteger | nullOptional
quality_scoreinteger | nullOptional
sourcestringOptional
Default: "api"
created_atstringRequired
updated_atstring | nullOptional
tagsobject[] | nullOptional
401Missing, malformed, or expired credentials
application/json
detailstring | object | nullOptional
errorstring | nullOptional
402The current plan does not fund this operation
application/json
detailstring | object | nullOptional
errorstring | nullOptional
403Invalid credentials, missing brand access, or insufficient role
application/json
detailstring | object | nullOptional
errorstring | nullOptional
422Validation Error
application/json
detailobject[]Optional
Fields in detail
Array of object.
locstring | integer[]Required
Fields in loc
Array of string | integer.
string
string.
integer
integer.
msgstringRequired
typestringRequired
429Rate limit exceeded
application/json
detailstring | object | nullOptional
errorstring | nullOptional
500The operation failed
application/json
detailstring | object | nullOptional
errorstring | nullOptional
503Authentication, entitlement, or a required dependency is temporarily unavailable
application/json
detailstring | object | nullOptional
errorstring | nullOptional
Create a new prompt for tracking. New prompts are included in the next scan.
curl -X POST 'https://api.trakkr.ai/get-prompts' \
-H "Authorization: Bearer $TRAKKR_API_KEY" \
-H 'Content-Type: application/json' \
-d '{"brand_id":"00000000-0000-4000-8000-81f286d10c3c","text":"What are the best CRM tools for healthcare?","active":true,"focus_area":"industry","intent":"recommendation"}'Update Prompt
/get-promptsAuthenticate with Authorization: Bearer $TRAKKR_API_KEY. Key and access guide
JSON request body (required)
prompt_idstringRequired
Format: uuid
textstring | nullOptional
activeboolean | nullOptional
focus_areastring | nullOptional
intentstring | nullOptional
audiencestring | nullOptional
Responses and errors
200Successful Response
application/json
idstringRequired
brand_idstringRequired
textstringRequired
activebooleanOptional
Default: true
focus_areastring | nullOptional
intentstring | nullOptional
audiencestring | nullOptional
specificityinteger | nullOptional
quality_scoreinteger | nullOptional
sourcestringOptional
Default: "api"
created_atstringRequired
updated_atstring | nullOptional
tagsobject[] | nullOptional
401Missing, malformed, or expired credentials
application/json
detailstring | object | nullOptional
errorstring | nullOptional
402The current plan does not fund this operation
application/json
detailstring | object | nullOptional
errorstring | nullOptional
403Invalid credentials, missing brand access, or insufficient role
application/json
detailstring | object | nullOptional
errorstring | nullOptional
422Validation Error
application/json
detailobject[]Optional
Fields in detail
Array of object.
locstring | integer[]Required
Fields in loc
Array of string | integer.
string
string.
integer
integer.
msgstringRequired
typestringRequired
429Rate limit exceeded
application/json
detailstring | object | nullOptional
errorstring | nullOptional
500The operation failed
application/json
detailstring | object | nullOptional
errorstring | nullOptional
503Authentication, entitlement, or a required dependency is temporarily unavailable
application/json
detailstring | object | nullOptional
errorstring | nullOptional
Update an existing prompt. Include prompt_id in the request body.
Delete Prompt
/get-prompts?prompt_id={id}Authenticate with Authorization: Bearer $TRAKKR_API_KEY. Key and access guide
Request parameters
prompt_idstringqueryRequired
Prompt UUID to delete
Format: uuid
Responses and errors
200Successful Response
application/json
successbooleanRequired
deleted_idstringRequired
401Missing, malformed, or expired credentials
application/json
detailstring | object | nullOptional
errorstring | nullOptional
402The current plan does not fund this operation
application/json
detailstring | object | nullOptional
errorstring | nullOptional
403Invalid credentials, missing brand access, or insufficient role
application/json
detailstring | object | nullOptional
errorstring | nullOptional
422Validation Error
application/json
detailobject[]Optional
Fields in detail
Array of object.
locstring | integer[]Required
Fields in loc
Array of string | integer.
string
string.
integer
integer.
msgstringRequired
typestringRequired
429Rate limit exceeded
application/json
detailstring | object | nullOptional
errorstring | nullOptional
500The operation failed
application/json
detailstring | object | nullOptional
errorstring | nullOptional
503Authentication, entitlement, or a required dependency is temporarily unavailable
application/json
detailstring | object | nullOptional
errorstring | nullOptional
Delete a prompt. Historical data for this prompt will be retained.
Enum Values
focus_area
generalbudgetenterprisefeaturesuxintegrationscomparisonsindustrygeographictrendsintent
recommendationcomparisonalternativediscoverybest_foraudience
enterprisesmbconsumerdevelopergeneral