Types of Connections
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 (basic) |
HTTP Basic authentication. A username and password are sent in the HTTP Authorization header. |
Bearer (bearer) |
HTTP Bearer authentication. A static bearer token is sent in the HTTP Authorization header. |
Client Grant (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 (password-grant) |
OAuth 2.0 resource owner password credentials grant, which uses a resource owner’s username and password. |
Authorization Code Grant (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 (google-service-account) |
Google APIs, authenticated with a service account key and OAuth scope. |
Public (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 (kafka) |
An Apache Kafka message broker. |
Pulsar (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 (sftp) |
An SFTP server. |
AWS S3 (aws-s3) |
Amazon S3 buckets. |
Azure Blob (azure-blob) |
Azure Blob Storage containers. |
In Legacy Flows, use file storage connections with the Stream nodes List Cloud, Read Cloud, Write Cloud, and Delete Cloud.
Other Connections
| Type | Use it for |
|---|---|
Connection String (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 instead of a General connection. Select New connection, then select AI provider connection. AI Routes reference AI Connections. In Legacy Flows, the AI Generate 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 for repository access and Worker deployment authorization.