Skip to content
Menu
SilktideDevelopers

List the prompts Presence asks, with how often they name your brands

GET/v1/results/accounts/presence/prompts/tableBeta
View as Markdown

Lists 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:

FieldWhat it is
brand4The percentage of the prompt's answers that named the brand, to one decimal place. Null when there are no answers in those dates.
brand4positionWhere 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.

Request
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"
Response: Every current prompt, with its last 30 days
{
  "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 1

    Where the account's markets live. Get the workspace answers with it.

  • marketIdintegerat least 1

    Only this market: the number after /presence/ in the market's address in Silktide. Left out, every market the API key's user can see.

  • frominteger

    Only answers asked for at or after this time, in Unix seconds. Defaults to 30 days before to.

  • tointeger

    Only answers asked for at or before this time, in Unix seconds. Defaults to now.

  • platformsstring

    Only these assistants, by id, comma-separated, such as chatgpt,gemini. Left out, all of them. An unknown id matches nothing.

  • topicsstring

    Only these topics, by id, comma-separated. Left out, all of them.

  • arenastring

    Which prompts' answers to read: market for prompts about a subject, reputation for prompts about a brand itself, or all. Defaults to all. Any other value answers with an error.

    One ofallmarketreputation

  • measurestring

    The brands to add figures for, by id, comma-separated, at most four. Left out, the account's own brand.

  • columnsstring

    The 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.

  • sortstring

    The column to sort by, then :a for ascending or :d for descending, such as pageViews:d. Left out, the table's own order.

  • searchstring

    Only rows matching this text. What it searches depends on the table, most often the URL or title.

  • pageintegerat least 1

    The page of rows to return, from 1. Defaults to 1.

  • rowsPerPageintegerat least 1

    How many rows a page holds. Defaults to 100.

  • criteriastring

    Filters on the table's columns, as column:value, joined with ;. status takes current (active and paused, the default), active, paused, suggested, deleted or all. isBranded takes branded or non-branded. Such as status:all;isBranded:non-branded.

Response

200JSON.

  • resultobjectrequired

    The answer.

    Show 6 fields
    • pageintegerrequiredat least 1

      The page returned. Not always the page asked for, when that was out of range.

    • minPageintegerrequiredat least 1

      The first page. Always 1.

    • maxPageintegerrequired

      The last page at this rowsPerPage. With no rows, 0 or 1 depending on the table.

    • numRowsintegerrequired

      How many rows there are across every page.

    • rowsPerPageintegerrequiredat least 1

      How many rows a page holds.

    • rowslist of objectsrequired

      The rows on this page.

      Show 10 fields
      • promptIdintegerrequiredat least 1

        The prompt.

      • topicIdintegerrequiredat least 1

        Its topic. See Get topics.

      • topicNamestringrequired

        Its topic's name.

      • chatTextstringrequired

        The prompt as put to a chat assistant.

      • searchTextstringrequired

        The same question as typed into a search engine.

      • isBrandedbooleanrequired

        Whether the prompt names a brand.

      • statusstringrequired

        active (being asked), paused (kept, but over the plan's allowance), suggested (not in use yet) or deleted.

        One ofactivepausedsuggesteddeleted

      • responsesintegerrequired

        Answers to it between from and to.

      • brandsNamedintegerrequiredcan be null

        How many tracked brands those answers named between them. Null when it has no answers in those dates.

      • lastMeasuredAtintegerrequired

        When its latest answer in those dates was asked for. 0 when it has none.

  • selectorstringrequired

    The query that answered, as its path: /v1/results/scores.

  • durationnumberrequired

    Seconds Silktide took to answer.

Errors

StatusTypeWhen
200EditionNotAvailableThe account does not have Silktide 5. Its status is 403. The body is an error despite the status.
200RuntimeNo 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.
200AccessDeniedNo 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.
200Internalsort names a column the table does not have. Its status is 500. The body is an error despite the status.
401NotLoggedInNo API key was sent, or it is not a key for this region.(any operation)
429TooManyRequestsToo 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.