This bundle provides REST API endpoints to manage transport settings for emails and users.
Standard CRUD endpoints are available for managing transports:
GET /api/multipleTransports
GET /api/multipleTransports/{id}
POST /api/multipleTransports/new
PATCH /api/multipleTransports/{id}/edit
DELETE /api/multipleTransports/{id}/delete
These follow the standard Mautic API patterns for entity management.
The following endpoints are available for managing Multiple Transport entities:
GET /api/multipleTransports
Returns a list of all transport configurations.
Response:
{
"total": 1,
"multipleTransports": [
{
"id": 1,
"name": "Transport Name",
"description": "Transport Description",
"category": {...},
"mailerDsn": "smtp://user:pass@smtp.example.com:25",
"testedEmailFrom": "test@example.com",
"isPublished": true
}
]
}
GET /api/multipleTransports/{id}
Returns details for a specific transport configuration.
POST /api/multipleTransports/new
Creates a new transport configuration.
Request Body:
{
"name": "New Transport",
"description": "Description",
"mailerDsn": "smtp://user:pass@smtp.example.com:25",
"testedEmailFrom": "test@example.com",
"isPublished": true
}
PATCH /api/multipleTransports/{id}/edit
Updates an existing transport configuration. Accepts the same fields as POST.
DELETE /api/multipleTransport/{id}/delete
Deletes a transport configuration.
GET /api/multipleTransport/transportEmail/{emailId}
Returns transport settings for a specific email.
Response:
{
"transportEmail": {
"email": {...},
"transport": {...},
"useOwnerTransport": true|false
}
}
POST /api/multipleTransport/transportEmail/{emailId}
Parameters:
- `transportId`: ID of the transport to use
- `useOwnerTransport`: boolean indicating whether to use owner's transport
Response:
{
"transportEmail": {
"email": {...},
"transport": {...},
"useOwnerTransport": true|false
}
}
GET /api/multipleTransport/transportUser/{userId}
Returns transport settings for a specific user.
Response:
{
"transportUser": {
"user": {...},
"transport": {...}
}
}
POST /api/multipleTransport/transportUser/{userId}
Parameters:
- `transportId`: ID of the transport to use
Response:
{
"transportUser": {
"user": {...},
"transport": {...}
}
}