# Types of Connections

These instructions apply to the current Admin Console.

Choose a connection type when you create a **General connection**. The type determines which fields the console asks for and how Contextual authenticates to the external system.

## HTTP API Connections

| **Type**                                                                                 | **Use it for**                                                                                                                                                                                            |
|------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [**Basic**](https://docs.contextual.io/connect/connections/types-of-connections/basic.md) (`basic`)                                                          | HTTP Basic authentication. A username and password are sent in the HTTP `Authorization` header.                                                                                                           |
| [**Bearer**](https://docs.contextual.io/connect/connections/types-of-connections/bearer.md) (`bearer`)                                                       | HTTP Bearer authentication. A static bearer token is sent in the HTTP `Authorization` header.                                                                                                             |
| [**Client Grant**](https://docs.contextual.io/connect/connections/types-of-connections/client-grant.md) (`client-grant`)                                     | OAuth 2.0 client credentials grant. Contextual exchanges a client ID and client secret for an access token, sends it as a bearer token, and renews it when it expires (sometimes as often as every hour). |
| [**Password Grant**](https://docs.contextual.io/connect/connections/types-of-connections/password-grant.md) (`password-grant`)                               | OAuth 2.0 resource owner password credentials grant, which uses a resource owner’s username and password.                                                                                                 |
| [**Authorization Code Grant**](https://docs.contextual.io/connect/connections/types-of-connections/authorization-code-grant.md) (`authorization-code-grant`) | APIs requiring OAuth 2.0 user authorization through a configured Contextual AuthZ Code App. Used by Contextual HTTP nodes after the user grants access.                                                   |
| [**Google Service Account**](https://docs.contextual.io/connect/connections/types-of-connections/google-service-account.md) (`google-service-account`)       | Google APIs, authenticated with a service account key and OAuth scope.                                                                                                                                    |
| [**Public**](https://docs.contextual.io/connect/connections/types-of-connections/public.md) (`public`)                                                       | APIs that require no authentication. You can add custom headers, which also makes this type useful for authentication schemes that don’t have their own type.                                             |

## Message Broker Connections

| **Type**                           | **Use it for**                                                                                                                 |
|------------------------------------|--------------------------------------------------------------------------------------------------------------------------------|
| [**Kafka**](https://docs.contextual.io/connect/connections/types-of-connections/kafka.md) (`kafka`)    | An Apache Kafka message broker.                                                                                                |
| [**Pulsar**](https://docs.contextual.io/connect/connections/types-of-connections/pulsar.md) (`pulsar`) | An Apache Pulsar message broker. If you use Pulsar through the Kafka-on-Pulsar (KoP) protocol, use a Kafka connection instead. |

## File Storage Connections

| **Type**                                       | **Use it for**                 |
|------------------------------------------------|--------------------------------|
| [**SFTP**](https://docs.contextual.io/connect/connections/types-of-connections/sftp.md) (`sftp`)                   | An SFTP server.                |
| [**AWS S3**](https://docs.contextual.io/connect/connections/types-of-connections/aws-s3.md) (`aws-s3`)             | Amazon S3 buckets.             |
| [**Azure Blob**](https://docs.contextual.io/connect/connections/types-of-connections/azure-blob.md) (`azure-blob`) | Azure Blob Storage containers. |

In Legacy Flows, use file storage connections with the Stream nodes [**List Cloud**](https://docs.contextual.io/legacy/components-and-data/flows/node-reference/stream/list-cloud.md), [**Read Cloud**](https://docs.contextual.io/legacy/components-and-data/flows/node-reference/stream/read-cloud.md), [**Write Cloud**](https://docs.contextual.io/legacy/components-and-data/flows/node-reference/stream/write-cloud.md), and [**Delete Cloud**](https://docs.contextual.io/legacy/components-and-data/flows/node-reference/stream/delete-cloud.md).

## Other Connections

| **Type**                                                            | **Use it for**                                                                                                                                          |
|---------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------|
| [**Connection String**](https://docs.contextual.io/connect/connections/types-of-connections/connection-string.md) (`connection-string`) | Database connections through the **ODBC** node, or Redis connections through the **Redis Cmd** node. The whole connection string is stored as a secret. |

## AI Connections

To connect to an AI provider such as OpenAI, Anthropic, or Vertex AI, create an [AI Connection](https://docs.contextual.io/connect/connections/types-of-connections/ai-connections.md) instead of a **General connection**. Select **New connection**, then select **AI provider connection**. [AI Routes](https://docs.contextual.io/connect/ai-routes.md) reference AI Connections. In Legacy Flows, the [AI Generate](https://docs.contextual.io/legacy/components-and-data/flows/node-reference/ai-gateway/ai-generate.md) node uses them through an AI Route. After creation, the AI Connection’s detail page shows the fields of its underlying connection type.

## GitHub

A GitHub Connection links a Contextual GitHub App installation on your GitHub account or organization to the tenant. See [Deploy from GitHub](https://docs.contextual.io/build/contextual-workers/contextual-cli.md#deploy-from-github) for repository access and Worker deployment authorization.
