<?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: Databricks Apps with FastAPI in Administration &amp; Architecture</title>
    <link>https://community.databricks.com/t5/administration-architecture/databricks-apps-with-fastapi/m-p/125827#M3692</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Make sure your token endpoint url is like this:&amp;nbsp;&lt;SPAN&gt;&lt;A href="https://community.databricks.com/" target="_blank"&gt;https://&amp;lt;databricks-instance&amp;gt;/oidc/v1/token&lt;/A&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Refer here for&amp;nbsp;workspace-level access token:&amp;nbsp;&lt;A href="https://docs.databricks.com/aws/en/dev-tools/auth/oauth-m2m" target="_blank"&gt;https://docs.databricks.com/aws/en/dev-tools/auth/oauth-m2m&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Also make sure you have granted access of the service principal to the app:&amp;nbsp;&lt;A href="https://apps-cookbook.dev/docs/fastapi/getting_started/connections/connect_from_app" target="_blank"&gt;https://apps-cookbook.dev/docs/fastapi/getting_started/connections/connect_from_app&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 21 Jul 2025 08:39:40 GMT</pubDate>
    <dc:creator>AndyK</dc:creator>
    <dc:date>2025-07-21T08:39:40Z</dc:date>
    <item>
      <title>Databricks Apps with FastAPI</title>
      <link>https://community.databricks.com/t5/administration-architecture/databricks-apps-with-fastapi/m-p/122223#M3489</link>
      <description>&lt;P&gt;I have a FastAPI Databricks App deployed to a hosted workspace. How can I call the API from external tools like Postman?&lt;/P&gt;&lt;P&gt;P.S. I was able to call the API within the same browser.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jun 2025 08:38:35 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/databricks-apps-with-fastapi/m-p/122223#M3489</guid>
      <dc:creator>AndyK</dc:creator>
      <dc:date>2025-06-19T08:38:35Z</dc:date>
    </item>
    <item>
      <title>Re: Databricks Apps with FastAPI</title>
      <link>https://community.databricks.com/t5/administration-architecture/databricks-apps-with-fastapi/m-p/122328#M3501</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/170694"&gt;@AndyK&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;External tools don’t share browser’s login context, so you’ll need to add a bearer token in the Authorization header manually.&lt;/P&gt;&lt;P&gt;Start by generating an access token. You can either use the &lt;A href="https://docs.databricks.com/aws/en/dev-tools/cli" target="_self"&gt;Databricks CLI&lt;/A&gt; (databricks auth token) to get an OAuth token, or create a &lt;A href="https://docs.databricks.com/aws/en/dev-tools/auth#personal-access-tokens" target="_self"&gt;Personal Access Token&lt;/A&gt; (PAT) from your workspace settings.&lt;BR /&gt;Then in Postman, enter your API endpoint like:&lt;BR /&gt;https://&amp;lt;workspace-host&amp;gt;/api/&amp;lt;endpoint-path&amp;gt;&lt;BR /&gt;Go to the Authorization tab, choose Bearer Token, and paste your token.&lt;/P&gt;&lt;P&gt;Make sure you have CAN USE permission on the Databricks App. Also, note that tokens,especially OAuth, can expire (usually in about an hour), so you might need to generate new one when needed&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jun 2025 09:40:35 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/databricks-apps-with-fastapi/m-p/122328#M3501</guid>
      <dc:creator>SP_6721</dc:creator>
      <dc:date>2025-06-20T09:40:35Z</dc:date>
    </item>
    <item>
      <title>Re: Databricks Apps with FastAPI</title>
      <link>https://community.databricks.com/t5/administration-architecture/databricks-apps-with-fastapi/m-p/124067#M3585</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;PAT doesn't seem to work, but we use a workspace token and it was able to go through. Thanks&lt;/P&gt;</description>
      <pubDate>Sat, 05 Jul 2025 01:22:05 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/databricks-apps-with-fastapi/m-p/124067#M3585</guid>
      <dc:creator>AndyK</dc:creator>
      <dc:date>2025-07-05T01:22:05Z</dc:date>
    </item>
    <item>
      <title>Re: Databricks Apps with FastAPI</title>
      <link>https://community.databricks.com/t5/administration-architecture/databricks-apps-with-fastapi/m-p/125775#M3688</link>
      <description>&lt;P&gt;What do you mean by workspace token? Can you elaborate a little?&lt;/P&gt;</description>
      <pubDate>Sun, 20 Jul 2025 15:33:25 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/databricks-apps-with-fastapi/m-p/125775#M3688</guid>
      <dc:creator>Gareema</dc:creator>
      <dc:date>2025-07-20T15:33:25Z</dc:date>
    </item>
    <item>
      <title>Re: Databricks Apps with FastAPI</title>
      <link>https://community.databricks.com/t5/administration-architecture/databricks-apps-with-fastapi/m-p/125776#M3689</link>
      <description>&lt;P&gt;How to generate one?&lt;/P&gt;</description>
      <pubDate>Sun, 20 Jul 2025 15:35:44 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/databricks-apps-with-fastapi/m-p/125776#M3689</guid>
      <dc:creator>Gareema</dc:creator>
      <dc:date>2025-07-20T15:35:44Z</dc:date>
    </item>
    <item>
      <title>Re: Databricks Apps with FastAPI</title>
      <link>https://community.databricks.com/t5/administration-architecture/databricks-apps-with-fastapi/m-p/125777#M3690</link>
      <description>&lt;P&gt;I tried generating, the token this for service principle:&lt;/P&gt;&lt;P&gt;export CLIENT_ID=&amp;lt;client-id&amp;gt;&lt;BR /&gt;export CLIENT_SECRET=&amp;lt;client-secret&amp;gt;&lt;/P&gt;&lt;P&gt;curl --request POST \&lt;BR /&gt;--url &amp;lt;token-endpoint-URL&amp;gt; \&lt;BR /&gt;--user "$CLIENT_ID:$CLIENT_SECRET" \&lt;BR /&gt;--data 'grant_type=client_credentials&amp;amp;scope=all-apis'&lt;BR /&gt;&lt;BR /&gt;It did generates a token, but that token still doesn't work with the Databricks App i created.&amp;nbsp;&lt;BR /&gt;I am just passing it like:&lt;BR /&gt;&lt;BR /&gt;response = requests.get(&lt;BR /&gt;"https://&amp;lt;app specific url&amp;gt;.azure.databricksapps.com/api/v1/table",&lt;BR /&gt;headers={"Authorization": f"Bearer {token} "})&lt;BR /&gt;print(response.json())&lt;/P&gt;</description>
      <pubDate>Sun, 20 Jul 2025 16:09:01 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/databricks-apps-with-fastapi/m-p/125777#M3690</guid>
      <dc:creator>Gareema</dc:creator>
      <dc:date>2025-07-20T16:09:01Z</dc:date>
    </item>
    <item>
      <title>Re: Databricks Apps with FastAPI</title>
      <link>https://community.databricks.com/t5/administration-architecture/databricks-apps-with-fastapi/m-p/125827#M3692</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Make sure your token endpoint url is like this:&amp;nbsp;&lt;SPAN&gt;&lt;A href="https://community.databricks.com/" target="_blank"&gt;https://&amp;lt;databricks-instance&amp;gt;/oidc/v1/token&lt;/A&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Refer here for&amp;nbsp;workspace-level access token:&amp;nbsp;&lt;A href="https://docs.databricks.com/aws/en/dev-tools/auth/oauth-m2m" target="_blank"&gt;https://docs.databricks.com/aws/en/dev-tools/auth/oauth-m2m&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Also make sure you have granted access of the service principal to the app:&amp;nbsp;&lt;A href="https://apps-cookbook.dev/docs/fastapi/getting_started/connections/connect_from_app" target="_blank"&gt;https://apps-cookbook.dev/docs/fastapi/getting_started/connections/connect_from_app&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jul 2025 08:39:40 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/databricks-apps-with-fastapi/m-p/125827#M3692</guid>
      <dc:creator>AndyK</dc:creator>
      <dc:date>2025-07-21T08:39:40Z</dc:date>
    </item>
  </channel>
</rss>

