POST /dispatch/{bucketId}

Send a dispatch message

Параметры запроса

bucketId string
Обязательный

Project (bucket) identifier

x-api-key string
Обязательный

API key passed in the request header for authentication

Тело запроса

CreateDispatchRequest
subject string
Обязательный

Message subject line

messageType number
Обязательный

Delivery channel: 1 = Email, 2 = SMS, 3 = Push, 4 = Messenger

recipients string[]
Обязательный

Array of recipient addresses (email addresses, phone numbers, or channel-specific IDs)

htmlBase64Body string
Необязательный

Base64-encoded HTML message body. At least one of htmlBase64Body or plainBase64Body is required

plainBase64Body string
Необязательный

Base64-encoded plain-text message body. At least one of htmlBase64Body or plainBase64Body is required

providerId string
Необязательный

ID of the specific dispatch provider to use. If omitted, the matching dispatch rule is resolved automatically for the bucket

delay number
Необязательный

Delivery delay in seconds

env string
Необязательный

Environment tag (e.g. production, staging)

timeStamp number
Необязательный

Unix timestamp of the event (milliseconds). Defaults to server time if omitted

appName string
Необязательный

Name of the sending application. Defaults to "unknown" if omitted

appVersion string
Необязательный

Version of the sending application

correlationId string
Необязательный

Caller-supplied correlation ID for distributed tracing

tags string[]
Необязательный

Arbitrary string tags attached to the message for filtering

userAgent string
Необязательный

User-agent string of the originating client

ip string
Необязательный

IP address of the originating client

runtime number
Необязательный

Runtime identifier byte

runtimeVersion string
Необязательный

Runtime version string

Ответы

201 Message accepted and enqueued for delivery.

тип: ApiResponse<bool>

success boolean Always true on success
result boolean true when the message was successfully enqueued
errors ErrorDetail[] Empty on success
400 Validation failed — subject, message body, recipients, or messageType missing; or no dispatch rule found for the bucket.

тип: ApiResponse<T>

isValid boolean Always false
validationErrors ValidationError[] List of validation failures
name string Field that failed validation
attemptedValue object Value that was submitted
message string Human-readable validation message
401 Unauthorized — API key is missing or invalid.
500 Unexpected server error.

тип: ApiResponse<T>

success boolean Always false
errors ErrorDetail[] Server-side errors
correlationId string Trace ID
message string Error message
stack string Stack trace (non-production only)

Оставаясь на сайте, Вы даете свое согласие на использование файлов cookie