Search for a command to run...
You can dynamically generate a signed URL from a template and render content publicly without leaking your API key
NOTE: Only templates with renderType as images can be rendered through
signed URLs
https://api.orshot.com/v1/signed-url/createawait fetch(`https://api.orshot.com/v1/signed-url/create`, {
method: "POST",
headers: {
Authorization: `Bearer <ORSHOT_API_KEY>`,
"Content-Type": "application/json",
},
body: JSON.stringify({
templateId,
expiresAt,
renderType,
modifications,
}),
});You can learn more about params:
expiresAt: UNIX timestamp value e.g(1744550160505) of when you want the signed URL to expire, set to null if you do not want the signed URL to expiretemplateIdmodificationsrenderTypeIf you prefer, you can use our SDKs which give you abstracted functions to quickly generate signed URLs
