Publish multiple messages in batch
Publish up to 100 messages in a single request.
Against a key budget a batch costs one unit per message, and admission
is all-or-nothing: a batch that does not fit the remaining cap is
refused whole with 429 BUDGET_EXCEEDED and none of its messages are
enqueued. Split the batch or raise the cap.
/api/v2/messages/batchAuthorizationBearer token (Anlyon API key) · headerrequiredWorkspace API key sent as Authorization: Bearer <key>.
better-auth.session_tokenAPI key · cookierequiredBrowser session used by dashboard-only operations.
X-Request-IdstringOptional caller correlation ID. Unsafe or oversized values are replaced.
Idempotency-KeystringStable retry key for a mutation. The key is claimed atomically before the handler runs, so concurrent retries execute the side effect at most once. Replaying the key for the same request (same method, path, workspace and JSON body) returns the original response with an X-Idempotent-Replay: true header. Reusing the key for a different request returns 409 with error code idempotency_key_reuse. A duplicate arriving while the first is still in flight waits and then replays; if the first does not finish in time the duplicate gets 409 idempotency_request_in_progress. Keys are retained for 24 hours. Only successful (2xx) responses are stored; a failed request frees the key so it can be retried.
Anlyon-QueuestringDefault queue for messages without a body-level queue.
application/jsonmessagesPublishMessageRequest[]requiredShow propertiesHide properties
PublishMessageRequesturlstring<uri>requiredDestination URL for the message
methodstringHTTP method to use
GETPOSTPUTPATCHDELETEheadersobjectCustom headers to include in the request
bodyanyRequest body (can be any JSON value)
queuestringNamed queue for this delivery. Anlyon-Queue header takes precedence.
executeAtinteger<int64>Unix timestamp in seconds. Cannot be combined with scheduledFor.
scheduledForstring<date-time>deprecatedDeprecated ISO 8601 delivery time retained for compatibility. Use executeAt. Cannot be combined with executeAt.
maxRetriesintegerMaximum number of retry attempts
contentIdstringOptional 24-hour content-deduplication identifier. This is independent of the Idempotency-Key header.
callbackUrlstring<uri>URL to receive delivery status updates
failureCallbackUrlstring<uri>URL to receive failure notifications
runIdstringExisting run in this API key environment for queue-delivery spans.
parentSpanIdstringOptional parent span within runId.
flowControlobjectShow propertiesHide properties
keystringrequiredrateLimitintegerrateLimitWindowintegerparallelismintegerBatch published successfully
successbooleandataobjectShow propertiesHide properties
publishedobject[]Show propertiesHide properties
objectmessageIdstringrequiredindexintegerrequiredfailedobject[]Show propertiesHide properties
objectindexintegerrequirederrorstringrequiredBad Request - Invalid input data
successbooleanrequiredrequestIdstringrequiredCorrelation ID matching the X-Request-Id response header.
errorobjectrequiredShow propertiesHide properties
codestringmessagestringdetailsobjectUnauthorized - Invalid or missing API key
successbooleanrequiredrequestIdstringrequiredCorrelation ID matching the X-Request-Id response header.
errorobjectrequiredShow propertiesHide properties
codestringmessagestringdetailsobjectPayment Required - Usage quota exceeded
successbooleanrequiredrequestIdstringrequiredCorrelation ID matching the X-Request-Id response header.
errorobjectrequiredShow propertiesHide properties
codestringmessagestringdetailsobjectAuthenticated credential lacks the required scope or workspace access.
successbooleanrequiredrequestIdstringrequiredCorrelation ID matching the X-Request-Id response header.
errorobjectrequiredShow propertiesHide properties
codestringmessagestringdetailsobjectThe request conflicts with current resource state or a concurrent decision.
successbooleanrequiredrequestIdstringrequiredCorrelation ID matching the X-Request-Id response header.
errorobjectrequiredShow propertiesHide properties
codestringmessagestringdetailsobjectToo Many Requests - Rate limit exceeded
successbooleanrequiredrequestIdstringrequiredCorrelation ID matching the X-Request-Id response header.
errorobjectrequiredShow propertiesHide properties
codestringmessagestringdetailsobjectA required provider or platform dependency is not configured or available.
successbooleanrequiredrequestIdstringrequiredCorrelation ID matching the X-Request-Id response header.
errorobjectrequiredShow propertiesHide properties
codestringmessagestringdetailsobject
