General Information
Connection Type
UI Documentation
Endpoints
List Connections
Get Connection
Create Connection
Update Connection
Delete Connection
List Connections
Endpoint
Request
Headers
| Header | Value |
|---|---|
| Authorization | Bearer |
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| projectName | string | Yes | Project name |
type query parameter is required to filter connections by type.
cURL Example
Get Connection
Endpoint
Request
Headers
| Header | Value |
|---|---|
| Authorization | Bearer |
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| projectName | string | Yes | Project name |
| connectionName | string | Yes | Connection name |
Response
Success Response (200 OK)
password is returned in full.
cURL Example
Create Connection
Endpoint
Request
Headers
| Header | Value |
|---|---|
| Authorization | Bearer |
| Content-Type | application/json |
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| projectName | string | Yes | Project name |
| connectionName | string | Yes | Connection name (must match name in body) |
Request Body
Full JSON Body Example
Request Body Fields
Common Fields
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
| type | string | Yes | - | Connection type discriminator field. Identifies the connection type in API requests/responses. |
| name | string | Yes | - | Connection name (must match path parameter) |
| description | string | No | - | Connection description |
| deployToWorker | boolean | No | true | Whether to deploy to worker |
| enabled | boolean | No | true | Whether connection is enabled |
Email-Specific Fields
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
| host | string | Yes | - | SMTP server hostname |
| port | integer | No | 587 | SMTP server port |
| enableStartTls | boolean | No | false | Enable STARTTLS |
| auth | boolean | No | false | Enable authentication |
| username | string | No* | - | SMTP username (required if auth=true) |
| password | string | No* | - | SMTP password (required if auth=true, secret field) |
| defaultEncoding | string | No | UTF-8 | Default email encoding |
| addressToTest | string | No | - | Email address for testing |
| from | string | No | - | Default sender email address |
| additionalProperties | array | No | [] | Additional SMTP properties |
username and password are required when auth is true.
Response
Success Response (200 OK)
cURL Example
Update Connection
Endpoint
Request
Headers
| Header | Value |
|---|---|
| Authorization | Bearer |
| Content-Type | application/json |
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| projectName | string | Yes | Project name |
| connectionName | string | Yes | Connection name (must match name in body) |
Request Body
Full JSON Body Example
Response
Success Response (200 OK)
cURL Example
Delete Connection
Endpoint
Request
Headers
| Header | Value |
|---|---|
| Authorization | Bearer |
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| projectName | string | Yes | Project name |
| connectionName | string | Yes | Connection name |
Response
Success Response (200 OK)
cURL Example
Notes and Warnings
-
Secret Fields:
passwordis a secret field. Never commit it to version control -
List vs Get: In list operations,
passwordis returned asnull. Use Get Connection to retrieve the full password -
Authentication: If
auth: true, bothusernameandpasswordare required -
STARTTLS: Enable
enableStartTlsfor secure SMTP connections (typically port 587) -
Ports: Common SMTP ports:
25- Standard SMTP (often blocked)587- SMTP with STARTTLS (recommended)465- SMTP with SSL/TLS
- Gmail: For Gmail, use an app password instead of your regular password
-
Deployment: If
deployToWorker: true, connection is automatically deployed to workers -
Name Matching: Path parameter
connectionNamemust match thenamefield in the request body
Related Documentation
- List Connections - List all connections
- Get Connection - Get connection details
- Create Connection - General connection creation guide
- Update Connection - General connection update guide
- Delete Connection - General connection deletion guide

