# Lens Proof Sign API

The Lens Proof Sign API adds Content Credentials to one file that your server sends, and validates Content Credentials in a file as JSON.

## How it works

Your server sends one `POST` request to `https://sign-api.lensproof.app/v1/sign`, with an API key in a header and the file as the request body. Lens Proof Sign adds a C2PA manifest to the file, signs it with the Lens Proof Sign certificate, and sends the signed file back as the response body. There is no job to poll, and Lens Proof Sign does not store the file or the signed file.

To validate a file programmatically, your server sends a `POST` request to `https://sign-api.lensproof.app/v1/validate` with the same API key and file bytes. The API returns the C2PA validation report as crJSON without modifying the file or using a signature.

The request body contains only the file. On `/v1/sign`, optional closed-enum AI disclosure headers and the API key's AI disclosure policy can affect the manifest. The API refuses freeform titles, filenames, author fields, and other customer-supplied metadata.

## Start with a test signature

Sign in to the [developer console](/developers), start a workspace, and copy the API key shown once. New starter workspaces receive 10 test-certificate signatures without payment or manual approval. The [quickstart](/docs/quickstart) takes you from a key to a signed sample file. Starter results use a test certificate that is not publicly trusted.

Prefer to see a result before signing in? Try the [browser playground](https://sign.lensproof.app/#playground).

## What you need

- An API key, which an admin of your organization creates in the [developer console](/developers). See [Authentication](/docs/authentication).
- A server that can make HTTPS requests. Keys are for servers, and the API refuses requests that come from a web page.
- A file of a [supported media type](/docs/media-types) that is at most 10 MB, or at most 30 MB for a video.

## Where to go next

- [Quickstart](/docs/quickstart) signs a first file with curl, Node, or Python.
- [`POST /v1/sign`](/docs/reference) describes the signing request, the response, and the order of checks.
- [`POST /v1/validate`](/docs/validate) describes how to validate a file and read the crJSON report.
- [Errors](/docs/errors) lists every error code and what to do about it.
- [Rules for AI agents](/docs/agents) lists the rules that an AI coding agent must follow when it writes code that calls the API.

## Versions and changes

The API version is part of the URL path, so requests go to `/v1/sign` and `/v1/validate`. Breaking changes ship under a new major version path rather than changing `/v1/` behavior in place, and any deprecation is announced in the [changelog](/changelog) with migration guidance before removal.

## Docs for agents and tools

Every page is also available as Markdown at its address plus `.md`, for example [/docs/quickstart.md](/docs/quickstart.md), and **Copy page as Markdown** at the top of each page copies the same text. [/llms.txt](/llms.txt) lists every page, and [/llms-full.txt](/llms-full.txt) holds every page and the API description in one file. [/openapi.json](/openapi.json) and [/openapi.yaml](/openapi.yaml) publish the OpenAPI 3.1 description of the API, and [/.well-known/api-catalog](/.well-known/api-catalog) exposes the RFC 9727 API catalog.

## Commercial terms

These docs do not cover plans or prices. [Limits](/docs/limits#how-billing-works) explains how monthly invoices work. For commercial terms, [contact sales](https://lensproof.app/contact-sales).
