> For the complete documentation index, see [llms.txt](https://documentation.astera.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://documentation.astera.com/astera-studio/workspace/connections.md).

# Connections

{% tabs %}
{% tab title="Database" %}

## Database Connection

A Database Connection in Astera Studio is a saved link to a database server — SQL Server, PostgreSQL, MySQL, Oracle, BigQuery, Snowflake, and more. Once a database connection is set up in your workspace, AI agents, Datapreps, and Dashboards can read from and write to that database without you needing to re-enter credentials each time.&#x20;

In this article, we will learn how to create a database connection, the providers we support, the fields each provider needs, and how to use the AI-suggested Database Connection cards that Astera Studio surfaces in chat.&#x20;

### Where Database Connections Live&#x20;

Database connections live in the DB Connections category of the Workspace Panel. Each connection is a saved .sact file in your workspace and is encrypted at rest in the tenant-scoped credential vault — Astera Studio never stores credentials in plain text.&#x20;

### Supported Database Providers&#x20;

Astera Studio supports more than twenty database providers out of the box. The most common are shown below; the full list appears in the Data Provider dropdown on the connection form.&#x20;

* Microsoft SQL Server (with Windows Authentication support)&#x20;
* PostgreSQL&#x20;
* MySQL and MariaDB&#x20;
* Oracle (ODP.NET and Managed ODP.NET)&#x20;
* Azure SQL Server, Azure Synapse (with Azure AD authentication)&#x20;
* Amazon Aurora MySQL and Aurora PostgreSQL&#x20;
* Snowflake (with S3 or Azure Blob staging)&#x20;
* Google BigQuery&#x20;
* IBM DB2, Netezza, Teradata, Vertica&#x20;

### Steps to Create a New Database Connection&#x20;

You can create a new database connection in two ways: from the workspace, or from an AI-suggested chat card. The form is the same; only the entry point differs.&#x20;

#### From the workspace&#x20;

1. Click ***Add Item > Database***.&#x20;

<figure><img src="/files/UvJWm5Vuy01hGe45NyR4" alt="" width="194"><figcaption></figcaption></figure>

2. The New Database Connection window will open.

<figure><img src="/files/VyGYbd5isWGyVaHPZJme" alt=""><figcaption></figcaption></figure>

3. Enter a meaningful Connection Name (for example, SalesProdReader). The name must be 80 characters or fewer and cannot contain reserved characters.&#x20;
4. Pick a Data Provider from the dropdown. The form below adapts to show only the fields the selected provider needs.&#x20;

<img src="/files/QxAM1OxtN7nCHQbc3p9O" alt="" height="208" width="576">

5. Fill in the provider-specific fields (server, database, port, schema, credentials).&#x20;
6. Click **Test Connection** to verify Astera Studio can reach the server with the credentials you supplied.&#x20;
7. Click Save. The connection appears under DB Connections in the Workspace Panel and is available for AI agents, Datapreps, and Dashboards immediately.&#x20;

#### From an AI-suggested chat card&#x20;

When the AI knows you need to connect to a database — for example, after you mention a production database by name in chat — it can drop a Database Connection card directly into the conversation. The card already knows the provider, host, port, and database name; you only supply the credentials.&#x20;

1. Describe in chat which database you want to connect with, and the agent creates a suggested card in your chat thread. &#x20;

<figure><img src="/files/ojZzRPKYjDQRN1458MPW" alt=""><figcaption></figcaption></figure>

2. Review the prefilled summary on the card (provider, host, port, database, authentication type).&#x20;
3. Click **Connect** (or Reconnect / Set up, depending on the card kind). The Database Connection editor opens with every field already populated.&#x20;

<figure><img src="/files/cfCeB4cpCBJCXr1cW32o" alt=""><figcaption></figcaption></figure>

4. Enter the credentials Astera Studio asks for — typically a username and password, or an Azure AD token.&#x20;
5. Click **Test Connection**, then **Save**.&#x20;

### Provider-Specific Fields&#x20;

Each provider shows the fields it needs and hides the ones it doesn't. The two most common shapes are shown below.&#x20;

#### SQL Server&#x20;

* Server Name — host name or IP address (required).&#x20;
* Database — pick from the dropdown, or type the name. Click Load Databases to populate the dropdown using the credentials you have entered.&#x20;
* Schema — optional, defaults to dbo.&#x20;
* Port — defaults to 1433.&#x20;
* Use Windows Authentication — checkbox. When ticked, Astera Studio uses the currently logged-in Windows user and hides the User / Password fields.&#x20;
* User ID and Password — required if Windows Authentication is not used.&#x20;

#### PostgreSQL&#x20;

* Server Name — host name or IP address (required).&#x20;
* Database — name of the database (required).&#x20;
* Schema — optional, defaults to public.&#x20;
* Port — defaults to 5432.&#x20;
* User ID and Password — required.&#x20;

#### Azure SQL Server&#x20;

Azure SQL Server adds an Azure-specific Authentication dropdown above the credentials fields. Pick one of:&#x20;

* SQL Server Authentication — classic username / password.&#x20;
* Azure Active Directory — MFA — interactive sign-in with multifactor authentication.&#x20;
* Azure Active Directory — Password — username and password against Azure AD.&#x20;
* Azure Active Directory — Integrated — uses the currently logged-in Windows account.&#x20;

For the AD modes, Astera Studio collects Client ID, Redirect URI, and (depending on the mode) exchanges a token for you on submit.&#x20;

### How Credentials Are Stored&#x20;

Credentials you enter in the connection form never leave Astera Studio in plain text. On save, they are encrypted with a tenant-scoped key and stored in the Credential Vault (DB-backed). The Workspace Panel and chat surfaces only ever see the connection name — never the password.&#x20;

If you need to update a credential (for example, after a password rotation), open the connection from the Workspace Panel, type the new value, and save. The vault entry is updated in place.&#x20;

&#x20;
{% endtab %}

{% tab title="API" %}

## API Connection

An **API Connection** in Astera Studio is a saved configuration for a REST API or web service — its base URL, headers, parameters, and authentication. Once an API connection is set up in your workspace, AI agents, Datapreps, and Dashboards can call the API by name, and credentials are handled by the platform instead of being passed around in chat.&#x20;

In this article, we will learn how to create an API connection, the authentication schemes we support, how to use the AI-suggested API Connection cards in chat, and how Astera Studio's Test Connection feature gives you confidence before you save.&#x20;

### Where API Connections Live&#x20;

API connections live in the API Connections category of the Workspace Panel. Each connection is a saved .sact file in the workspace; the secrets it contains (API keys, client secrets, bearer tokens) are encrypted and rest in the tenant-scoped Credential Vault.&#x20;

#### Steps to Create a New API Connection&#x20;

1. Click ***Add Item > API Connection.***&#x20;

<figure><img src="/files/xO9R9bKv8MoqlAVxhMzg" alt="" width="194"><figcaption></figcaption></figure>

2. The API configuration window will open.

<img src="/files/D0CBb5ZWc2hBnyHgRchZ" alt="" height="374" width="576">

2. Enter a Connection Name (for example, StripeBilling or SalesforceProdAPI).&#x20;
3. **Basics:**
   * Base URL - Here, you can specify the base URL of the API which will prepend as a common path to all API endpoints sharing this connection. A Base URL usually consists of the scheme, hostname, and port of the API web address.
   * Timeout - Specify the duration, in milliseconds, to wait for the API server to respond before giving a timeout error.
4. **Authentication:**
   * Security Type - Specify the authentication type for the API. Astera supports the following authentication types.

<figure><img src="/files/KJSqVjY5qtTemkUkfwTJ" alt=""><figcaption></figcaption></figure>

5. **Default Parameters:**
   * Add Parameter - This is where you can define query or header parameters to be shared across all clients using the same connection.

<figure><img src="/files/zDC1xEVWvzR5n8T7SXGa" alt=""><figcaption></figcaption></figure>

6. **Advanced:**
   * Include Client SSL Certificate *-* Check this box to include an imported client certificate for the specified base URL.
   * Enable Authentication Logs *-* Select this checkbox to enable authentication logging for APIs.

<figure><img src="/files/vNIB3HYJKErFMeaXq9Tt" alt=""><figcaption></figcaption></figure>

7. Click **Test Connection**. Astera Studio sends a sample request using the values you have entered and shows the result.&#x20;
8. Click **Save**.&#x20;

### Configuring API from Chat&#x20;

The AI can suggest an API Connection when it determines you need one — for example, after you describe an external service you want to integrate. The API Connection card in chat already knows the base URL, the auth shape, and the typical scopes; you supply the secret.&#x20;

1. Describe in chat what API you want to connect with, and the agent creates a suggested card in your chat thread.&#x20;

<figure><img src="/files/LHX1h4Xwicv3Vz2JVt51" alt=""><figcaption></figcaption></figure>

2. Review the prefilled summary (base URL, authentication type, headers, OAuth flow, scopes).&#x20;
3. Click **Connect.** The API Connection editor opens with every field already populated.&#x20;

<figure><img src="/files/wvtbwyreRBWOJyhk1M6M" alt=""><figcaption></figcaption></figure>

4. Enter the credentials Astera Studio asks for — usually just an API key, bearer token, or OAuth client secret.&#x20;
5. Click **Test Connection**, then **Save**.&#x20;
   {% endtab %}

{% tab title="Connector" %}

## Connectors&#x20;

A **Connector** in Astera Studio is the bridge that lets AI agents act on the world outside the platform — Google Workspace, Slack, GitHub, your internal services, anywhere. Connectors are built on the Model Context Protocol (MCP), an open standard for AI tool integrations.&#x20;

Astera Studio offers connectors in two ways: a curated **Connector Marketplace** with pre-built integrations you can install in a few clicks, and **Custom Connectors** that let you point Astera Studio at any MCP-compatible server you run yourself.&#x20;

In this article, we will learn how to browse and install marketplace connectors, how to set up custom connectors against your own MCP servers, how the AI suggests connectors in chat, and how connector health is continuously monitored.&#x20;

### Where Connectors Live&#x20;

Connectors appear in two places:&#x20;

* In the Connector Marketplace — a dedicated catalog you open from the Workspace Panel. This is where you browse, install, claim, and configure connectors.&#x20;
* In the Connectors category of the Workspace Panel — once a connector is installed, it appears here next to your DB and API connections.&#x20;

<img src="/files/RI8JwVU5phUOih67dQWB" alt="" height="404" width="576">

### Browsing the Connector Marketplace&#x20;

The marketplace organizes connectors into categories so you can find what you need quickly.&#x20;

<img src="/files/W6h5EbjCvuIkhWQliTtQ" alt="" height="382" width="576">

* **All connectors** — every connector available to you.&#x20;
* **Your connections** — connectors you have already installed and configured.&#x20;
* **Shared by your org** — connectors set up by someone else in your tenant. You can claim these to use them with your own credentials.&#x20;
* **Browse all** — the full catalog of installable connectors.&#x20;
* **Categories** — Productivity, Development, Communication, Data, Automation, and more. Each category shows the number of connectors in it.&#x20;

Use the search bar at the top of the catalog to find a connector by name. Use the filter bar to narrow by connection status — for example, *Connected, Not connected, Reconnect needed*.&#x20;

### Steps to Install a Marketplace Connector&#x20;

Most marketplace connectors use OAuth and take less than a minute to install.&#x20;

1. Click a connector tile in the marketplace to open its detail page.&#x20;
2. Click the primary action button — usually labelled Connect, Set up, or Claim, depending on the connector's state.&#x20;
3. If the connector uses OAuth, a popup opens with the provider's consent screen. Sign in and approve the requested scopes.&#x20;
4. If the connector uses a bearer token, paste the token into the field provided.&#x20;
5. Astera Studio stores the credential in the tenant-scoped Credential Vault and runs an initial health probe to confirm the connection works.&#x20;
6. When the probe succeeds, the connector's status changes to Connected and a green checkmark appears on its tile.&#x20;

<img src="/files/Hv82A8ZC4qQ5NwO3KdKf" alt="" height="406" width="576">

### &#x20;Custom Connectors&#x20;

If the integration you need is not in the marketplace, you can connect to any MCP-compatible server you run yourself. This is what we call a Custom Connector.&#x20;

A Custom Connector tells Astera Studio:&#x20;

* Where your MCP server lives (the URL).&#x20;
* How to talk to it (the transport — Server-Sent Events, Streamable HTTP, or Standard I/O).&#x20;
* How to authenticate (no auth, bearer token, basic auth, API key, or OAuth 2.0).&#x20;

#### Steps to Add a Custom Connector&#x20;

1. In the Connector Marketplace, click Connect new MCP server at the bottom of the left rail.&#x20;
2. Enter the MCP Server URL — for example, <https://mcp.example.com/sse.&#x20>;
3. Enter a Display Name so you can identify the connector in your workspace.&#x20;
4. Choose the Transport Type: Server-Sent Events (SSE) (most common), Streamable HTTP, or Standard I/O for local stdio-based MCP servers.&#x20;
5. Pick the Authentication type from the dropdown — None, Bearer, Basic, API Key, or OAuth 2.0. The form below adapts to show the fields each scheme needs.&#x20;
6. If you chose OAuth 2.0, decide whether to use Dynamic Client Registration (DCR). With DCR enabled, Astera Studio auto-discovers the OAuth endpoints from your server's .well-known/oauth-authorization-server document. Without DCR, fill in the Authorize URL, Token URL, Client ID, Client Secret, and Scopes manually.&#x20;
7. Optionally, enable PKCE (Proof Key for Code Exchange) — recommended for OAuth flows.&#x20;
8. Click Connect. Astera Studio establishes the MCP session, discovers the tools your server exposes, and lists them in the connector's detail page.&#x20;

<img src="/files/XY0qTr2ZV2jNEaakpFHG" alt="" height="406" width="576">

From a connector's detail page, you can manually run a fresh probe (the Discover tools button), view the list of tools your server exposes, and see the refresh-token status if the connector uses OAuth.&#x20;

### Connection Scope: Private vs Tenant-Shared&#x20;

By default, every connector you install is private — only you can use it, and only your credentials are stored. If you want the rest of your tenant to use the same connector, you can share it.&#x20;

1. Open the connector's detail page from the marketplace.&#x20;
2. Click the ⋮ (more) menu in the header and choose Share.&#x20;
3. In the Share Connection dialog, toggle on Share with \[your org].&#x20;
4. Choose whether the connector should be shared as a Full Connection (everyone uses your credentials) or as a Custom Configuration (everyone has to supply their own credentials).&#x20;
5. Click Save. The connector becomes visible in the Shared by your org section for other users in your tenant.&#x20;

**Important:** Full Connection sharing is convenient but means every user inherits the same access. Use it for read-only integrations or for service accounts. Use Custom Configuration when each user should authenticate as themselves.&#x20;

### AI-Suggested Connector Cards in Chat&#x20;

When the AI realises you need a tool that is not yet connected, it surfaces a Connector card directly in chat — the same way it surfaces Database and API offers. The card already knows the connector name, the suggested transport, and the auth shape; you fill in the credentials.&#x20;

The cards come in four flavours:&#x20;

* Reconnect — an existing connection has expired; one click takes you to the Re-authenticate step.&#x20;
* Set up (Claim) — a tenant-shared connector exists; one click opens the claim flow so you can use it with your own credentials.&#x20;
* Connect (Marketplace) — a marketplace connector matches your need; one click opens its detail page in the marketplace.&#x20;

<img src="/files/4LvOiqVN5Q7xhFF2uf52" alt="" height="206" width="576">

<img src="/files/pLUq7oeYD7MhwNe0zwyr" alt="" height="368" width="576">

* Connect new MCP server (Custom) — no marketplace match; one click opens the Custom Connector flow with the URL, transport, auth type, and scopes already filled in.&#x20;

<img src="/files/CQmQlGjShnS8B4byqC2J" alt="" height="254" width="576">

<img src="/files/R7TO7JIGDBe2b1T1iQm4" alt="" height="366" width="576">

### Discovering and Using Tools&#x20;

Every connector exposes a set of tools — discrete actions the AI can call. After you install a connector, click its tile or item to open the detail page; the tool list appears near the top.&#x20;

Tools are automatically available to chat agents in the same workspace. You can also bind a Skill to a specific tool list — see the AI Skills documentation for that workflow.&#x20;

<img src="/files/DfturTAD7YnESWGUSKx3" alt="" height="363" width="576">

&#x20;
{% endtab %}
{% endtabs %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://documentation.astera.com/astera-studio/workspace/connections.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
