Skip to content

docs(api-reference): document sessionId on record creation - #133

Draft
Yash1hi wants to merge 1 commit into
mainfrom
docs/record-session-id
Draft

docs(api-reference): document sessionId on record creation#133
Yash1hi wants to merge 1 commit into
mainfrom
docs/record-session-id

Conversation

@Yash1hi

@Yash1hi Yash1hi commented Aug 17, 2026

Copy link
Copy Markdown
Contributor

The public v2 Create Record endpoint accepts an optional sessionId that joins the record to its session's traces and attachments. The field is live on the API and described in the backend's generated spec (schemas/src/external.ts in the monorepo), but this repo's openapi.yaml didn't show it — API-import scripts have been relying on an undocumented field.

  • openapi.yaml — splices the sessionId property into the createRecord request body, synced verbatim from the backend's generated spec (spliced rather than regenerated, to keep the Stainless code samples intact).

Test plan

  • openapi.yaml parses as valid YAML and the property text matches the backend's generated schemas/openapi.yaml (verified).
  • npx mintlify dev renders the new field on the Create Record page.

@mintlify

mintlify Bot commented Aug 17, 2026

Copy link
Copy Markdown
Contributor

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
scorecard 🟡 Building Aug 17, 2026, 6:08 PM

💡 Tip: Enable Workflows to automatically generate PRs for you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant