# Signed output

A successful response is your file with a Content Credentials manifest added, in the same format as the file you sent.

## Certificate environment

Starter workspaces and the browser playground use a test certificate that is not publicly trusted. The API key's prefix does not establish production trust. Approved API access uses the signer configured for that environment; inspect the returned file with a validator before making a trust claim.

## What the signed file contains

The response body is the file you sent with a C2PA manifest embedded in it. Lens Proof Sign writes the manifest and signs it with the Lens Proof Sign certificate. Your request carries only the file and optional closed-enum AI disclosure headers, so no freeform title, filename, author, or other metadata from you can appear in the manifest.

The manifest describes the signing operation that Lens Proof Sign performed on the file you supplied. When AI disclosure is provided by headers or a key policy, the manifest records `c2pa.ai-disclosure` and, on unsigned inputs, `c2pa.ingredient.v3.digitalSourceType`. The manifest does not show who made the file, when or where the file was made, or that its contents are true.

The signed file keeps the media type you sent, and it is larger than the file you sent because it carries the manifest. Before it answers, the API checks that the signed file is still a file of that type, and it reads the file back to check that the manifest is embedded, that the claim signature and the file's hash match, and that the timestamp is valid. A signed file that fails these checks is not returned, and the request gets `502` with `signing_failed`. To get the full validation report for the signed file, send it to [`POST /v1/validate`](/docs/validate), or check it with a validator such as Lens Proof Check.

## Response headers

- `Content-Type` is the media type you sent.
- `Content-Disposition` is `attachment; filename="<UTC date>_output.<ext>"`. The name never comes from your request, so choose your own name when you save the file.
- `Cache-Control: no-store` and `X-Content-Type-Options: nosniff` are on every response.

## Check the file in Lens Proof Check

[Lens Proof Check](https://check.lensproof.app) reads Content Credentials in your browser. Open it and select the signed file. Check reports these results separately:

- Signature integrity, which says whether the manifest's signature is intact and the file still matches the manifest.
- Signer certificate trust, which says whether Check trusts the certificate that signed the manifest, under Check's trust list.
- Timestamp trust, which says whether the signature has a timestamp that Check trusts.

Other validators can use other trust lists, so they can report trust differently for the same file. Editing or exporting the signed file again can break the signature or remove the manifest, so sign the final version of a file.
