Skip to content

Add currentPath parameter to assistant API#3786

Open
mintlify-development[bot] wants to merge 1 commit intomainfrom
add-currentpath-param-1772056794
Open

Add currentPath parameter to assistant API#3786
mintlify-development[bot] wants to merge 1 commit intomainfrom
add-currentpath-param-1772056794

Conversation

@mintlify-development
Copy link
Contributor

@mintlify-development mintlify-development bot commented Feb 25, 2026

Summary

  • Added currentPath parameter to v1 and v2 assistant message endpoints
  • When provided, the assistant uses the current page path to provide more contextual responses
  • Maximum length: 200 characters

Note

Low Risk
Documentation/OpenAPI-only change adding an optional request field; no runtime logic changes or security-sensitive behavior appears in this PR.

Overview
Adds an optional currentPath field to the assistant message request body for both /v1/assistant/{domain}/message and /v2/assistant/{domain}/message, allowing clients to pass the user’s current page path (max 200 chars) to improve response relevance.

Updates the API reference MDX pages and the discovery-openapi.json schema to document and advertise the new parameter alongside existing optional context.

Written by Cursor Bugbot for commit 46dba71. This will update automatically on new commits. Configure here.

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