Orshot Logo
OrshotDocs

POST: Generate Signed URL

Learn how you can make a POST request to generate a signed URL

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/create

POST Request

await 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 expire
  • templateId
  • modifications
  • renderType

SDKs

If you prefer, you can use our SDKs which give you abstracted functions to quickly generate signed URLs

View Available SDKs

On this page