Redirect
RedirectAction transfers the call flow to another Sautikit URL. The URL should point to a Sautikit-owned endpoint that returns a new VoiceAction response;
RedirectAction transfers the call flow to another Sautikit URL. The URL should point to a Sautikit-owned endpoint that returns a new VoiceAction response; the PBX rejects unsupported URL targets.
| Parameter | Type | JSON key | Required | Description |
|---|---|---|---|---|
URL | string | url | Yes | URL is the endpoint to redirect to. Required. |
Method | string | method | No | Method is the HTTP verb ("GET" or "POST"). Default "POST". |
import { sauti } from "@sautikit/node";
res.json(sauti.redirect("https://your-app.example.com/voice/next-step", {
method: "POST",
}));{
"actions": [
{
"redirect": {
"url": "https://your-app.example.com/voice/next-step",
"method": "POST"
}
}
]
}<Redirect method="POST">https://your-app.example.com/voice/next-step</Redirect>