Trillet AI logo

Get Meta Lead Ads Status

Check whether Meta Lead Ads is connected and enabled for a call flow.

GEThttps://api.trillet.ai/v1/api/meta-lead/status/{flowId}

Headers

x-workspace-idstringrequired

Workspace identifier for the API. The call flow must belong to this workspace (or one of its sub-workspaces).

Path Parameters

flowIdstringrequired

The _id of the call flow. The flow must be active.

Response Fields

enabledboolean

Whether new leads trigger calls on this flow.

connectedboolean

Whether Meta Lead Ads is connected to this flow.

webhookUrlstring

The webhook URL registered with Meta. Absent if the integration was never configured.

callDelaySecondsnumber

Seconds 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

StatusBodyWhen
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