Skip to Content
Developers

Post a lead

Send a form lead to a campaign, and know at once whether it was accepted.

Lead posts use a posting key, not a Publisher API key

Each lead campaign you may send to shows its posting key, its address and its fields in your publisher portal. A Publisher API key (traki_publisher_) only reads your results; it does not send leads.

The flow

  1. Collect the lead with every field the campaign requires, and the consent the campaign needs.
  2. Post it to the campaign's address with its posting key.
  3. Read the answer. It says at once whether the lead was accepted or rejected, and why.
  4. Keep the answer's lead code with your own record, so you can match the two later.

Getting leads accepted

  • Send every required field, in the format the campaign lists.
  • Send phone numbers in E.164 form, like +13055550123.
  • Send the consent text and the time it was given. A campaign can refuse a lead without it.
  • Do not post the same person twice in a short time: campaigns can reject duplicates.

Following your leads

Leads you sent, accepted or rejected and why, join the Publisher API in release 2 with the leads:read scope. Until then, your publisher portal lists them.