Test a website now
/v1/websites/{websiteId}/testUses allowanceStarts a test. With no body, Silktide retests the whole website, finding new
pages as it goes. With urls, it tests only those pages and does not look
for others.
The response is an empty 201 once the test is queued, not when it
finishes.
URLs outside the website's rules are skipped without an error. If none of
them fit, nothing is tested, and the response is still 201.
A website runs at most three website or section tests at once; tests of
specific URLs do not count towards that. A fourth gets 403 AccessDenied
until one finishes.
curl -X POST "https://api.eu.silktide.com/v1/websites/2/test" \
-H "Authorization: silktide token=$SILKTIDE_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'Request
Path parameters
websiteIdintegerrequiredat least 1The website.
Body
JSON, sent with Content-Type: application/json.
urlslist of stringsTest only these pages, as full URLs, instead of the whole website. Pages it does not have yet are added if they fit its rules and its balance.
Response
201No body.
Errors
| Status | Type | When |
|---|---|---|
| 404 | ModelNotFound | Nothing with that id exists in the account, or the API key's user cannot see it. |
| 403 | AccessDenied | The API key's user cannot test this website, the account has no tests left, or the website already has too many tests running. |
| 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 test this website
- Plan feature
- None
- Edition
- Silktide 4 and Silktide 5
- Cost
- Uses the account's allowance
- 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.