whatsapp flows
Get flow JSON asset
Get the flow JSON asset metadata, including a temporary download URL for the Flow JSON file.
AuthorizationBearer <token>
API key authentication - use your Zernio API key as a Bearer token
In: header
Path Parameters
flowIdstring
Flow ID
Query Parameters
accountIdstring
WhatsApp social account ID
Response Body
application/json
application/json
import Zernio from '@zernio/node';const zernio = new Zernio({ apiKey: process.env.ZERNIO_API_KEY });const { data } = await zernio.whatsappflows.getWhatsAppFlowJson({ path: { flowId: 'flow_abc123', }, query: { accountId: 'account_abc123', },});console.log(data);{
"success": true,
"assets": [
{
"name": "flow.json",
"asset_type": "FLOW_JSON",
"download_url": "string"
}
]
}{
"error": "Unauthorized"
}Empty