Skip to main content
POST
/
meta
/
create_leadform_audience
Create Leadform Audience
curl --request POST \
  --url https://public.plai.io/meta/create_leadform_audience \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "userId": "<string>",
  "name": "<string>",
  "description": "<string>",
  "type": "<string>",
  "leadFormIds": [
    "<string>"
  ]
}
'
{
  "success": true,
  "results": {
    "success": true,
    "audience": {
      "id": "<string>",
      "name": "<string>"
    },
    "error": "<string>"
  }
}

Documentation Index

Fetch the complete documentation index at: https://plai-a079b342.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

Request Body

userId
string
required
User ID, If not already created, make a user on create user page first. If already created, retrieve the user ID from get profile page.
name
string
required
Audience Name
description
string
required
Audience description
type
string
required
Type = open or close or submit
leadFormIds
string[]
required
Lead Form Ids

Response

success
boolean
Indicates that the HTTP response was successful (status code 200 OK).
results
object