POST

Create a share link

A link anyone can open to view a template, optionally ending after some days.

View as Markdown
POSThttps://api.muzekit.com/v1/templates/{id}/share
curl -X POST https://api.muzekit.com/v1/templates/tpl_G2l2bmhk8Pq/share \
  -H "Authorization: Bearer $MUZEKIT_SECRET_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "mode": "view", "days": 30 }'

{id} is the template's tpl_… id or its key: a workspace template or one of your users' designs.

Body

modestring

view (the design only, the default) or play (its motion and video play too).

daysnumber

The link ends after this many days, 1 to 365. Never when left out.

The link works as one your users make in the editor (see Share links): anyone with it can look at the design but not change it, opening it doesn't count as a session, and it sends no webhooks. url is in this answer only; Muzekit keeps a hash of it, so store it if you need it again. A design keeps up to 20 live links; one more answers 409 too_many_links. Your team can turn a link off from the editor's Share dialog. Making a link is recorded in the editor's audit log.

Examples

Send a client a design to approve

Make a link that ends after a week and put it in your own email or chat message.

URL=$(curl -s -X POST https://api.muzekit.com/v1/templates/tpl_G2l2bmhk8Pq/share \
  -H "Authorization: Bearer $MUZEKIT_SECRET_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "days": 7 }' | jq -r .url)
echo "Please review: $URL"

Share a video design that plays

play lets the visitor play the design's motion, video and audio, for example to preview a video ad before you render it.

curl -X POST https://api.muzekit.com/v1/templates/promo-reel/share \
  -H "Authorization: Bearer $MUZEKIT_SECRET_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "mode": "play" }'

Response

201 with the link.

JSON
{
  "object": "share",
  "id": "shr_Tz4kQ9vLm2c",
  "template": "tpl_G2l2bmhk8Pq",
  "mode": "view",
  "url": "https://app.muzekit.com/s/9fJ2kLmQ4xTzR8vWb1nC6yHd3pS7eA0u",
  "expires_at": "2026-12-30T09:12:04.511Z",
  "created_at": "2026-11-30T09:12:04.511Z"
}