Skip to content

Provenance Endpoints

Provenance API endpoints.


Overview

Method Endpoint Description
POST /api/v1/provenance/sign Sign

API Reference

Sartiq Backend Server - Provenance 0.1.0

provenance


POST /api/v1/provenance/sign

Sign

Description

Embed a Sartiq-signed C2PA credential (+ IPTC/XMP) onto posted image bytes.

Request body = raw image bytes; response body = marked bytes. See the module docstring for the fail-closed contract and the X-Provenance-Signed header's role in flag-mismatch detection.

Input parameters

Parameter In Type Default Nullable Description
title header string AI-generated by Sartiq No
X-Provenance-Format header string jpeg No
X-Service-Token header string No

Responses

Schema of the response body

{
    "detail": [
        {
            "loc": [
                null
            ],
            "msg": "string",
            "type": "string",
            "input": null,
            "ctx": {}
        }
    ]
}
⚠️ This example has been generated automatically from the schema and it is not accurate. Refer to the schema for more information.

Schema of the response body
{
    "properties": {
        "detail": {
            "items": {
                "$ref": "#/components/schemas/ValidationError"
            },
            "type": "array",
            "title": "Detail"
        }
    },
    "type": "object",
    "title": "HTTPValidationError"
}

Schemas

HTTPValidationError

Name Type Description
detail Array<ValidationError>

ValidationError

Name Type Description
ctx
input
loc Array<>
msg string
type string

Security schemes

Name Type Scheme Description
OAuth2PasswordBearer oauth2