Record an issue report
const url = 'https://example.com/v1/yac/issue_report';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"description":"example","contact":"example","source":"menu","session":{}}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/v1/yac/issue_report \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "description": "example", "contact": "example", "source": "menu", "session": {} }'Record a user’s issue report, with their session export, in LangFuse.
Filed under the conversation’s LangFuse session, next to the traces of the turns being reported. Needs LangFuse: without it there is nowhere to put a report, so the endpoint says so instead of accepting and dropping it.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Header Parameters
Section titled “Header Parameters”Request Bodyrequired
Section titled “Request Bodyrequired”object
The user’s note.
Where the report was filed from: the Session menu, an agent offer in the chat, or the crash screen.
The client’s session export (on the crash screen, plus an error block).
object
Responses
Section titled “Responses”Successful Response
Missing, invalid or expired token (detail).
An error body. Authentication failures carry FastAPI’s detail
instead of error.
object
object
Example generated
{ "error": "example", "code": "example", "errors": [ "example" ], "detail": [ {} ]}too_large: the report is larger than 10 MiB.
An error body. Authentication failures carry FastAPI’s detail
instead of error.
object
object
Example generated
{ "error": "example", "code": "example", "errors": [ "example" ], "detail": [ {} ]}bad_request: the report is invalid; errors lists every bad field.
An error body. Authentication failures carry FastAPI’s detail
instead of error.
object
object
Example generated
{ "error": "example", "code": "example", "errors": [ "example" ], "detail": [ {} ]}issue_reports_unavailable: LangFuse is not configured, so reports cannot be recorded. Or: The identity provider’s keys could not be fetched (JWT_JWKS_URL).
An error body. Authentication failures carry FastAPI’s detail
instead of error.
object
object
Example generated
{ "error": "example", "code": "example", "errors": [ "example" ], "detail": [ {} ]}