Create a pull story
Generate a pull story from a structured code brief. Returns immediately
with status: generating on a cache miss. Poll GET /stories/{id}
until status: ready.
Generation can take several minutes depending on brief size.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
3 - 140"How auth works in this codebase"
10 - 2000"JWT-based auth. Client hits /login, server validates credentials, issues JWT, and stores the session in Redis."
1 - 20 elements3 - 7 elements3 - 50083 - 200Response
Cached story is ready
"brief_0123abcd4567ef89"
generating, ready, failed "https://pullstory.com/s/brief_0123abcd4567ef89"
false
"Another request is already generating this story"
90
142
8
"How auth works in this codebase"
"Story generation failed. Retry with a smaller brief."