Batch sending

Hello team, sorry for the maybe dumb question, but what’s the best practices to batch sends with Kumo? With API as I understand I can send one message per call right?

You can pass multiple recipients via https://docs.kumomta.com/reference/http/api_inject_v1/ and it will generate multiple messages

Yeah, thanks, not sure why I missed that, sorry..any limits per call?

no arbitrary limits, but I’d suggest shooting for maybe 128 as a reasonable size. Maybe as high as 1024? It’s really limited by your system and traffic patterns

Thank you!

@free-spirited-yorksh sorry one more question - any chance I can control this limit or add custom logic to lua?

there is no limit to change; it’s up to you to pass in the recipients you want to pass in

yeah I understand, I’m thinking about our clients who will be using the API, I just want to be safe and set limit for example

there isn’t a limit like that. There is a limit on the size of the post request though: request_body_limit - KumoMTA Docs

Thanks!!