Paste the prompt
Give the setup prompt above to your coding agent. It reads llms.txt and walks you through each step, so you do not need to write the integration by hand.
CONTENT CREDENTIALS API
Send a PDF, photo, or video from your server. The response is the same file with Content Credentials attached.
POST /v1/sign
FILE=photo.jpg &&
TYPE=$(file --mime-type -b "$FILE") &&
curl https://sign-api.lensproof.app/v1/sign \
--request POST \
--header "Authorization: Bearer $LENS_PROOF_SIGN_API_KEY" \
--header "Content-Type: $TYPE" \
--data-binary @"$FILE" \
--fail-with-body \
--output "signed-$(basename "$FILE")"import { readFile, writeFile } from "node:fs/promises";
const response = await fetch("https://sign-api.lensproof.app/v1/sign", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.LENS_PROOF_SIGN_API_KEY}`,
"Content-Type": "image/jpeg",
},
body: await readFile("photo.jpg"),
});
if (!response.ok) {
const { error } = await response.json();
throw new Error(`Signing failed with ${response.status} ${error.code}: ${error.message}`);
}
await writeFile("signed.jpg", Buffer.from(await response.arrayBuffer()));import os
from pathlib import Path
import requests
response = requests.post(
"https://sign-api.lensproof.app/v1/sign",
headers={
"Authorization": f"Bearer {os.environ['LENS_PROOF_SIGN_API_KEY']}",
"Content-Type": "image/jpeg",
},
data=Path("photo.jpg").read_bytes(),
timeout=120,
)
if not response.ok:
error = response.json()["error"]
raise RuntimeError(f"Signing failed with {response.status_code} {error['code']}: {error['message']}")
Path("signed.jpg").write_bytes(response.content)A 200 response body is the signed file, with the same Content-Type that you sent, so save it as it is.
HOW IT WORKS
Give the setup prompt above to your coding agent. It reads llms.txt and walks you through each step, so you do not need to write the integration by hand.
Your agent sends you to the developer console to sign up and start a workspace. Copy the key, which is shown once, and set it as an environment variable. Never paste it into chat.
Your agent signs a sample file with POST /v1/sign, then checks it. Signature integrity, signer certificate trust, and timestamp trust are separate results.
TEST SIGNING
No account or API key needed. Select up to 10 PDFs, photos, or videos, each up to 10 MB, to test-sign them with a certificate that is not publicly trusted.
API playground
Drop PDFs, photos, or videos hereChoose a photo, PDF, or video
or choose files up to 10 MB.From your photos or files, up to 10 MB each.
Selecting files starts test signing. Files are sent to the signing service and held in memory only. The test certificate is not publicly trusted.
DESIGNED FOR CLARITY
Content Credentials is an open standard, so other tools can check the file, not only this one.
A file is held in memory only while it is signed. It is not saved or logged, and the signed file goes straight back in the response.
Manage API keys in the developer console, then send file bytes to one HTTP endpoint from your server. There is no SDK or CLI to install.
FREQUENTLY ASKED
Use the developer API from your server. Sign in to the developer console to set up API access and manage keys. Keep API keys on your server; never include them in browser code.
Content Credentials is an open standard from C2PA. It adds signer details and an integrity check to a file, so compatible tools can show whether the file changed after signing.
PDFs, photos (JPEG, PNG, WebP, GIF, TIFF, HEIC, and AVIF), and videos (MP4 and MOV). PDFs and photos can be up to 10 MB, and videos up to 30 MB. In the free demo, every file can be up to 10 MB.
Upload the signed file to Lens Proof Check, or open it in another tool that reads Content Credentials. The tool reports the signature integrity and certificate results.
No. Signing records that this service signed the file you supplied, and a checker can show whether the file changed afterward. It does not show who made the file, when or where it was captured, or whether what it shows is true.
No. During signing the file is held only in temporary memory, and it is deleted as soon as the signed file is delivered. In the playground, the file stays in the browser tab until you start signing.
In the playground, yes. Select or drop up to 10 files in one batch, and mix PDFs, photos, and videos if you like. The playground test-signs each file, and you download each result separately. The API signs one file per request, so send one request for each file.
Yes. Use the contact sales form on lensproof.app. Tell us how many files your team signs and how often, and mention Lens Proof Sign in your note.
No. The playground uses a test certificate so you can explore signing and inspect Content Credentials. A test result does not establish production certificate trust.
Yes. Send a file to POST /v1/validate from your server to receive a structured crJSON validation report without modifying the file or using a signing credit. The report separates signature integrity, signer certificate trust, and timestamp trust.
Yes. On POST /v1/sign, you can send optional closed-enum C2PA 2.4 AI disclosure headers or set a per-key AI disclosure policy in the developer console. Lens Proof Sign records the disclosure you choose and does not verify AI involvement.