Build your own app
What you get
An app turns structured data into decisions: approve or hold an invoice, flag a contract, prepare a review package. Each decision names what it read, which version of your rules decided, and who or what made the call. This page is for teams whose decision is specific to their business; for a finished app, add one of the standard apps listed in the navigation.
Apps in the navigation opens the gallery: a strip with live apps, runs in the last 24 hours, items waiting for a person and runs in progress, then three bands, Pinned to sidebar, Active and Not running. A card shows how the app decides (*Rules*, *Assisted*, *External*, or a *Standard app* chip), whether it is live, what waits for people and what it did last.
Before you start
- Viewers browse apps, results and reviews. Members trigger runs. Senior members resolve reviews, replay runs and switch an app off. Workspace owners create, rename, pin, edit, publish, switch on and grant access.
- The data the app reads, usually the data product a Spec run produces, or a reference table.
- For the API: a key with the
readscope for reads andwritefor runs and changes. See API keys.
Do it in the app
- Open Apps and choose Create an App. Pick Describe it (recommended), Add a standard app, Start from scratch, or Register a hosted app (paste the address of an app served from your own or a vendor's host).
- Describe the decision in your own words, for example: "Hold any supplier invoice whose amount differs from its purchase order by more than 2 percent." Talonic drafts a name, a mode, the rules as plain sentences, the output and the data it needs, matched to your real data products. Answer the open questions it lists and redraft as often as you like; nothing is stored yet.
- Choose Create this app. The app is created as a draft with its rules and data access; the result screen says which rules are ready and which need attention.
- Open the app, then Configure: Data (what it reads), Logic (the rule cards), Actions (what it may do, with limits such as an amount above which a person approves) and Access (which API keys and agents may read or operate it).
- Publish, then switch the app on. Before publishing a change, the impact panel replays the draft against recent history and lists the subjects whose verdict would flip.
- Read results in the verdict matrix: one row per subject, one column per rule, each cell passed, failed, indeterminate or not applicable. Click a cell for the reason and the source passage. Questions for people land in the Review inbox.
Pinning (owners) adds an app to everyone's sidebar in pin order; it never switches the app on or publishes it. Rename in the card menu changes the name, icon and card sentence for this workspace only; the slug, and the tool names derived from it, stay fixed.
Do it with the API
The app screens use the public /v1/apps API, so every step scripts the same way. Draft from a description with POST /v1/apps/proposals (stateless), create with POST /v1/apps, then publish, switch on with POST /v1/apps/{id}/enable and run with POST /v1/apps/{id}/runs. Add ?dry_run=true to a run for a full trace with no side effects, even while the app is off.
curl -X POST "https://api.talonic.com/v1/apps/proposals" \
-H "Authorization: Bearer $TALONIC_API_KEY" \
-H "Content-Type: application/json" \
-d '{"description": "Hold any supplier invoice whose amount differs from its purchase order by more than 2 percent."}'
curl -X POST "https://api.talonic.com/v1/apps" \
-H "Authorization: Bearer $TALONIC_API_KEY" \
-H "Content-Type: application/json" \
-d '{"slug": "invoice-po-check", "display_name": "Invoice PO Check", "mode": "rules",
"description": "Holds supplier invoices that drift from their purchase order."}'
curl -X POST "https://api.talonic.com/v1/apps/$APP_ID/runs?dry_run=true" \
-H "Authorization: Bearer $TALONIC_API_KEY" -d '{}'const headers = { Authorization: `Bearer ${process.env.TALONIC_API_KEY}` };
const base = 'https://api.talonic.com/v1/apps/' + process.env.APP_ID;
// Every subject at its latest decision
const subjects = await fetch(base + '/subjects?limit=200&include=summary', { headers }).then((r) => r.json());
// Score the latest run against the expected verdicts you labelled
const check = await fetch(base + '/acceptance/check', { headers }).then((r) => r.json());
console.log(check.pass, check.matched, '/', check.evaluated);{ "evaluated": 12, "matched": 12, "score": 1, "tolerance": 0, "pass": true }Acceptance sets are expected verdicts for known subjects ("INV-2026-0851 must fail"). Checking a run against them is a comparison over stored results: free, instant and repeatable. POST /v1/apps/{id}/replay/verdict-diff returns the same flip list the impact panel shows. Full reference: Apps API.
Do it with an agent
Every app is reachable from an agent through the Talonic MCP server: talonic_list_apps, talonic_create_app, talonic_save_app_draft, talonic_interpret_app_rules, talonic_publish_app, talonic_enable_app, talonic_run_app, talonic_get_run_verdicts, talonic_list_app_reviews and talonic_resolve_app_review, among others. Grant the agent's key access under Configure → Access, which also shows a copy-ready MCP config. Example ask: "Dry-run the Invoice PO Check app and list the invoices it would hold."
Limits and costs
Proposals, dry runs and acceptance checks store nothing. Published versions never change: saving logic appends a new version, and each run names the version that decided it. Runs are idempotent per trigger, so a repeated trigger returns the existing run. Work an app does for you draws on the same credit balance as the rest of the platform; no separate per-app price is published. See Billing, credits and usage and rate limits.
Errors
Status codes
| Parameter | Type | Description |
|---|---|---|
| 403 | auth | The key or role is below the tier the action needs (for example, publishing or switching on needs an owner). Switching off needs only the operate tier. |
| 404 | not found | The app id does not exist in this workspace. |
| 409 | conflict | The app is switched off for a live run, or a hosted app's new version waits for an owner to approve it. |
| 422 | validation | The draft fails validation; the message names the rule or field. Fix it and save again. |
Next
- Review and correct: answer the questions apps raise.
- Run a Spec and get results: produce the data an app reads.
- Automate a process: chain apps with other steps.