Emailit icon

Emailit

Transactional email platform. Send emails, manage domains, templates, audiences, webhooks, suppressions, contacts, and verify emails via the Emailit API.

Templates → Publish a template

AI-generated

Summary

Publish a specific template by its unique identifier, sending a POST request to the /templates/{id}/publish endpoint.

Inputs

  • id (required) — The unique identifier of the template to publish.
  • returnAll — Whether to return all paginated results or just a single page of the response. Defaults to false.
  • options — Optional parameters including custom JSON body fields (merged with defaults), custom HTTP headers, query-string filters, batching configurations (items per batch and delay between batches), debug flag for request details, pagination settings (mode, page size, cursor paths, max pages, etc.), and HTTP timeout in milliseconds.

Output shape

The API response to the publish request, typically including the status or details of the published template. Depending on the 'returnAll' and pagination settings, this may include all pages of results or just one page.

If 'returnAll' is true and pagination settings are configured, multiple pages of results will be fetched according to those settings. Enabling 'debug' adds detailed request data to the output for troubleshooting.

Links

Discussion