Getting a key
- An admin of your organisation opens Settings, API keys, in the app.
- They name the key for the system that will use it, choose its scopes and when it expires, at most a year ahead. Reading is chosen by default; creating projects and running stages are added on purpose. A key for a web page lists that page's origin.
- The key is shown once. Copy it into your secret manager straight away: only its hash is kept, so it cannot be shown again.
A key works for one organisation only, within the permissions of the admin who made it. If that person leaves the organisation, their keys stop working. Check a key with GET /api/v1/me.
Authentication
Every call carries one credential in the Authorization header. A credential in the address is refused, and should be rotated: it may be in logs.
Authorization: Bearer dek_…API keys
For your servers. Keys start dek_, then twelve letters and digits that identify the key, then the secret: the whole key matches dek_[a-z2-7]{12}_[0-9a-f]{64}, so secret scanners can find one that leaks. A key sent from a web page, with an Origin header, is refused unless the key lists that origin.
OAuth 2.1
For an app acting as a person, signed in with their Decision Engine account. Authorization code with PKCE (S256), with the resource https://qa.decisionengine.studio/api/v1. The documents are at /.well-known/oauth-protected-resource/api/v1 and /.well-known/oauth-authorization-server. Without a scope, a request asks for reading only. Access tokens last an hour and refresh for thirty days.
Scopes
| Scope | Lets the credential |
|---|---|
api.org.read | Read the organisation and its Groups |
api.intelligence.read | Read News, Market and Trends |
api.projects.read | Read projects, their stages, plan outputs and gaps |
api.projects.write | Create projects |
api.stages.write | Run and agree stages |
A scope caps what a credential may ask; the permissions of its person decide. A key with api.projects.write made by someone who cannot create projects still cannot.
Base URL and versions
https://qa.decisionengine.studio/api/v1- Format
- JSON in and out; times in ISO 8601, UTC; ids are strings
- Transport
- HTTPS only, with HSTS
- Description
GET /api/v1/openapi.json, OpenAPI 3.1, the source of this page
Version 1 only grows: new fields, new optional parameters, new routes, new scopes. Ignore fields you do not know. Anything removed or changed in meaning comes as /api/v2, and a v1 route being retired answers with Deprecation and Sunset headers for at least six months first.
Errors
Every error is problem details (RFC 9457), as application/problem+json: a type that stays the same for its code within v1, a title, the status, a detail saying what to do next, the code and the requestId. A refused field is named in field.
{
"type": "https://decisionengine.studio/docs/api/#problem-insufficient_scope",
"title": "The credential lacks the scope",
"status": 403,
"detail": "This route needs the api.projects.write scope.",
"code": "insufficient_scope",
"requestId": "6d0f7c62-2a4e-4c5b-9f61-1f2e3d4c5b6a"
}
| Code | Status | Means |
|---|---|---|
invalid_request | 400 | The request is not valid |
credential_in_query | 400 | Credentials go in the Authorization header |
unauthenticated | 401 | No valid credential |
insufficient_scope | 403 | The credential lacks the scope |
forbidden | 403 | The principal lacks the permission |
origin_refused | 403 | API keys are not accepted from this browser origin |
not_found | 404 | Not found |
idempotency_in_progress | 409 | A request with this Idempotency-Key is still running |
conflict | 409 | The request conflicts with the current state |
payload_too_large | 413 | The body is too large |
unsupported_media_type | 415 | Send application/json |
idempotency_mismatch | 422 | This Idempotency-Key was used with another request |
idempotency_key_required | 428 | An Idempotency-Key header is required |
rate_limited | 429 | Too many requests |
internal | 500 | Something went wrong on our side |
unavailable | 503 | Not available right now |
Something in another organisation answers 404, the same as something that does not exist.
Common parameters
Each endpoint below names the ones it takes.
| Parameter | In | Type | What it is |
|---|---|---|---|
If-None-Match | header | string, up to 200 | An ETag from an earlier answer: 304 when nothing changed. |
cursor | query | string, up to 200 | The nextCursor of the previous page. Opaque. |
limit | query | integer 1 to 100 | Items per page, 1 to 100. Default 50. |
orgId | path | string (uuid) | The client. Must be the Org the credential is bound to. |
Idempotency-Key | header | string, up to 200 | Your unique value for this request, 1 to 200 visible characters. Sent again with the same body within 24 hours, it returns the first answer. |
projectId | path | string (uuid) | The project. |
stage | path | integer 1 to 10 | The stage, 1 to 10. |
runId | path | string (uuid) | The run, from the answer that started it. |
Pagination
Lists answer { "data": [...], "nextCursor": "..." }. Pass nextCursor back as cursor for the next page; it is null on the last. limit is 1 to 100, 50 by default. Cursors are opaque: do not build or edit one.
Idempotency
Every POST needs an Idempotency-Key header: a value of your own, unique to the request, such as a UUID. Send the same request again with the same key within 24 hours and you get the first answer, with Idempotency-Replayed: true, and nothing is made twice. The same key with a different body is 422; while the first is still running, 409. Keys are kept per credential.
Rate limits
Each credential may send 600 requests a minute, and an organisation 3,000 a minute across all its credentials. Every answer carries RateLimit-Limit, RateLimit-Remaining, RateLimit-Reset (seconds) and RateLimit-Policy. Over the limit is 429 with Retry-After: wait that many seconds. GET /api/v1/usage shows both limits.
Running stages
A stage run can take a minute, so it is asynchronous. POST .../stages/{stage}/runs checks your permission, the project and the stage's gate at once, then answers 202 with the run and its address in Location. Read that address every few seconds until status is succeeded, with the outputVersion it made, or failed, with its problem.
- Run the stage once the stages it waits on are agreed.
- Read the run until it settles, then read the stage's output.
- Agree it with
POST .../stages/{stage}/agreement, naming theoutputVersionyou read. A newer output, a blocking gap or an input still gathering answers 409 with the reason.
One run at a time per stage of a project. An organisation may start 30 stage runs an hour over the API, across all its credentials, on top of the platform's own spend limits.
Caching and request ids
Every read answers with an ETag. Send it back as If-None-Match and an unchanged answer is 304 with no body. Every answer carries X-Request-Id: yours when you send one (letters, digits, ., _, : and -, up to 128), ours otherwise. Quote it when you ask for help.
Meta
The credential, its limits and this document.
GET /api/v1/openapi.json
This document. The OpenAPI 3.1 description of v1. No credential needed.
- Scope
- none needed
Request
curl "https://qa.decisionengine.studio/api/v1/openapi.json"Answer, 200
The document.
GET /api/v1/me
The calling credential. Who is calling: the key or connected app, its scopes, its expiry and, for a key, its Org. Use it to check a key.
- Scope
- none needed
- Takes
If-None-Match
Request
curl "https://qa.decisionengine.studio/api/v1/me" \
-H "Authorization: Bearer $DE_API_KEY"Answer, 200
{
"principal": {
"kind": "api_key",
"name": "Reporting sync",
"prefix": "dek_abcdefgh2345",
"scopes": [
"api.org.read",
"api.intelligence.read",
"api.projects.read"
],
"expiresAt": "2027-01-27T00:00:00.000Z"
},
"org": {
"id": "7f1c2a4e-1b9d-4c11-9a51-0c5d3f2e8b10",
"name": "Example Co",
"reference": "example-co"
}
}Also 304, 401, 429.
GET /api/v1/usage
Your rate limits. The limits on this credential and its Org, what is left of each and when it refills. This call counts as one request.
- Scope
- none needed
Request
curl "https://qa.decisionengine.studio/api/v1/usage" \
-H "Authorization: Bearer $DE_API_KEY"Answer, 200
{
"limits": [
{
"applies": "credential",
"limit": 600,
"remaining": 597,
"resetSeconds": 1,
"windowSeconds": 60
},
{
"applies": "org",
"limit": 3000,
"remaining": 2991,
"resetSeconds": 1,
"windowSeconds": 60
}
]
}Also 401, 429.
Orgs
The client and its Groups.
GET /api/v1/orgs
Your Orgs. The Orgs this credential reaches: an API key's one Org, or every Org an OAuth token's person belongs to. A platform client: every client Org, each with its brands.
- Scope
api.org.read- Takes
cursor,limit,If-None-Match
Request
curl "https://qa.decisionengine.studio/api/v1/orgs" \
-H "Authorization: Bearer $DE_API_KEY"Answer, 200
{
"data": [
{
"id": "7f1c2a4e-1b9d-4c11-9a51-0c5d3f2e8b10",
"name": "Example Co",
"reference": "example-co"
}
],
"nextCursor": null
}Also 304, 400, 401, 403, 429.
GET /api/v1/orgs/{orgId}
One Org. The client: its id, name and reference. A platform client: the Org with its status.
- Scope
api.org.read- Permission
org.view- Takes
orgId,If-None-Match
Request
curl "https://qa.decisionengine.studio/api/v1/orgs/$ORG_ID" \
-H "Authorization: Bearer $DE_API_KEY"Answer, 200
{
"id": "7f1c2a4e-1b9d-4c11-9a51-0c5d3f2e8b10",
"name": "Example Co",
"reference": "example-co"
}GET /api/v1/orgs/{orgId}/groups
The Org's Groups. The client's tree: every Group with its parent. The root Group is the client itself.
- Scope
api.org.read- Permission
group.view- Takes
orgId,cursor,limit,If-None-Match
Request
curl "https://qa.decisionengine.studio/api/v1/orgs/$ORG_ID/groups" \
-H "Authorization: Bearer $DE_API_KEY"Answer, 200
{
"data": [
{
"id": "c0ffee00-1234-4abc-8def-000000000001",
"name": "Example Co",
"parentId": null,
"isRoot": true
}
],
"nextCursor": null
}Intelligence
News, Market and Trends, as the client's home shows them.
GET /api/v1/orgs/{orgId}/news
News. The client's news edition: its stories, each linking to its publisher, and its signal cards.
- Scope
api.intelligence.read- Permission
- any member of the client
- Takes
orgId,If-None-Match
Request
curl "https://qa.decisionengine.studio/api/v1/orgs/$ORG_ID/news" \
-H "Authorization: Bearer $DE_API_KEY"Answer, 200
{
"enabled": true,
"asOf": "2026-10-29T05:40:00.000Z",
"language": "en",
"stories": [
{
"id": "s-0192",
"title": "Example Brand opens a new plant",
"teaser": "The site doubles its canning capacity.",
"url": "https://news.example.com/2026/10/plant",
"publisher": "news.example.com",
"publishedAt": "2026-10-28T16:05:00.000Z",
"language": "en",
"kind": "own",
"term": "Example Brand",
"market": "US",
"label": "Example Brand"
}
],
"signals": null
}GET /api/v1/orgs/{orgId}/market
Market. The brand and category lens: each figure with its source and the day it was read, and the data points the client has switched on. 404 when the client has no Market page.
- Scope
api.intelligence.read- Permission
- any member of the client
- Takes
orgId,If-None-Match
Request
curl "https://qa.decisionengine.studio/api/v1/orgs/$ORG_ID/market" \
-H "Authorization: Bearer $DE_API_KEY"Answer, 200
{
"asOf": "2026-10-29",
"figures": [
{
"section": "revenue",
"series": "Net sales",
"market": "US",
"period": "2026-Q3",
"value": 1234,
"unit": "USD m",
"asOf": "2026-10-28",
"source": {
"name": "Company filings",
"url": "https://filings.example.com/q3"
}
}
],
"dataPoints": []
}GET /api/v1/orgs/{orgId}/trends
Trends. Searches, campaigns and what people say: the page's cards by section, social trends and news tone, each with its sources. 404 when Trends is off for the client.
- Scope
api.intelligence.read- Permission
- any member of the client
- Takes
orgId,If-None-Match
Request
curl "https://qa.decisionengine.studio/api/v1/orgs/$ORG_ID/trends" \
-H "Authorization: Bearer $DE_API_KEY"Answer, 200
{
"asOf": "2026-10-29",
"cards": {
"brand": null,
"clients": [],
"campaigns": [],
"partners": []
},
"social": [],
"tone": []
}Projects
Planning work: the goal, the stages, the plan and its gaps.
GET /api/v1/orgs/{orgId}/projects
Projects. The projects the principal may see, newest first. A platform client: each project with its reference, workflow, brand ids and period.
- Scope
api.projects.read- Permission
project.view- Takes
orgId,cursor,limit,If-None-Match
| Parameter | In | Type | Required | What it is |
|---|---|---|---|---|
archived | query | boolean | no | Include archived projects. |
Request
curl "https://qa.decisionengine.studio/api/v1/orgs/$ORG_ID/projects" \
-H "Authorization: Bearer $DE_API_KEY"Answer, 200
{
"data": [
{
"id": "3b8e5f20-6c4a-4f7e-9d12-a1b2c3d4e5f6",
"reference": "PRJ-4821",
"name": "Grow summer share",
"description": "Close the gap to the summer share goal in two markets.",
"status": "active",
"groupId": null,
"createdAt": "2026-10-29T09:12:44.000Z",
"updatedAt": "2026-10-29T09:12:44.000Z"
}
],
"nextCursor": null
}POST /api/v1/orgs/{orgId}/projects
Create a project from a commercial goal. Makes the project, its goal and its ten stages in one step. The first stage opens ready to run in the app. Requires an Idempotency-Key.
- Scope
api.projects.write- Permission
project.create- Takes
orgId,Idempotency-Key
Body
| Field | Type | Required | What it is |
|---|---|---|---|
name | string, up to 200 | yes | |
description | string, up to 2000 or null | no | |
groupId | string (uuid) or null | no | The Group it belongs to; absent or null for the client's root. |
goal | Goal | yes | The commercial goal a project plans for. |
The goal
| Field | Type | Notes |
|---|---|---|
goalType | string: net_sales, volume, share, revenue, penetration, other or null | |
goalMetric | string, up to 200 or null | |
currency | string, up to 3 | |
baseline | number or null | |
target | number or null | |
periodStart | string, up to 10 or null | YYYY-MM-DD |
periodEnd | string, up to 10 or null | YYYY-MM-DD |
calendar | string: gregorian, fiscal_454, fiscal_445, fiscal_544 | |
budget | number or null | |
brands | string, up to 120[] or null | |
markets | string, up to 80[] or null | |
categories | string, up to 120[] or null | |
growthTypes | string: customer, portfolio, commercial, experience[] or null | |
sourceOfGrowth | string: category, share, both or null | |
brief | string, up to 10000 or null |
Request
curl -X POST "https://qa.decisionengine.studio/api/v1/orgs/$ORG_ID/projects" \
-H "Authorization: Bearer $DE_API_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{"name":"Grow summer share","description":"Close the gap to the summer share goal in two markets.","goal":{"goalType":"share","goalMetric":"Value share","currency":"USD","baseline":12.5,"target":14,"periodStart":"2027-01-01","periodEnd":"2027-12-31","calendar":"gregorian","budget":2500000,"brands":["Example Brand"],"markets":["US"],"categories":["Sparkling water"],"growthTypes":["customer"],"sourceOfGrowth":"share","brief":null}}'Answer, 201
{
"project": {
"id": "3b8e5f20-6c4a-4f7e-9d12-a1b2c3d4e5f6",
"reference": "PRJ-4821",
"name": "Grow summer share",
"description": "Close the gap to the summer share goal in two markets.",
"status": "active",
"groupId": null,
"createdAt": "2026-10-29T09:12:44.000Z",
"updatedAt": "2026-10-29T09:12:44.000Z"
},
"goal": {
"goalType": "share",
"goalMetric": "Value share",
"currency": "USD",
"baseline": 12.5,
"target": 14,
"periodStart": "2027-01-01",
"periodEnd": "2027-12-31",
"calendar": "gregorian",
"budget": 2500000,
"brands": [
"Example Brand"
],
"markets": [
"US"
],
"categories": [
"Sparkling water"
],
"growthTypes": [
"customer"
],
"sourceOfGrowth": "share",
"brief": null
},
"stages": [
{
"stage": 1,
"key": "goals",
"name": "Project and goals",
"status": "open",
"agreedAt": null,
"outputVersion": 1,
"stale": false,
"staleReason": null,
"gate": {
"open": true,
"waitingOn": []
}
}
]
}GET /api/v1/orgs/{orgId}/projects/{projectId}
One project. The project, its commercial goal and where each stage stands.
- Scope
api.projects.read- Permission
project.view- Takes
orgId,projectId,If-None-Match
Request
curl "https://qa.decisionengine.studio/api/v1/orgs/$ORG_ID/projects/$PROJECT_ID" \
-H "Authorization: Bearer $DE_API_KEY"Answer, 200
{
"project": {
"id": "3b8e5f20-6c4a-4f7e-9d12-a1b2c3d4e5f6",
"reference": "PRJ-4821",
"name": "Grow summer share",
"description": "Close the gap to the summer share goal in two markets.",
"status": "active",
"groupId": null,
"createdAt": "2026-10-29T09:12:44.000Z",
"updatedAt": "2026-10-29T09:12:44.000Z"
},
"goal": {
"goalType": "share",
"goalMetric": "Value share",
"currency": "USD",
"baseline": 12.5,
"target": 14,
"periodStart": "2027-01-01",
"periodEnd": "2027-12-31",
"calendar": "gregorian",
"budget": 2500000,
"brands": [
"Example Brand"
],
"markets": [
"US"
],
"categories": [
"Sparkling water"
],
"growthTypes": [
"customer"
],
"sourceOfGrowth": "share",
"brief": null
},
"stages": [
{
"stage": 1,
"key": "goals",
"name": "Project and goals",
"status": "open",
"agreedAt": null,
"outputVersion": 1,
"stale": false,
"staleReason": null,
"gate": {
"open": true,
"waitingOn": []
}
}
]
}GET /api/v1/orgs/{orgId}/projects/{projectId}/stages
The stages. Each of the ten stages: its state, its current output's version, whether it is stale and what its gate waits on.
- Scope
api.projects.read- Permission
project.view- Takes
orgId,projectId,If-None-Match
Request
curl "https://qa.decisionengine.studio/api/v1/orgs/$ORG_ID/projects/$PROJECT_ID/stages" \
-H "Authorization: Bearer $DE_API_KEY"Answer, 200
{
"data": [
{
"stage": 1,
"key": "goals",
"name": "Project and goals",
"status": "open",
"agreedAt": null,
"outputVersion": 1,
"stale": false,
"staleReason": null,
"gate": {
"open": true,
"waitingOn": []
}
}
]
}GET /api/v1/orgs/{orgId}/projects/{projectId}/stages/{stage}
One stage and its plan output. The stage, its current output (the meeting points, paths, programmes or calendar, by stage) and the gaps it flags.
- Scope
api.projects.read- Permission
project.view- Takes
orgId,projectId,stage,If-None-Match
Request
curl "https://qa.decisionengine.studio/api/v1/orgs/$ORG_ID/projects/$PROJECT_ID/stages/1" \
-H "Authorization: Bearer $DE_API_KEY"Answer, 200
{
"stage": {
"stage": 1,
"key": "goals",
"name": "Project and goals",
"status": "open",
"agreedAt": null,
"outputVersion": 1,
"stale": false,
"staleReason": null,
"gate": {
"open": true,
"waitingOn": []
}
},
"output": {
"version": 1,
"computedAt": "2026-10-29T09:20:03.000Z",
"payload": {}
},
"gaps": []
}GET /api/v1/orgs/{orgId}/projects/{projectId}/signals
The live signals. Stage 09 as its own read: the KPI scorecards, the signals that would change the plan and what each proposes, the triggers and what was taken out. output is null before the stage has run.
- Scope
api.projects.read- Permission
project.view- Takes
orgId,projectId,If-None-Match
Request
curl "https://qa.decisionengine.studio/api/v1/orgs/$ORG_ID/projects/$PROJECT_ID/signals" \
-H "Authorization: Bearer $DE_API_KEY"Answer, 200
{
"stage": {
"stage": 9,
"key": "signals",
"name": "Signals",
"status": "locked",
"agreedAt": null,
"outputVersion": null,
"stale": false,
"staleReason": null,
"gate": {
"open": false,
"waitingOn": [
8
]
}
},
"output": null
}GET /api/v1/orgs/{orgId}/projects/{projectId}/calendar
The calendar. Stage 07 as its own read: the plan's weeks and periods, a row per programme, each placement by week, the markers, the rules kept and the placements refused. output is null before the stage has run.
- Scope
api.projects.read- Permission
project.view- Takes
orgId,projectId,If-None-Match
Request
curl "https://qa.decisionengine.studio/api/v1/orgs/$ORG_ID/projects/$PROJECT_ID/calendar" \
-H "Authorization: Bearer $DE_API_KEY"Answer, 200
{
"stage": {
"stage": 7,
"key": "calendar",
"name": "Calendar",
"status": "locked",
"agreedAt": null,
"outputVersion": null,
"stale": false,
"staleReason": null,
"gate": {
"open": false,
"waitingOn": [
6
]
}
},
"output": null
}GET /api/v1/orgs/{orgId}/projects/{projectId}/gaps
Gaps. What the plan could not settle: each gap, what the engine did instead and what closes it, across the stages' current outputs.
- Scope
api.projects.read- Permission
project.view
Request
curl "https://qa.decisionengine.studio/api/v1/orgs/$ORG_ID/projects/$PROJECT_ID/gaps" \
-H "Authorization: Bearer $DE_API_KEY"Answer, 200
{
"data": [
{
"id": "g-1",
"stage": 1,
"key": "baseline",
"what": "No monthly net sales",
"severity": "medium",
"blocking": false,
"engineDid": "Used category growth as a proxy",
"closesWith": "Upload net sales by month",
"outputVersion": 1,
"createdAt": "2026-10-29T09:20:03.000Z"
}
],
"nextCursor": null
}Plan
Running and agreeing stages: the plan moved on from your own tools.
POST /api/v1/orgs/{orgId}/projects/{projectId}/stages/{stage}/runs
Run a stage. Starts the stage's engine and answers 202 at once with the run; follow Location to read it. The stages it waits on must be agreed and fresh. One run at a time per stage; an Org may start 30 runs an hour over the API. Requires an Idempotency-Key: the replay is the same run.
- Scope
api.stages.write- Permission
project.configure- Takes
orgId,projectId,stage,Idempotency-Key
Body
| Field | Type | Required | What it is |
|---|---|---|---|
reason | string, up to 500 or null | no | Why it is run again, kept with the output. |
force | boolean | no | Run even when nothing it reads has changed. |
Request
curl -X POST "https://qa.decisionengine.studio/api/v1/orgs/$ORG_ID/projects/$PROJECT_ID/stages/1/runs" \
-H "Authorization: Bearer $DE_API_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{"reason":"New quarterly figures"}'Answer, 202
{
"id": "a1b2c3d4-0000-4e5f-8a9b-0c1d2e3f4a5b",
"stage": 2,
"status": "queued",
"outcome": null,
"outputVersion": null,
"problem": null,
"createdAt": "2026-10-29T10:02:11.000Z",
"startedAt": null,
"finishedAt": null
}GET /api/v1/orgs/{orgId}/projects/{projectId}/stages/{stage}/runs/{runId}
A stage run. Where a run stands: queued, running, succeeded with the output version it made, or failed with its problem. Poll every few seconds; most runs finish within a minute.
- Scope
api.projects.read- Permission
project.view- Takes
orgId,projectId,stage,runId,If-None-Match
Request
curl "https://qa.decisionengine.studio/api/v1/orgs/$ORG_ID/projects/$PROJECT_ID/stages/1/runs/$RUN_ID" \
-H "Authorization: Bearer $DE_API_KEY"Answer, 200
{
"id": "a1b2c3d4-0000-4e5f-8a9b-0c1d2e3f4a5b",
"stage": 2,
"status": "succeeded",
"outcome": "ran",
"outputVersion": 3,
"problem": null,
"createdAt": "2026-10-29T10:02:11.000Z",
"startedAt": "2026-10-29T10:02:11.000Z",
"finishedAt": "2026-10-29T10:02:52.000Z"
}POST /api/v1/orgs/{orgId}/projects/{projectId}/stages/{stage}/agreement
Agree a stage. Agrees the output version you read, which opens the stages that wait on it. A newer output, a gap that blocks, or an input still gathering is 409 with the reason. Requires an Idempotency-Key.
- Scope
api.stages.write- Permission
project.configure- Takes
orgId,projectId,stage,Idempotency-Key
Body
| Field | Type | Required | What it is |
|---|---|---|---|
outputVersion | integer | yes | The output version you read and agree to. A newer one is 409. |
note | string, up to 2000 or null | no | Kept with the agreement. |
Request
curl -X POST "https://qa.decisionengine.studio/api/v1/orgs/$ORG_ID/projects/$PROJECT_ID/stages/1/agreement" \
-H "Authorization: Bearer $DE_API_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{"outputVersion":3,"note":"Agreed with the brand team"}'Answer, 200
{
"stage": {
"stage": 2,
"key": "validation",
"name": "Validation and lenses",
"status": "agreed",
"agreedAt": "2026-10-29T10:05:00.000Z",
"outputVersion": 3,
"stale": false,
"staleReason": null,
"gate": {
"open": true,
"waitingOn": []
}
}
}Platform
A platform client's reads (CreatorOS): every client Org, its brands, a snapshot and its Knowledge Base.
GET /api/v1/orgs/{orgId}/brands
Brands. The Org's brands: Groups marked as brands, each with the brand above it where brands nest. A platform client only.
- Scope
api.brands.read- Takes
orgId,cursor,limit,If-None-Match
Request
curl "https://qa.decisionengine.studio/api/v1/orgs/$ORG_ID/brands" \
-H "Authorization: Bearer $DE_API_KEY"Answer, 200
{
"data": [
{
"id": "9a7d0001-0000-4000-8000-000000000011",
"orgId": "5b1e2c3d-0000-4000-8000-000000000001",
"name": "Harbour Gin",
"parentId": null,
"category": "Gin",
"status": "active"
}
],
"nextCursor": null
}GET /api/v1/orgs/{orgId}/snapshot
Snapshot. The whole Org in pages of up to 500 items, kinds in the order brand, taxonomy, kb.model, kb.document, kb.fact, kb.figure, programme, target, project, by id within a kind. The cursor is a position, so a change while paging never repeats or skips what is read. Read to nextCursor null. A platform client only.
- Scope
api.kb.read- Takes
orgId,cursor,If-None-Match
Request
curl "https://qa.decisionengine.studio/api/v1/orgs/$ORG_ID/snapshot" \
-H "Authorization: Bearer $DE_API_KEY"Answer, 200
{
"orgId": "5b1e2c3d-0000-4000-8000-000000000001",
"asOf": "2026-11-16T12:00:00Z",
"data": [
{
"kind": "brand",
"id": "9a7d0001-0000-4000-8000-000000000011",
"data": {
"id": "9a7d0001-0000-4000-8000-000000000011",
"orgId": "5b1e2c3d-0000-4000-8000-000000000001",
"name": "Harbour Gin",
"parentId": null,
"category": "Gin",
"status": "active"
}
}
],
"nextCursor": null
}GET /api/v1/orgs/{orgId}/kb/model
Knowledge Base model. The Knowledge Base's dimensions with their levels, and its measures. 404 where the Org has no Knowledge Base. A platform client only.
- Scope
api.kb.read- Takes
orgId,If-None-Match
Request
curl "https://qa.decisionengine.studio/api/v1/orgs/$ORG_ID/kb/model" \
-H "Authorization: Bearer $DE_API_KEY"Answer, 200
{
"dimensions": [
{
"id": "product",
"label": "Product",
"levels": [
{
"id": "brand",
"label": "Brand"
}
]
}
],
"measures": [
{
"code": "dnsv",
"label": "Net sales value",
"unit": "usd",
"additive": true,
"overTime": "sum"
}
]
}GET /api/v1/orgs/{orgId}/kb/documents
Knowledge Base documents. Documents read into the Knowledge Base: each file's current version, from sources the licence register lets be shown. A platform client only.
- Scope
api.kb.read- Takes
orgId,cursor,limit,If-None-Match
Request
curl "https://qa.decisionengine.studio/api/v1/orgs/$ORG_ID/kb/documents" \
-H "Authorization: Bearer $DE_API_KEY"Answer, 200
Knowledge Base documents.
GET /api/v1/orgs/{orgId}/kb/facts
Knowledge Base facts. Accepted facts stated in the documents. A platform client only.
- Scope
api.kb.read- Takes
orgId,cursor,limit,If-None-Match
| Parameter | In | Type | Required | What it is |
|---|---|---|---|---|
documentId | query | string (uuid) | no | One document's facts. |
Request
curl "https://qa.decisionengine.studio/api/v1/orgs/$ORG_ID/kb/facts" \
-H "Authorization: Bearer $DE_API_KEY"Answer, 200
Knowledge Base facts.
GET /api/v1/orgs/{orgId}/kb/figures
Knowledge Base figures. The current figures, from sources a plan may read under the licence register, by figure key. A platform client only.
- Scope
api.kb.read- Takes
orgId,cursor,limit,If-None-Match
| Parameter | In | Type | Required | What it is |
|---|---|---|---|---|
measure | query | string | no | One measure, by its code. |
from | query | string (date) | no | Periods starting on or after this day. |
to | query | string (date) | no | Periods starting on or before this day. |
member | query | string, up to 300[] | no | <dimension>.<level>:<code>, repeatable. |
Request
curl "https://qa.decisionengine.studio/api/v1/orgs/$ORG_ID/kb/figures" \
-H "Authorization: Bearer $DE_API_KEY"Answer, 200
Knowledge Base figures.
GET /api/v1/orgs/{orgId}/kb/programmes
Programmes. Live programmes and activations with their windows. A platform client only.
- Scope
api.kb.read- Takes
orgId,cursor,limit,If-None-Match
Request
curl "https://qa.decisionengine.studio/api/v1/orgs/$ORG_ID/kb/programmes" \
-H "Authorization: Bearer $DE_API_KEY"Answer, 200
Programmes.
GET /api/v1/orgs/{orgId}/kb/targets
Targets. Live targets that count. A platform client only.
- Scope
api.kb.read- Takes
orgId,cursor,limit,If-None-Match
Request
curl "https://qa.decisionengine.studio/api/v1/orgs/$ORG_ID/kb/targets" \
-H "Authorization: Bearer $DE_API_KEY"Answer, 200
Targets.
Keeping keys safe
- Keep keys in a secret manager. Never in source code, a ticket, a chat or a browser.
- One key a system, least scope. Give each system its own key with only the scopes it uses, so one can be revoked without stopping the rest.
- Rotate. Rotate a key in Settings, API keys: a new key with the same name, scopes and origins is shown once, and the old one keeps working for 24 hours while your system moves, then stops. Keys expire within a year in any case.
- If a key leaks, revoke it at once in Settings, API keys. Calls with it are refused from that moment. The organisation's action log lists what each key did.
- Server to server. Call from your own servers. A key is refused from a web page unless an admin listed that page's origin on the key when making it.