Skip to content

Batch Template Generation Status

POST
/newsletters/templates/generation-status

Poll many template builds at once.

A POST because the id list is the request, not a filter. Capped at 200 ids

  • the cap is the app’s, and it exists because this is polled every couple of seconds.

Authorizations

Parameters

Header Parameters

X-Target-Org-Id
Any of:
string

Request Body required

Poll many template builds in one call.

Capped at 200 ids, matching the app. The cap is not arbitrary: a dashboard polls this every two seconds and an unbounded IN (...) is a denial-of- service surface, which is why it is enforced here as a 422 rather than reached inside the handler.

object
template_ids
required
Array<integer>
<= 200 items

Responses

200

Successful Response

object
data
required

An open envelope for a LIST result, so a bare list keeps its shape.

object
items
Array
key
additional properties
any
pagination
Any of:
object
has_next
required

Whether there are more pages

boolean
limit
required

Items per page

integer
next_cursor
Any of:
string
notes
Any of:
Array<string>
page
required

Current page number (1-indexed)

integer
total
required

Total number of items

integer
total_available
Any of:
integer
total_is_lower_bound
Any of:
boolean

422

Validation Error

object
detail
Array<object>
object
loc
required
Array
msg
required
string
type
required
string