Appearance
JavaScript/TypeScript SDK
You can call the API directly with fetch. Official SDK support can be layered later.
Example
ts
const response = await fetch("https://app.veriprompt.tech/api/gateway/execute", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.VERIPROMPT_API_KEY}`,
"Content-Type": "application/json"
},
body: JSON.stringify({
input: "Summarize this text.",
routingPolicy: { strategy: "balanced" }
})
});
const data = await response.json();