Workflows
Index workflows on the new engine.
Credentials
sessionStorage) and are sent only to https://api.indexone.io. They are cleared when the tab closes.The current index plane: workflows (idx_...) are operation graphs executed by the coordinator. POST /workflows deploys one; GET /query and the index read operations of POST /execute read its data.
List a team's workflows
/workflowsLists the workflows a team owns.
A team API key alone is enough: with no Authorization header it lists the key's own team. Send a sign-in token as well to list another team you belong to.
Added 2026-07-21, replacing GET /workflows/{id}, where {id} confusingly meant a team id while the same path template under PATCH, DELETE and /executions meant a workflow id.
Query parameters
| Field | Type | Description |
|---|---|---|
team_id | string | The owning team. With the key alone, it defaults to the key's team, and naming any other team is a 403. With a sign-in token, it defaults to your primary team. |
fields | string | Comma-separated fields to return per workflow ( id is always kept), so a list skips each workflow's operations graph. |
curl -X GET "https://api.indexone.io/workflows" \-H "x-api-key: YOUR_API_KEY" \-H "Authorization: YOUR_ID_TOKEN"
Try it
The owning team. With the key alone, it defaults to the key's team, and naming any other team is a 403. With a sign-in token, it defaults to your primary team.
Comma-separated fields to return per workflow (`id` is always kept), so a list skips each workflow's `operations` graph.
Example response
[{"id": "idx_bh7fgXWJMaa3","name": "US Momentum 50","stage": "live","created_at": "2026-01-14 09:02:11"}]
Errors
| Field | Type | Description |
|---|---|---|
401 | Error | No team to list: the console's shared key without a sign-in token, or an invalid or expired token. Also when the API key is missing or invalid ( invalid_api_key). |
403 | Error | team_id names a team this key or user may not act on. |
404 | Error | No such team. |
Create a live workflow
/workflowsCreates a live index: validates the workflow, persists it as stage: "pending", and runs the backtest and live registration in the background. Returns immediately so the call is never held against the gateway's 29-second ceiling.
Poll GET /workflows/{workflow_id} and watch stage: pending becomes live once history is written and the index is registered for continuous calculation, or failed with a failure_reason if validation, execution or the empty-index check rejected it. Failed records are kept, not deleted, so the reason is readable.
The body is {"index_parameters": {...}}, the same object POST /simulate takes; a record from GET /workflows/{workflow_id} can be sent as it is.
Pass websocket_id to stream progress instead of polling, the same way the console does.
Request body
| Field | Type | Description |
|---|---|---|
index_parametersrequired | object | An index definition: the index_parameters of POST /simulate and POST /workflows, and the record GET /workflows/{workflow_id} returns. The fields the platform sets (id, team_id, stage, created_at, updated_at, backtest_id, failure_reason) are ignored on input, so a fetched record can be sent back as it is. |
index_parameters.id | string | Workflow id, idx_.... Set by the platform. |
index_parameters.name | string | |
index_parameters.description | string | |
index_parameters.start_time | string | Start of the index history, YYYY-MM-DD HH:MM:SS. |
index_parameters.end_time | string | End of a backtest. Omit to run to today. |
index_parameters.start_value | number | Index level at start_time. |
index_parameters.exchange_calendar | string | Exchange calendar of the index's sessions. |
index_parameters.timezone | string | |
index_parameters.eod_time | string | Local time of the end-of-day value. |
index_parameters.operations | array of object | The operation graph. Every flow starts with a trigger and ends in create_index_holdings. |
index_parameters.default_operations | object | Settings for the operations every index runs after its own, such as its value series ( create_index_value_eod_default). |
index_parameters.visibility | "private" | "public" | "unlisted" | |
index_parameters.team_id | string | Owning team. Set by the platform. |
index_parameters.stage | string | Set by the platform: draft (saved, never deployed), pending (deploying), live, failed (see failure_reason) or stopped. |
index_parameters.failure_reason | string | null | Why a deploy or a start failed. |
index_parameters.backtest_id | string | The backtest a deploy ran, bkt_.... |
index_parameters.created_at | string | |
index_parameters.updated_at | string | |
start_time | string | Overrides index_parameters.start_time. |
end_time | string | Overrides index_parameters.end_time. |
websocket_id | string | Also stream progress frames to this WebSocket connection. Also accepted as connection_id. |
curl -X POST "https://api.indexone.io/workflows" \-H "x-api-key: YOUR_API_KEY" \-H "Authorization: YOUR_ID_TOKEN" \-H "Content-Type: application/json" \-d '{"index_parameters": {"name": "Example Portfolio","start_time": "2019-12-31 00:00:00","start_value": 1000,"timezone": "US/Eastern","eod_time": "16:00:00","exchange_calendar": "XNYS","default_operations": {"create_index_value_eod_default": {"value_series": [{"id": "value_pr"},{"id": "value_tr","dividend_policy": "pro_rata","default": true}]}},"operations": [{"id": "rebal_trigger","operation": "trigger","parameters": {"cron": "0 0 1 1,4,7,10 *","alignment_enabled": true,"align_time": true,"trading_calendar": "XNYS","trading_day": "preceding","session_time": "close"}},{"id": "portfolio","operation": "map_identifiers","parameters": {"data": [{"symbol": "AAPL.US","weight": 0.4},{"symbol": "MSFT.US","weight": 0.3},{"symbol": "GOOGL.US","weight": 0.3}]},"input": [{"$ref": "rebal_trigger"}]},{"id": "universe","operation": "create_index_universe","parameters": {"universe": {"$ref": "portfolio.output#id"}},"input": [{"$ref": "portfolio"}]},{"id": "weights","operation": "create_index_weighting","parameters": {"data": {"$ref": "portfolio.output"},"weighting_type": "proportional","id_attribute": "id","weight_attribute": "weight"},"input": [{"$ref": "portfolio"}]},{"id": "holdings","operation": "create_index_holdings","parameters": {"weighting": {"$ref": "weights.output"}},"input": [{"$ref": "weights"}]}]}}'
Try it
Errors
| Field | Type | Description |
|---|---|---|
401 | Error | The API key is missing or invalid ( invalid_api_key) or the id token is missing, invalid or expired (unauthenticated). |
402 | Error | Your plan is at its live index limit. |
403 | Error | No team could be resolved for you, or X-Team-Id names a team you may not act on. |
422 | Error | The workflow failed validation, or has no operations. issues lists the problems. |
Get a workflow
/workflows/{workflow_id}Returns one workflow's whole record — metadata, calendar settings, stage, and its operations DAG.
This is what you poll after POST /workflows: watch stage move from pending to live, or to failed with a failure_reason.
Added 2026-07-21. Before that this path took a team id and returned that team's whole list, while the same path under PATCH and DELETE took a workflow id — so there was no way to fetch a single workflow at all. The list moved to GET /workflows?team_id=.
Path parameters
| Field | Type | Description |
|---|---|---|
workflow_idrequired | string | Workflow id. |
curl -X GET "https://api.indexone.io/workflows/idx_bh7fgXWJMaa3" \-H "x-api-key: YOUR_API_KEY" \-H "Authorization: YOUR_ID_TOKEN"
Try it
Workflow id.
Example response
{"id": "idx_bh7fgXWJMaa3","name": "US Momentum 50","stage": "live","team_id": "tem_4Kd9Xa","exchange_calendar": "XNYS","timezone": "US/Eastern","created_at": "2026-01-14 09:02:11","updated_at": "2026-07-20 16:00:04","operations": []}
Errors
| Field | Type | Description |
|---|---|---|
401 | Error | The API key is missing or invalid ( invalid_api_key) or the id token is missing, invalid or expired (unauthenticated). |
403 | Error | The workflow is not in one of your teams — or does not exist. Ownership is checked before existence, so an unknown id is indistinguishable from someone else's, which keeps ids non-enumerable. |
404 | Error | The workflow is referenced by your team but its row is missing — a data inconsistency, not a normal outcome. A plain unknown id returns 403. |
Update, stop or start a workflow
/workflows/{workflow_id}Partially updates a workflow row, or stops and starts it.
To stop or start, send stage on its own. stopped takes a live index off the schedule, closes it to everyone outside its team and takes it out of your plan's count. Deliveries send nothing for it until it is back. live puts a stopped index back: the answer says pending while the gap is replayed and merged, with no review. Poll GET /workflows/{workflow_id} until stage is live, or stopped with a failure_reason. A draft cannot go live this way: that is POST /workflows.
The fields id, team_id, created_at and live_calc_start are silently dropped from the patch, and so is stage beside other fields, so a whole record can be sent back.
When the patch touches operations, updated_at is refreshed and a workflow_updated trigger is posted to the coordinator so the running schedule reloads; the outcome of that notification is reported back in trigger_notification.
The caller must belong to a team that owns the workflow, or be a site admin.
Path parameters
| Field | Type | Description |
|---|---|---|
workflow_idrequired | string | Workflow id. |
Request body
| Field | Type | Description |
|---|---|---|
stage | "stopped" | "live" | On its own, stops or starts the index. Beside other fields it is dropped. |
name | string | |
description | string | |
visibility | "private" | "public" | "unlisted" | public is readable by anyone and listed in the Index Directory; unlisted is readable by anyone with the link but not listed. |
operations | array of object | The full operation DAG. Replaces the existing one wholesale. |
exchange_calendar | string | |
timezone | string |
curl -X PATCH "https://api.indexone.io/workflows/idx_bh7fgXWJMaa3" \-H "x-api-key: YOUR_API_KEY" \-H "Authorization: YOUR_ID_TOKEN" \-H "Content-Type: application/json" \-d '{"name": "Example Momentum Index v2","visibility": "public"}'
Try it
Workflow id.
Example response
{"id": "idx_bh7fgXWJMaa3","name": "Example Momentum Index v2","visibility": "public","team_id": "33a36e74-b36a-4a50-9a99-edeff5144a43","stage": "live","updated_at": "2026-07-21 08:15:02"}
Errors
| Field | Type | Description |
|---|---|---|
400 | Error | id required, or no editable fields when the body was empty or contained only blacklisted keys. |
401 | Error | The API key is missing or invalid ( invalid_api_key) or the id token is missing, invalid or expired (unauthenticated). |
402 | Error | Starting: your plan is at its live index limit. |
403 | Error | The caller's teams do not own this workflow. |
409 | Error | Stopping one that is not live, or starting one that is not stopped. |
422 | Error | stage was neither stopped nor live. |
429 | object | API key usage-plan rate limit exceeded. |
503 | Error | A stop or start could not be carried out right now. Nothing changed: try again. |
Delete a workflow and all its data
/workflows/{workflow_id}Permanently deletes the workflow and every row it produced. This is not reversible and there is no soft-delete window.
The sequence is: delete the workflow row, so the coordinator cannot re-arm it; notify the coordinator (workflow_deleted) so it stops scheduling; delete every row of index-holdings, index-values-eod, index-weightings, index-universes, index-corporate-actions and its executions history in parallel; unlink it from its teams.
The response reports how many rows were deleted per table.
Path parameters
| Field | Type | Description |
|---|---|---|
workflow_idrequired | string | Workflow id. |
curl -X DELETE "https://api.indexone.io/workflows/idx_bh7fgXWJMaa3" \-H "x-api-key: YOUR_API_KEY" \-H "Authorization: YOUR_ID_TOKEN"
Try it
Workflow id.
Example response
{"deleted": "idx_bh7fgXWJMaa3","purged": {"prod-index-holdings": 1482,"prod-index-values-eod": 1663,"prod-index-weightings": 44,"prod-index-universes": 44,"prod-index-corporate-actions": 219},"trigger_notification": {"sent": true,"status_code": 200,"response": {"status": "accepted","trigger_id": "trg_5Xn2QpLw81Zk"}}}
Errors
| Field | Type | Description |
|---|---|---|
400 | Error | id required. |
401 | Error | The API key is missing or invalid ( invalid_api_key) or the id token is missing, invalid or expired (unauthenticated). |
403 | Error | The caller's teams do not own this workflow. |
429 | object | API key usage-plan rate limit exceeded. |
Get a workflow's holdings
/workflows/{workflow_id}/holdingsPLANNED — this route does not exist. Today: GET /query?table=index-holdings&pk=idx_... (or the MCP get_index_holdings tool).
The intent is a holdings snapshot with resolved identifiers — shares, weight, price and value per constituent for a given date — rather than the raw stored row.
Path parameters
| Field | Type | Description |
|---|---|---|
workflow_idrequired | string | Workflow id. |
Query parameters
| Field | Type | Description |
|---|---|---|
time | string | Snapshot timestamp. Defaults to the latest. |
map_symbols | boolean | Resolve FIGIs to ticker symbols. |
curl -X GET "https://api.indexone.io/workflows/idx_bh7fgXWJMaa3/holdings" \-H "x-api-key: YOUR_API_KEY" \-H "Authorization: YOUR_ID_TOKEN"
Example response
{"id": "idx_bh7fgXWJMaa3","time": "2026-07-18 20:00:00","holdings": [{"id": "BBG000B9XRY4","symbol": "AAPL","shares": 1204.55,"weight": 0.0731,"price": 233.18,"value": 280837.5}]}
Errors
| Field | Type | Description |
|---|---|---|
401 | Error | The API key is missing or invalid ( invalid_api_key) or the id token is missing, invalid or expired (unauthenticated). |
403 | object | Caller's teams do not own this workflow. |
404 | object | No such workflow, or no holdings at that time. |
429 | object | API key usage-plan rate limit exceeded. |
Get a workflow's performance statistics
/workflows/{workflow_id}/statsPLANNED — this route does not exist. Today the only workflow-plane equivalent is the MCP get_index_stats tool.
The intent is the same statistics surface (returns, volatility, Sharpe, Sortino, max drawdown, period returns) computed over an idx_... index's value series.
Path parameters
| Field | Type | Description |
|---|---|---|
workflow_idrequired | string | Workflow id. |
Query parameters
| Field | Type | Description |
|---|---|---|
returns | string | Comma-separated windows to compute returns over. |
volatility | string | Comma-separated windows for annualized volatility. |
sharpe | string | Comma-separated windows for the Sharpe ratio. |
curl -X GET "https://api.indexone.io/workflows/idx_bh7fgXWJMaa3/stats" \-H "x-api-key: YOUR_API_KEY" \-H "Authorization: YOUR_ID_TOKEN"
Example response
{"returns": {"itd": 0.1843,"1y": 0.0912,"ytd": 0.0471,"30d": 0.0128},"volatility": {"1y": 0.1633,"ytd": 0.1502},"sharpe": {"itd": 0.94,"1y": 0.56}}
Errors
| Field | Type | Description |
|---|---|---|
401 | Error | The API key is missing or invalid ( invalid_api_key) or the id token is missing, invalid or expired (unauthenticated). |
403 | object | Caller's teams do not own this workflow. |
404 | object | No such workflow. |
429 | object | API key usage-plan rate limit exceeded. |
Get a workflow's universe
/workflows/{workflow_id}/universePLANNED — this route does not exist. Today: GET /query?table=index-universes&pk=idx_... (or the MCP get_index_universe tool).
The universe is the selection-stage output: every security that passed the filters at a given reconstitution, before weighting.
Path parameters
| Field | Type | Description |
|---|---|---|
workflow_idrequired | string | Workflow id. |
Query parameters
| Field | Type | Description |
|---|---|---|
time | string | Reconstitution timestamp. Defaults to the latest. |
curl -X GET "https://api.indexone.io/workflows/idx_bh7fgXWJMaa3/universe" \-H "x-api-key: YOUR_API_KEY" \-H "Authorization: YOUR_ID_TOKEN"
Example response
{"id": "idx_bh7fgXWJMaa3","time": "2026-06-30 20:00:00","universe": ["BBG000B9XRY4","BBG000BPH459","BBG000BVPV84"]}
Errors
| Field | Type | Description |
|---|---|---|
401 | Error | The API key is missing or invalid ( invalid_api_key) or the id token is missing, invalid or expired (unauthenticated). |
403 | object | Caller's teams do not own this workflow. |
404 | object | No such workflow. |
429 | object | API key usage-plan rate limit exceeded. |
Get a workflow's index values
/workflows/{workflow_id}/valuesPLANNED — this route does not exist. Today the equivalent read is GET /query?table=index-values-eod&pk=idx_... (or the MCP get_index_values tool).
The intent is a first-class, chart-shaped read for the workflow plane: duration windows, increment down-sampling and a [{time, value}] payload, instead of making callers page raw DynamoDB rows through the generic query endpoint.
Path parameters
| Field | Type | Description |
|---|---|---|
workflow_idrequired | string | Workflow id. |
Query parameters
| Field | Type | Description |
|---|---|---|
duration | string | Window, e.g. 1d, 30d, 1y, ytd, itd. |
increment | string | Down-sampling interval, e.g. 1d, 1w, 1mo, eod. |
limit | integer | Return only the most recent N points. |
curl -X GET "https://api.indexone.io/workflows/idx_bh7fgXWJMaa3/values" \-H "x-api-key: YOUR_API_KEY" \-H "Authorization: YOUR_ID_TOKEN"
Example response
[{"time": "2026-07-17 20:00:00","value": 1178.42},{"time": "2026-07-18 20:00:00","value": 1184.37}]
Errors
| Field | Type | Description |
|---|---|---|
401 | Error | The API key is missing or invalid ( invalid_api_key) or the id token is missing, invalid or expired (unauthenticated). |
403 | object | Caller's teams do not own this workflow. |
404 | object | No such workflow. |
429 | object | API key usage-plan rate limit exceeded. |
Get a workflow's target weightings
/workflows/{workflow_id}/weightingsPLANNED — this route does not exist. Today: GET /query?table=index-weightings&pk=idx_... (or the MCP get_index_weightings tool).
Weightings are the targets set at each rebalance, as distinct from holdings, which drift with prices between rebalances.
Path parameters
| Field | Type | Description |
|---|---|---|
workflow_idrequired | string | Workflow id. |
Query parameters
| Field | Type | Description |
|---|---|---|
time | string | Rebalance timestamp. Defaults to the latest. |
curl -X GET "https://api.indexone.io/workflows/idx_bh7fgXWJMaa3/weightings" \-H "x-api-key: YOUR_API_KEY" \-H "Authorization: YOUR_ID_TOKEN"
Example response
{"id": "idx_bh7fgXWJMaa3","time": "2026-06-30 20:00:00","weighting": {"BBG000B9XRY4": 0.0731,"BBG000BPH459": 0.0654}}
Errors
| Field | Type | Description |
|---|---|---|
401 | Error | The API key is missing or invalid ( invalid_api_key) or the id token is missing, invalid or expired (unauthenticated). |
403 | object | Caller's teams do not own this workflow. |
404 | object | No such workflow. |
429 | object | API key usage-plan rate limit exceeded. |