Skip to main content
POST
Create lead by offer ID (POST)

Authorizations

X-API-Key
string
header
required

Preferred authentication method. Pass the API key in the X-API-Key HTTP request header. The user account must have api_status enabled.

Body

application/json
offer_id
integer
required
affiliate_id
integer
goal_id
integer
deliver_lead
enum<string>
default:no

Forwards the created lead to the external systems configured for its goal. With yes the lead is posted out; with no (the default) it is only recorded in Scaleo. Delivery needs the Leads Management Module, an active Receive campaign bound to the lead's goal_id, and at least one active Deliver vendor on that campaign - without them, or when a vendor's posting instructions are empty, yes has no effect. Each vendor is called with its own posting instructions (URL, method, headers, tokenized body); its answer is matched against the vendor's success reply and sets the lead's delivery status - success, fail, or empty when the vendor has no success reply configured. Every attempt is stored in the leads log as an Outgoing Lead record. Leads that end up in the trash conversion status (failed campaign validation, geo check, or cap) are never delivered. If the vendor has "return reply" enabled, its raw response is added to the response payload as delivery_reply. Requests authenticated with an affiliate-role API key are an exception: the value is overwritten with yes before the lead is processed, so an affiliate integration cannot switch delivery off on this endpoint. Only manager-level API keys can send no here.

Available options:
yes,
no
revenue
number
payout
number
amount
number
conv_status
enum<string>
Available options:
pending,
approved,
rejected,
hold
email
string
firstname
string
lastname
string
phone
string
gender
enum<string>
Available options:
m,
f
birthday
string<date>
address
string
city
string
region
string
postcode
string
country
string
vertical
string
ip
string
idfa
string
gaid
string
sub_id1
string
sub_id2
string
sub_id3
string
sub_id4
string
sub_id5
string
aff_param1
string
aff_param2
string
aff_param3
string
aff_param4
string
aff_param5
string
custom1
string
custom2
string
custom3
string
custom4
string
custom5
string
custom6
string
custom7
string
custom8
string
custom9
string
custom10
string
public_notes
string
private_notes
string
promo_code
string

Response

Lead creation result.

status
string
Example:

"success"

code
integer
Example:

200

name
string
Example:

"OK"

message
string
info
object