Get Template Sharing
Get the public sharing state, links and stats for a studio template
Published ·Updated
GET
/v1/studio/templates/{templateId}/sharecurl -X GET "https://api.orshot.com/v1/studio/templates/<TEMPLATE_ID>/share" \
-H "Authorization: Bearer <ORSHOT_API_KEY>"const res = await fetch("https://api.orshot.com/v1/studio/templates/<TEMPLATE_ID>/share", {
method: "GET",
headers: {
Authorization: "Bearer <ORSHOT_API_KEY>",
},
});
const data = await res.json();import requests
response = requests.get(
"https://api.orshot.com/v1/studio/templates/<TEMPLATE_ID>/share",
headers={"Authorization": "Bearer <ORSHOT_API_KEY>"},
)
data = response.json()$ch = curl_init("https://api.orshot.com/v1/studio/templates/<TEMPLATE_ID>/share");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "GET");
curl_setopt($ch, CURLOPT_HTTPHEADER, [
"Authorization: Bearer <ORSHOT_API_KEY>",
]);
$data = json_decode(curl_exec($ch), true);
curl_close($ch);require "net/http"
require "json"
uri = URI("https://api.orshot.com/v1/studio/templates/<TEMPLATE_ID>/share")
req = Net::HTTP::Get.new(uri)
req["Authorization"] = "Bearer <ORSHOT_API_KEY>"
res = Net::HTTP.start(uri.hostname, uri.port, use_ssl: true) { |http| http.request(req) }
data = JSON.parse(res.body)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/sharePath Parameters#
| Parameter | Type | Required | Description |
|---|---|---|---|
templateId | Integer | Yes | The 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>",
},
});{
"enabled": true,
"allow_duplication": true,
"share_url": "https://orshot.com/templates/shared/k3n9xq2w/preview?view=play",
"embed_url": "https://orshot.com/templates/shared/k3n9xq2w/embed?view=play",
"embed_code": "<iframe src=\"https://orshot.com/templates/shared/k3n9xq2w/embed?view=play\" title=\"Orshot Embed\" allow=\"clipboard-write\" style=\"width: 100%; height: 100%; min-height: 500px; border: none; border-radius: 8px;\"></iframe>",
"stats": {
"views": 42,
"copies": 3
},
"created_at": "2026-07-11T08:05:18.491Z"
}When sharing is disabled, enabled is false and the link fields are null.
Response Fields#
| Field | Type | Description |
|---|---|---|
enabled | Boolean | Whether public sharing is on |
allow_duplication | Boolean | Whether visitors can save a copy of the template to their workspace |
share_url | String | Public preview link (null when sharing is off) |
embed_url | String | Embeddable page link (null when sharing is off) |
embed_code | String | Ready-to-paste iframe snippet (null when sharing is off) |
stats.views | Integer | How many times the public page was viewed |
stats.copies | Integer | How many times the template was duplicated from the public page |
created_at | String | When 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, shared with the other studio template, folder and sharing endpoints
Was this page helpful?
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 40+ integrations
- White-label embed for your own app
- 100 free credits a month, no credit card required