Get the id that other Presence queries take
/v1/results/accounts/presence/workspaces/tableAnswers with the workspaceId that every other Presence query needs. An account's markets live together in one workspace, so this is usually one row and its id does not change: read it once and keep it.
People never see a workspace in Silktide. What they work in is a market, and Presence says how to read one market through the API.
Only a key whose user can see all markets gets the row. If there are no rows, the account has not set up Presence, or the key's user is limited to some of its markets. In that case, Get answers in full with a marketId they can see answers with the workspaceId too.
curl "https://api.eu.silktide.com/v1/results/accounts/presence/workspaces/table" \
-H "Authorization: silktide token=$SILKTIDE_API_KEY"{
"result": {
"page": 1,
"minPage": 1,
"maxPage": 1,
"numRows": 1,
"rowsPerPage": 100,
"rows": [
{
"workspaceId": 1,
"brandId": 4,
"name": "Fake Wine Barrel",
"status": "active",
"updated": 1793610000
}
]
},
"selector": "/v1/results/accounts/presence/workspaces/table",
"duration": 0.05
}Request
Query parameters
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;.statustakesactive(the default),deletedorall, such asstatus:all.
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 5 fieldsHide fields
workspaceIdintegerrequiredat least 1The id every other Presence query takes as
workspaceId.brandIdintegerrequiredThe account's own brand, as
brandIdin Get brands.namestringrequiredIts name, often the account's own brand.
statusstringrequiredactive, ordeleted.One of
activedeletedupdatedintegerrequiredWhen it was last changed.
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. |
| 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 all markets
- 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.