/

Endpoints

Transform payloads

Reshape an event for one endpoint with a short JavaScript function.

3 min read

Some customers point an endpoint at a tool that expects its own format. A transformation changes the payload for that one endpoint without changing what you send.

export default function (event) {
  return {
    text: `Invoice ${event.data.invoice} was paid`,
  };
}
export default function (event) {
  return {
    text: `Invoice ${event.data.invoice} was paid`,
  };
}
export default function (event) {
  return {
    text: `Invoice ${event.data.invoice} was paid`,
  };
}

Transformations run with a 50 ms time limit and no network access. If one throws, the attempt fails and is retried like any other failure.

Something missing or wrong on this page? Tell us at support@sluicehq.dev and we will fix it.

Create a free website with Framer, the website builder loved by startups, designers and agencies.