List lead scoring rules
const url = 'https://digize.com/api/v1/scoring-rules';const options = {method: 'GET', headers: {'x-api-key': '<x-api-key>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://digize.com/api/v1/scoring-rules \ --header 'x-api-key: <x-api-key>'The lead scoring rules, in order: what each looks at and the points it adds or takes. A contact’s score is what they add up to.
Needs the crm:read permission.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”Done
object
Field and tag give points while they hold; inactive once nothing has happened for days; opened, clicked, booked, paid and page_visited give points each time.
object
Field: the contact field’s key.
Field: the value it equals.
Tag: the tag.
Page_visited: the path the page starts with, such as /pricing.
Inactive: days without activity.
Points it adds, or takes when negative.
For a rule that counts each time: the most it gives one contact.
Example
[ { "kind": "field" }]What was sent isn’t valid (invalid).
object
object
object
Example
{ "error": { "code": "invalid" }}No key, or one that’s unknown, off or expired.
object
object
object
Example
{ "error": { "code": "invalid" }}The key doesn’t have the permission this needs.
object
object
object
Example
{ "error": { "code": "invalid" }}Nothing has that id (not_found).
object
object
object
Example
{ "error": { "code": "invalid" }}Over the rate limit; see retry-after.
object
object
object
Example
{ "error": { "code": "invalid" }}