Skip to content

Publish Template

Share a template through its public link and the gallery.

POST/api/v1/templates/{template_id}/publish

Requires an API key with the write scope.

Publishing makes the template's subject and body readable by anyone who has its share link, immediately. It appears in the public gallery list only after FoxReach approves it. Publishing a template again keeps its link, updates the listing and resets approval. Unpublish ends the sharing and invalidates the link.

Each publish is recorded as an audit.template.published event with the key as the actor.

Path Parameters#

template_idstringpathrequired
The template id.

Body Parameters#

shareDescriptionstringbodyrequired
Gallery description, 1 to 1,000 characters.
shareCategorystringbodyrequired
cold_outreach, follow_up, intro or breakup.

Response#

dataobject
Show data
shareSlugstring
The share slug.
shareUrlstring
The public page, https://foxreach.io/gallery/{shareSlug}.
galleryApprovedboolean
Always false right after publishing: the gallery list shows the template once it is approved.

Errors#

StatusDescription
401Missing, invalid, revoked or expired API key
403API key does not have the required scope: write
404Template not found: the template does not exist in this workspace
422shareDescription is empty or over 1,000 characters, or shareCategory is not one of the four values

Rate Limit#

  • 120 requests per minute, shared by every write call in your workspace. Fixed 60-second window.
  • Every response includes X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset (unix epoch seconds) and X-RateLimit-Bucket (write).
  • A 429 response includes a Retry-After header (seconds until the bucket resets).

For client-side patterns, see Rate Limiting.

Was this page helpful?
View as MarkdownLast updated November 4, 2026