List websites and their sections
/v1/websitesReturns every website the API key's user can see, one entry per section. Each
website has a section 0, which is the whole website, and any sections made
within it have ids of their own. A subsiteId names one of them, as
{websiteId}-{sectionId}.
Use the websiteId with the other Websites operations, and the subsiteId
with results queries that take a section.
tags is only sent when you ask for it with includeTags=1, and even then it
is left out, rather than sent empty, for a section with no tags. Treat a
missing tags as none.
curl "https://api.eu.silktide.com/v1/websites?includeTags=1&orderBy=name" \
-H "Authorization: silktide token=$SILKTIDE_API_KEY"{
"websites": [
{
"subsiteId": "2-0",
"websiteId": 2,
"sectionId": 0,
"name": "Example",
"homeUrl": "https://example.com/",
"created": 1790216529,
"websiteName": "Example",
"websiteStatus": "live",
"numPages": 812,
"numDocuments": 40,
"thumbnailUrl": "https://example-bucket.s3.amazonaws.com/websites/2/screenshots/desktop-thumb.webp",
"tags": [
{
"tagId": "marketing",
"entityType": "section",
"entityId": "2-0",
"label": "Marketing",
"color": "#EBA52C",
"tagGroup": ""
}
]
},
{
"subsiteId": "2-1",
"websiteId": 2,
"sectionId": 1,
"name": "Blog",
"homeUrl": "https://example.com/blog/",
"created": 1790216600,
"websiteName": "Example",
"websiteStatus": "live",
"numPages": 120,
"numDocuments": 0,
"thumbnailUrl": ""
}
]
}Request
Query parameters
searchTextstringOnly sections whose name or home page contains this.
tagIdslist of stringsOnly sections with at least one of these tags. Send as
tagIds[]=….includeTagsstring1to include each section's tags. Any value other than0or empty counts as1.One of
01orderBystringThe order. Defaults to
recentlyViewed.One of
namerecentlyViewedrecentlyCreatedrecentlyTestedleastRecentlyTested
Response
200JSON.
websiteslist of objectsrequiredOne entry per section the API key's user can see. Section
0of each website is the whole website.Show 13 fieldsHide fields
subsiteIdstringrequired{websiteId}-{sectionId}The website and section together, as
{websiteId}-{sectionId}.websiteIdintegerrequiredat least 1The website.
sectionIdintegerrequiredThe section within the website.
0is the whole website.namestringrequiredThe section's name. For section
0, the website's name.homeUrlstringrequiredThe section's home page. Can be empty.
createdintegerrequiredWhen the section was created.
websiteNamestringrequiredThe website's name.
websiteStatusstringrequiredinstallingwhile Silktide creates it,setupwhile it is being configured before it goes live,liveonce it is tested.One of
installingsetuplivenumPagesintegerrequiredPages Silktide has found in the section.
numDocumentsintegerrequiredDocuments (PDFs) Silktide has found in the section.
thumbnailUrlstringrequiredA small screenshot of the section. Empty until one exists.
lastViewedintegerWhen the API key's user last viewed the section.
0if never. Only whenorderByisrecentlyViewed, the default; absent with any other order.tagslist of objectsThe section's tags. Only with
includeTags, and absent when the section has none.Show 6 fieldsHide fields
tagIdstringrequiredThe tag's id.
entityTypestringrequiredWhat the tag is on.
sectionfor a website or section.entityIdstringrequiredThe
subsiteIdof the section it is on.labelstringrequiredThe tag's name.
colorstringrequiredIts color, as a hex code such as
#EBA52C.tagGroupstringrequiredThe group it belongs to. Empty when it has none.
Errors
| Status | Type | When |
|---|---|---|
| 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
- Any user of the account
- Plan feature
- None
- Edition
- Silktide 4 and Silktide 5
- Cost
- Free
- Available since
- v1.0.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.