Get Template Sharing

Get the public sharing state, links and stats for a studio template


Overview#

Returns the current public sharing state of a studio template, including the public link, embed link, ready-to-paste embed code, and view/copy stats. These are the same links you see in the studio's Share dialog.

https://api.orshot.com/v1/studio/templates/:templateId/share

Path Parameters#

ParameterTypeRequiredDescription
templateIdIntegerYesThe unique ID of the studio template

Request#

await fetch("https://api.orshot.com/v1/studio/templates/123/share", {
  method: "GET",
  headers: {
    Authorization: "Bearer <ORSHOT_API_KEY>",
  },
});

When sharing is disabled, enabled is false and the link fields are null.

Response Fields#

FieldTypeDescription
enabledBooleanWhether public sharing is on
allow_duplicationBooleanWhether visitors can save a copy of the template to their workspace
share_urlStringPublic preview link (null when sharing is off)
embed_urlStringEmbeddable page link (null when sharing is off)
embed_codeStringReady-to-paste iframe snippet (null when sharing is off)
stats.viewsIntegerHow many times the public page was viewed
stats.copiesIntegerHow many times the template was duplicated from the public page
created_atStringWhen sharing was first enabled

Error Responses#

Template Not Found (404)#

{
  "error": "Studio template with ID '123' not found in your workspace"
}

Unauthorized (403)#

{
  "error": "Access Forbidden: Invalid API Key"
}

Rate Limits#

  • 30 requests per minute per API key

Ready to automate?

Start rendering images, PDFs and videos from your templates in under 2 minutes. Free plan, no credit card.

Get your API key
  • Image, PDF and video generation via API
  • Visual editor with AI and smart layouts
  • Zapier, Make, MCP and 50+ integrations
  • White-label embed for your own app
  • 30 free credits — no credit card required