Test Mode
Running pipelines in production incurs usage costs. This is why all pipes offer a test mode. Making requests in test mode is always free.
Do not expect data returned in test mode to make sense. However, expect the data returned in test mode to be structurally correct in regards to type, content length, and format.
To send requests in test mode, include the "X-Test-Mode": "true"
header.
const result = await fetch("https://pipe0.com/api/v1/run", {
method: "POST",
headers: {
"Authorization": `Bearer ${YOUR_API_TOKEN}`,
"X-Test-Mode": "true" // Enable test mode
},
body: JSON.stringify({
pipes: [
{
name: "PeopleBusinessEmailWaterfallV1"
},
{
name: "CompanyDescriptionGoogleMapsV1"
}
],
input: [
{
name: "John Doe",
companyName: "Google LLC"
}
]
})
});
Last updated on