Skip to the content
EnrichedNowDocs

    Type to search every page.

    Menu

    Playbooks

    Saved playbooks and schedules

    Keep a playbook's answers to run again, by hand or on a schedule: only new rows each time, rows across runs, pausing, and what the API holds for each.

    A saved playbook keeps a playbook with your answers under a name, to run again — by hand, or by itself on a schedule. Each of its runs delivers only rows it has not delivered before, so a daily run of "Java developers in London" gives you the companies that are new today, not the whole list again.

    Save a playbook#

    curl -X POST "https://api.enrichednow.com/v1/saved-formulas" \
      -H "Authorization: Bearer $ENRICHEDNOW_API_KEY" \
      -H "Content-Type: application/json" \
      -d '{"formula_id":"job-order-hunter","params":{"job_titles":["Java Developer"],"locations":["London"]},"unit_cap":400,"schedule":{"cadence":"weekdays","local_time":"07:30","timezone":"Europe/London"}}'
    import json
    import os
    import urllib.request
    
    body = {
        "formula_id": "job-order-hunter",
        "params": {"job_titles": ["Java Developer"], "locations": ["London"]},
        "unit_cap": 400,
        "schedule": {
            "cadence": "weekdays",
            "local_time": "07:30",
            "timezone": "Europe/London",
        },
    }
    
    request = urllib.request.Request(
        "https://api.enrichednow.com/v1/saved-formulas",
        method="POST",
        data=json.dumps(body).encode(),
        headers={
            "Authorization": f"Bearer {os.environ['ENRICHEDNOW_API_KEY']}",
            "Content-Type": "application/json",
        },
    )
    with urllib.request.urlopen(request, timeout=90) as response:
        print(json.dumps(json.load(response), indent=2))

    Nothing to install. Save as run.py and run python3 run.py

    const response = await fetch("https://api.enrichednow.com/v1/saved-formulas", {
      method: "POST",
      headers: {
        Authorization: `Bearer ${process.env.ENRICHEDNOW_API_KEY}`,
        "Content-Type": "application/json",
      },
      body: JSON.stringify({
        formula_id: "job-order-hunter",
        params: { job_titles: ["Java Developer"], locations: ["London"] },
        unit_cap: 400,
        schedule: {
          cadence: "weekdays",
          local_time: "07:30",
          timezone: "Europe/London",
        },
      }),
    });
    console.log(JSON.stringify(await response.json(), null, 2));

    Nothing to install. Save as run.mjs and run node run.mjs

    package main
    
    import (
    	"fmt"
    	"io"
    	"net/http"
    	"os"
    	"strings"
    )
    
    func main() {
    	body := strings.NewReader(`{"formula_id":"job-order-hunter","params":{"job_titles":["Java Developer"],"locations":["London"]},"unit_cap":400,"schedule":{"cadence":"weekdays","local_time":"07:30","timezone":"Europe/London"}}`)
    	request, err := http.NewRequest("POST", "https://api.enrichednow.com/v1/saved-formulas", body)
    	if err != nil {
    		panic(err)
    	}
    	request.Header.Set("Authorization", "Bearer "+os.Getenv("ENRICHEDNOW_API_KEY"))
    	request.Header.Set("Content-Type", "application/json")
    	response, err := http.DefaultClient.Do(request)
    	if err != nil {
    		panic(err)
    	}
    	defer response.Body.Close()
    	answer, err := io.ReadAll(response.Body)
    	if err != nil {
    		panic(err)
    	}
    	fmt.Println(response.Status)
    	fmt.Println(string(answer))
    }

    Nothing to install. Save as run.go and run go run run.go

    import java.net.URI;
    import java.net.http.HttpClient;
    import java.net.http.HttpRequest;
    import java.net.http.HttpResponse;
    
    public class Run {
        public static void main(String[] args) throws Exception {
            HttpRequest request = HttpRequest.newBuilder(URI.create("https://api.enrichednow.com/v1/saved-formulas"))
                .header("Authorization", "Bearer " + System.getenv("ENRICHEDNOW_API_KEY"))
                .header("Content-Type", "application/json")
                .POST(HttpRequest.BodyPublishers.ofString("{\"formula_id\":\"job-order-hunter\",\"params\":{\"job_titles\":[\"Java Developer\"],\"locations\":[\"London\"]},\"unit_cap\":400,\"schedule\":{\"cadence\":\"weekdays\",\"local_time\":\"07:30\",\"timezone\":\"Europe/London\"}}"))
                .build();
            HttpResponse<String> response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
            System.out.println(response.statusCode());
            System.out.println(response.body());
        }
    }

    Nothing to install. Save as Run.java and run java Run.java

    FieldType
    formula_idstringThe playbook.
    paramsobjectYour answers, as for a run.
    namestringDefault: made from its key answers and its cadence ("Java Developer, London, weekdays"), and it follows them when they change.
    unit_capintegerThe most one of its runs may spend. Default: the playbook's. Above that, owners and admins only.
    row_capintegerThe most rows a run returns.
    monthly_unit_capintegerThe most its runs may spend in a calendar month (UTC); a run is capped to what is left of it. Default: none.
    scheduleobjectWhen it runs by itself (below). Leave it out to run it by hand only.
    notifyeach_run, digest or noneMail when a scheduled run delivers new rows: after each run (the default), once a day, or never.

    It answers 201 with the saved playbook: its id (sf_…), its answers with every default filled in, its caps, its schedule with next_fire_at, estimate (what one run is expected to cost), last_run, and units_30d, what its runs were charged in the last 30 days. GET /v1/saved-formulas lists them, newest first; formula_id and status narrow the list.

    Saving costs nothing. A playbook that returns people needs its terms accepted first, as for a run (attestation_required).

    Schedules#

    Field
    cadencehourly, daily, weekdays, weekly or monthly: those the playbook allows (schedules on the playbook) and your plan does.
    local_timeHH:MM, 24-hour, in timezone. For hourly, only the minutes count.
    timezoneAn IANA time zone: Europe/London, America/New_York, UTC.
    day_of_weekFor weekly: 0 is Monday, the default.
    day_of_monthFor monthly: 1 to 31, the last day of a shorter month. Default 1.

    Every scheduled run spends units by itself, within its caps. GET /v1/saved-formulas/limits says how many schedules your plan allows at once and how often they may run; GET /v1/usage/scheduled what your schedules are expected to spend over the next days, against what the account can spend. A slot missed while the service was down runs once, not once for each slot.

    A schedule pauses itself, and the person who made it and the account's owners and admins are mailed, when:

    paused_reason
    failuresThree scheduled runs in a row failed.
    balanceThe account could not pay the least a run costs.
    attestationThe playbook's terms were not accepted.
    keyThe API key its schedule runs with was revoked or expired, or no longer allows it.
    manualSomeone paused it: POST /v1/saved-formulas/{saved_id}/pause.

    POST /v1/saved-formulas/{saved_id}/resume starts it again from the next slot after now. A schedule set with an API key runs with that key's limits; one set by a person in the console, with the account's.

    Only new rows#

    A saved playbook remembers what it delivered, by each row's row_key: the same company, job and contact is the same row from one run to the next. A full run of it delivers only rows it has not delivered before. Some playbooks let a row come back after a while — Job Order Hunter's resurface_after_days, 45 by default — because a company that hires again is worth a second look.

    • A preview remembers nothing.
    • include_seen: true on a run delivers rows delivered before as well, and still remembers them.
    • Changing its answers (PATCH /v1/saved-formulas/{saved_id}) keeps what was delivered as delivered, unless reset_seen is true.
    • POST /v1/saved-formulas/{saved_id}/seen/reset forgets everything it delivered (owners and admins). It is recorded in its activity and in the account's.
    • A copy (POST /v1/saved-formulas/{saved_id}/duplicate) starts with nothing delivered, unless copy_seen is true.

    Run it now#

    POST /v1/saved-formulas/{saved_id}/runs runs it now, with its own answers and caps, as any run (wait and Idempotency-Key work the same). The body is optional: mode (full or preview) and include_seen. A paused saved playbook can still be run by hand; an archived one answers 409 saved_formula_archived.

    Its rows, across its runs#

    GET /v1/saved-formulas/{saved_id}/rows is every row its runs wrote, in the order they were written — what a program that reads new rows each day polls:

    curl "https://api.enrichednow.com/v1/saved-formulas/sf_YOUR_SAVED_ID/rows?since=2026-11-24T00:00:00Z" \
      -H "Authorization: Bearer $ENRICHEDNOW_API_KEY"
    import json
    import os
    import urllib.request
    
    request = urllib.request.Request(
        "https://api.enrichednow.com/v1/saved-formulas/sf_YOUR_SAVED_ID/rows?since=2026-11-24T00:00:00Z",
        headers={"Authorization": f"Bearer {os.environ['ENRICHEDNOW_API_KEY']}"},
    )
    with urllib.request.urlopen(request, timeout=90) as response:
        print(json.dumps(json.load(response), indent=2))

    Nothing to install. Save as run.py and run python3 run.py

    const response = await fetch("https://api.enrichednow.com/v1/saved-formulas/sf_YOUR_SAVED_ID/rows?since=2026-11-24T00:00:00Z", {
      headers: { Authorization: `Bearer ${process.env.ENRICHEDNOW_API_KEY}` },
    });
    console.log(JSON.stringify(await response.json(), null, 2));

    Nothing to install. Save as run.mjs and run node run.mjs

    package main
    
    import (
    	"fmt"
    	"io"
    	"net/http"
    	"os"
    )
    
    func main() {
    	request, err := http.NewRequest("GET", "https://api.enrichednow.com/v1/saved-formulas/sf_YOUR_SAVED_ID/rows?since=2026-11-24T00:00:00Z", nil)
    	if err != nil {
    		panic(err)
    	}
    	request.Header.Set("Authorization", "Bearer "+os.Getenv("ENRICHEDNOW_API_KEY"))
    	response, err := http.DefaultClient.Do(request)
    	if err != nil {
    		panic(err)
    	}
    	defer response.Body.Close()
    	answer, err := io.ReadAll(response.Body)
    	if err != nil {
    		panic(err)
    	}
    	fmt.Println(response.Status)
    	fmt.Println(string(answer))
    }

    Nothing to install. Save as run.go and run go run run.go

    import java.net.URI;
    import java.net.http.HttpClient;
    import java.net.http.HttpRequest;
    import java.net.http.HttpResponse;
    
    public class Run {
        public static void main(String[] args) throws Exception {
            HttpRequest request = HttpRequest.newBuilder(URI.create("https://api.enrichednow.com/v1/saved-formulas/sf_YOUR_SAVED_ID/rows?since=2026-11-24T00:00:00Z"))
                .header("Authorization", "Bearer " + System.getenv("ENRICHEDNOW_API_KEY"))
                .build();
            HttpResponse<String> response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
            System.out.println(response.statusCode());
            System.out.println(response.body());
        }
    }

    Nothing to install. Save as Run.java and run java Run.java

    since keeps the rows first seen at or after that time; order=desc puts the newest first. limit, cursor, fields, min_score and format work as on a run's rows, and each row says which run wrote it (run_id). A row whose company, domain or address is now on your suppression list is left out.

    Suppressions#

    /v1/suppressions is the account's list of companies, domains and email addresses that no playbook should give you again — your clients, people who asked not to be contacted. Add them one at a time or in bulk (POST, or a CSV to POST /v1/suppressions/upload), list and remove them. A run does not write a row that matches, and a saved playbook's rows are read without one that matches since.

    Change, pause, archive#

    PATCH /v1/saved-formulas/{saved_id} changes its name, answers, caps, schedule (null removes it) or notify. DELETE archives it: its schedule stops and it does not run again; its runs and rows are kept as long as they would be. An archived saved playbook can be duplicated.

    What happened to it#

    GET /v1/saved-formulas/{saved_id}/activity is its history, newest first, for anyone on the account who can read runs, an archived one's too. Kept 13 months.

    curl "https://api.enrichednow.com/v1/saved-formulas/sf_YOUR_SAVED_ID/activity?limit=20" \
      -H "Authorization: Bearer $ENRICHEDNOW_API_KEY"
    import json
    import os
    import urllib.request
    
    request = urllib.request.Request(
        "https://api.enrichednow.com/v1/saved-formulas/sf_YOUR_SAVED_ID/activity?limit=20",
        headers={"Authorization": f"Bearer {os.environ['ENRICHEDNOW_API_KEY']}"},
    )
    with urllib.request.urlopen(request, timeout=90) as response:
        print(json.dumps(json.load(response), indent=2))

    Nothing to install. Save as run.py and run python3 run.py

    const response = await fetch("https://api.enrichednow.com/v1/saved-formulas/sf_YOUR_SAVED_ID/activity?limit=20", {
      headers: { Authorization: `Bearer ${process.env.ENRICHEDNOW_API_KEY}` },
    });
    console.log(JSON.stringify(await response.json(), null, 2));

    Nothing to install. Save as run.mjs and run node run.mjs

    package main
    
    import (
    	"fmt"
    	"io"
    	"net/http"
    	"os"
    )
    
    func main() {
    	request, err := http.NewRequest("GET", "https://api.enrichednow.com/v1/saved-formulas/sf_YOUR_SAVED_ID/activity?limit=20", nil)
    	if err != nil {
    		panic(err)
    	}
    	request.Header.Set("Authorization", "Bearer "+os.Getenv("ENRICHEDNOW_API_KEY"))
    	response, err := http.DefaultClient.Do(request)
    	if err != nil {
    		panic(err)
    	}
    	defer response.Body.Close()
    	answer, err := io.ReadAll(response.Body)
    	if err != nil {
    		panic(err)
    	}
    	fmt.Println(response.Status)
    	fmt.Println(string(answer))
    }

    Nothing to install. Save as run.go and run go run run.go

    import java.net.URI;
    import java.net.http.HttpClient;
    import java.net.http.HttpRequest;
    import java.net.http.HttpResponse;
    
    public class Run {
        public static void main(String[] args) throws Exception {
            HttpRequest request = HttpRequest.newBuilder(URI.create("https://api.enrichednow.com/v1/saved-formulas/sf_YOUR_SAVED_ID/activity?limit=20"))
                .header("Authorization", "Bearer " + System.getenv("ENRICHEDNOW_API_KEY"))
                .build();
            HttpResponse<String> response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
            System.out.println(response.statusCode());
            System.out.println(response.body());
        }
    }

    Nothing to install. Save as Run.java and run java Run.java

    actiondetail
    createdformula_id, cadence; for a copy, duplicate_of and copy_seen.
    changedchanged (the fields sent), changes ({field: {from, to}} for name, unit_cap, row_cap, monthly_unit_cap, notify and schedule), params_changed (the answers whose values changed).
    pausedreason: manual, or why the schedule paused itself (above).
    resumedwas: the reason it had been paused.
    archived
    seen_resetcleared: how many delivered rows were forgotten.
    run_startedrun_id, trigger (schedule, api, console, mcp), mode, and scheduled_for for a scheduled one.
    delivery_faileddelivery_id, destination_id, kind, formula_run_id, error and attempts: a delivery that failed for good.

    Each entry has description, the action in words, and actor: type is person, api_key or service (its schedule, or the service on its own). A person's name is their address, shown to people signed in to the account, and null to an API key; an API key's is its name. action keeps one kind; limit (at most 100) and cursor page through it.

    Where its rows go#

    A saved playbook sends each run's new rows to its destinations: your CRM, a sequencer, a sheet, Slack, a webhook endpoint or an email digest. Suppressed rows are never sent.

    • GET /v1/integrations/kinds lists what can be connected. A destination kind has config_schema: what its config takes, as a JSON Schema, each property with a title. x-targets (campaign, list or tab) marks a value chosen from GET /v1/integrations/{integration_id}/targets, and x-targets-query what it asks for (a sheet's tabs need spreadsheet). An object property is an option that is off until it is given.
    • POST /v1/destinations/suggest makes a field map before the destination exists: give kind, formula_id, and integration_id and config to read the service's own fields (a CRM's properties, a sheet's header). It answers fields, suggested_map and preview, that map on the playbook's first sample row. Nothing is written. Send the map with POST /v1/destinations; POST /v1/destinations/preview shows one you changed.
    • GET /v1/formula-deliveries?saved_formula_id=sf_YOUR_SAVED_ID lists its deliveries to all its destinations, newest first; destination_id, formula_run_id and status narrow it.
    • POST /v1/integrations/{integration_id}/pause (owners and admins) stops playbooks using an integration and anything being sent through it; a delivery waiting for it is tried again for a day, and can be sent again after. POST /v1/integrations/{integration_id}/resume tests its credentials first: ones the service refuses keep it paused (422, details.result is credentials_rejected), and you connect it again with new ones.

    Webhook events#

    A webhook endpoint can ask for a playbook's events as well as a run's:

    EventWhen
    formula_run.finishedA playbook run ended ok, partial or cancelled.
    formula_run.failedA playbook run ended failed.
    rows.newA saved playbook's full run delivered new rows: the rows themselves, at most 500 to an event.
    saved_formula.pausedA saved playbook's schedule paused itself.

    They are signed as every webhook is, and tried 6 times over 24 hours.