Sources

Learn the product from its public site and docs (answers at once; the inventory follows).

Sleeper reads the product's public site and docs (its pages, llms.txt, sitemap and OpenAPI description, up to 24 pages, obeying robots.txt) and lists its features, who it is for, what it claims and what it costs, each with the page it came from. When the product's app is connected to Sleeper — a sign-in Sleeper has tested — Sleeper also signs in with that connection and walks the app's own screens, honouring any areas you have blacked out. With no connection, nothing but public pages is read: no login, cookie or key is sent for them, and private or reserved addresses are refused. It runs in the background: the answer is the run (learning), and the inventory reads ready in a minute or two. For a product project only. Free, up to 10 runs a day. siteUrl is the product's https address; leave it out to read the last run's site again. connectionId names the project's own app connection to walk; leave it out to use its verified one (public pages only when it has none). 202 with the new run; 200 with alreadyRunning: true and the run already learning (no second run starts, so no Idempotency-Key). Poll GET until the run is ready or failed. 400 validation_failed for an address that is not https or not public, or for a connectionId that is not this project's own connection (field connectionId); 409 project_not_product for a story project; 403 usage_limit_reached past the daily limit.

post/story-projects/{projectId}/feature-inventory

Request

  • Base URL: https://docs.sleeperhit.studio/api/v1
  • URL: https://docs.sleeperhit.studio/api/v1/story-projects/{projectId}/feature-inventory
  • Auth: HTTP bearer

Request body

siteUrlstring

The product's public site (https, a public host). Leave out on a refresh: the last run's site is read again.

connectionIdstring nullable

The project's app connection the run signs in with and walks (surrounding whitespace is trimmed); null learns the public site only. Leave it out to use the project's verified connection (or its public pages when it has none).

Response

A run was already learning: this is it (alreadyRunning: true).

projectIdstring required
alreadyRunningboolean required

True when a run was already learning: this is that run, and no new one started.

Changes

No recorded changes to this operation across all 1 revision of this API.