Publish Template
Share a template through its public link and the gallery.
POST
https://api.foxreach.io/ api/ v1/ templates/{template_id}/ publishRequires 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_idstringpathrequiredThe template id.
Body Parameters#
shareDescriptionstringbodyrequiredGallery description, 1 to 1,000 characters.
shareCategorystringbodyrequiredcold_outreach, follow_up, intro or breakup.Response#
dataobjectShow data
shareSlugstringThe share slug.
shareUrlstringThe public page,
https://foxreach.io/gallery/{shareSlug}.galleryApprovedbooleanAlways
false right after publishing: the gallery list shows the template once it is approved.Errors#
| Status | Description |
|---|---|
401 | Missing, invalid, revoked or expired API key |
403 | API key does not have the required scope: write |
404 | Template not found: the template does not exist in this workspace |
422 | shareDescription 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
writecall in your workspace. Fixed 60-second window. - Every response includes
X-RateLimit-Limit,X-RateLimit-Remaining,X-RateLimit-Reset(unix epoch seconds) andX-RateLimit-Bucket(write). - A
429response includes aRetry-Afterheader (seconds until the bucket resets).
For client-side patterns, see Rate Limiting.
Was this page helpful?
View as MarkdownLast updated November 4, 2026