Hi,
We run a monitoring integration that reads a Genie space's conversations via the Conversation API, using a service principal with CAN MANAGE on the space - capturing each conversation's prompt, generated SQL, and query result.
Listing conversations and reading the prompt + SQL work fine. Fetching the query result fails:
GET /genie/spaces/{space}/conversations/{conv}/messages/{msg}/attachments/{att}/query-result
- Most: 404 NOT_FOUND - "Could not generate a reply because the required credential delegation was not found."
- Some: 500 DATA_LOSS - "Attempted to use embedded credentials but could not find permission delegation name."
The wording suggests the results were produced under a credential/permission delegation that the service principal can't resolve when fetching them later.
What we're trying to figure out is what to change so a monitoring service principal can read these results:
1. Is retrieval tied to how the space runs queries - end-user credentials vs a shared/"maker" service credential - and would switching to a shared credential make results retrievable by a service principal?
2. Is there a space/workspace setting (e.g. "Genie chat sharing" / "Reviewable by space managers") that makes results retrievable via the API for a non-owner service principal, or does it only affect UI visibility?
3. Is the 500 DATA_LOSS / "permission delegation name" a known issue or a fixable misconfiguration? Happy to share server-side request_ids if needed.
The goal is to advise the space owner on the exact change needed, or, if we need to change something in how we use the APIs, address that as well. Thanks!
Thanks in advance!