Sessions
Control session settings
Changed onpost/api/sessions
Request
- Base URL/ (relative, and the document was published on a file host, not at the API’s origin)
- Auth
- API key in cookie __Host-mc-session
- or API key in header x-api-key
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
action'set-thinking' | 'set-verbose' | 'set-reasoning' | 'set-label' required
Request body
Response
Session control applied
Changes
- breaking
added the new required
queryrequest parameteraction - breaking
added required request body
- info
added the media type
application/jsonfor the response with the status - info
added the non-success response with the status
- breaking
- info
endpoint added
- info