<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Free account: Genie API isn't working in Warehousing &amp; Analytics</title>
    <link>https://community.databricks.com/t5/warehousing-analytics/free-account-genie-api-isn-t-working/m-p/138036#M2325</link>
    <description>&lt;P&gt;Greetings&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/196795"&gt;@hch_fiq&lt;/a&gt;&amp;nbsp;,&amp;nbsp; thanks for sharing the context—this behavior is almost always a permissions/entitlements mismatch between the &lt;STRONG&gt;service principal&lt;/STRONG&gt; and the &lt;STRONG&gt;Genie space ACLs&lt;/STRONG&gt;.&lt;/P&gt;
&lt;DIV class="paragraph"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;H3 class="paragraph"&gt;What’s happening&lt;/H3&gt;
&lt;UL&gt;
&lt;LI class="paragraph"&gt;The &lt;STRONG&gt;List Genie spaces&lt;/STRONG&gt; endpoint (&lt;CODE&gt;GET /api/2.0/genie/spaces&lt;/CODE&gt;) only returns spaces the caller has access to; if the caller has no access, you’ll see an empty result (often rendered as &lt;CODE&gt;{}&lt;/CODE&gt; by some clients).&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV class="paragraph"&gt;To even see a space in the list, the caller needs at least &lt;STRONG&gt;CAN VIEW/CAN RUN&lt;/STRONG&gt; on that space per &lt;STRONG&gt;Genie space ACLs&lt;/STRONG&gt;.&lt;/DIV&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV class="paragraph"&gt;For using the &lt;STRONG&gt;Conversation APIs&lt;/STRONG&gt;, the caller also needs the &lt;STRONG&gt;Databricks SQL entitlement&lt;/STRONG&gt; and warehouse access; if these are missing, subsequent calls will fail even after you can list spaces.&lt;/DIV&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;H3 class="paragraph"&gt;Fix it step-by-step&lt;/H3&gt;
&lt;UL&gt;
&lt;LI class="paragraph"&gt;In the Genie UI, open each space and use &lt;STRONG&gt;Share → add your service principal → grant CAN VIEW (or CAN EDIT)&lt;/STRONG&gt;. This is what allows the SP to see the space in listings.&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV class="paragraph"&gt;Ensure the service principal has the &lt;STRONG&gt;Databricks SQL entitlement&lt;/STRONG&gt; and at least &lt;STRONG&gt;CAN USE&lt;/STRONG&gt; on the target SQL warehouse for that space (if you plan to call conversation/query endpoints).&lt;/DIV&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV class="paragraph"&gt;Verify you are calling the &lt;STRONG&gt;workspace-scoped host&lt;/STRONG&gt; (not the account-level host) and the correct endpoint: &lt;CODE&gt;bash
curl -s -H "Authorization: Bearer $TOKEN" \
  https://&amp;lt;workspace-host&amp;gt;/api/2.0/genie/spaces
&lt;/CODE&gt;&lt;/DIV&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV class="paragraph"&gt;Optionally, check audit logs for the &lt;CODE&gt;aibiGenie.listSpaces&lt;/CODE&gt; event to confirm requests are reaching the workspace and how they’re being authorized.&lt;/DIV&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;H3 class="paragraph"&gt;Expected response shape&lt;/H3&gt;
&lt;DIV class="paragraph"&gt;When the SP has access, the endpoint returns a &lt;CODE&gt;spaces&lt;/CODE&gt; array with each space’s &lt;CODE&gt;id&lt;/CODE&gt;, &lt;CODE&gt;title&lt;/CODE&gt;, and &lt;CODE&gt;description&lt;/CODE&gt; (and other fields depending on version).&lt;/DIV&gt;
&lt;DIV class="paragraph"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;H3 class="paragraph"&gt;Why your UI view differs from the API&lt;/H3&gt;
&lt;DIV class="paragraph"&gt;You can see your two spaces in the UI because they’re shared with your user, but your service principal is a different identity without space-level permissions. The List Spaces API reflects the caller’s access, not the creator’s. The screenshot you attached matches this scenario (community post describing &lt;CODE&gt;{}&lt;/CODE&gt; when listing with SP).&lt;/DIV&gt;
&lt;DIV class="paragraph"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="paragraph"&gt;Hope this helps, Louis.&lt;/DIV&gt;</description>
    <pubDate>Thu, 06 Nov 2025 20:31:26 GMT</pubDate>
    <dc:creator>Louis_Frolio</dc:creator>
    <dc:date>2025-11-06T20:31:26Z</dc:date>
    <item>
      <title>Free account: Genie API isn't working</title>
      <link>https://community.databricks.com/t5/warehousing-analytics/free-account-genie-api-isn-t-working/m-p/137872#M2322</link>
      <description>&lt;P&gt;Hi, I've created a service principal and setup OAuth - I can successfully call REST APIs to see workspace details. But, when I try to list the genie spaces in a workspace, I get {} as the result. In the UI, I can see two genie spaces I've created. Any hints on what to do now?&lt;/P&gt;</description>
      <pubDate>Thu, 06 Nov 2025 05:28:23 GMT</pubDate>
      <guid>https://community.databricks.com/t5/warehousing-analytics/free-account-genie-api-isn-t-working/m-p/137872#M2322</guid>
      <dc:creator>hch_fiq</dc:creator>
      <dc:date>2025-11-06T05:28:23Z</dc:date>
    </item>
    <item>
      <title>Re: Free account: Genie API isn't working</title>
      <link>https://community.databricks.com/t5/warehousing-analytics/free-account-genie-api-isn-t-working/m-p/138036#M2325</link>
      <description>&lt;P&gt;Greetings&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/196795"&gt;@hch_fiq&lt;/a&gt;&amp;nbsp;,&amp;nbsp; thanks for sharing the context—this behavior is almost always a permissions/entitlements mismatch between the &lt;STRONG&gt;service principal&lt;/STRONG&gt; and the &lt;STRONG&gt;Genie space ACLs&lt;/STRONG&gt;.&lt;/P&gt;
&lt;DIV class="paragraph"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;H3 class="paragraph"&gt;What’s happening&lt;/H3&gt;
&lt;UL&gt;
&lt;LI class="paragraph"&gt;The &lt;STRONG&gt;List Genie spaces&lt;/STRONG&gt; endpoint (&lt;CODE&gt;GET /api/2.0/genie/spaces&lt;/CODE&gt;) only returns spaces the caller has access to; if the caller has no access, you’ll see an empty result (often rendered as &lt;CODE&gt;{}&lt;/CODE&gt; by some clients).&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV class="paragraph"&gt;To even see a space in the list, the caller needs at least &lt;STRONG&gt;CAN VIEW/CAN RUN&lt;/STRONG&gt; on that space per &lt;STRONG&gt;Genie space ACLs&lt;/STRONG&gt;.&lt;/DIV&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV class="paragraph"&gt;For using the &lt;STRONG&gt;Conversation APIs&lt;/STRONG&gt;, the caller also needs the &lt;STRONG&gt;Databricks SQL entitlement&lt;/STRONG&gt; and warehouse access; if these are missing, subsequent calls will fail even after you can list spaces.&lt;/DIV&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;H3 class="paragraph"&gt;Fix it step-by-step&lt;/H3&gt;
&lt;UL&gt;
&lt;LI class="paragraph"&gt;In the Genie UI, open each space and use &lt;STRONG&gt;Share → add your service principal → grant CAN VIEW (or CAN EDIT)&lt;/STRONG&gt;. This is what allows the SP to see the space in listings.&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV class="paragraph"&gt;Ensure the service principal has the &lt;STRONG&gt;Databricks SQL entitlement&lt;/STRONG&gt; and at least &lt;STRONG&gt;CAN USE&lt;/STRONG&gt; on the target SQL warehouse for that space (if you plan to call conversation/query endpoints).&lt;/DIV&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV class="paragraph"&gt;Verify you are calling the &lt;STRONG&gt;workspace-scoped host&lt;/STRONG&gt; (not the account-level host) and the correct endpoint: &lt;CODE&gt;bash
curl -s -H "Authorization: Bearer $TOKEN" \
  https://&amp;lt;workspace-host&amp;gt;/api/2.0/genie/spaces
&lt;/CODE&gt;&lt;/DIV&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV class="paragraph"&gt;Optionally, check audit logs for the &lt;CODE&gt;aibiGenie.listSpaces&lt;/CODE&gt; event to confirm requests are reaching the workspace and how they’re being authorized.&lt;/DIV&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;H3 class="paragraph"&gt;Expected response shape&lt;/H3&gt;
&lt;DIV class="paragraph"&gt;When the SP has access, the endpoint returns a &lt;CODE&gt;spaces&lt;/CODE&gt; array with each space’s &lt;CODE&gt;id&lt;/CODE&gt;, &lt;CODE&gt;title&lt;/CODE&gt;, and &lt;CODE&gt;description&lt;/CODE&gt; (and other fields depending on version).&lt;/DIV&gt;
&lt;DIV class="paragraph"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;H3 class="paragraph"&gt;Why your UI view differs from the API&lt;/H3&gt;
&lt;DIV class="paragraph"&gt;You can see your two spaces in the UI because they’re shared with your user, but your service principal is a different identity without space-level permissions. The List Spaces API reflects the caller’s access, not the creator’s. The screenshot you attached matches this scenario (community post describing &lt;CODE&gt;{}&lt;/CODE&gt; when listing with SP).&lt;/DIV&gt;
&lt;DIV class="paragraph"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="paragraph"&gt;Hope this helps, Louis.&lt;/DIV&gt;</description>
      <pubDate>Thu, 06 Nov 2025 20:31:26 GMT</pubDate>
      <guid>https://community.databricks.com/t5/warehousing-analytics/free-account-genie-api-isn-t-working/m-p/138036#M2325</guid>
      <dc:creator>Louis_Frolio</dc:creator>
      <dc:date>2025-11-06T20:31:26Z</dc:date>
    </item>
    <item>
      <title>Re: Free account: Genie API isn't working</title>
      <link>https://community.databricks.com/t5/warehousing-analytics/free-account-genie-api-isn-t-working/m-p/138039#M2326</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/196795"&gt;@hch_fiq&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;You need setup proper permissions for your service account to see genie space. Look at below Genie space ACL table from documentation. When there's no ACL set you won't see anynting. So, your Service Principal needs at least CAN VIEW/CAN RUN permission.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="szymon_dybczak_0-1762462568978.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/21427i8B124FB8CD0AF51F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="szymon_dybczak_0-1762462568978.png" alt="szymon_dybczak_0-1762462568978.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Nov 2025 20:58:10 GMT</pubDate>
      <guid>https://community.databricks.com/t5/warehousing-analytics/free-account-genie-api-isn-t-working/m-p/138039#M2326</guid>
      <dc:creator>szymon_dybczak</dc:creator>
      <dc:date>2025-11-06T20:58:10Z</dc:date>
    </item>
    <item>
      <title>Re: Free account: Genie API isn't working</title>
      <link>https://community.databricks.com/t5/warehousing-analytics/free-account-genie-api-isn-t-working/m-p/138061#M2329</link>
      <description>&lt;P&gt;Thanks, this works. I guess I didn't realize that the ACLs were in the Share button view...didn't find that info easily in the documentation.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Nov 2025 05:19:23 GMT</pubDate>
      <guid>https://community.databricks.com/t5/warehousing-analytics/free-account-genie-api-isn-t-working/m-p/138061#M2329</guid>
      <dc:creator>hch_fiq</dc:creator>
      <dc:date>2025-11-07T05:19:23Z</dc:date>
    </item>
  </channel>
</rss>

