Microsoft Fabric Updates Blog

Announcing the Availability of REST APIs for Connections and Gateways in Microsoft Fabric

We are excited to announce the preview availability of REST APIs for connections and gateways in Microsoft Fabric. These new APIs provide developers with powerful tools to programmatically manage and interact with connections and gateways within the Fabric ecosystem.

Connections REST API

The Connections REST API allows you to create, retrieve, update, and delete connections in Microsoft Fabric. Here’s an example payload of how to create a new connection using the API:

POST https://api.fabric.microsoft.com/v1/connections

{
  "connectivityType": "ShareableCloud",
  "displayName": "ContosoCloudConnection",
  "connectionDetails": {
    "type": "SQL",
    "creationMethod": "SQL",
    "parameters": [
      {
        "dataType": "Text",
        "name": "server",
        "value": "contoso.database.windows.net"
      },
      {
        "dataType": "Text",
        "name": "database",
        "value": "sales"
      }
    ]
  },
  "privacyLevel": "Organizational",
  "credentialDetails": {
    "singleSignOnType": "None",
    "connectionEncryption": "NotEncrypted",
    "skipTestConnection": false,
    "credentials": {
      "credentialType": "Basic",
      "username": "admin",
      "password": "********"
    }
  }
}

This API call creates a new SQL Server cloud connection named “ContosoCloudConnection” with the specified connection details.

You can use the APIs to create connections that work across cloud gateways, VNet data gateways, and on-premises data gateways.

Gateways REST API

The Gateways REST API enables you to manage data gateways, which are crucial for connecting to data sources. It includes VNet data gateways as well. Here’s an example of how to retrieve a list of gateways:

GET https://api.fabric.microsoft.com/v1/gateways

This API call returns a list of all gateways associated with your account.

Benefits of Using REST APIs

  1. Automation: Streamline your workflows by programmatically managing connections and gateways.
  2. Integration: Easily incorporate Fabric functionality into your existing applications and systems.
  3. Flexibility: Gain fine-grained control over your Fabric resources through API calls.

Getting Started

We encourage developers to explore the comprehensive documentation for both the Connections and Gateways REST APIs to discover the full range of available endpoints and operations.

You can also try these APIs directly through our documentation.

Screenshot of the gateway API documentation article where you can try out the API
Try it functionality in APIs


By leveraging these new REST APIs, you can unlock new possibilities for managing and integrating Microsoft Fabric into your data ecosystem. Happy coding!

Related blog posts

Announcing the Availability of REST APIs for Connections and Gateways in Microsoft Fabric

December 11, 2025 by Faisal Mohamood

A Leader in Data Integration We’re thrilled to share that Microsoft has been named a Leader in the 2025 Gartner Magic Quadrant for Data Integration Tools—our fifth consecutive year in this position. In our view, this recognition reflects our commitment to help organizations unify their data estate and unlock the full potential of AI. To … Continue reading “Microsoft Recognized as a Leader in the 2025 Gartner® Magic Quadrant™ for Data Integration Tools”

December 11, 2025 by Jene Zhang

This release brings consistent, secure, and scalable configuration management directly into notebooks—streamlining environment-aware development and CI/CD workflows without hardcoding. Why it Matters As projects grow, managing environment-specific settings can become complex. With Variable Library support in notebooks, you can: Key Highlights The following is an example of how to use Variable Library in notebook. Resources