Trillet AI logo

Configure Meta Lead Ads

Configure Meta Lead Ads integration for a specific call flow. When a new lead is received, it automatically triggers a call.

POSThttps://api.trillet.ai/v1/api/meta-lead/configure/{flowId}

Headers

x-api-keystringrequired

API key used for authenticating requests to the API.

x-workspace-idstringrequired

Workspace identifier for the API.

Path Parameters

flowIdstringrequired

The call flow ID to configure Meta Lead Ads for.

Request Body

clientIdstringrequired

Meta App client ID.

clientSecretstringrequired

Meta App client secret.

userAccessTokenstringrequired

Meta user access token from the OAuth flow.

callDelaySecondsnumberdefault: 0

Delay in seconds before calling a new lead.

selectedPagesarrayrequired

Array of Facebook pages and lead forms to monitor.

Response Fields

successboolean

Whether the configuration was successful.

webhookRegisteredboolean

Whether the webhook was successfully registered with Meta.

{
  "success": true,
  "webhookRegistered": true
}
Configure Meta Lead Ads — Trillet AI