{"openapi":"3.1.0","info":{"title":"Iris Token Mint (Mnémosyne)","description":"Mints Agent Studio secure-user-tokens so Iris can remember a visitor across sessions. POST /token {sub} -> {token, validUntil}.","version":"1.0.0"},"paths":{"/token":{"post":{"summary":"Mint a secure-user-token for a visitor's sub","operationId":"token_token_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenReq"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Token Token Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ask":{"post":{"summary":"Ask Iris one turn (the shared bot brain)","operationId":"ask_ask_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AskReq"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Ask Ask Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/feedback":{"post":{"summary":"Vote a previous Iris answer up/down (+ optional notes/tags)","operationId":"feedback_feedback_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FeedbackReq"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Feedback Feedback Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"AskReq":{"properties":{"channel":{"type":"string","title":"Channel"},"user":{"type":"string","title":"User"},"text":{"type":"string","title":"Text"},"conversationId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Conversationid"}},"type":"object","required":["channel","user","text"],"title":"AskReq"},"FeedbackReq":{"properties":{"messageId":{"type":"string","title":"Messageid"},"vote":{"type":"integer","title":"Vote"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"tags":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Tags"}},"type":"object","required":["messageId","vote"],"title":"FeedbackReq"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"TokenReq":{"properties":{"sub":{"type":"string","title":"Sub"}},"type":"object","required":["sub"],"title":"TokenReq"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}}},"servers":[{"url":"/iris/v1"}]}