Setu Recipes: reusable digital workers across every app.Browse templates

Integrations / Bannerbear

Bannerbear

Auto-generated images: list templates, create an image from a template and fetch results.

4 actions API key 3 read1 write Calls api.bannerbear.com

Connect

TypeScript
const conn = await setu.connections.initiate({ userId: "user_1", toolkit: "bannerbear" });
console.log(conn.connectUrl); // show this to your user
await conn.waitUntilActive();

Permissions requested

This toolkit uses a single credential and requests no scopes.

Actions

Create image from templatewritebannerbear.create_imageQueue an image from a template with layer modifications (text, image_url, colors). Returns pending with a uid; fetch it with get_image. Uses image quota.
InputTypeDescription
templatestringRequiredTemplate uid
modificationsarray of objectRequiredLayer changes
webhook_urlstringOptionalURL to POST the finished image to
metadatastringOptionalYour own reference string
transparentbooleanOptionalTransparent PNG background
TypeScript
await setu.execute({
  userId: "user_1",
  action: "bannerbear.create_image",
  input: {
    "template": "<template>",
    "modifications": []
  },
});
Get imagereadbannerbear.get_imageGet a generated image by uid: status (pending, completed, failed) and the finished image URL.
InputTypeDescription
uidstringRequiredImage uid
TypeScript
await setu.execute({
  userId: "user_1",
  action: "bannerbear.get_image",
  input: {
    "uid": "<uid>"
  },
});
List imagesreadbannerbear.list_imagesList recently generated images in the project: uid, status and URL.
InputTypeDescription
pageintegerOptionalPage number (25 per page)
limitintegerOptionalUp to 100 per page
TypeScript
await setu.execute({
  userId: "user_1",
  action: "bannerbear.list_images",
  input: {},
});
List templatesreadbannerbear.list_templatesList the project's image templates: uid, name, size and which layers can be modified (text, image).
InputTypeDescription
pageintegerOptionalPage number (25 per page)
limitintegerOptionalUp to 100 per page
namestringOptionalPartial name match
tagstringOptionalOnly templates with this tag
TypeScript
await setu.execute({
  userId: "user_1",
  action: "bannerbear.list_templates",
  input: {},
});