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)
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 |
Request Body
Full JSON Body Example - Queue Connection (TCP)
Full JSON Body Example - Topic Connection (AMQP)
Full JSON Body Example - Transactional Session
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 |
ActiveMQ-Specific Fields
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
| activeMqConnectionProtocolType | string | Yes | - | Connection protocol type. See EnumActiveMqConnectionProtocolType |
| brokerURL | string | Yes | - | ActiveMQ broker URL (e.g., tcp://host:port or amqp://host:port) |
| username | string | No | - | Username for broker authentication |
| password | string | No | - | Password for broker authentication (secret field) |
| destinationType | string | Yes | - | Destination type. See EnumDestinationType |
| destinationName | string | Yes | - | Queue or topic name |
| sessionAcknowledgement | string | No | AUTO_ACKNOWLEDGE | Session acknowledgment mode. See EnumSessionAcknowledgmentType |
| sendTimeout | long | No | 60000 | Send timeout in milliseconds |
| requestTimeout | long | No | 60000 | Request timeout in milliseconds |
| closeTimeout | long | No | 60000 | Close timeout in milliseconds |
| connectTimeout | long | No | 60000 | Connection timeout in milliseconds |
| contentType | string | No | - | Content type for messages (e.g., application/json) |
| clientID | string | No | - | Client identifier for durable subscriptions |
| contentEncoding | string | No | - | Content encoding (e.g., UTF-8) |
EnumActiveMqConnectionProtocolType (activeMqConnectionProtocolType)
TCP- TCP protocol (standard ActiveMQ protocol, port 61616)AMQP- AMQP protocol (Advanced Message Queuing Protocol, port 5672)
EnumDestinationType (destinationType)
QUEUE- Point-to-point messaging (one consumer per message)TOPIC- Publish-subscribe messaging (multiple consumers per message)
EnumSessionAcknowledgmentType (sessionAcknowledgement)
AUTO_ACKNOWLEDGE- Messages are automatically acknowledged when received (default)CLIENT_ACKNOWLEDGE- Client must explicitly acknowledge messagesDUPS_OK_ACKNOWLEDGE- Allows duplicate messages (lazy acknowledgment)SESSION_TRANSACTED- Session is transactional (messages committed/rolled back)
Notes
activeMqConnectionProtocolType,brokerURL,destinationType, anddestinationNameare required.brokerURLformat:- TCP:
tcp://hostname:61616ortcp://hostname:61616?options - AMQP:
amqp://hostname:5672oramqp://hostname:5672?options
- TCP:
usernameandpasswordare optional but required if broker authentication is enabled.destinationNameis the queue or topic name (e.g.,apinizer.queue,apinizer.topic).clientIDis required for durable topic subscriptions.- Timeout values are in milliseconds (default: 60000ms = 60 seconds).
contentTypeandcontentEncodingare optional metadata for messages.
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)
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)
Notes and Warnings
-
Protocol Types:
TCP- Standard ActiveMQ protocol (port 61616, default)AMQP- AMQP protocol (port 5672, for interoperability)
-
Broker URL:
- TCP format:
tcp://hostname:61616ortcp://hostname:61616?options - AMQP format:
amqp://hostname:5672oramqp://hostname:5672?options - URL options can include connection parameters
- TCP format:
-
Destination Types:
QUEUE- Point-to-point (one consumer per message, guaranteed delivery)TOPIC- Publish-subscribe (multiple consumers, broadcast messaging)
-
Session Acknowledgment:
AUTO_ACKNOWLEDGE- Automatic acknowledgment (default, simplest)CLIENT_ACKNOWLEDGE- Manual acknowledgment (more control)DUPS_OK_ACKNOWLEDGE- Lazy acknowledgment (allows duplicates)SESSION_TRANSACTED- Transactional (guaranteed delivery, can rollback)
-
Durable Subscriptions:
- For topic subscriptions,
clientIDis required for durable subscriptions - Durable subscriptions survive client disconnections
- Each clientID must be unique
- For topic subscriptions,
-
Timeouts:
- All timeout values are in milliseconds
- Default: 60000ms (60 seconds)
sendTimeout- Maximum time to wait for send operationrequestTimeout- Maximum time to wait for request responsecloseTimeout- Maximum time to wait for connection closeconnectTimeout- Maximum time to wait for connection establishment
-
Authentication:
usernameandpasswordare optional- Required if ActiveMQ broker has authentication enabled
- Use strong passwords in production
-
Content Type and Encoding:
contentType- MIME type for messages (e.g.,application/json,text/xml)contentEncoding- Character encoding (e.g.,UTF-8,ISO-8859-1)- These are metadata fields, not enforced by ActiveMQ
-
Performance:
- Connection pooling improves performance
- Timeout settings affect behavior under load
- Transactional sessions have higher overhead
-
Security:
- Use authentication for production deployments
- Consider using SSL/TLS for encrypted connections (configure in brokerURL)
- Store passwords securely
-
Deployment: Connection changes require deployment to take effect. Set
deployToWorker: trueor deploy manually.
Related Documentation
- List Connections - List all connections
- Get Connection - Get a specific connection
- Create Connection - General connection creation guide
- Update Connection - General connection update guide
- Delete Connection - General connection deletion guide

