Skip to content
  • Workflows
  • Bindings

url

The url binding allows you to access the native JavaScript URLSearchParams API. This is useful for parsing and manipulating URLs in your workflow and is often used in conjunction with the kinde.fetch binding.

Available in workflows

Link to this section
export const workflowSettings = {
// ...other settings
bindings: {"kinde.url": {}}
};

Using the low-level API

Link to this section

Once the binding is enabled you can use new URLSearchParams directly.

export default async function (event) {
const {data: token} = await fetch(`https://someapi.com/api`, {
method: "POST",
responseFormat: "json",
headers: {"Content-type": "application/x-www-form-urlencoded"},
body: new URLSearchParams({a: "b", b: "c"})
});
}