Skip to main content

Apps Endpoint Reference

Reference for 101 Apps endpoints of the Talonic API: parameters, request body, curl and Node.js examples, response and errors.

Talonic Apps — governed decision apps over published data (manifest, versions, runs, replays, reviews, teams, and grants).

Every request needs an API key in the Authorization: Bearer header. Examples read the key from the TALONIC_API_KEY environment variable.

GET/v1/apps/{id}/decision-tasks

Path parameters

id*string (uuid)

Query parameters

statusstring ("available", "claimed", "submitted", "released", "failed", "timed_out", "cancelled")
limitinteger Default: 50
cursorstring

curl

curl -X GET 'https://api.talonic.com/v1/apps/3fa85f64-5717-4562-b3fc-2c963f66afa6/decision-tasks' \
  -H "Authorization: Bearer $TALONIC_API_KEY"

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/apps/3fa85f64-5717-4562-b3fc-2c963f66afa6/decision-tasks", {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
  },
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
const data = await res.json();

Response 200 — Cursor-paginated decision-task metadata. The frozen input package is never inlined.

{
  "data": [
    {
      "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "customer_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "run_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "app_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "status": "available",
      "execution_epoch": 1,
      "input_package_ref": "string",
      "lease_seconds": 1,
      "claimed_by": "string",
      "claimed_at": "2026-01-15T09:30:00Z",
      "lease_expires_at": "2026-01-15T09:30:00Z",
      "heartbeat_at": "2026-01-15T09:30:00Z",
      "sla_deadline_at": "2026-01-15T09:30:00Z",
      "submitted_at": "2026-01-15T09:30:00Z"
    }
  ],
  "pagination": {
    "has_more": true,
    "next_cursor": "string"
  }
}
  • 400 — The request is invalid.
  • 401 — Missing or invalid API key.
  • 403 — The API key does not have the required scope.
  • 429 — Daily rate limit exceeded.
POST/v1/decision-tasks/{id}/heartbeat

Path parameters

id*string (uuid)

Request body (application/json)

execution_epoch*integer

curl

curl -X POST 'https://api.talonic.com/v1/decision-tasks/3fa85f64-5717-4562-b3fc-2c963f66afa6/heartbeat' \
  -H "Authorization: Bearer $TALONIC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "execution_epoch": 1
}'

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/decision-tasks/3fa85f64-5717-4562-b3fc-2c963f66afa6/heartbeat", {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "execution_epoch": 1
  }),
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
const data = await res.json();

Response 200 — Updated task metadata.

{
  "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "customer_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "run_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "app_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "status": "available",
  "execution_epoch": 1,
  "input_package_ref": "string",
  "lease_seconds": 1,
  "claimed_by": "string",
  "claimed_at": "2026-01-15T09:30:00Z",
  "lease_expires_at": "2026-01-15T09:30:00Z",
  "heartbeat_at": "2026-01-15T09:30:00Z",
  "sla_deadline_at": "2026-01-15T09:30:00Z",
  "submitted_at": "2026-01-15T09:30:00Z"
}
  • 400 — The request is invalid.
  • 401 — Missing or invalid API key.
  • 403 — The API key does not have the required scope.
  • 404 — The requested resource was not found.
  • 409 — The request conflicts with the current resource state.
  • 429 — Daily rate limit exceeded.
POST/v1/decision-tasks/{id}/submit

Path parameters

id*string (uuid)

Request body (application/json)

execution_epoch*integer
outcome*objectsingle: validated against the task's output contract. verdict_matrix: { subjects: [{ subject_key, rule_outcomes: { <rule id>: passed | failed | indeterminate }, auto?, detail? }] } over the version's declared logic.rules; rolled_outcome, substantive_passes and auto are recomputed by the platform (a disagreeing advisory auto is journaled decision_rejected and overridden). record_set: { fields: [{ key, label?, data_type }], records: [{ source_record_id?, values }] } (key must match ^[a-z][a-z0-9_]{0,63}$ and data_type one of string, number, date, boolean, object, array; a submission violating either is rejected as decision_rejected), where each entry of values is either a bare value or { value, confidence?, status? } (status one of filled, empty, flagged, pending_approval). Under the version's record_set_output.mode = derive the platform materializes a NEW app_run record set and ignores confidence/status; under mode = promote it appends cell versions into record_set_output.target (an app_run set the app holds a write grant on), matching rows by source_record_id against the target's record ids and columns against the target's fields, under the version's autonomy contract (observe rejects any value output, propose lands cells pending_approval, a value below confidence_floor is flagged and not written). Whole body ≤ apps.submit_max_bytes (413).
confidencenumber
evidence*string[]Provenance locators the decision relied on. Each must exist in the frozen input package, or parse as db:{connectionId}:{table}:{rowKey}:{column} / ref:{referenceDataId}:{rowKey}:{column} against a resource the app holds a read grant on: such locators are accepted as attestations (recorded { locator, external: true }, journaled evidence_attested, never resolved). Anything else is 422 evidence_outside_grants; api: is reserved. An empty block is accepted only when the app allows unevidenced decisions.
rationale*stringDecision rationale — never private chain-of-thought.
service_versionstringBuild identifier of the deciding service; recorded in decided_by.label.

curl

curl -X POST 'https://api.talonic.com/v1/decision-tasks/3fa85f64-5717-4562-b3fc-2c963f66afa6/submit' \
  -H "Authorization: Bearer $TALONIC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "execution_epoch": 1,
  "outcome": {},
  "confidence": 1.5,
  "evidence": [
    "string"
  ],
  "rationale": "string",
  "service_version": "string"
}'

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/decision-tasks/3fa85f64-5717-4562-b3fc-2c963f66afa6/submit", {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "execution_epoch": 1,
    "outcome": {},
    "confidence": 1.5,
    "evidence": [
      "string"
    ],
    "rationale": "string",
    "service_version": "string"
  }),
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
const data = await res.json();

Response 200 — Submitted task metadata.

{
  "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "customer_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "run_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "app_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "status": "available",
  "execution_epoch": 1,
  "input_package_ref": "string",
  "lease_seconds": 1,
  "claimed_by": "string",
  "claimed_at": "2026-01-15T09:30:00Z",
  "lease_expires_at": "2026-01-15T09:30:00Z",
  "heartbeat_at": "2026-01-15T09:30:00Z",
  "sla_deadline_at": "2026-01-15T09:30:00Z",
  "submitted_at": "2026-01-15T09:30:00Z"
}
  • 400 — The request is invalid.
  • 401 — Missing or invalid API key.
  • 403 — The API key does not have the required scope.
  • 404 — The requested resource was not found.
  • 409 — The request conflicts with the current resource state.
  • 413 — The uploaded file exceeds the size limit.
  • 422 — The request is well-formed but violates the declared task contract.
  • 429 — Daily rate limit exceeded.
POST/v1/decision-tasks/{id}/release

Path parameters

id*string (uuid)

Request body (application/json)

execution_epoch*integer

curl

curl -X POST 'https://api.talonic.com/v1/decision-tasks/3fa85f64-5717-4562-b3fc-2c963f66afa6/release' \
  -H "Authorization: Bearer $TALONIC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "execution_epoch": 1
}'

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/decision-tasks/3fa85f64-5717-4562-b3fc-2c963f66afa6/release", {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "execution_epoch": 1
  }),
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
const data = await res.json();

Response 200 — Released task metadata.

{
  "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "customer_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "run_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "app_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "status": "available",
  "execution_epoch": 1,
  "input_package_ref": "string",
  "lease_seconds": 1,
  "claimed_by": "string",
  "claimed_at": "2026-01-15T09:30:00Z",
  "lease_expires_at": "2026-01-15T09:30:00Z",
  "heartbeat_at": "2026-01-15T09:30:00Z",
  "sla_deadline_at": "2026-01-15T09:30:00Z",
  "submitted_at": "2026-01-15T09:30:00Z"
}
  • 400 — The request is invalid.
  • 401 — Missing or invalid API key.
  • 403 — The API key does not have the required scope.
  • 404 — The requested resource was not found.
  • 409 — The request conflicts with the current resource state.
  • 429 — Daily rate limit exceeded.
POST/v1/decision-tasks/{id}/fail

Path parameters

id*string (uuid)

Request body (application/json)

execution_epoch*integer
reason*stringStated on the Human Review this raises.

curl

curl -X POST 'https://api.talonic.com/v1/decision-tasks/3fa85f64-5717-4562-b3fc-2c963f66afa6/fail' \
  -H "Authorization: Bearer $TALONIC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "execution_epoch": 1,
  "reason": "string"
}'

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/decision-tasks/3fa85f64-5717-4562-b3fc-2c963f66afa6/fail", {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "execution_epoch": 1,
    "reason": "string"
  }),
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
const data = await res.json();

Response 200 — Failed task metadata.

{
  "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "customer_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "run_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "app_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "status": "available",
  "execution_epoch": 1,
  "input_package_ref": "string",
  "lease_seconds": 1,
  "claimed_by": "string",
  "claimed_at": "2026-01-15T09:30:00Z",
  "lease_expires_at": "2026-01-15T09:30:00Z",
  "heartbeat_at": "2026-01-15T09:30:00Z",
  "sla_deadline_at": "2026-01-15T09:30:00Z",
  "submitted_at": "2026-01-15T09:30:00Z"
}
  • 400 — The request is invalid.
  • 401 — Missing or invalid API key.
  • 403 — The API key does not have the required scope.
  • 404 — The requested resource was not found.
  • 409 — The request conflicts with the current resource state.
  • 422 — The request is well-formed but violates the declared task contract.
  • 429 — Daily rate limit exceeded.
GET/v1/apps/pickable-clients

curl

curl -X GET 'https://api.talonic.com/v1/apps/pickable-clients' \
  -H "Authorization: Bearer $TALONIC_API_KEY"

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/apps/pickable-clients", {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
  },
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
const data = await res.json();

Response 200 — Pickable API keys

{
  "items": [
    {
      "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "label": "string",
      "sublabel": "string"
    }
  ]
}
  • 401 — Missing or invalid API key.
  • 403 — Requires an owner-tier principal
GET/v1/apps/pickable-resources

Query parameters

type*string ("data_product", "reference_table", "source_connection", "app")
excludestring (uuid)App id to omit from type=app listings (an app never grants itself).

curl

curl -X GET 'https://api.talonic.com/v1/apps/pickable-resources?type=data_product' \
  -H "Authorization: Bearer $TALONIC_API_KEY"

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/apps/pickable-resources?type=data_product", {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
  },
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
const data = await res.json();

Response 200 — Up to 200 selectable resources for the requested type, tenant-scoped.

{
  "items": [
    {
      "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "label": "string",
      "sublabel": "string"
    }
  ]
}
  • 401 — Missing or invalid API key.
  • 422 — Unknown resource type.
POST/v1/apps/import

Request body (application/json)

slug*string
display_name*string
modestring ("rules", "assisted", "external")
content*object
export_version*integer (1)

curl

curl -X POST 'https://api.talonic.com/v1/apps/import' \
  -H "Authorization: Bearer $TALONIC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "slug": "string",
  "display_name": "string",
  "mode": "rules",
  "content": {},
  "export_version": 1
}'

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/apps/import", {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "slug": "string",
    "display_name": "string",
    "mode": "rules",
    "content": {},
    "export_version": 1
  }),
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
const data = await res.json();

Response 201 — The created app's manifest plus the saved draft version.

{
  "app": {
    "app_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "slug": "string",
    "display_name": "string",
    "version": 1,
    "content_hash": "string",
    "mode": "rules",
    "enabled": true,
    "standard": true,
    "contract": {
      "reads": [
        "string"
      ],
      "acts": [
        "string"
      ]
    },
    "output_contract": {},
    "input_schema": {},
    "triggers": {},
    "thresholds": {}
  },
  "draft": {
    "version": 1,
    "status": "string",
    "content_hash": "string"
  }
}
  • 409 — The request conflicts with the current resource state.
  • 422 — The request is well-formed but violates the declared task contract.
POST/v1/apps/from-url

Request body (application/json)

manifest_url*stringAn https URL (scheme + host, optionally with a path to the manifest document).

curl

curl -X POST 'https://api.talonic.com/v1/apps/from-url' \
  -H "Authorization: Bearer $TALONIC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "manifest_url": "string"
}'

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/apps/from-url", {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "manifest_url": "string"
  }),
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
const data = await res.json();

Response 201 — The new app's manifest, the stored version, and the validation outcome.

{
  "app": {
    "app_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "slug": "string",
    "display_name": "string",
    "version": 1,
    "content_hash": "string",
    "mode": "rules",
    "enabled": true,
    "standard": true,
    "contract": {
      "reads": [
        "string"
      ],
      "acts": [
        "string"
      ]
    },
    "output_contract": {},
    "input_schema": {},
    "triggers": {},
    "thresholds": {}
  },
  "version": {
    "version": 1,
    "status": "string",
    "content_hash": "string",
    "manifest_path": "well-known",
    "fetched_at": "2026-01-15T09:30:00Z"
  },
  "validation": {
    "valid": true,
    "mode": "url",
    "violations": [
      {
        "pointer": "string",
        "keyword": "string",
        "message": "string"
      }
    ],
    "normalized": {},
    "manifest_url": "string",
    "manifest_path": "well-known"
  }
}
  • 403 — The API key does not have the required scope.
  • 409 — The slug, or this manifest_url, is already registered in the workspace.
  • 422 — schema_validation_failed (the manifest fails validation) or manifest_fetch_failed (the URL could not be fetched); both carry details: { error, violations: AppManifestViolation[] }.
DELETE/v1/apps/{id}

Path parameters

id*string (uuid)

curl

curl -X DELETE 'https://api.talonic.com/v1/apps/3fa85f64-5717-4562-b3fc-2c963f66afa6' \
  -H "Authorization: Bearer $TALONIC_API_KEY"

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/apps/3fa85f64-5717-4562-b3fc-2c963f66afa6", {
  method: 'DELETE',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
  },
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
// 200: no JSON body

Response 200: Deleted.

  • 409 — The request conflicts with the current resource state.
PATCH/v1/apps/{id}

Path parameters

id*string (uuid)

Request body (application/json)

content*object

curl

curl -X PATCH 'https://api.talonic.com/v1/apps/3fa85f64-5717-4562-b3fc-2c963f66afa6' \
  -H "Authorization: Bearer $TALONIC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "content": {}
}'

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/apps/3fa85f64-5717-4562-b3fc-2c963f66afa6", {
  method: 'PATCH',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "content": {}
  }),
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
// 200: no JSON body

Response 200: Draft version summary.

  • 422 — The request is well-formed but violates the declared task contract.
GET/v1/apps/{id}/logic

Path parameters

id*string (uuid)

curl

curl -X GET 'https://api.talonic.com/v1/apps/3fa85f64-5717-4562-b3fc-2c963f66afa6/logic' \
  -H "Authorization: Bearer $TALONIC_API_KEY"

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/apps/3fa85f64-5717-4562-b3fc-2c963f66afa6/logic", {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
  },
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
// 200: no JSON body

Response 200: Draft + active version content.

PUT/v1/apps/{id}/logic

Path parameters

id*string (uuid)

Request body (application/json)

content*object

curl

curl -X PUT 'https://api.talonic.com/v1/apps/3fa85f64-5717-4562-b3fc-2c963f66afa6/logic' \
  -H "Authorization: Bearer $TALONIC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "content": {}
}'

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/apps/3fa85f64-5717-4562-b3fc-2c963f66afa6/logic", {
  method: 'PUT',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "content": {}
  }),
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
// 200: no JSON body

Response 200: Draft version summary.

GET/v1/apps/{id}/acceptance

Path parameters

id*string (uuid)

curl

curl -X GET 'https://api.talonic.com/v1/apps/3fa85f64-5717-4562-b3fc-2c963f66afa6/acceptance' \
  -H "Authorization: Bearer $TALONIC_API_KEY"

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/apps/3fa85f64-5717-4562-b3fc-2c963f66afa6/acceptance", {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
  },
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
const data = await res.json();

Response 200 — `{ acceptance }` — null when none has been saved.

{
  "acceptance": {}
}
  • 501 — Acceptance sets are not available in this deployment.
GET/v1/apps/{id}/acceptance/check

Path parameters

id*string (uuid)

Query parameters

run_idstring (uuid)

curl

curl -X GET 'https://api.talonic.com/v1/apps/3fa85f64-5717-4562-b3fc-2c963f66afa6/acceptance/check' \
  -H "Authorization: Bearer $TALONIC_API_KEY"

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/apps/3fa85f64-5717-4562-b3fc-2c963f66afa6/acceptance/check", {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
  },
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
const data = await res.json();

Response 200 — The check result.

{
  "run_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "evaluated": 1,
  "matched": 1,
  "skipped": 1,
  "score": 1.5,
  "tolerance": 1.5,
  "pass": true,
  "mismatches": [
    {}
  ],
  "warnings": [
    "string"
  ]
}
  • 422 — The request is well-formed but violates the declared task contract.
  • 501 — Acceptance sets are not available in this deployment.
POST/v1/apps/{id}/edit-proposals

Path parameters

id*string (uuid)

Request body (application/json)

instruction*stringPlain-language change request translated into typed edit ops.

curl

curl -X POST 'https://api.talonic.com/v1/apps/3fa85f64-5717-4562-b3fc-2c963f66afa6/edit-proposals' \
  -H "Authorization: Bearer $TALONIC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "instruction": "string"
}'

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/apps/3fa85f64-5717-4562-b3fc-2c963f66afa6/edit-proposals", {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "instruction": "string"
  }),
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
const data = await res.json();

Response 200 — The proposal — ops, summary, open questions, warnings, and a diff preview (not persisted).

{
  "ops": [
    {}
  ],
  "summary": "string",
  "open_questions": [
    "string"
  ],
  "warnings": [
    "string"
  ],
  "preview": {}
}
  • 501 — Natural-language editing is not available in this deployment.
POST/v1/apps/{id}/edit-proposals/apply

Path parameters

id*string (uuid)

Request body (application/json)

ops*object[]Accepted edit ops from a proposal; re-validated against the live draft on apply.

curl

curl -X POST 'https://api.talonic.com/v1/apps/3fa85f64-5717-4562-b3fc-2c963f66afa6/edit-proposals/apply' \
  -H "Authorization: Bearer $TALONIC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "ops": [
    {}
  ]
}'

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/apps/3fa85f64-5717-4562-b3fc-2c963f66afa6/edit-proposals/apply", {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "ops": [
      {}
    ]
  }),
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
const data = await res.json();

Response 200 — The updated draft content plus the ops actually applied.

{
  "content": {},
  "applied": [
    {}
  ],
  "warnings": [
    "string"
  ],
  "compile_warnings": [
    "string"
  ]
}
  • 422 — The request is well-formed but violates the declared task contract.
  • 501 — Natural-language editing is not available in this deployment.
GET/v1/apps/{id}/versions

Path parameters

id*string (uuid)

curl

curl -X GET 'https://api.talonic.com/v1/apps/3fa85f64-5717-4562-b3fc-2c963f66afa6/versions' \
  -H "Authorization: Bearer $TALONIC_API_KEY"

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/apps/3fa85f64-5717-4562-b3fc-2c963f66afa6/versions", {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
  },
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
// 200: no JSON body

Response 200: Versions

GET/v1/apps/{id}/versions/{n}

Path parameters

id*string (uuid)
n*integer

curl

curl -X GET 'https://api.talonic.com/v1/apps/3fa85f64-5717-4562-b3fc-2c963f66afa6/versions/1' \
  -H "Authorization: Bearer $TALONIC_API_KEY"

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/apps/3fa85f64-5717-4562-b3fc-2c963f66afa6/versions/1", {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
  },
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
// 200: no JSON body

Response 200: The version row.

  • 404 — The requested resource was not found.
GET/v1/apps/{id}/export

Path parameters

id*string (uuid)

curl

curl -X GET 'https://api.talonic.com/v1/apps/3fa85f64-5717-4562-b3fc-2c963f66afa6/export' \
  -H "Authorization: Bearer $TALONIC_API_KEY"

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/apps/3fa85f64-5717-4562-b3fc-2c963f66afa6/export", {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
  },
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
const data = await res.json();

Response 200 — The environment-free manifest.

{
  "export_version": 1,
  "app": {
    "slug": "string",
    "display_name": "string",
    "mode": "rules"
  },
  "version": 1,
  "content": {}
}
  • 404 — The requested resource was not found.
  • 409 — The app has no published version.
POST/v1/apps/{id}/duplicate

Path parameters

id*string (uuid)

Request body (application/json)

slugstring
display_namestring

curl

curl -X POST 'https://api.talonic.com/v1/apps/3fa85f64-5717-4562-b3fc-2c963f66afa6/duplicate' \
  -H "Authorization: Bearer $TALONIC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "slug": "string",
  "display_name": "string"
}'

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/apps/3fa85f64-5717-4562-b3fc-2c963f66afa6/duplicate", {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "slug": "string",
    "display_name": "string"
  }),
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
const data = await res.json();

Response 201 — The new app's manifest plus the saved draft version.

{
  "app": {
    "app_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "slug": "string",
    "display_name": "string",
    "version": 1,
    "content_hash": "string",
    "mode": "rules",
    "enabled": true,
    "standard": true,
    "contract": {
      "reads": [
        "string"
      ],
      "acts": [
        "string"
      ]
    },
    "output_contract": {},
    "input_schema": {},
    "triggers": {},
    "thresholds": {}
  },
  "draft": {
    "version": 1,
    "status": "string",
    "content_hash": "string"
  }
}
  • 409 — The request conflicts with the current resource state.
  • 422 — The request is well-formed but violates the declared task contract.
POST/v1/apps/{id}/versions/{n}/publish

Path parameters

id*string (uuid)
n*integer

curl

curl -X POST 'https://api.talonic.com/v1/apps/3fa85f64-5717-4562-b3fc-2c963f66afa6/versions/1/publish' \
  -H "Authorization: Bearer $TALONIC_API_KEY"

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/apps/3fa85f64-5717-4562-b3fc-2c963f66afa6/versions/1/publish", {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
  },
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
// 200: no JSON body

Response 200: Published version summary.

  • 409 — The request conflicts with the current resource state.
POST/v1/apps/{id}/versions/{n}/activate

Path parameters

id*string (uuid)
n*integer

curl

curl -X POST 'https://api.talonic.com/v1/apps/3fa85f64-5717-4562-b3fc-2c963f66afa6/versions/1/activate' \
  -H "Authorization: Bearer $TALONIC_API_KEY"

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/apps/3fa85f64-5717-4562-b3fc-2c963f66afa6/versions/1/activate", {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
  },
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
// 200: no JSON body

Response 200: Already active.

  • 501 — Rollback activation of a superseded version is not implemented yet.
POST/v1/apps/{id}/enable

Path parameters

id*string (uuid)

curl

curl -X POST 'https://api.talonic.com/v1/apps/3fa85f64-5717-4562-b3fc-2c963f66afa6/enable' \
  -H "Authorization: Bearer $TALONIC_API_KEY"

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/apps/3fa85f64-5717-4562-b3fc-2c963f66afa6/enable", {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
  },
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
// 200: no JSON body

Response 200: Enabled.

  • 403 — The API key does not have the required scope.
  • 409 — The request conflicts with the current resource state.
POST/v1/apps/{id}/disable

Path parameters

id*string (uuid)

curl

curl -X POST 'https://api.talonic.com/v1/apps/3fa85f64-5717-4562-b3fc-2c963f66afa6/disable' \
  -H "Authorization: Bearer $TALONIC_API_KEY"

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/apps/3fa85f64-5717-4562-b3fc-2c963f66afa6/disable", {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
  },
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
// 200: no JSON body

Response 200: Disabled.

POST/v1/apps/{id}/trigger-floor

Path parameters

id*string (uuid)

Request body (application/json)

atstring (date-time)The floor instant; omitted = now, null = clear.

curl

curl -X POST 'https://api.talonic.com/v1/apps/3fa85f64-5717-4562-b3fc-2c963f66afa6/trigger-floor' \
  -H "Authorization: Bearer $TALONIC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "at": "2026-01-15T09:30:00Z"
}'

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/apps/3fa85f64-5717-4562-b3fc-2c963f66afa6/trigger-floor", {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "at": "2026-01-15T09:30:00Z"
  }),
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
const data = await res.json();

Response 200 — The stored floor.

{
  "trigger_floor_at": "2026-01-15T09:30:00Z"
}
  • 400 — The request is invalid.
POST/v1/apps/{id}/refresh

Path parameters

id*string (uuid)

curl

curl -X POST 'https://api.talonic.com/v1/apps/3fa85f64-5717-4562-b3fc-2c963f66afa6/refresh' \
  -H "Authorization: Bearer $TALONIC_API_KEY"

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/apps/3fa85f64-5717-4562-b3fc-2c963f66afa6/refresh", {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
  },
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
const data = await res.json();

Response 200 — The vendor's document was read.

{
  "changed": true,
  "version": 1
}
  • 403 — The API key does not have the required scope.
  • 404 — The requested resource was not found.
  • 409 — The app is not hosted (source is pushed) — there is no manifest URL to refresh.
  • 422 — The fetch or the validation of the served document failed. message starts refresh_failed: followed by the reason (for example refresh_failed: invalid_manifest: /subscriptions_endpoint must lie in an origin the manifest vouches for (...)); details carries { changed: false, error }; the same reason is recorded on the app as last_fetch_error.
POST/v1/apps/{id}/host

Path parameters

id*string (uuid)

Request body (application/json)

manifest_url*stringAn https URL.

curl

curl -X POST 'https://api.talonic.com/v1/apps/3fa85f64-5717-4562-b3fc-2c963f66afa6/host' \
  -H "Authorization: Bearer $TALONIC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "manifest_url": "string"
}'

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/apps/3fa85f64-5717-4562-b3fc-2c963f66afa6/host", {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "manifest_url": "string"
  }),
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
const data = await res.json();

Response 200 — Hosted.

{
  "changed": true,
  "version": 1,
  "app": {
    "app_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "slug": "string",
    "display_name": "string",
    "version": 1,
    "content_hash": "string",
    "mode": "rules",
    "enabled": true,
    "standard": true,
    "contract": {
      "reads": [
        "string"
      ],
      "acts": [
        "string"
      ]
    },
    "output_contract": {},
    "input_schema": {},
    "triggers": {},
    "thresholds": {}
  }
}
  • 403 — The API key does not have the required scope.
  • 404 — The requested resource was not found.
  • 409 — The app is already hosted.
  • 422 — The manifest could not be fetched or does not validate; carries details: { error, violations: AppManifestViolation[] } exactly as POST /v1/apps/from-url does.
GET/v1/apps/{id}/install

Path parameters

id*string (uuid)

curl

curl -X GET 'https://api.talonic.com/v1/apps/3fa85f64-5717-4562-b3fc-2c963f66afa6/install' \
  -H "Authorization: Bearer $TALONIC_API_KEY"

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/apps/3fa85f64-5717-4562-b3fc-2c963f66afa6/install", {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
  },
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
const data = await res.json();

Response 200 — The install, or null when the app was never installed.

{
  "install": {
    "app_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "status": "installed",
    "service_api_key_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "oauth_client_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "surface_url": "string",
    "allowed_origin": "string",
    "installed_by": "string",
    "installed_at": "2026-01-15T09:30:00Z",
    "suspended_at": "2026-01-15T09:30:00Z",
    "suspended_reason": "string",
    "last_seen_at": "2026-01-15T09:30:00Z",
    "uninstalled_at": "2026-01-15T09:30:00Z",
    "approved_version": 1,
    "approved_at": "2026-01-15T09:30:00Z"
  }
}
  • 403 — The API key does not have the required scope.
POST/v1/apps/{id}/install

Path parameters

id*string (uuid)

Request body (application/json)

surface_urlstringhttps URL of the external service UI; surfaces as endpoints.surface.
allowed_originstringExact https origin admitted for the surface's browser calls. Must match the host of one of the OAuth client's registered redirect URIs, so oauth_client_id is required with it.
oauth_client_idstring (uuid)
key_namestring
confirm_subscriptions_endpointstringThe manifest's subscriptions_endpoint, retyped by the owner (§B13.2 check 2). Required, and compared byte-for-byte, whenever the active version subscribes to anything.
bindingsobjectRequirement slots bound to workspace resources, { "<alias>": "<uuid>" | "self" } — one entry per non-optional, non-self-scope slot the manifest's requires[] declares (see AppManifest.requires).

curl

curl -X POST 'https://api.talonic.com/v1/apps/3fa85f64-5717-4562-b3fc-2c963f66afa6/install' \
  -H "Authorization: Bearer $TALONIC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "surface_url": "string",
  "allowed_origin": "string",
  "oauth_client_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "key_name": "string",
  "confirm_subscriptions_endpoint": "string",
  "bindings": {
    "invoices": "3f9c9e3a-1b2c-4d5e-8f60-1234567890ab"
  }
}'

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/apps/3fa85f64-5717-4562-b3fc-2c963f66afa6/install", {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "surface_url": "string",
    "allowed_origin": "string",
    "oauth_client_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "key_name": "string",
    "confirm_subscriptions_endpoint": "string",
    "bindings": {
      "invoices": "3f9c9e3a-1b2c-4d5e-8f60-1234567890ab"
    }
  }),
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
const data = await res.json();

Response 201 — Installed. The service key AND the subscription signing secret appear here and nowhere else.

{
  "install": {
    "app_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "status": "installed",
    "service_api_key_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "oauth_client_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "surface_url": "string",
    "allowed_origin": "string",
    "installed_by": "string",
    "installed_at": "2026-01-15T09:30:00Z",
    "suspended_at": "2026-01-15T09:30:00Z",
    "suspended_reason": "string",
    "last_seen_at": "2026-01-15T09:30:00Z",
    "uninstalled_at": "2026-01-15T09:30:00Z",
    "approved_version": 1,
    "approved_at": "2026-01-15T09:30:00Z"
  },
  "service_key": "string",
  "masked_prefix": "string",
  "subscription_secret": "string",
  "subscriptions": {
    "status": "pending_verification",
    "verified": true,
    "reason": "string",
    "count": 1
  },
  "warning": "string"
}
  • 400 — The bindings or the endpoint confirmation are incomplete; message starts with one of endpoint_not_confirmed: (confirm_subscriptions_endpoint missing or not byte-equal to the manifest's subscriptions_endpoint), slot_unbound: (a required, non-self slot has no binding), or slot_unknown: (a bindings alias the manifest does not declare).
  • 403 — The API key does not have the required scope.
  • 409 — The request conflicts with the current resource state.
  • 422 — A required grant target, or a bound requirement-slot resource, does not exist here, or the origin is not admissible.
DELETE/v1/apps/{id}/install

Path parameters

id*string (uuid)

curl

curl -X DELETE 'https://api.talonic.com/v1/apps/3fa85f64-5717-4562-b3fc-2c963f66afa6/install' \
  -H "Authorization: Bearer $TALONIC_API_KEY"

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/apps/3fa85f64-5717-4562-b3fc-2c963f66afa6/install", {
  method: 'DELETE',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
  },
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
const data = await res.json();

Response 200 — Uninstalled.

{
  "install": {
    "app_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "status": "installed",
    "service_api_key_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "oauth_client_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "surface_url": "string",
    "allowed_origin": "string",
    "installed_by": "string",
    "installed_at": "2026-01-15T09:30:00Z",
    "suspended_at": "2026-01-15T09:30:00Z",
    "suspended_reason": "string",
    "last_seen_at": "2026-01-15T09:30:00Z",
    "uninstalled_at": "2026-01-15T09:30:00Z",
    "approved_version": 1,
    "approved_at": "2026-01-15T09:30:00Z"
  }
}
  • 403 — The API key does not have the required scope.
  • 404 — The requested resource was not found.
PATCH/v1/apps/{id}/install

Path parameters

id*string (uuid)

Request body (application/json)

surface_urlstring
allowed_originstringExact https origin admitted for the surface's browser calls. Must match the host of one of the OAuth client's registered redirect URIs, so a non-null origin requires an oauth_client_id on the merged row.
oauth_client_idstring (uuid)
bindingsobjectRebind requirement slots: only the aliases present move, and only to resources of the slot's own kind. An alias with no stored binding takes its first one here. 400 slot_unknown: for an alias the approved manifest does not declare; 400 endpoint_not_confirmed: when the binding would give the install its first subscriptions (approve the version instead); 409 install_not_ready: while a newer version awaits approval — send bindings with POST .../install/approve then.

curl

curl -X PATCH 'https://api.talonic.com/v1/apps/3fa85f64-5717-4562-b3fc-2c963f66afa6/install' \
  -H "Authorization: Bearer $TALONIC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "surface_url": "string",
  "allowed_origin": "string",
  "oauth_client_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "bindings": {}
}'

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/apps/3fa85f64-5717-4562-b3fc-2c963f66afa6/install", {
  method: 'PATCH',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "surface_url": "string",
    "allowed_origin": "string",
    "oauth_client_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "bindings": {}
  }),
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
const data = await res.json();

Response 200 — Updated.

{
  "install": {
    "app_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "status": "installed",
    "service_api_key_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "oauth_client_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "surface_url": "string",
    "allowed_origin": "string",
    "installed_by": "string",
    "installed_at": "2026-01-15T09:30:00Z",
    "suspended_at": "2026-01-15T09:30:00Z",
    "suspended_reason": "string",
    "last_seen_at": "2026-01-15T09:30:00Z",
    "uninstalled_at": "2026-01-15T09:30:00Z",
    "approved_version": 1,
    "approved_at": "2026-01-15T09:30:00Z"
  }
}
  • 400 — slot_unknown: / endpoint_not_confirmed: (see the bindings field).
  • 403 — The API key does not have the required scope.
  • 404 — The requested resource was not found.
  • 409 — The request conflicts with the current resource state.
  • 422 — The origin is not admissible for the bound OAuth client, OR (hosted apps only) hosted_surface_fixed: — surface_url was sent for a hosted app; its surface comes from the manifest and moves only when a new version is approved.
GET/v1/apps/{id}/install/status

Path parameters

id*string (uuid)

curl

curl -X GET 'https://api.talonic.com/v1/apps/3fa85f64-5717-4562-b3fc-2c963f66afa6/install/status' \
  -H "Authorization: Bearer $TALONIC_API_KEY"

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/apps/3fa85f64-5717-4562-b3fc-2c963f66afa6/install/status", {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
  },
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
const data = await res.json();

Response 200 — Own-install status.

{
  "status": "installed",
  "approved_version": 1,
  "pending_approval_version": 1,
  "subscriptions": [
    {
      "event_type": "string",
      "match": {},
      "status": "pending_verification",
      "verified_at": "2026-01-15T09:30:00Z",
      "last_delivery_at": "2026-01-15T09:30:00Z",
      "failure_count": 1
    }
  ],
  "bindings": [
    {
      "alias": "string",
      "kind": "string",
      "resource_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
    }
  ]
}
  • 403 — The API key does not have the required scope.
GET/v1/apps/{id}/install/diff

Path parameters

id*string (uuid)

Query parameters

versionintegerA stored fetched candidate of a hosted app to diff against (several may await review at once); defaults to the install's pending_approval_version.

curl

curl -X GET 'https://api.talonic.com/v1/apps/3fa85f64-5717-4562-b3fc-2c963f66afa6/install/diff' \
  -H "Authorization: Bearer $TALONIC_API_KEY"

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/apps/3fa85f64-5717-4562-b3fc-2c963f66afa6/install/diff", {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
  },
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
const data = await res.json();

Response 200 — The install diff.

{
  "approved_version": 1,
  "pending_version": 1,
  "grants": {
    "added": [
      {
        "kind": "string",
        "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
        "access": "string"
      }
    ],
    "removed": [
      {
        "kind": "string",
        "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
        "access": "string"
      }
    ]
  },
  "subscriptions": {
    "added": [
      {
        "event": "string",
        "match": {}
      }
    ],
    "removed": [
      {
        "event": "string",
        "match": {}
      }
    ]
  },
  "endpoint": {
    "from": "string",
    "to": "string",
    "changed": true
  },
  "scopes": {
    "from": [
      "string"
    ],
    "to": [
      "string"
    ]
  },
  "surface_url": {
    "from": "string",
    "to": "string",
    "changed": true
  },
  "slots": {
    "added": [
      {
        "alias": "string",
        "kind": "string",
        "access": "read",
        "purpose": "string",
        "optional": true,
        "scope": "self"
      }
    ],
    "removed": [
      {
        "alias": "string",
        "kind": "string",
        "access": "read",
        "purpose": "string",
        "optional": true,
        "scope": "self"
      }
    ],
    "unchanged": [
      {
        "alias": "string",
        "kind": "string",
        "access": "read",
        "purpose": "string",
        "optional": true,
        "scope": "self"
      }
    ]
  },
  "allowed_origins": {
    "from": [
      "string"
    ],
    "to": [
      "string"
    ]
  },
  "identity": {
    "from": {
      "name": "string",
      "display_name": "string",
      "description": "string",
      "version": "string",
      "homepage": "string",
      "icon": "string"
    },
    "to": {
      "name": "string",
      "display_name": "string",
      "description": "string",
      "version": "string",
      "homepage": "string",
      "icon": "string"
    }
  }
}
  • 403 — The API key does not have the required scope.
  • 404 — The requested resource was not found.
  • 422 — version is not a positive integer.
POST/v1/apps/{id}/install/approve

Path parameters

id*string (uuid)

Request body (application/json)

versioninteger
confirm_subscriptions_endpointstringRequired, and compared byte-for-byte, whenever the new manifest moved where events are delivered — the endpoint changed, or this version subscribes to something and the approved one subscribed to nothing.
bindingsobjectBindings for slots the new manifest adds, merged over the ones already stored.

curl

curl -X POST 'https://api.talonic.com/v1/apps/3fa85f64-5717-4562-b3fc-2c963f66afa6/install/approve' \
  -H "Authorization: Bearer $TALONIC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "version": 1,
  "confirm_subscriptions_endpoint": "string",
  "bindings": {}
}'

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/apps/3fa85f64-5717-4562-b3fc-2c963f66afa6/install/approve", {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "version": 1,
    "confirm_subscriptions_endpoint": "string",
    "bindings": {}
  }),
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
const data = await res.json();

Response 200 — Approved.

{
  "install": {
    "app_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "status": "installed",
    "service_api_key_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "oauth_client_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "surface_url": "string",
    "allowed_origin": "string",
    "installed_by": "string",
    "installed_at": "2026-01-15T09:30:00Z",
    "suspended_at": "2026-01-15T09:30:00Z",
    "suspended_reason": "string",
    "last_seen_at": "2026-01-15T09:30:00Z",
    "uninstalled_at": "2026-01-15T09:30:00Z",
    "approved_version": 1,
    "approved_at": "2026-01-15T09:30:00Z"
  },
  "subscription_secret": "string",
  "subscriptions": {
    "status": "pending_verification",
    "verified": true,
    "reason": "string",
    "count": 1
  }
}
  • 400 — endpoint_not_confirmed: / slot_unbound: / slot_unknown: (see the request fields).
  • 403 — The API key does not have the required scope.
  • 404 — The requested resource was not found.
  • 409 — Not installed, OR a newer version has since been published (compare-and-set on the version the owner read).
  • 422 — A bound requirement-slot resource does not exist here, or the origin/manifest is not admissible.
POST/v1/apps/{id}/install/verify-subscriptions

Path parameters

id*string (uuid)

curl

curl -X POST 'https://api.talonic.com/v1/apps/3fa85f64-5717-4562-b3fc-2c963f66afa6/install/verify-subscriptions' \
  -H "Authorization: Bearer $TALONIC_API_KEY"

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/apps/3fa85f64-5717-4562-b3fc-2c963f66afa6/install/verify-subscriptions", {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
  },
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
const data = await res.json();

Response 200 — Challenge re-run.

{
  "install": {
    "app_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "status": "installed",
    "service_api_key_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "oauth_client_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "surface_url": "string",
    "allowed_origin": "string",
    "installed_by": "string",
    "installed_at": "2026-01-15T09:30:00Z",
    "suspended_at": "2026-01-15T09:30:00Z",
    "suspended_reason": "string",
    "last_seen_at": "2026-01-15T09:30:00Z",
    "uninstalled_at": "2026-01-15T09:30:00Z",
    "approved_version": 1,
    "approved_at": "2026-01-15T09:30:00Z"
  },
  "subscriptions": {
    "status": "pending_verification",
    "verified": true,
    "reason": "string",
    "count": 1
  }
}
  • 403 — The API key does not have the required scope.
  • 404 — The requested resource was not found.
  • 409 — The request conflicts with the current resource state.
POST/v1/apps/{id}/install/rotate-secret

Path parameters

id*string (uuid)

curl

curl -X POST 'https://api.talonic.com/v1/apps/3fa85f64-5717-4562-b3fc-2c963f66afa6/install/rotate-secret' \
  -H "Authorization: Bearer $TALONIC_API_KEY"

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/apps/3fa85f64-5717-4562-b3fc-2c963f66afa6/install/rotate-secret", {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
  },
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
const data = await res.json();

Response 200 — Rotated.

{
  "subscription_secret": "string",
  "install": {
    "app_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "status": "installed",
    "service_api_key_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "oauth_client_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "surface_url": "string",
    "allowed_origin": "string",
    "installed_by": "string",
    "installed_at": "2026-01-15T09:30:00Z",
    "suspended_at": "2026-01-15T09:30:00Z",
    "suspended_reason": "string",
    "last_seen_at": "2026-01-15T09:30:00Z",
    "uninstalled_at": "2026-01-15T09:30:00Z",
    "approved_version": 1,
    "approved_at": "2026-01-15T09:30:00Z"
  },
  "subscriptions": {
    "status": "pending_verification",
    "verified": true,
    "reason": "string",
    "count": 1
  },
  "warning": "string"
}
  • 403 — The API key does not have the required scope.
  • 404 — The requested resource was not found.
  • 409 — The request conflicts with the current resource state.
POST/v1/apps/{id}/install/suspend

Path parameters

id*string (uuid)

Request body (application/json)

reasonstring

curl

curl -X POST 'https://api.talonic.com/v1/apps/3fa85f64-5717-4562-b3fc-2c963f66afa6/install/suspend' \
  -H "Authorization: Bearer $TALONIC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "reason": "string"
}'

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/apps/3fa85f64-5717-4562-b3fc-2c963f66afa6/install/suspend", {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "reason": "string"
  }),
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
const data = await res.json();

Response 200 — Suspended.

{
  "install": {
    "app_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "status": "installed",
    "service_api_key_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "oauth_client_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "surface_url": "string",
    "allowed_origin": "string",
    "installed_by": "string",
    "installed_at": "2026-01-15T09:30:00Z",
    "suspended_at": "2026-01-15T09:30:00Z",
    "suspended_reason": "string",
    "last_seen_at": "2026-01-15T09:30:00Z",
    "uninstalled_at": "2026-01-15T09:30:00Z",
    "approved_version": 1,
    "approved_at": "2026-01-15T09:30:00Z"
  }
}
  • 403 — The API key does not have the required scope.
  • 404 — The requested resource was not found.
  • 409 — The request conflicts with the current resource state.
POST/v1/apps/{id}/install/resume

Path parameters

id*string (uuid)

curl

curl -X POST 'https://api.talonic.com/v1/apps/3fa85f64-5717-4562-b3fc-2c963f66afa6/install/resume' \
  -H "Authorization: Bearer $TALONIC_API_KEY"

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/apps/3fa85f64-5717-4562-b3fc-2c963f66afa6/install/resume", {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
  },
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
const data = await res.json();

Response 200 — Resumed.

{
  "install": {
    "app_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "status": "installed",
    "service_api_key_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "oauth_client_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "surface_url": "string",
    "allowed_origin": "string",
    "installed_by": "string",
    "installed_at": "2026-01-15T09:30:00Z",
    "suspended_at": "2026-01-15T09:30:00Z",
    "suspended_reason": "string",
    "last_seen_at": "2026-01-15T09:30:00Z",
    "uninstalled_at": "2026-01-15T09:30:00Z",
    "approved_version": 1,
    "approved_at": "2026-01-15T09:30:00Z"
  }
}
  • 403 — The API key does not have the required scope.
  • 404 — The requested resource was not found.
  • 409 — The request conflicts with the current resource state.
GET/v1/apps/{id}/runs

Path parameters

id*string (uuid)

Query parameters

limitinteger Default: 50

curl

curl -X GET 'https://api.talonic.com/v1/apps/3fa85f64-5717-4562-b3fc-2c963f66afa6/runs' \
  -H "Authorization: Bearer $TALONIC_API_KEY"

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/apps/3fa85f64-5717-4562-b3fc-2c963f66afa6/runs", {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
  },
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
// 200: no JSON body

Response 200: Runs

GET/v1/apps/{id}/subjects/summary

Path parameters

id*string (uuid)

Query parameters

sincestring (date-time)
rulestringCard id; used with status.
statusstring ("passed", "failed", "indeterminate", "not_applicable")Outcome of the rule named by rule.
decided_afterstring (date-time)
qstringCase-insensitive substring over subject key, label and document names.

curl

curl -X GET 'https://api.talonic.com/v1/apps/3fa85f64-5717-4562-b3fc-2c963f66afa6/subjects/summary' \
  -H "Authorization: Bearer $TALONIC_API_KEY"

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/apps/3fa85f64-5717-4562-b3fc-2c963f66afa6/subjects/summary", {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
  },
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
const data = await res.json();

Response 200 — Standing summary.

{
  "total": 1,
  "by_decision": {
    "eligible": 1,
    "ineligible": 1,
    "unclear": 1
  },
  "by_reason": [
    {
      "card_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "count": 1
    }
  ],
  "by_day": [
    {
      "day": "2026-01-15",
      "eligible": 1,
      "not_eligible": 1
    }
  ]
}
  • 403 — Master view ('all') or missing workspace — a concrete tenant is required.
  • 404 — The requested resource was not found.
  • 501 — Batch verdicts are not available in this deployment.
GET/v1/apps/{id}/subjects/{key}/history

Path parameters

id*string (uuid)
key*stringURL-encoded subject key.

curl

curl -X GET 'https://api.talonic.com/v1/apps/3fa85f64-5717-4562-b3fc-2c963f66afa6/subjects/key/history' \
  -H "Authorization: Bearer $TALONIC_API_KEY"

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/apps/3fa85f64-5717-4562-b3fc-2c963f66afa6/subjects/key/history", {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
  },
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
const data = await res.json();

Response 200 — Revision history.

{
  "subject_key": "string",
  "active_version": 1,
  "versions": {},
  "entries": [
    {
      "first_blocking_card": "string",
      "standing": true,
      "run_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "app_version": 1,
      "app_version_hash": "string",
      "decision_revision": 1,
      "decided_at": "2026-01-15T09:30:00Z",
      "trigger": {},
      "dry_run": true,
      "sealed": true,
      "rolled_outcome": "string",
      "auto": true,
      "substantive_passes": 1,
      "subject_label": "string"
    }
  ]
}
  • 403 — Master view ('all') or missing workspace — a concrete tenant is required.
  • 404 — The requested resource was not found.
  • 501 — Batch verdicts are not available in this deployment.
POST/v1/apps/{id}/replay/verdict-diff

Path parameters

id*string (uuid)

Request body (application/json)

candidateVersionIdstring (uuid)
contentobjectUnsaved manifest content to evaluate as the candidate.
againstVersionIdstring (uuid)Baseline version; defaults to the active version.
lastNRunsinteger Default: 20

curl

curl -X POST 'https://api.talonic.com/v1/apps/3fa85f64-5717-4562-b3fc-2c963f66afa6/replay/verdict-diff' \
  -H "Authorization: Bearer $TALONIC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "candidateVersionId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "content": {},
  "againstVersionId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "lastNRuns": 20
}'

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/apps/3fa85f64-5717-4562-b3fc-2c963f66afa6/replay/verdict-diff", {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "candidateVersionId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "content": {},
    "againstVersionId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "lastNRuns": 20
  }),
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
const data = await res.json();

Response 200 — The verdict diff.

{
  "runsCompared": 1,
  "flips": [
    {
      "runId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "subjectKey": "string",
      "from": "string",
      "to": "string"
    }
  ],
  "ruleDeltas": [
    {
      "ruleId": "string",
      "name": "string",
      "passesBefore": 1,
      "passesAfter": 1,
      "failsBefore": 1,
      "failsAfter": 1
    }
  ],
  "summary": {
    "totalSubjects": 1,
    "flippedSubjects": 1
  }
}
  • 404 — The requested resource was not found.
  • 422 — No candidate to compare
  • 501 — Verdict diff is not available in this deployment.
GET/v1/apps/{id}/reviews

Path parameters

id*string (uuid)

Query parameters

statusstring ("open", "assigned", "resolved", "expired", "cancelled")
kindstring ("resolution", "approval", "data_request", "judgment")

curl

curl -X GET 'https://api.talonic.com/v1/apps/3fa85f64-5717-4562-b3fc-2c963f66afa6/reviews' \
  -H "Authorization: Bearer $TALONIC_API_KEY"

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/apps/3fa85f64-5717-4562-b3fc-2c963f66afa6/reviews", {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
  },
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
// 200: no JSON body

Response 200: Reviews.

POST/v1/apps/{id}/reviews

Path parameters

id*string (uuid)

Request body (application/json)

run_idstring (uuid)
kind*string ("resolution", "approval", "data_request", "judgment")
question*string
contextobject
input_contract*objectJSON Schema (2020-12 subset) the resolution values must satisfy.
team_idstring (uuid)

curl

curl -X POST 'https://api.talonic.com/v1/apps/3fa85f64-5717-4562-b3fc-2c963f66afa6/reviews' \
  -H "Authorization: Bearer $TALONIC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "run_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "kind": "resolution",
  "question": "string",
  "context": {},
  "input_contract": {},
  "team_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}'

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/apps/3fa85f64-5717-4562-b3fc-2c963f66afa6/reviews", {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "run_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "kind": "resolution",
    "question": "string",
    "context": {},
    "input_contract": {},
    "team_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
  }),
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
const data = await res.json();

Response 201 — The review.

{
  "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "app_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "run_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "kind": "resolution",
  "status": "open",
  "question": "string",
  "context": {},
  "input_contract": {},
  "raised_by": {},
  "assignee_team_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "assignee_user_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "resolution": {},
  "feedback": {},
  "expires_at": "2026-01-15T09:30:00Z"
}
GET/v1/apps/{id}/exceptions

Path parameters

id*string (uuid)

curl

curl -X GET 'https://api.talonic.com/v1/apps/3fa85f64-5717-4562-b3fc-2c963f66afa6/exceptions' \
  -H "Authorization: Bearer $TALONIC_API_KEY"

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/apps/3fa85f64-5717-4562-b3fc-2c963f66afa6/exceptions", {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
  },
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
// 200: no JSON body

Response 200: System-raised reviews.

GET/v1/apps/{id}/rule-candidates

Path parameters

id*string (uuid)

curl

curl -X GET 'https://api.talonic.com/v1/apps/3fa85f64-5717-4562-b3fc-2c963f66afa6/rule-candidates' \
  -H "Authorization: Bearer $TALONIC_API_KEY"

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/apps/3fa85f64-5717-4562-b3fc-2c963f66afa6/rule-candidates", {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
  },
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
// 200: no JSON body

Response 200: Candidate queue (empty until the feedback loop activates).

GET/v1/apps/{id}/precedents

Path parameters

id*string (uuid)

Query parameters

similar_tostringJSON object of match keys; filters to precedents similar to it.

curl

curl -X GET 'https://api.talonic.com/v1/apps/3fa85f64-5717-4562-b3fc-2c963f66afa6/precedents' \
  -H "Authorization: Bearer $TALONIC_API_KEY"

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/apps/3fa85f64-5717-4562-b3fc-2c963f66afa6/precedents", {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
  },
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
// 200: no JSON body

Response 200: { precedents } (empty when the precedent store is not deployed).

  • 422 — The request is well-formed but violates the declared task contract.
GET/v1/apps/{id}/grants

Path parameters

id*string (uuid)

curl

curl -X GET 'https://api.talonic.com/v1/apps/3fa85f64-5717-4562-b3fc-2c963f66afa6/grants' \
  -H "Authorization: Bearer $TALONIC_API_KEY"

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/apps/3fa85f64-5717-4562-b3fc-2c963f66afa6/grants", {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
  },
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
// 200: no JSON body

Response 200: Resource grants.

DELETE/v1/apps/{id}/grants/{grantId}

Path parameters

id*string (uuid)
grantId*string (uuid)

curl

curl -X DELETE 'https://api.talonic.com/v1/apps/3fa85f64-5717-4562-b3fc-2c963f66afa6/grants/3fa85f64-5717-4562-b3fc-2c963f66afa6' \
  -H "Authorization: Bearer $TALONIC_API_KEY"

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/apps/3fa85f64-5717-4562-b3fc-2c963f66afa6/grants/3fa85f64-5717-4562-b3fc-2c963f66afa6", {
  method: 'DELETE',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
  },
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
// 200: no JSON body

Response 200: Revoked.

GET/v1/apps/{id}/clients

Path parameters

id*string (uuid)

curl

curl -X GET 'https://api.talonic.com/v1/apps/3fa85f64-5717-4562-b3fc-2c963f66afa6/clients' \
  -H "Authorization: Bearer $TALONIC_API_KEY"

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/apps/3fa85f64-5717-4562-b3fc-2c963f66afa6/clients", {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
  },
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
// 200: no JSON body

Response 200: Client grants.

DELETE/v1/apps/{id}/clients/{grantId}

Path parameters

id*string (uuid)
grantId*string (uuid)

curl

curl -X DELETE 'https://api.talonic.com/v1/apps/3fa85f64-5717-4562-b3fc-2c963f66afa6/clients/3fa85f64-5717-4562-b3fc-2c963f66afa6' \
  -H "Authorization: Bearer $TALONIC_API_KEY"

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/apps/3fa85f64-5717-4562-b3fc-2c963f66afa6/clients/3fa85f64-5717-4562-b3fc-2c963f66afa6", {
  method: 'DELETE',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
  },
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
// 200: no JSON body

Response 200: Revoked.

GET/v1/runs/{runId}

Path parameters

runId*string (uuid)

curl

curl -X GET 'https://api.talonic.com/v1/runs/3fa85f64-5717-4562-b3fc-2c963f66afa6' \
  -H "Authorization: Bearer $TALONIC_API_KEY"

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/runs/3fa85f64-5717-4562-b3fc-2c963f66afa6", {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
  },
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
const data = await res.json();

Response 200 — The run. A processing-run id answers with the deprecated `RunResponse` and the deprecation headers.

{
  "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "customer_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "app_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "app_slug": "string",
  "app_version": 1,
  "mode": "string",
  "status": "pending",
  "trigger": {},
  "idempotency_key": "string",
  "dry_run": true,
  "input_package": {},
  "decision": {},
  "decided_by": {},
  "thresholds_applied": [
    "string"
  ]
}
  • 401 — Missing or invalid API key.
  • 403 — The credential cannot read this run (Apps access, or the operations scope for a processing run).
  • 404 — The requested resource was not found.
GET/v1/runs/{runId}/events

Path parameters

runId*string (uuid)

curl

curl -X GET 'https://api.talonic.com/v1/runs/3fa85f64-5717-4562-b3fc-2c963f66afa6/events' \
  -H "Authorization: Bearer $TALONIC_API_KEY"

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/runs/3fa85f64-5717-4562-b3fc-2c963f66afa6/events", {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
  },
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
// 200: no JSON body

Response 200: Journal events.

GET/v1/runs/{runId}/verdicts/summary

Path parameters

runId*string (uuid)

curl

curl -X GET 'https://api.talonic.com/v1/runs/3fa85f64-5717-4562-b3fc-2c963f66afa6/verdicts/summary' \
  -H "Authorization: Bearer $TALONIC_API_KEY"

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/runs/3fa85f64-5717-4562-b3fc-2c963f66afa6/verdicts/summary", {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
  },
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
const data = await res.json();

Response 200 — The run's value summary.

{
  "runId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "versionId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "subjectLabel": "string",
  "sealed": true,
  "verdictCounts": {},
  "actionCounts": {},
  "notApplicableCells": 1,
  "inconclusiveCells": 1,
  "adjudication": {
    "used": 1,
    "budget": 1
  },
  "metrics": [
    {
      "label": "string",
      "value": 1.5
    }
  ]
}
  • 404 — The requested resource was not found.
  • 501 — Run summaries are not available in this deployment.
GET/v1/runs/{runId}/records

Path parameters

runId*string (uuid)

Query parameters

subject*string

curl

curl -X GET 'https://api.talonic.com/v1/runs/3fa85f64-5717-4562-b3fc-2c963f66afa6/records?subject=string' \
  -H "Authorization: Bearer $TALONIC_API_KEY"

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/runs/3fa85f64-5717-4562-b3fc-2c963f66afa6/records?subject=string", {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
  },
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
const data = await res.json();

Response 200 — Subject records.

{
  "run_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "subject_key": "string",
  "records": [
    {}
  ],
  "documents": [
    {
      "document_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "filename": "string",
      "mime_type": "string",
      "file_url": "string"
    }
  ]
}
  • 400 — subject is missing or longer than 512 characters.
  • 404 — The requested resource was not found.
  • 501 — Batch verdicts are not available in this deployment.
GET/v1/runs/{runId}/reconstruction

Path parameters

runId*string (uuid)

Query parameters

subject*string

curl

curl -X GET 'https://api.talonic.com/v1/runs/3fa85f64-5717-4562-b3fc-2c963f66afa6/reconstruction?subject=string' \
  -H "Authorization: Bearer $TALONIC_API_KEY"

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/runs/3fa85f64-5717-4562-b3fc-2c963f66afa6/reconstruction?subject=string", {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
  },
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
const data = await res.json();

Response 200 — Reconstructed matrix for the subject.

{
  "reconstructed": true,
  "engine_note": "string",
  "run_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "subject_key": "string",
  "sealed": {
    "rolled_outcome": "string",
    "auto": true
  },
  "replay": {
    "rolled_outcome": "string",
    "auto": true
  },
  "diverged_rules": [
    {
      "cardId": "string",
      "sealed": "string",
      "replay": "string",
      "label": "historical_result_not_reproducible"
    }
  ],
  "document_outcomes": [
    {}
  ]
}
  • 403 — Master view ('all') or missing workspace — a concrete tenant is required.
  • 404 — The requested resource was not found.
  • 422 — subject must be a single string query parameter.
  • 501 — Batch verdicts are not available in this deployment.
  • 503 — Reconstruction unavailable (package too large
GET/v1/runs/{runId}/record

Path parameters

runId*string (uuid)

curl

curl -X GET 'https://api.talonic.com/v1/runs/3fa85f64-5717-4562-b3fc-2c963f66afa6/record' \
  -H "Authorization: Bearer $TALONIC_API_KEY"

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/runs/3fa85f64-5717-4562-b3fc-2c963f66afa6/record", {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
  },
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
// 200: no JSON body

Response 200: The immutable record.

  • 404 — The requested resource was not found.
GET/v1/replays/{replayId}

Path parameters

replayId*string (uuid)

curl

curl -X GET 'https://api.talonic.com/v1/replays/3fa85f64-5717-4562-b3fc-2c963f66afa6' \
  -H "Authorization: Bearer $TALONIC_API_KEY"

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/replays/3fa85f64-5717-4562-b3fc-2c963f66afa6", {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
  },
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
// 200: no JSON body

Response 200: Replay with diff table.

  • 501 — Replay is not available in this deployment yet.
GET/v1/reviews

Query parameters

app_idstring (uuid)
statusstring ("open", "assigned", "resolved", "expired", "cancelled")
kindstring ("resolution", "approval", "data_request", "judgment")
assignee_user_idstring (uuid)

curl

curl -X GET 'https://api.talonic.com/v1/reviews' \
  -H "Authorization: Bearer $TALONIC_API_KEY"

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/reviews", {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
  },
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
// 200: no JSON body

Response 200: Reviews across all apps.

POST/v1/reviews/{reviewId}/interview

Path parameters

reviewId*string (uuid)

Request body (application/json)

message*stringThe reviewer's message for this interview turn.
transcriptobject[]Prior turns, client-held; the server keeps no interview state.

curl

curl -X POST 'https://api.talonic.com/v1/reviews/3fa85f64-5717-4562-b3fc-2c963f66afa6/interview' \
  -H "Authorization: Bearer $TALONIC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "message": "string",
  "transcript": [
    {
      "role": "user",
      "text": "string"
    }
  ]
}'

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/reviews/3fa85f64-5717-4562-b3fc-2c963f66afa6/interview", {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "message": "string",
    "transcript": [
      {
        "role": "user",
        "text": "string"
      }
    ]
  }),
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
const data = await res.json();

Response 200 — The interviewer's reply, proposed values/feedback once intent is clear, and `ready`.

{
  "reply": "string",
  "proposed_values": {},
  "proposed_feedback": {},
  "ready": true,
  "warnings": [
    "string"
  ]
}
  • 501 — The review interview is not available in this deployment.
POST/v1/reviews/{reviewId}/assign

Path parameters

reviewId*string (uuid)

Request body (application/json)

team_idstring (uuid)
user_idstring (uuid)

curl

curl -X POST 'https://api.talonic.com/v1/reviews/3fa85f64-5717-4562-b3fc-2c963f66afa6/assign' \
  -H "Authorization: Bearer $TALONIC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "team_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "user_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}'

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/reviews/3fa85f64-5717-4562-b3fc-2c963f66afa6/assign", {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "team_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "user_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
  }),
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
// 200: no JSON body

Response 200: The assigned review.

POST/v1/reviews/{reviewId}/cancel

Path parameters

reviewId*string (uuid)

curl

curl -X POST 'https://api.talonic.com/v1/reviews/3fa85f64-5717-4562-b3fc-2c963f66afa6/cancel' \
  -H "Authorization: Bearer $TALONIC_API_KEY"

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/reviews/3fa85f64-5717-4562-b3fc-2c963f66afa6/cancel", {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
  },
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
// 200: no JSON body

Response 200: Cancelled.

POST/v1/rule-candidates/{candidateId}/promote

Path parameters

candidateId*string (uuid)

curl

curl -X POST 'https://api.talonic.com/v1/rule-candidates/3fa85f64-5717-4562-b3fc-2c963f66afa6/promote' \
  -H "Authorization: Bearer $TALONIC_API_KEY"

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/rule-candidates/3fa85f64-5717-4562-b3fc-2c963f66afa6/promote", {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
  },
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
// 2xx: no JSON body
  • 501 — Candidates are populated by the feedback loop (v1.1).
POST/v1/rule-candidates/{candidateId}/dismiss

Path parameters

candidateId*string (uuid)

curl

curl -X POST 'https://api.talonic.com/v1/rule-candidates/3fa85f64-5717-4562-b3fc-2c963f66afa6/dismiss' \
  -H "Authorization: Bearer $TALONIC_API_KEY"

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/rule-candidates/3fa85f64-5717-4562-b3fc-2c963f66afa6/dismiss", {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
  },
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
// 2xx: no JSON body
  • 501 — Candidates are populated by the feedback loop (v1.1).
GET/v1/review-teams

curl

curl -X GET 'https://api.talonic.com/v1/review-teams' \
  -H "Authorization: Bearer $TALONIC_API_KEY"

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/review-teams", {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
  },
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
// 200: no JSON body

Response 200: Teams.

POST/v1/review-teams

Request body (application/json)

name*string
webhook_urlstring

curl

curl -X POST 'https://api.talonic.com/v1/review-teams' \
  -H "Authorization: Bearer $TALONIC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "name": "string",
  "webhook_url": "string"
}'

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/review-teams", {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "name": "string",
    "webhook_url": "string"
  }),
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
// 201: no JSON body

Response 201: The team.

  • 409 — The request conflicts with the current resource state.
DELETE/v1/review-teams/{teamId}

Path parameters

teamId*string (uuid)

curl

curl -X DELETE 'https://api.talonic.com/v1/review-teams/3fa85f64-5717-4562-b3fc-2c963f66afa6' \
  -H "Authorization: Bearer $TALONIC_API_KEY"

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/review-teams/3fa85f64-5717-4562-b3fc-2c963f66afa6", {
  method: 'DELETE',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
  },
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
// 200: no JSON body

Response 200: Deleted.

PATCH/v1/review-teams/{teamId}

Path parameters

teamId*string (uuid)

curl

curl -X PATCH 'https://api.talonic.com/v1/review-teams/3fa85f64-5717-4562-b3fc-2c963f66afa6' \
  -H "Authorization: Bearer $TALONIC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/review-teams/3fa85f64-5717-4562-b3fc-2c963f66afa6", {
  method: 'PATCH',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({}),
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
// 200: no JSON body

Response 200: The team.

GET/v1/review-teams/{teamId}/members

Path parameters

teamId*string (uuid)

curl

curl -X GET 'https://api.talonic.com/v1/review-teams/3fa85f64-5717-4562-b3fc-2c963f66afa6/members' \
  -H "Authorization: Bearer $TALONIC_API_KEY"

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/review-teams/3fa85f64-5717-4562-b3fc-2c963f66afa6/members", {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
  },
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
// 200: no JSON body

Response 200: Members.

POST/v1/review-teams/{teamId}/members

Path parameters

teamId*string (uuid)

Request body (application/json)

user_id*string (uuid)

curl

curl -X POST 'https://api.talonic.com/v1/review-teams/3fa85f64-5717-4562-b3fc-2c963f66afa6/members' \
  -H "Authorization: Bearer $TALONIC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "user_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}'

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/review-teams/3fa85f64-5717-4562-b3fc-2c963f66afa6/members", {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "user_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
  }),
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
// 201: no JSON body

Response 201: The membership.

DELETE/v1/review-teams/{teamId}/members/{userId}

Path parameters

teamId*string (uuid)
userId*string (uuid)

curl

curl -X DELETE 'https://api.talonic.com/v1/review-teams/3fa85f64-5717-4562-b3fc-2c963f66afa6/members/3fa85f64-5717-4562-b3fc-2c963f66afa6' \
  -H "Authorization: Bearer $TALONIC_API_KEY"

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/review-teams/3fa85f64-5717-4562-b3fc-2c963f66afa6/members/3fa85f64-5717-4562-b3fc-2c963f66afa6", {
  method: 'DELETE',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
  },
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
// 200: no JSON body

Response 200: Removed.

GET/v1/apps/{id}/mining/templates

Path parameters

id*string (uuid)

curl

curl -X GET 'https://api.talonic.com/v1/apps/3fa85f64-5717-4562-b3fc-2c963f66afa6/mining/templates' \
  -H "Authorization: Bearer $TALONIC_API_KEY"

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/apps/3fa85f64-5717-4562-b3fc-2c963f66afa6/mining/templates", {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
  },
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
const data = await res.json();

Response 200 — The app's data reads.

{
  "templates": [
    {
      "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "app_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "name": "string",
      "connection_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "sql_text": "string",
      "sql_hash": "string",
      "params_schema": {},
      "key_column": "string",
      "columns": [
        "string"
      ],
      "watermark_column": "string",
      "max_rows": 1,
      "feature_row": true,
      "state": "pending",
      "proposed_by": "string"
    }
  ]
}
  • 400 — The request is invalid.
  • 401 — Missing or invalid API key.
  • 403 — The API key does not have the required scope.
  • 404 — The requested resource was not found.
  • 429 — Daily rate limit exceeded.
POST/v1/apps/{id}/mining/templates

Path parameters

id*string (uuid)

Request body (application/json)

name*stringThe read's name
connection_id*string (uuid)The source connection the read runs on.
sql_text*stringOne read-only SELECT statement.
key_column*stringThe column that identifies each record; must be one of columns when those are given.
columnsstring[]The columns the read returns.
watermark_columnstringA column that orders records by change.
max_rowsintegerMost rows one run of the read returns; the deployment default when omitted.
feature_rowbooleanTrue when the read returns one flat row per record
params_schemaobjectJSON Schema of the read's parameters.

curl

curl -X POST 'https://api.talonic.com/v1/apps/3fa85f64-5717-4562-b3fc-2c963f66afa6/mining/templates' \
  -H "Authorization: Bearer $TALONIC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "name": "string",
  "connection_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "sql_text": "string",
  "key_column": "string",
  "columns": [
    "string"
  ],
  "watermark_column": "string",
  "max_rows": 1,
  "feature_row": true,
  "params_schema": {}
}'

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/apps/3fa85f64-5717-4562-b3fc-2c963f66afa6/mining/templates", {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "name": "string",
    "connection_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "sql_text": "string",
    "key_column": "string",
    "columns": [
      "string"
    ],
    "watermark_column": "string",
    "max_rows": 1,
    "feature_row": true,
    "params_schema": {}
  }),
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
const data = await res.json();

Response 201 — The proposed read (or the existing one with the same text).

{
  "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "app_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "name": "string",
  "connection_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "sql_text": "string",
  "sql_hash": "string",
  "params_schema": {},
  "key_column": "string",
  "columns": [
    "string"
  ],
  "watermark_column": "string",
  "max_rows": 1,
  "feature_row": true,
  "state": "pending",
  "proposed_by": "string"
}
  • 400 — The request is invalid.
  • 401 — Missing or invalid API key.
  • 403 — The API key does not have the required scope.
  • 404 — The requested resource was not found.
  • 422 — The request is well-formed but violates the declared task contract.
  • 429 — Daily rate limit exceeded.
POST/v1/apps/{id}/mining/templates/{templateId}/approve

Path parameters

id*string (uuid)
templateId*string (uuid)

curl

curl -X POST 'https://api.talonic.com/v1/apps/3fa85f64-5717-4562-b3fc-2c963f66afa6/mining/templates/3fa85f64-5717-4562-b3fc-2c963f66afa6/approve' \
  -H "Authorization: Bearer $TALONIC_API_KEY"

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/apps/3fa85f64-5717-4562-b3fc-2c963f66afa6/mining/templates/3fa85f64-5717-4562-b3fc-2c963f66afa6/approve", {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
  },
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
const data = await res.json();

Response 200 — The approved read.

{
  "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "app_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "name": "string",
  "connection_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "sql_text": "string",
  "sql_hash": "string",
  "params_schema": {},
  "key_column": "string",
  "columns": [
    "string"
  ],
  "watermark_column": "string",
  "max_rows": 1,
  "feature_row": true,
  "state": "pending",
  "proposed_by": "string"
}
  • 400 — The request is invalid.
  • 401 — Missing or invalid API key.
  • 403 — The API key does not have the required scope.
  • 404 — The requested resource was not found.
  • 429 — Daily rate limit exceeded.
POST/v1/apps/{id}/mining/templates/{templateId}/revoke

Path parameters

id*string (uuid)
templateId*string (uuid)

curl

curl -X POST 'https://api.talonic.com/v1/apps/3fa85f64-5717-4562-b3fc-2c963f66afa6/mining/templates/3fa85f64-5717-4562-b3fc-2c963f66afa6/revoke' \
  -H "Authorization: Bearer $TALONIC_API_KEY"

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/apps/3fa85f64-5717-4562-b3fc-2c963f66afa6/mining/templates/3fa85f64-5717-4562-b3fc-2c963f66afa6/revoke", {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
  },
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
const data = await res.json();

Response 200 — The revoked read.

{
  "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "app_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "name": "string",
  "connection_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "sql_text": "string",
  "sql_hash": "string",
  "params_schema": {},
  "key_column": "string",
  "columns": [
    "string"
  ],
  "watermark_column": "string",
  "max_rows": 1,
  "feature_row": true,
  "state": "pending",
  "proposed_by": "string"
}
  • 400 — The request is invalid.
  • 401 — Missing or invalid API key.
  • 403 — The API key does not have the required scope.
  • 404 — The requested resource was not found.
  • 429 — Daily rate limit exceeded.
GET/v1/apps/{id}/mining/protocol

Path parameters

id*string (uuid)

curl

curl -X GET 'https://api.talonic.com/v1/apps/3fa85f64-5717-4562-b3fc-2c963f66afa6/mining/protocol' \
  -H "Authorization: Bearer $TALONIC_API_KEY"

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/apps/3fa85f64-5717-4562-b3fc-2c963f66afa6/mining/protocol", {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
  },
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
const data = await res.json();

Response 200 — The starting settings.

{
  "hash": "string",
  "output_contract": {},
  "defaults": {
    "depth": "light",
    "bars": {},
    "credit_cost": 1.5,
    "max_cost_usd": 1.5
  },
  "policy": {},
  "substrate_columns": [
    {
      "name": "string",
      "meaning": "string"
    }
  ],
  "ledger_counts": {
    "hypotheses": 1,
    "findings": 1
  }
}
  • 400 — The request is invalid.
  • 401 — Missing or invalid API key.
  • 403 — The API key does not have the required scope.
  • 404 — The requested resource was not found.
  • 429 — Daily rate limit exceeded.
GET/v1/apps/{id}/mining/rounds

Path parameters

id*string (uuid)

Query parameters

limitintegerRounds per page; default 50, at most 200. Default: 50
offsetintegerRounds to skip. Default: 0

curl

curl -X GET 'https://api.talonic.com/v1/apps/3fa85f64-5717-4562-b3fc-2c963f66afa6/mining/rounds' \
  -H "Authorization: Bearer $TALONIC_API_KEY"

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/apps/3fa85f64-5717-4562-b3fc-2c963f66afa6/mining/rounds", {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
  },
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
const data = await res.json();

Response 200 — One page of rounds.

{
  "rounds": [
    {
      "app_run_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "app_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "app_version": 1,
      "phase": "discovery",
      "generation": 1,
      "dry_run": true,
      "turns": 1,
      "budget": {},
      "counts": {},
      "est_cost_usd": "string",
      "stop_reason": "string",
      "findings": [
        "3fa85f64-5717-4562-b3fc-2c963f66afa6"
      ],
      "hypotheses": [
        "3fa85f64-5717-4562-b3fc-2c963f66afa6"
      ],
      "summary": "string"
    }
  ],
  "total": 1
}
  • 400 — The request is invalid.
  • 401 — Missing or invalid API key.
  • 403 — The API key does not have the required scope.
  • 404 — The requested resource was not found.
  • 429 — Daily rate limit exceeded.
POST/v1/apps/{id}/mining/rounds

Path parameters

id*string (uuid)

Request body (application/json)

dry_runbooleanRe-check existing candidate rules only; spends nothing.
phasestring ("discovery", "hypothesis", "reconcile")Run this phase instead of the campaign's next one. reconcile is refused here with 422.

curl

curl -X POST 'https://api.talonic.com/v1/apps/3fa85f64-5717-4562-b3fc-2c963f66afa6/mining/rounds' \
  -H "Authorization: Bearer $TALONIC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "dry_run": true,
  "phase": "discovery"
}'

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/apps/3fa85f64-5717-4562-b3fc-2c963f66afa6/mining/rounds", {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "dry_run": true,
    "phase": "discovery"
  }),
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
const data = await res.json();

Response 202 — The round was accepted.

{
  "run_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "status": "string",
  "dry_run": true,
  "phase": "discovery",
  "generation": 1,
  "extra": true,
  "idempotency_key": "string"
}
  • 400 — The request is invalid.
  • 401 — Missing or invalid API key.
  • 403 — The API key does not have the required scope.
  • 404 — The requested resource was not found.
  • 409 — The request conflicts with the current resource state.
  • 422 — The request is well-formed but violates the declared task contract.
  • 429 — Daily rate limit exceeded.
POST/v1/apps/{id}/mining/rounds/reconcile

Path parameters

id*string (uuid)

curl

curl -X POST 'https://api.talonic.com/v1/apps/3fa85f64-5717-4562-b3fc-2c963f66afa6/mining/rounds/reconcile' \
  -H "Authorization: Bearer $TALONIC_API_KEY"

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/apps/3fa85f64-5717-4562-b3fc-2c963f66afa6/mining/rounds/reconcile", {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
  },
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
const data = await res.json();

Response 202 — The round was accepted.

{
  "run_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "status": "string",
  "dry_run": true,
  "phase": "discovery",
  "generation": 1,
  "extra": true,
  "idempotency_key": "string"
}
  • 400 — The request is invalid.
  • 401 — Missing or invalid API key.
  • 403 — The API key does not have the required scope.
  • 404 — The requested resource was not found.
  • 409 — The request conflicts with the current resource state.
  • 429 — Daily rate limit exceeded.
POST/v1/apps/{id}/mining/rounds/{runId}/cancel

Path parameters

id*string (uuid)
runId*string (uuid)

curl

curl -X POST 'https://api.talonic.com/v1/apps/3fa85f64-5717-4562-b3fc-2c963f66afa6/mining/rounds/3fa85f64-5717-4562-b3fc-2c963f66afa6/cancel' \
  -H "Authorization: Bearer $TALONIC_API_KEY"

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/apps/3fa85f64-5717-4562-b3fc-2c963f66afa6/mining/rounds/3fa85f64-5717-4562-b3fc-2c963f66afa6/cancel", {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
  },
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
const data = await res.json();

Response 202 — The cancellation was recorded.

{
  "run_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "cancel_requested_at": "2026-01-15T09:30:00Z"
}
  • 400 — The request is invalid.
  • 401 — Missing or invalid API key.
  • 403 — The API key does not have the required scope.
  • 404 — The requested resource was not found.
  • 409 — The request conflicts with the current resource state.
  • 429 — Daily rate limit exceeded.
GET/v1/apps/{id}/mining/rounds/{runId}/tools

Path parameters

id*string (uuid)
runId*string (uuid)

curl

curl -X GET 'https://api.talonic.com/v1/apps/3fa85f64-5717-4562-b3fc-2c963f66afa6/mining/rounds/3fa85f64-5717-4562-b3fc-2c963f66afa6/tools' \
  -H "Authorization: Bearer $TALONIC_API_KEY"

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/apps/3fa85f64-5717-4562-b3fc-2c963f66afa6/mining/rounds/3fa85f64-5717-4562-b3fc-2c963f66afa6/tools", {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
  },
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
const data = await res.json();

Response 200 — The round's actions and budget.

{
  "tools": [
    {}
  ],
  "budget": {
    "queries": 1,
    "hypotheses": 1,
    "result_cap_chars": 1
  },
  "spent": {},
  "busy_retry": "string"
}
  • 400 — The request is invalid.
  • 401 — Missing or invalid API key.
  • 403 — The API key does not have the required scope.
  • 404 — The requested resource was not found.
  • 429 — Daily rate limit exceeded.
POST/v1/apps/{id}/mining/rounds/{runId}/tools/{name}

Path parameters

id*string (uuid)
runId*string (uuid)
name*stringThe action's name

Request body (application/json)

execution_epoch*integerThe epoch of your claim on the round's decision task.
input*objectThe action's input, shaped by its input_schema.

curl

curl -X POST 'https://api.talonic.com/v1/apps/3fa85f64-5717-4562-b3fc-2c963f66afa6/mining/rounds/3fa85f64-5717-4562-b3fc-2c963f66afa6/tools/name' \
  -H "Authorization: Bearer $TALONIC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "execution_epoch": 1,
  "input": {}
}'

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/apps/3fa85f64-5717-4562-b3fc-2c963f66afa6/mining/rounds/3fa85f64-5717-4562-b3fc-2c963f66afa6/tools/name", {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "execution_epoch": 1,
    "input": {}
  }),
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
const data = await res.json();

Response 200 — The call finished.

{
  "call_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "status": "done",
  "content": "string",
  "is_error": true,
  "poll": "string",
  "state": "string"
}
  • 400 — The request is invalid.
  • 401 — Missing or invalid API key.
  • 403 — The API key does not have the required scope.
  • 404 — The requested resource was not found.
  • 409 — The request conflicts with the current resource state.
  • 429 — Daily rate limit exceeded.
  • 503 — Externally driven rounds are not available on this deployment.
GET/v1/apps/{id}/mining/rounds/{runId}/tools/calls/{callId}

Path parameters

id*string (uuid)
runId*string (uuid)
callId*string (uuid)

Query parameters

execution_epoch*integerThe epoch of your claim on the round's decision task.

curl

curl -X GET 'https://api.talonic.com/v1/apps/3fa85f64-5717-4562-b3fc-2c963f66afa6/mining/rounds/3fa85f64-5717-4562-b3fc-2c963f66afa6/tools/calls/3fa85f64-5717-4562-b3fc-2c963f66afa6?execution_epoch=1' \
  -H "Authorization: Bearer $TALONIC_API_KEY"

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/apps/3fa85f64-5717-4562-b3fc-2c963f66afa6/mining/rounds/3fa85f64-5717-4562-b3fc-2c963f66afa6/tools/calls/3fa85f64-5717-4562-b3fc-2c963f66afa6?execution_epoch=1", {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
  },
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
const data = await res.json();

Response 200 — The call's state, and its result once done.

{
  "call_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "status": "done",
  "content": "string",
  "is_error": true,
  "poll": "string",
  "state": "string"
}
  • 400 — The request is invalid.
  • 401 — Missing or invalid API key.
  • 403 — The API key does not have the required scope.
  • 404 — The requested resource was not found.
  • 409 — The request conflicts with the current resource state.
  • 429 — Daily rate limit exceeded.
  • 503 — Externally driven rounds are not available on this deployment.
GET/v1/apps/{id}/mining/campaign

Path parameters

id*string (uuid)

curl

curl -X GET 'https://api.talonic.com/v1/apps/3fa85f64-5717-4562-b3fc-2c963f66afa6/mining/campaign' \
  -H "Authorization: Bearer $TALONIC_API_KEY"

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/apps/3fa85f64-5717-4562-b3fc-2c963f66afa6/mining/campaign", {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
  },
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
const data = await res.json();

Response 200 — The campaign and its spend.

{
  "campaign": {
    "depth": "light",
    "generation": 1,
    "app_version": 1,
    "discovery": {
      "planned": 1,
      "used": 1,
      "in_flight": 1
    },
    "hypothesis": {
      "planned": 1,
      "used": 1,
      "in_flight": 1
    },
    "next_phase": "discovery",
    "complete": true,
    "external_rounds": {
      "ended": 1,
      "open": 1
    },
    "cohort": {
      "total": 1,
      "positive": 1,
      "censored": 1,
      "refreshed_at": "2026-01-15T09:30:00Z"
    }
  },
  "spend": {
    "tokens": {
      "today": {
        "input": 1,
        "output": 1,
        "cache_read": 1,
        "cache_write": 1,
        "total": 1
      },
      "month": {
        "input": 1,
        "output": 1,
        "cache_read": 1,
        "cache_write": 1,
        "total": 1
      },
      "generation": {
        "input": 1,
        "output": 1,
        "cache_read": 1,
        "cache_write": 1,
        "total": 1
      }
    },
    "today_usd": 1.5,
    "month_usd": 1.5,
    "generation_usd": 1.5,
    "live_rounds_total": 1,
    "dry_rounds_total": 1,
    "max_cost_usd_per_round": 1.5,
    "caps": {
      "per_round_usd": {
        "value": 1.5,
        "source": "app"
      },
      "per_generation_usd": {
        "value": 1.5,
        "source": "app"
      },
      "per_month_usd": {
        "value": 1.5,
        "source": "app"
      }
    },
    "remaining": {
      "per_generation_usd": 1.5,
      "per_month_usd": 1.5
    }
  }
}
  • 400 — The request is invalid.
  • 401 — Missing or invalid API key.
  • 403 — The API key does not have the required scope.
  • 404 — The requested resource was not found.
  • 422 — The request is well-formed but violates the declared task contract.
  • 429 — Daily rate limit exceeded.
POST/v1/apps/{id}/mining/campaign/explore-again

Path parameters

id*string (uuid)

curl

curl -X POST 'https://api.talonic.com/v1/apps/3fa85f64-5717-4562-b3fc-2c963f66afa6/mining/campaign/explore-again' \
  -H "Authorization: Bearer $TALONIC_API_KEY"

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/apps/3fa85f64-5717-4562-b3fc-2c963f66afa6/mining/campaign/explore-again", {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
  },
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
const data = await res.json();

Response 201 — The campaign under its new generation.

{
  "campaign": {
    "depth": "light",
    "generation": 1,
    "app_version": 1,
    "discovery": {
      "planned": 1,
      "used": 1,
      "in_flight": 1
    },
    "hypothesis": {
      "planned": 1,
      "used": 1,
      "in_flight": 1
    },
    "next_phase": "discovery",
    "complete": true,
    "external_rounds": {
      "ended": 1,
      "open": 1
    },
    "cohort": {
      "total": 1,
      "positive": 1,
      "censored": 1,
      "refreshed_at": "2026-01-15T09:30:00Z"
    }
  }
}
  • 400 — The request is invalid.
  • 401 — Missing or invalid API key.
  • 403 — The API key does not have the required scope.
  • 404 — The requested resource was not found.
  • 422 — The request is well-formed but violates the declared task contract.
  • 429 — Daily rate limit exceeded.
GET/v1/apps/{id}/mining/rounds/{runId}/guidance

Path parameters

id*string (uuid)
runId*string (uuid)

curl

curl -X GET 'https://api.talonic.com/v1/apps/3fa85f64-5717-4562-b3fc-2c963f66afa6/mining/rounds/3fa85f64-5717-4562-b3fc-2c963f66afa6/guidance' \
  -H "Authorization: Bearer $TALONIC_API_KEY"

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/apps/3fa85f64-5717-4562-b3fc-2c963f66afa6/mining/rounds/3fa85f64-5717-4562-b3fc-2c963f66afa6/guidance", {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
  },
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
const data = await res.json();

Response 200 — The round's notes.

{
  "guidance": [
    {
      "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "text": "string",
      "created_by": "string",
      "created_at": "2026-01-15T09:30:00Z",
      "delivered_turn": 1
    }
  ],
  "limits": {
    "max_chars": 1,
    "max_pending": 1
  }
}
  • 400 — The request is invalid.
  • 401 — Missing or invalid API key.
  • 403 — The API key does not have the required scope.
  • 404 — The requested resource was not found.
  • 429 — Daily rate limit exceeded.
  • 503 — Round notes are not available on this deployment.
POST/v1/apps/{id}/mining/rounds/{runId}/guidance

Path parameters

id*string (uuid)
runId*string (uuid)

Request body (application/json)

text*stringThe note; the deployment may set a lower limit, which GET on this path reports.

curl

curl -X POST 'https://api.talonic.com/v1/apps/3fa85f64-5717-4562-b3fc-2c963f66afa6/mining/rounds/3fa85f64-5717-4562-b3fc-2c963f66afa6/guidance' \
  -H "Authorization: Bearer $TALONIC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "text": "string"
}'

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/apps/3fa85f64-5717-4562-b3fc-2c963f66afa6/mining/rounds/3fa85f64-5717-4562-b3fc-2c963f66afa6/guidance", {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "text": "string"
  }),
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
const data = await res.json();

Response 202 — The note was stored.

{
  "guidance": {
    "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "text": "string",
    "created_by": "string",
    "created_at": "2026-01-15T09:30:00Z",
    "delivered_turn": 1
  }
}
  • 400 — The request is invalid.
  • 401 — Missing or invalid API key.
  • 403 — The API key does not have the required scope.
  • 404 — The requested resource was not found.
  • 409 — The request conflicts with the current resource state.
  • 422 — The request is well-formed but violates the declared task contract.
  • 429 — Daily rate limit exceeded.
  • 503 — Round notes are not available on this deployment.
GET/v1/apps/{id}/mining/rounds/{runId}

Path parameters

id*string (uuid)
runId*string (uuid)

curl

curl -X GET 'https://api.talonic.com/v1/apps/3fa85f64-5717-4562-b3fc-2c963f66afa6/mining/rounds/3fa85f64-5717-4562-b3fc-2c963f66afa6' \
  -H "Authorization: Bearer $TALONIC_API_KEY"

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/apps/3fa85f64-5717-4562-b3fc-2c963f66afa6/mining/rounds/3fa85f64-5717-4562-b3fc-2c963f66afa6", {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
  },
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
const data = await res.json();

Response 200 — The round.

{
  "app_run_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "app_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "app_version": 1,
  "phase": "discovery",
  "generation": 1,
  "dry_run": true,
  "turns": 1,
  "budget": {},
  "counts": {},
  "est_cost_usd": "string",
  "stop_reason": "string",
  "findings": [
    "3fa85f64-5717-4562-b3fc-2c963f66afa6"
  ],
  "hypotheses": [
    "3fa85f64-5717-4562-b3fc-2c963f66afa6"
  ],
  "summary": "string"
}
  • 400 — The request is invalid.
  • 401 — Missing or invalid API key.
  • 403 — The API key does not have the required scope.
  • 404 — The requested resource was not found.
  • 429 — Daily rate limit exceeded.
GET/v1/apps/{id}/mining/hypotheses

Path parameters

id*string (uuid)

Query parameters

statusstring ("hypothesis", "proposal", "verified", "stale", "refuted", "retired", "superseded")

curl

curl -X GET 'https://api.talonic.com/v1/apps/3fa85f64-5717-4562-b3fc-2c963f66afa6/mining/hypotheses' \
  -H "Authorization: Bearer $TALONIC_API_KEY"

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/apps/3fa85f64-5717-4562-b3fc-2c963f66afa6/mining/hypotheses", {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
  },
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
const data = await res.json();

Response 200 — The candidate rules.

{
  "hypotheses": [
    {
      "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "status": "hypothesis",
      "kind": "rule",
      "subject_kind": "string",
      "direction": "necessary",
      "statement": "string",
      "supersedes": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "evaluated_at": "2026-01-15T09:30:00Z",
      "evidence": {},
      "qualified_by_ids": [
        "3fa85f64-5717-4562-b3fc-2c963f66afa6"
      ],
      "timing_check": {
        "verdict": "string",
        "basis": "string"
      },
      "folds_recorded": true
    }
  ]
}
  • 400 — The request is invalid.
  • 401 — Missing or invalid API key.
  • 403 — The API key does not have the required scope.
  • 404 — The requested resource was not found.
  • 429 — Daily rate limit exceeded.
GET/v1/apps/{id}/mining/hypotheses/{hypothesisId}

Path parameters

id*string (uuid)
hypothesisId*string (uuid)

curl

curl -X GET 'https://api.talonic.com/v1/apps/3fa85f64-5717-4562-b3fc-2c963f66afa6/mining/hypotheses/3fa85f64-5717-4562-b3fc-2c963f66afa6' \
  -H "Authorization: Bearer $TALONIC_API_KEY"

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/apps/3fa85f64-5717-4562-b3fc-2c963f66afa6/mining/hypotheses/3fa85f64-5717-4562-b3fc-2c963f66afa6", {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
  },
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
const data = await res.json();

Response 200 — The candidate rule.

{
  "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "app_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "app_version": 1,
  "round_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "statement": "string",
  "falsifier": "string",
  "direction": "necessary",
  "kind": "rule",
  "status": "hypothesis",
  "evidence": {},
  "supersedes": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "notes": "string",
  "stale_reason": "string",
  "qualified_by": [
    {
      "finding_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "statement": "string",
      "at": "2026-01-15T09:30:00Z"
    }
  ]
}
  • 400 — The request is invalid.
  • 401 — Missing or invalid API key.
  • 403 — The API key does not have the required scope.
  • 404 — The requested resource was not found.
  • 429 — Daily rate limit exceeded.
POST/v1/apps/{id}/mining/hypotheses/{hypothesisId}/regrade

Path parameters

id*string (uuid)
hypothesisId*string (uuid)

curl

curl -X POST 'https://api.talonic.com/v1/apps/3fa85f64-5717-4562-b3fc-2c963f66afa6/mining/hypotheses/3fa85f64-5717-4562-b3fc-2c963f66afa6/regrade' \
  -H "Authorization: Bearer $TALONIC_API_KEY"

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/apps/3fa85f64-5717-4562-b3fc-2c963f66afa6/mining/hypotheses/3fa85f64-5717-4562-b3fc-2c963f66afa6/regrade", {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
  },
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
const data = await res.json();

Response 202 — The re-check was queued.

{
  "job_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "hypothesis_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}
  • 400 — The request is invalid.
  • 401 — Missing or invalid API key.
  • 403 — The API key does not have the required scope.
  • 404 — The requested resource was not found.
  • 429 — Daily rate limit exceeded.
  • 501 — Re-checks are not available on this deployment.
POST/v1/apps/{id}/mining/hypotheses/{hypothesisId}/retire

Path parameters

id*string (uuid)
hypothesisId*string (uuid)

curl

curl -X POST 'https://api.talonic.com/v1/apps/3fa85f64-5717-4562-b3fc-2c963f66afa6/mining/hypotheses/3fa85f64-5717-4562-b3fc-2c963f66afa6/retire' \
  -H "Authorization: Bearer $TALONIC_API_KEY"

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/apps/3fa85f64-5717-4562-b3fc-2c963f66afa6/mining/hypotheses/3fa85f64-5717-4562-b3fc-2c963f66afa6/retire", {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
  },
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
const data = await res.json();

Response 200 — The retired candidate rule.

{
  "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "app_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "app_version": 1,
  "round_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "statement": "string",
  "falsifier": "string",
  "direction": "necessary",
  "kind": "rule",
  "status": "hypothesis",
  "evidence": {},
  "supersedes": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "notes": "string",
  "stale_reason": "string",
  "qualified_by": [
    {
      "finding_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "statement": "string",
      "at": "2026-01-15T09:30:00Z"
    }
  ]
}
  • 400 — The request is invalid.
  • 401 — Missing or invalid API key.
  • 403 — The API key does not have the required scope.
  • 404 — The requested resource was not found.
  • 429 — Daily rate limit exceeded.
GET/v1/apps/{id}/mining/rules

Path parameters

id*string (uuid)

curl

curl -X GET 'https://api.talonic.com/v1/apps/3fa85f64-5717-4562-b3fc-2c963f66afa6/mining/rules' \
  -H "Authorization: Bearer $TALONIC_API_KEY"

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/apps/3fa85f64-5717-4562-b3fc-2c963f66afa6/mining/rules", {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
  },
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
const data = await res.json();

Response 200 — The rules.

{
  "subject": {
    "noun": "string",
    "noun_plural": "string"
  },
  "target_app_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "benchmark": {
    "label": "string"
  },
  "rules": [
    {
      "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "statement": "string",
      "direction": "necessary",
      "status": "hypothesis",
      "found_in_version": 1,
      "found_in_round": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "created_at": "2026-01-15T09:30:00Z",
      "last_checked_at": "2026-01-15T09:30:00Z",
      "falsifier": "string",
      "evidence": {
        "with_outcome": {},
        "without_outcome": {},
        "contradictions": 1,
        "counterexamples": [],
        "discrimination": 1.5,
        "discriminating": true,
        "note": "string"
      },
      "checks": {
        "timing": "pass",
        "basis": "string",
        "folds": true
      },
      "caveat": "string",
      "notes": "string",
      "qualified_by": [
        {}
      ]
    }
  ]
}
  • 400 — The request is invalid.
  • 401 — Missing or invalid API key.
  • 403 — The API key does not have the required scope.
  • 404 — The requested resource was not found.
  • 429 — Daily rate limit exceeded.
POST/v1/apps/{id}/mining/rules/{hypothesisId}/impact

Path parameters

id*string (uuid)
hypothesisId*string (uuid)

curl

curl -X POST 'https://api.talonic.com/v1/apps/3fa85f64-5717-4562-b3fc-2c963f66afa6/mining/rules/3fa85f64-5717-4562-b3fc-2c963f66afa6/impact' \
  -H "Authorization: Bearer $TALONIC_API_KEY"

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/apps/3fa85f64-5717-4562-b3fc-2c963f66afa6/mining/rules/3fa85f64-5717-4562-b3fc-2c963f66afa6/impact", {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
  },
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
const data = await res.json();

Response 202 — The measurement was queued.

{
  "queued": true,
  "hypothesis_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}
  • 400 — The request is invalid.
  • 401 — Missing or invalid API key.
  • 403 — The API key does not have the required scope.
  • 404 — The requested resource was not found.
  • 422 — The request is well-formed but violates the declared task contract.
  • 429 — Daily rate limit exceeded.
  • 503 — Impact measurement is not available on this deployment.
POST/v1/apps/{id}/mining/rules/{hypothesisId}/dismiss

Path parameters

id*string (uuid)
hypothesisId*string (uuid)

curl

curl -X POST 'https://api.talonic.com/v1/apps/3fa85f64-5717-4562-b3fc-2c963f66afa6/mining/rules/3fa85f64-5717-4562-b3fc-2c963f66afa6/dismiss' \
  -H "Authorization: Bearer $TALONIC_API_KEY"

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/apps/3fa85f64-5717-4562-b3fc-2c963f66afa6/mining/rules/3fa85f64-5717-4562-b3fc-2c963f66afa6/dismiss", {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
  },
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
const data = await res.json();

Response 200 — What was closed.

{
  "hypothesis_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "candidate_dismissed": true,
  "retired": true
}
  • 400 — The request is invalid.
  • 401 — Missing or invalid API key.
  • 403 — The API key does not have the required scope.
  • 404 — The requested resource was not found.
  • 409 — The request conflicts with the current resource state.
  • 429 — Daily rate limit exceeded.
POST/v1/apps/{id}/mining/rules/dismiss-lapsed

Path parameters

id*string (uuid)

curl

curl -X POST 'https://api.talonic.com/v1/apps/3fa85f64-5717-4562-b3fc-2c963f66afa6/mining/rules/dismiss-lapsed' \
  -H "Authorization: Bearer $TALONIC_API_KEY"

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/apps/3fa85f64-5717-4562-b3fc-2c963f66afa6/mining/rules/dismiss-lapsed", {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
  },
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
const data = await res.json();

Response 200 — The rules declined and those that failed.

{
  "dismissed": [
    "3fa85f64-5717-4562-b3fc-2c963f66afa6"
  ],
  "failed": [
    {
      "hypothesis_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "error": "string"
    }
  ]
}
  • 400 — The request is invalid.
  • 401 — Missing or invalid API key.
  • 403 — The API key does not have the required scope.
  • 404 — The requested resource was not found.
  • 429 — Daily rate limit exceeded.
GET/v1/apps/{id}/mining/findings

Path parameters

id*string (uuid)

Query parameters

statusstring ("active", "stale", "superseded", "retracted", "all") Default: active
kindstring ("timing", "coverage", "agreement", "negative", "data-caveat")

curl

curl -X GET 'https://api.talonic.com/v1/apps/3fa85f64-5717-4562-b3fc-2c963f66afa6/mining/findings' \
  -H "Authorization: Bearer $TALONIC_API_KEY"

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/apps/3fa85f64-5717-4562-b3fc-2c963f66afa6/mining/findings", {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
  },
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
const data = await res.json();

Response 200 — The findings.

{
  "findings": [
    {
      "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "app_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "round_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "statement": "string",
      "headline": "string",
      "tier": "result",
      "kind": "timing",
      "grain": "subject",
      "population": "string",
      "clock": "string",
      "tags": [
        "string"
      ],
      "used_by_hypotheses": [
        "3fa85f64-5717-4562-b3fc-2c963f66afa6"
      ],
      "supersedes": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "status": "active"
    }
  ]
}
  • 400 — The request is invalid.
  • 401 — Missing or invalid API key.
  • 403 — The API key does not have the required scope.
  • 404 — The requested resource was not found.
  • 429 — Daily rate limit exceeded.
GET/v1/apps/{id}/mining/findings/{findingId}

Path parameters

id*string (uuid)
findingId*string (uuid)

curl

curl -X GET 'https://api.talonic.com/v1/apps/3fa85f64-5717-4562-b3fc-2c963f66afa6/mining/findings/3fa85f64-5717-4562-b3fc-2c963f66afa6' \
  -H "Authorization: Bearer $TALONIC_API_KEY"

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/apps/3fa85f64-5717-4562-b3fc-2c963f66afa6/mining/findings/3fa85f64-5717-4562-b3fc-2c963f66afa6", {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
  },
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
const data = await res.json();

Response 200 — The finding.

{
  "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "app_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "round_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "statement": "string",
  "headline": "string",
  "tier": "result",
  "kind": "timing",
  "grain": "subject",
  "population": "string",
  "clock": "string",
  "tags": [
    "string"
  ],
  "used_by_hypotheses": [
    "3fa85f64-5717-4562-b3fc-2c963f66afa6"
  ],
  "supersedes": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "status": "active"
}
  • 400 — The request is invalid.
  • 401 — Missing or invalid API key.
  • 403 — The API key does not have the required scope.
  • 404 — The requested resource was not found.
  • 429 — Daily rate limit exceeded.
PATCH/v1/apps/{id}/mining/findings/{findingId}

Path parameters

id*string (uuid)
findingId*string (uuid)

Request body (application/json)

statusstring ("active", "stale", "superseded", "retracted")retracted needs notes saying why.
tierstring ("result", "supporting", "procedural")
headlinestringAt most 200 characters are accepted.
statementstringAt most 600 characters are accepted; the old wording is kept in the notes.
notesstringAppended to the existing notes.
supersedesstring (uuid)A finding of this app this one replaces; null clears the link.

curl

curl -X PATCH 'https://api.talonic.com/v1/apps/3fa85f64-5717-4562-b3fc-2c963f66afa6/mining/findings/3fa85f64-5717-4562-b3fc-2c963f66afa6' \
  -H "Authorization: Bearer $TALONIC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "status": "active",
  "tier": "result",
  "headline": "string",
  "statement": "string",
  "notes": "string",
  "supersedes": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}'

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/apps/3fa85f64-5717-4562-b3fc-2c963f66afa6/mining/findings/3fa85f64-5717-4562-b3fc-2c963f66afa6", {
  method: 'PATCH',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "status": "active",
    "tier": "result",
    "headline": "string",
    "statement": "string",
    "notes": "string",
    "supersedes": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
  }),
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
const data = await res.json();

Response 200 — The updated finding.

{
  "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "app_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "round_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "statement": "string",
  "headline": "string",
  "tier": "result",
  "kind": "timing",
  "grain": "subject",
  "population": "string",
  "clock": "string",
  "tags": [
    "string"
  ],
  "used_by_hypotheses": [
    "3fa85f64-5717-4562-b3fc-2c963f66afa6"
  ],
  "supersedes": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "status": "active"
}
  • 400 — The request is invalid.
  • 401 — Missing or invalid API key.
  • 403 — The API key does not have the required scope.
  • 404 — The requested resource was not found.
  • 422 — The request is well-formed but violates the declared task contract.
  • 429 — Daily rate limit exceeded.
PATCH/v1/apps/{id}/mining/spend-caps

Path parameters

id*string (uuid)

Request body (application/json)

per_round_usdnumberMost one round may spend
per_generation_usdnumberMost one exploration generation may spend
per_month_usdnumberMost the app may spend in a calendar month (UTC)

curl

curl -X PATCH 'https://api.talonic.com/v1/apps/3fa85f64-5717-4562-b3fc-2c963f66afa6/mining/spend-caps' \
  -H "Authorization: Bearer $TALONIC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "per_round_usd": 1.5,
  "per_generation_usd": 1.5,
  "per_month_usd": 1.5
}'

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/apps/3fa85f64-5717-4562-b3fc-2c963f66afa6/mining/spend-caps", {
  method: 'PATCH',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "per_round_usd": 1.5,
    "per_generation_usd": 1.5,
    "per_month_usd": 1.5
  }),
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
const data = await res.json();

Response 200 — The effective caps and the values stored on the app.

{
  "caps": {
    "per_round_usd": {
      "value": 1.5,
      "source": "app"
    },
    "per_generation_usd": {
      "value": 1.5,
      "source": "app"
    },
    "per_month_usd": {
      "value": 1.5,
      "source": "app"
    }
  },
  "app_caps": {
    "per_round_usd": 1.5,
    "per_generation_usd": 1.5,
    "per_month_usd": 1.5
  }
}
  • 400 — The request is invalid.
  • 401 — Missing or invalid API key.
  • 403 — The API key does not have the required scope.
  • 404 — The requested resource was not found.
  • 422 — The request is well-formed but violates the declared task contract.
  • 429 — Daily rate limit exceeded.