Get Meta Lead Ads Status
Check whether Meta Lead Ads is connected and enabled for a call flow.
GET
Headers
x-workspace-idstringrequiredWorkspace identifier for the API. The call flow must belong to this workspace (or one of its sub-workspaces).
Path Parameters
flowIdstringrequiredThe _id of the call flow. The flow must be active.
Response Fields
enabledbooleanWhether new leads trigger calls on this flow.
connectedbooleanWhether Meta Lead Ads is connected to this flow.
webhookUrlstringThe webhook URL registered with Meta. Absent if the integration was never configured.
callDelaySecondsnumberSeconds Trillet waits after a lead arrives before calling. Absent if the integration was never configured.
The connected pages and forms are not returned here.
Errors
| Status | Body | When |
|---|---|---|
400 | {"error": "Invalid pathwayId"} | flowId isn't a valid ID |
403 | {"error": "Pathway does not belong to this workspace."} | The flow belongs to another workspace |
404 | {"error": "Pathway not found"} | No call flow with that ID |
404 | {"error": "Flow not found"} | The flow exists but isn't active |
500 | {"error": "Failed to get integration status", "details": "..."} | Unexpected server error |
{
"enabled": true,
"connected": true,
"webhookUrl": "https://app.trillet.ai/v1/api/meta-lead/webhook",
"callDelaySeconds": 30
}Last updated on