DocsAPI referenceWorkflows

Workflows

Index workflows on the new engine.

Credentials

Credentials stay in this browser tab (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

GET
/workflows

Lists 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.

x-api-key
Authorization: id token

Query parameters

FieldTypeDescription
team_idstring
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.
fieldsstring
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.

https://api.indexone.io/workflows?team_id=tem_4Kd9Xa&fields=id%2Cname%2Cstage

Example response

[
{
"id": "idx_bh7fgXWJMaa3",
"name": "US Momentum 50",
"stage": "live",
"created_at": "2026-01-14 09:02:11"
}
]

Errors

FieldTypeDescription
401Error
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).
403Error
team_id names a team this key or user may not act on.
404Error
No such team.

Create a live workflow

POST
/workflows

Creates 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.

x-api-key
Authorization: id token

Request body

FieldTypeDescription
index_parametersrequiredobject
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.idstring
Workflow id, idx_.... Set by the platform.
index_parameters.namestring
index_parameters.descriptionstring
index_parameters.start_timestring
Start of the index history, YYYY-MM-DD HH:MM:SS.
index_parameters.end_timestring
End of a backtest. Omit to run to today.
index_parameters.start_valuenumber
Index level at start_time.
index_parameters.exchange_calendarstring
Exchange calendar of the index's sessions.
index_parameters.timezonestring
index_parameters.eod_timestring
Local time of the end-of-day value.
index_parameters.operationsarray of object
The operation graph. Every flow starts with a trigger and ends in create_index_holdings.
index_parameters.default_operationsobject
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_idstring
Owning team. Set by the platform.
index_parameters.stagestring
Set by the platform: draft (saved, never deployed), pending (deploying), live, failed (see failure_reason) or stopped.
index_parameters.failure_reasonstring | null
Why a deploy or a start failed.
index_parameters.backtest_idstring
The backtest a deploy ran, bkt_....
index_parameters.created_atstring
index_parameters.updated_atstring
start_timestring
Overrides index_parameters.start_time.
end_timestring
Overrides index_parameters.end_time.
websocket_idstring
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

Request body
Loading...
https://api.indexone.io/workflows

Errors

FieldTypeDescription
401Error
The API key is missing or invalid (invalid_api_key) or the id token is missing, invalid or expired (unauthenticated).
402Error
Your plan is at its live index limit.
403Error
No team could be resolved for you, or X-Team-Id names a team you may not act on.
422Error
The workflow failed validation, or has no operations. issues lists the problems.

Get a workflow

GET
/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=.

x-api-key
Authorization: id token

Path parameters

FieldTypeDescription
workflow_idrequiredstring
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.

https://api.indexone.io/workflows/idx_bh7fgXWJMaa3

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

FieldTypeDescription
401Error
The API key is missing or invalid (invalid_api_key) or the id token is missing, invalid or expired (unauthenticated).
403Error
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.
404Error
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

PATCH
/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.

x-api-key
Authorization: id token

Path parameters

FieldTypeDescription
workflow_idrequiredstring
Workflow id.

Request body

FieldTypeDescription
stage"stopped" | "live"
On its own, stops or starts the index. Beside other fields it is dropped.
namestring
descriptionstring
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.
operationsarray of object
The full operation DAG. Replaces the existing one wholesale.
exchange_calendarstring
timezonestring
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.

Request body
Loading...
https://api.indexone.io/workflows/idx_bh7fgXWJMaa3

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

FieldTypeDescription
400Error
id required, or no editable fields when the body was empty or contained only blacklisted keys.
401Error
The API key is missing or invalid (invalid_api_key) or the id token is missing, invalid or expired (unauthenticated).
402Error
Starting: your plan is at its live index limit.
403Error
The caller's teams do not own this workflow.
409Error
Stopping one that is not live, or starting one that is not stopped.
422Error
stage was neither stopped nor live.
429object
API key usage-plan rate limit exceeded.
503Error
A stop or start could not be carried out right now. Nothing changed: try again.

Delete a workflow and all its data

DELETE
/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.

x-api-key
Authorization: id token

Path parameters

FieldTypeDescription
workflow_idrequiredstring
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.

https://api.indexone.io/workflows/idx_bh7fgXWJMaa3

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

FieldTypeDescription
400Error
id required.
401Error
The API key is missing or invalid (invalid_api_key) or the id token is missing, invalid or expired (unauthenticated).
403Error
The caller's teams do not own this workflow.
429object
API key usage-plan rate limit exceeded.

Get a workflow's holdings

Planned
GET
/workflows/{workflow_id}/holdings

PLANNED — 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.

x-api-key
Authorization: id token

Path parameters

FieldTypeDescription
workflow_idrequiredstring
Workflow id.

Query parameters

FieldTypeDescription
timestring
Snapshot timestamp. Defaults to the latest.
map_symbolsboolean
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

FieldTypeDescription
401Error
The API key is missing or invalid (invalid_api_key) or the id token is missing, invalid or expired (unauthenticated).
403object
Caller's teams do not own this workflow.
404object
No such workflow, or no holdings at that time.
429object
API key usage-plan rate limit exceeded.

Get a workflow's performance statistics

Planned
GET
/workflows/{workflow_id}/stats

PLANNED — 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.

x-api-key
Authorization: id token

Path parameters

FieldTypeDescription
workflow_idrequiredstring
Workflow id.

Query parameters

FieldTypeDescription
returnsstring
Comma-separated windows to compute returns over.
volatilitystring
Comma-separated windows for annualized volatility.
sharpestring
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

FieldTypeDescription
401Error
The API key is missing or invalid (invalid_api_key) or the id token is missing, invalid or expired (unauthenticated).
403object
Caller's teams do not own this workflow.
404object
No such workflow.
429object
API key usage-plan rate limit exceeded.

Get a workflow's universe

Planned
GET
/workflows/{workflow_id}/universe

PLANNED — 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.

x-api-key
Authorization: id token

Path parameters

FieldTypeDescription
workflow_idrequiredstring
Workflow id.

Query parameters

FieldTypeDescription
timestring
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

FieldTypeDescription
401Error
The API key is missing or invalid (invalid_api_key) or the id token is missing, invalid or expired (unauthenticated).
403object
Caller's teams do not own this workflow.
404object
No such workflow.
429object
API key usage-plan rate limit exceeded.

Get a workflow's index values

Planned
GET
/workflows/{workflow_id}/values

PLANNED — 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.

x-api-key
Authorization: id token

Path parameters

FieldTypeDescription
workflow_idrequiredstring
Workflow id.

Query parameters

FieldTypeDescription
durationstring
Window, e.g. 1d, 30d, 1y, ytd, itd.
incrementstring
Down-sampling interval, e.g. 1d, 1w, 1mo, eod.
limitinteger
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

FieldTypeDescription
401Error
The API key is missing or invalid (invalid_api_key) or the id token is missing, invalid or expired (unauthenticated).
403object
Caller's teams do not own this workflow.
404object
No such workflow.
429object
API key usage-plan rate limit exceeded.

Get a workflow's target weightings

Planned
GET
/workflows/{workflow_id}/weightings

PLANNED — 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.

x-api-key
Authorization: id token

Path parameters

FieldTypeDescription
workflow_idrequiredstring
Workflow id.

Query parameters

FieldTypeDescription
timestring
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

FieldTypeDescription
401Error
The API key is missing or invalid (invalid_api_key) or the id token is missing, invalid or expired (unauthenticated).
403object
Caller's teams do not own this workflow.
404object
No such workflow.
429object
API key usage-plan rate limit exceeded.