Set a flow's endpoint
Sets the HTTPS endpoint Samva forwards the flow's data-exchange requests to, signed like a webhook delivery.
PUT
Sets the HTTPS endpoint Samva forwards the flow's data-exchange requests to, signed like a webhook delivery. The flow's first endpoint is issued a signing secret, returned once; changing the URL keeps the secret.
apiKeyheader
x-api-key<token>id*stringMatch
^waflow_[0-9a-hjkmnp-tv-z]{16,24}$application/json- body
url*stringWhatsAppFlowEndpointSettings
application/json- response
url*stringupdatedAt*stringsecret?stringimport { createClient } from "samva";
const samva = createClient({ apiKey: process.env.SAMVA_API_KEY! });
const result = await samva.whatsappFlows.setEndpoint({
"id": "example",
"url": "example"
});Example Response
{
"url": "string",
"updatedAt": "string",
"secret": "string"
}