Attach a source to a project.
Accepts inline text, markdown, URL, and PDF sources. Requires Idempotency-Key for safe retries. Check /api/v1/capabilities.sources.types before sending a type. Set metadata.sourceContextMode to full when planning and final artifact writing must receive the complete integrity-verified retained text instead of the normal digest + preview; full mode fails rather than clipping. A producer that sends one source per item names it with producer + externalId; a repeat of an item the project already holds returns that source with deduplicated: true instead of storing it again.
Request
- Base URL: https://docs.sleeperhit.studio/api/v1
- URL: https://docs.sleeperhit.studio/api/v1/story-projects/{projectId}/sources
- Auth: HTTP bearer
Headers
Customer-generated stable identifier for safe retries of idempotent POST requests.
Request body
Response
The created source, or the live source already holding this item (deduplicated: true).
Changes
No recorded changes to this operation across all 1 revision of this API.