List the prompts Presence asks, with how often they name your brands
/v1/results/accounts/presence/prompts/tableBetaLists the prompts: the questions Presence puts to assistants on a schedule. It also counts the answers each had between from and to, the last 30 days unless you say otherwise.
With marketId it lists one market's prompts. Without it, it lists the prompts of every market the API key's user can see.
Each brand in measure adds two fields to every row, named after its id. For brand 4 they are:
| Field | What it is |
|---|---|
brand4 | The percentage of the prompt's answers that named the brand, to one decimal place. Null when there are no answers in those dates. |
brand4position | Where it came among the brands named, on average, when it was named. 1 is first. Null when it was never named. |
Rows are sorted by the account's own brand, most often named first, or by chatText when that brand is not measured. search matches both wordings. Every field is sent whatever columns says.
This query is in beta: chatText and searchText may be replaced by one field. Join on promptId, not on the wording.
This query counts every answer in its dates each time, so it can take several seconds. To read prompts often, ask for few days.
curl "https://api.eu.silktide.com/v1/results/accounts/presence/prompts/table?workspaceId=1&sort=chatText%3Aa&rowsPerPage=2" \
-H "Authorization: silktide token=$SILKTIDE_API_KEY"{
"result": {
"page": 1,
"minPage": 1,
"maxPage": 24,
"numRows": 48,
"rowsPerPage": 2,
"rows": [
{
"promptId": 31,
"topicId": 11,
"topicName": "Fake Wine Barrel",
"chatText": "Are Fake Wine Barrel's barrels any good?",
"searchText": "fake wine barrel reviews",
"isBranded": true,
"status": "active",
"responses": 180,
"brandsNamed": 3,
"lastMeasuredAt": 1793610000
},
{
"promptId": 12,
"topicId": 7,
"topicName": "Oak barrel suppliers",
"chatText": "Who sells used oak barrels to small wineries?",
"searchText": "used oak barrels for small wineries",
"isBranded": false,
"status": "active",
"responses": 0,
"brandsNamed": null,
"lastMeasuredAt": 0
}
]
},
"selector": "/v1/results/accounts/presence/prompts/table",
"duration": 2.1
}Request
Query parameters
workspaceIdintegerrequiredat least 1Where the account's markets live. Get the workspace answers with it.
marketIdintegerat least 1Only this market: the number after
/presence/in the market's address in Silktide. Left out, every market the API key's user can see.fromintegerOnly answers asked for at or after this time, in Unix seconds. Defaults to 30 days before
to.tointegerOnly answers asked for at or before this time, in Unix seconds. Defaults to now.
platformsstringOnly these assistants, by id, comma-separated, such as
chatgpt,gemini. Left out, all of them. An unknown id matches nothing.topicsstringOnly these topics, by id, comma-separated. Left out, all of them.
arenastringWhich prompts' answers to read:
marketfor prompts about a subject,reputationfor prompts about a brand itself, orall. Defaults toall. Any other value answers with an error.One of
allmarketreputationmeasurestringThe brands to add figures for, by id, comma-separated, at most four. Left out, the account's own brand.
columnsstringThe columns to return, comma-separated, such as
url,pageViews. Left out, the table's default columns. Send a string even in a JSON body: an array is ignored.sortstringThe column to sort by, then
:afor ascending or:dfor descending, such aspageViews:d. Left out, the table's own order.searchstringOnly rows matching this text. What it searches depends on the table, most often the URL or title.
pageintegerat least 1The page of rows to return, from
1. Defaults to1.rowsPerPageintegerat least 1How many rows a page holds. Defaults to
100.criteriastringFilters on the table's columns, as
column:value, joined with;.statustakescurrent(active and paused, the default),active,paused,suggested,deletedorall.isBrandedtakesbrandedornon-branded. Such asstatus:all;isBranded:non-branded.
Response
200JSON.
resultobjectrequiredThe answer.
Show 6 fieldsHide fields
pageintegerrequiredat least 1The page returned. Not always the page asked for, when that was out of range.
minPageintegerrequiredat least 1The first page. Always
1.maxPageintegerrequiredThe last page at this
rowsPerPage. With no rows,0or1depending on the table.numRowsintegerrequiredHow many rows there are across every page.
rowsPerPageintegerrequiredat least 1How many rows a page holds.
rowslist of objectsrequiredThe rows on this page.
Show 10 fieldsHide fields
promptIdintegerrequiredat least 1The prompt.
topicIdintegerrequiredat least 1Its topic. See Get topics.
topicNamestringrequiredIts topic's name.
chatTextstringrequiredThe prompt as put to a chat assistant.
searchTextstringrequiredThe same question as typed into a search engine.
isBrandedbooleanrequiredWhether the prompt names a brand.
statusstringrequiredactive(being asked),paused(kept, but over the plan's allowance),suggested(not in use yet) ordeleted.One of
activepausedsuggesteddeletedresponsesintegerrequiredAnswers to it between
fromandto.brandsNamedintegerrequiredcan be nullHow many tracked brands those answers named between them. Null when it has no answers in those dates.
lastMeasuredAtintegerrequiredWhen its latest answer in those dates was asked for.
0when it has none.
selectorstringrequiredThe query that answered, as its path:
/v1/results/scores.durationnumberrequiredSeconds Silktide took to answer.
Errors
| Status | Type | When |
|---|---|---|
| 200 | EditionNotAvailable | The account does not have Silktide 5. Its status is 403. The body is an error despite the status. |
| 200 | Runtime | No workspaceId was sent, or arena is not one of its values. Its status is 500, and its message does not say why. The body is an error despite the status. |
| 200 | AccessDenied | No such workspace or market exists in the account, or the API key's user cannot see it. Its status is 403. The body is an error despite the status. |
| 200 | Internal | sort names a column the table does not have. Its status is 500. The body is an error despite the status. |
| 401 | NotLoggedIn | No API key was sent, or it is not a key for this region.(any operation) |
| 429 | TooManyRequests | Too many requests to this path in five seconds. Retry after the number of seconds in the Retry-After header, which properties.retryAfter repeats.(any operation) |
| 503 | - | Silktide is busy. Retry after the number of seconds in the Retry-After header.(any operation) |
Every error has the same body. See Errors.
Access
- Permission
- Can see this market
- Plan feature
- None
- Edition
- Silktide 5 only
- Cost
- Free
- Available since
- v1.2.0
Try it
Sends a real request to your account from this browser. Your key stays in this tab and goes only to the Silktide API.