DocsDeveloper guidesSet up a delivery

Set up a delivery

Push index files to email, webhook or SFTP on a schedule.

A delivery pushes index output to a destination. It is a separate object from the index — dlv_ rather than idx_, stored in {stage}-deliveries — but the execution coordinator picks it up alongside workflows and runs it through the same engine. That separation is deliberate: recalculating an index and shipping its output fail for different reasons and want different retry behaviour, so they are separate runs.

A delivery is an ordinary workflow. It is stored once, as a plain operations list, and there is nothing the platform expands at runtime. There are exactly two shapes.

  • Standard — trigger → index_panel → one of send_email, send_webhook, send_sftp, send_s3. The panel decides what the file contains, the send op decides where it goes.
  • Partner — trigger → one of send_alphabot, send_alphathena, send_stratifi, send_refinitiv. No panel node, because the partner operation is the whole flow.

The console's delivery form is the easy path, and it writes exactly those nodes — it reads them back too, so the form and the workflow builder are two views of one stored graph. There is no "declarative config" mode opposite a "custom DAG" mode, and nothing is converted when you move between them: open a form-built delivery in the builder and you see the operations that run.

The standard shape

delivery_trigger
delivery_payload
delivery_send
A standard delivery: trigger → index_panel → send op. Shown here with the webhook channel.
Drag to pan, and select a node to see its configuration.
  1. A trigger operation — index_event_trigger to fire on a publication, trigger for cron, manual_trigger for a human gate.
  2. index_panel builds one flat file per index from the chosen payload_type and history, and outputs file artifacts.
  3. One send operation ships those artifacts. Swapping the channel is swapping this node; the panel above it does not change.

Two wiring details are load-bearing. The panel takes its targets from the trigger — index_ids: { "$ref": "delivery_trigger.output.fired_index_ids" } — so a delivery watching several indices builds a file only for the ones that actually published. And a $ref edge has to appear in input as well as in parameters; input is what orders the graph.

Creating one

POST /deliveries takes the delivery body. operations is required — a request without it is rejected with {"error": "operations required"}.

FieldMeaning
team_idOwning team.
nameDisplay name. Required.
descriptionFree text.
stagelive runs it, paused stops it firing. Defaults to live. A stopped index is left out of its runs until it is started again.
timezoneTimezone recorded on the delivery. Cron triggers take their own timezone parameter.
index_id / index_idsThe index or indices this delivery is about. Operations that take no explicit target fall back to these.
operationsRequired. The delivery graph: a trigger, then index_panel + a send op, or a partner send op alone.
curl -X POST https://api.indexone.io/deliveries \
-H "x-api-key: YOUR_API_KEY" \
-H "Authorization: YOUR_ID_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"team_id": "YOUR_TEAM_ID",
"name": "Daily values to ops",
"stage": "live",
"timezone": "US/Eastern",
"index_ids": ["idx_bh7fgXWJMaa3"],
"operations": [
{
"id": "delivery_trigger",
"operation": "index_event_trigger",
"use_cache": false,
"parameters": { "index_id": "idx_bh7fgXWJMaa3", "event_type": "value_eod" }
},
{
"id": "delivery_payload",
"operation": "index_panel",
"use_cache": false,
"input": [{ "$ref": "delivery_trigger" }],
"parameters": {
"index_ids": { "$ref": "delivery_trigger.output.fired_index_ids" },
"payload_type": "values",
"history": "latest",
"filename_template": "{index_name}_values_{date}.csv"
}
},
{
"id": "delivery_send",
"operation": "send_email",
"use_cache": false,
"input": [{ "$ref": "delivery_payload" }],
"parameters": {
"recipients": ["ops@example.com"],
"subject": "Index values {date}",
"body": "Attached: end-of-day values."
}
}
]
}'

default_operations is not part of this

default_operations still exists, and still holds genuine engine defaults — create_index_value_eod_default for EOD valuation, create_index_corporate_actions_default for corporate actions. Those are single operations that do many steps internally; they are not shorthand for a graph. Deliveries do not use default_operations at all. If you are carrying an older integration that wrote a delivery there, move it to operations.

Triggers

OperationFires whenUse it for
index_event_triggerA target index publishes data of the chosen event_typeSending as soon as the data exists, with no guessing about timing
triggerA cron expression, in the operation's timezoneA fixed contractual send time, or a digest that does not track publication
manual_triggerA human resumes the suspended runApproval gates and ad-hoc resends

index_event_trigger is the right default. Its event_type selects which publication to listen for: value_eod for a new end-of-day value, session once the index's day is complete (the value in and that close's rebalances and corporate actions done — the one for holdings, weights and tracker files), universe for a reconstitution, weighting for a rebalance, holdings for a holdings update. A rebalance file that goes out on weighting cannot arrive before the weights exist; the same file on a cron can.

index_id is normally a single id string and also accepts a list — the trigger fires when any listed index publishes, and passes only those ids downstream in output.fired_index_ids.

a cron trigger instead
{
"id": "delivery_trigger",
"operation": "trigger",
"use_cache": false,
"parameters": { "cron": "0 17 * * 1-5", "timezone": "US/Eastern" }
}

On a cron or manual trigger there are no fired ids to inherit, so give index_panel an explicit index_ids list instead of the $ref.

Restatements do not fire events

index_event_trigger listens to table streams, and rows older than about three hours are treated as restatements — they never fire. So a corrected historical value will not push a new delivery. If your consumers need restatements, they have to re-pull; see Corporate actions.

The payload: index_panel

index_panel reads the index tables for each target and renders a flat table — one header row, one record per row, always carrying an index_id column. It outputs file artifacts, [{index_id, index_name, payload_type, time, data, filename}], which the channel send operations consume.

ParameterMeaning
payload_typevalues, weightings, holdings, changes, corporate_actions or tracker_legacy. Defaults to values.
historylatest (the most recent snapshot) or full (the whole series). Defaults to latest.
index_idsTargets. Defaults to the upstream trigger's fired indices, then the delivery's own targets.
filename_templateDefaults to {index_name}_{payload_type}_{date}.csv. Also supports {index_id}, {yyyymmdd}, {timestamp}.
categoryIdentifier to key positions by on weightings / holdings / changes — e.g. symbol. Omit to keep the stored FIGI.
columnsProject and rename output columns: {"security": "id", "weight": "weight"} keeps only those, in that order.
include_unchangedchanges panels only: also emit rows for positions that did not move.
filesBuild several files from one node. Each entry overrides this node's own parameters; the artifacts come back as one flat list, so a single send op delivers them all.

history decides how much goes out. latest is the normal setting for a recurring feed. full is what you want for a backfill or a first send to a new counterparty, and what you do not want daily.

one node, two files
{
"id": "delivery_payload",
"operation": "index_panel",
"use_cache": false,
"input": [{ "$ref": "delivery_trigger" }],
"parameters": {
"index_ids": { "$ref": "delivery_trigger.output.fired_index_ids" },
"category": "symbol",
"files": [
{ "payload_type": "values", "history": "full", "filename_template": "returns_{index_id}_{yyyymmdd}.csv" },
{ "payload_type": "holdings", "history": "latest", "filename_template": "positions_{index_id}_{yyyymmdd}.csv" }
]
}
}

tracker_legacy is a snapshot, not a series

payload_type: "tracker_legacy" reproduces the v1 tracker file — every position of the latest snapshot with its add/remove/hold state, in the legacy column order. It rejects history: "full" and columns with a config error, and an errored live execution group is parked permanently, so do not set them. Use it only for partners that parse that exact file; flat panels are preferable for anything new.

The four channels

Email

{
"id": "delivery_send",
"operation": "send_email",
"use_cache": false,
"input": [{ "$ref": "delivery_payload" }],
"parameters": {
"recipients": ["ops@example.com", "risk@example.com"],
"subject": "US 500 holdings — {date}",
"body": "Quarterly rebalance holdings attached."
}
}

One email via SES with every upstream artifact attached as a CSV, named by filename_template. subject and body support {date}, {payload_type} and the first file's filename placeholders ({index_name}, {legacy_id}, ...). Email is fine for humans and for counterparties with an inbox-based intake process; it is a poor fit for anything automated, because you get no delivery confirmation you can act on.

Webhook

{
"id": "delivery_send",
"operation": "send_webhook",
"use_cache": false,
"input": [{ "$ref": "delivery_payload" }],
"parameters": {
"url": "https://example.com/hooks/indexone",
"method": "POST",
"headers": { "x-shared-secret": "…" },
"per_index": true
}
}

per_index: true (the default) issues one request per index, each body {index_id, index_name, payload_type, time, generated_at, records: [...]}. Set it to false and you get a single request bundling every envelope under deliveries. One request per index is usually what a receiver wants, since each then has a single subject and can be processed independently.

There is no signature on delivery webhooks today, so put a shared secret in headers and check it on receipt. The consuming guide covers what a receiver should do with the request.

Endpoints behind a token

auth fetches a bearer immediately before every send: {url, method, headers, body, token_path, header, prefix}. Do this rather than adding an upstream node that fetches the token — an upstream node is executed once at registration and its result reused forever, so the token goes stale and the sends start failing.

SFTP

{
"id": "delivery_send",
"operation": "send_sftp",
"use_cache": false,
"input": [{ "$ref": "delivery_payload" }],
"parameters": {
"host": "sftp.example.com",
"port": 22,
"username": "indexone",
"private_key": "-----BEGIN OPENSSH PRIVATE KEY-----\n…",
"directory": "/incoming/indices"
}
}

Supply either password or private_key; a key is preferable. Each artifact lands in directory under its own filename, unless filename overrides it. SFTP is the format most institutional counterparties already have an intake process for, and unlike email it gives the receiver a directory they can poll and reconcile.

S3

{
"id": "delivery_send",
"operation": "send_s3",
"use_cache": false,
"input": [{ "$ref": "delivery_payload" }],
"parameters": {
"bucket": "EXPORT_BUCKET",
"key_template": "{team_id}/{index_id}_{payload_type}_{date}.csv"
}
}

bucket accepts the logical name EXPORT_BUCKET — the default, which resolves to the customer-facing export bucket — or a literal bucket name so a team can write into its own. key_template supports {team_id}, {index_id}, {index_name}, {payload_type}, {date}, {yyyymmdd}, {timestamp} and {filename}.

Filenames are the only versioning

A delivery that writes the same filename every run overwrites yesterday's file if the receiver has not moved it. Put the date in filename_template (or key_template) — {index_id}_holdings_{date}.csv — so a missed pickup does not become silent data loss.

Partner integrations

A partner accepts exactly one data shape over exactly one transport. "Weightings over SFTP" for a partner that wants a return series over its own API simply does not work, so partner operations are not building blocks — each one is a whole flow. The operation reads the data it needs, formats it the one way that partner accepts, and sends it over the one transport that partner speaks.

That leaves a partner delivery with two nodes and almost nothing to configure: the targets, and the per-index account binding — the identifier that partner knows your index by.

delivery_trigger
delivery_send
A partner delivery: trigger → send_<partner>. There is no index_panel — the partner op reads its own data.
Drag to pan, and select a node to see its configuration.
  1. The same trigger operations as any other delivery; value_eod is what live partner rules normally fire on.
  2. The partner send op takes its targets from fired_index_ids and maps each one to its account binding.
  3. Formatting and transport are inside the operation. There is nothing between the two nodes to configure.
OperationWhat is sentPer-index bindingCredentials
send_refinitivLatest EOD close, contributed as HST_CLOSE / HSTCLSDATE over an LSEG tr_json2 websocketric_map — {index_id: RIC}Index One's own
send_alphabotThe full inception-to-date daily return series, re-sent every run with Replace: trueinstrument_ids — {index_id: InsId}Index One's own
send_alphathenaCurrent symbol-keyed weights, PUT to a saved indexindex_uuids — {index_id: uuid}Index One's own
send_stratifiA returns file and a positions file per index, over SFTPnone — the target list is enoughIndex One's own

An index with no entry in the binding map is reported as a per-target failure rather than failing the run, so adding an index to the trigger without adding its RIC produces a visible, recoverable warning. The console's Integrations page is the front end for all of this: pick the indices, fill the binding column, save.

What a failed send does

Every send operation reports per-target rows — output.results = [{index_id, target, ok, attempts, detail}] — plus sent, sent_count and failed_count. One index failing does not stop the others, so the rows, not a single boolean, are the result of a delivery.

Retries are controlled by retries on every send op (default 2 attempts after the first). Webhooks retry 408, 429 and 5xx and transport errors; a 4xx is not retried, because repeating the same request will not change the answer.

A failed send is a warning, never an error

A send that fails after its retries sets _state.warning with sent: false — deliberately, and it matters. The coordinator parks a live execution group permanently once it errors, and never re-registers it, so a single transient partner 500 recorded as an error would silently stop the delivery until somebody POSTed /trigger by hand. Delivery failures must be visible but non-terminal: the next event re-fires the group. The consequence for you is that "the run completed" is not "the file arrived" — read results.

Testing without sending

Send operations resolve one of three modes from the execution context, and it is worth knowing which one you are in.

ModeWhenWhat happens
liveexecution_mode: "live" — the real scheduled runThe send happens.
dry_runPreview, including the workflow builderNo send. Returns {"would_send": true, …} with the destination and the files it would have used.
blockedBacktestNo send, ever. Returns {"sent": false, "reason": "sends are disabled in backtest mode"}.

The backtest block is what stops a twenty-year simulation of an index that has a delivery attached from mailing a counterparty five thousand times. The dry run is the deliberate test: the delivery runs for real and builds the real panel, then stops at the send — use it to check the file contents and the filename before the first live send.

To actually send once on demand, the console's Test delivery button posts to /execute with request_context.delivery_test: true, which promotes a preview run to a real send.

blocked in backtest
{ "sent": false, "reason": "sends are disabled in backtest mode" }

Managing deliveries

RouteNotes
POST /deliveriesCreate. operations required. Succeeds with 200, not 201.
GET /deliveries/{id}{id} is the team id, not the delivery id — it lists the team's deliveries.
PATCH /deliveries/{id}Update a delivery, by delivery id. Patch operations to change the graph, stage to pause or resume.
DELETE /deliveries/{id}Delete a delivery, by delivery id.
GET /deliveries/{id}/executionsRun history for one delivery, by delivery id.

GET /deliveries/{id} takes a team id — the other routes do not

This is the most common mistake against these routes. The list route is keyed by team; create, patch, delete and executions are all keyed by the dlv_ id. Passing a delivery id to the list route returns nothing rather than an error, which reads like "the delivery does not exist".

Beyond the form

Because a delivery is just a workflow, anything the form does not offer is a matter of adding nodes rather than switching to a different kind of object. Join index output against your own dataset before sending, filter the panel down to a subset of constituents, compute derived columns, fan out to two destinations from one panel — all of it is the same graph model as an index workflow, ending in a send operation.

The one thing to keep in mind: the console form only recognises the exact three-node shape it writes. Add a fourth node and the delivery still runs, and still opens in the workflow builder, but the row is listed as custom and the one-click dialog will not open it.