---
title: save_result
published: true
tier: free
index: 6
---

# save_result

Save a completed report to a registered app. The customer's device must have explicit save approval for the project and app. Saving a report uses no skill run.

| Argument | Value |
| --- | --- |
| `step` | `begin` or `finalize` |
| `app` | Registered app handle |
| `saveId` | One UUID per logical result. Keep it across retries. |
| `manifest` | Required on `begin`. Serialize the manifest as a JSON **string** of at most 24,000 characters. |

**Manifest.** Set `version` to `glue-app-result/v1`. Send `kind`, `title`, `createdAt` and `artifacts`. Each entry needs `id`, `role`, `mediaType`, byte count `bytes` and lowercase hex `sha256`. Include exactly one JSON `report`. Optional roles are `viewer-context`, `viewer-state`, `markdown` and image `evidence`. Limits are 64 files, 4 MiB per file and 25 MiB total. [Complete example](../../../guides/apps/build-an-app-for-saved-results.md#save-a-test-report)

**Returns.** A `staging` response carries `saveId`, `expiresAt`, `transferToken` and `uploads` for missing files. Upload the bytes, then call `finalize` with the same app and save ID. A `committed` response includes `receipt.resultId`. Repeating `begin` with the same manifest resumes an interrupted save. Reusing its ID with a different manifest returns `conflict`. [Upload artifact](../../developer/artifacts/upload.md)
