Lead routes: nurture, qualify
The Lead Verbs nurture, qualify as api.sb routes, with inputs, result, refusals and an example.
Reference for Lead, one group of Lead routes.
Lead.nurture
Nurture takes a Lead that is not ready to buy off its owner’s queue and onto a Sequence, until it raises a hand again. Verb page.
POST /{namespace}/ leads/ {lead}/ nurturePath: lead. Body, as JSON: the other inputs. Emits Lead.nurtured.
Inputs
| Input | Type | Required | Description |
|---|---|---|---|
lead | Lead | required | The Lead to nurture. |
sequence | Sequence | The Sequence to enroll it in. |
Returns
| Output | Type | Required | Description |
|---|---|---|---|
lead | Lead | required | The Lead, now in nurture. |
Refuses when
| Check | Error | Fix | Then call |
|---|---|---|---|
| The key is valid, but its scopes do not allow this operation. | forbidden | Use a key whose scopes cover the operation, or ask an owner of the namespace to grant them. | None. |
Example
curl -X POST https: //api.sb/ leaseline.app/ leads/ lead_Kz1R9fhqzZ/ nurture \
-H "Authorization: Bearer $STARTUP_BUILDER_API_KEY"{
"api": "https: //api.sb/ leaseline.app",
"lead": {
"$id": "https: //api.sb/ leaseline.app/ leads/ lead_Kz1R9fhqzZ",
"$type": "Lead",
"status": "new"
},
"action": {
"$id": "https: //api.sb/ leaseline.app/ actions/ act_br07HsG8MG",
"operation": "Lead.nurture",
"status": "done"
},
"links": {
"self": "https: //api.sb/ leaseline.app/ actions/ act_br07HsG8MG"
}
}Lead.qualify
Qualify confirms a Lead matches an Offer’s ICP and opens a Deal for it. Verb page.
POST /{namespace}/ leads/ {lead}/ qualifyPath: lead. Body, as JSON: the other inputs. Emits Lead.qualified.
Inputs
| Input | Type | Required | Description |
|---|---|---|---|
lead | Lead | required | The Lead to qualify. |
offer | Offer | required | The Offer whose ICP the Lead matches. |
Returns
Refuses when
| Check | Error | Fix | Then call |
|---|---|---|---|
| The key is valid, but its scopes do not allow this operation. | forbidden | Use a key whose scopes cover the operation, or ask an owner of the namespace to grant them. | None. |
| The record is not in a state that allows this Verb, so the call is refused. | refused | Read the record, run the Verb that moves it to an allowed state, then retry. | None. |
Example
curl -X POST https: //api.sb/ leaseline.app/ leads/ lead_Kz1R9fhqzZ/ qualify \
-H "Authorization: Bearer $STARTUP_BUILDER_API_KEY" \
-H "Content-Type: application/ json" \
-d '{"offer": "offer_2hzYe1ERo0"}'{
"api": "https: //api.sb/ leaseline.app",
"deal": {
"$id": "https: //api.sb/ leaseline.app/ deals/ deal_NgACZ6DcII",
"$type": "Deal",
"status": "Open"
},
"lead": {
"$id": "https: //api.sb/ leaseline.app/ leads/ lead_Kz1R9fhqzZ",
"$type": "Lead",
"status": "new"
},
"action": {
"$id": "https: //api.sb/ leaseline.app/ actions/ act_br07HsG8MG",
"operation": "Lead.qualify",
"status": "done"
},
"links": {
"self": "https: //api.sb/ leaseline.app/ actions/ act_br07HsG8MG"
}
}