curl --request POST \
--url https://api.zebratruth.ai/v1/media/provenance/sign \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: multipart/form-data' \
--data-binary $'<unknown>'import requests
url = "https://api.zebratruth.ai/v1/media/provenance/sign"
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "multipart/form-data"
}
response = requests.post(url, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'multipart/form-data'}
};
fetch('https://api.zebratruth.ai/v1/media/provenance/sign', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.zebratruth.ai/v1/media/provenance/sign",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => "<unknown>",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: multipart/form-data"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.zebratruth.ai/v1/media/provenance/sign"
payload := strings.NewReader("<unknown>")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "multipart/form-data")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.zebratruth.ai/v1/media/provenance/sign")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "multipart/form-data")
.body("<unknown>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.zebratruth.ai/v1/media/provenance/sign")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'multipart/form-data'
request.body = "<unknown>"
response = http.request(request)
puts response.read_body{
"requestId": "<string>",
"signedAt": "2023-11-07T05:31:56Z",
"signed": {
"blobPath": "<string>",
"downloadUrl": "<string>",
"expiresAt": "2023-11-07T05:31:56Z",
"deliveryPending": true,
"byteSize": 123,
"sha256": "<string>"
},
"c2pa": {
"status": "present_trusted",
"claimGenerator": "<string>",
"inspectionError": "<string>"
},
"signer": {
"signerId": "<string>",
"legalEntity": "<string>",
"algorithm": "<string>",
"certificateFingerprintSha256": "<string>"
},
"declared": {
"digitalSourceType": "digitalCapture",
"indicatesGenerativeAi": true
},
"complianceGate": {
"enforced": true,
"note": "<string>"
},
"source": {
"contentType": "<string>",
"originalByteSize": 123,
"sha256Original": "<string>",
"priorC2paStatus": "present_trusted",
"sourceUrl": "<string>"
},
"billing": {
"feature": "media.provenance.inspect",
"creditsCharged": 123,
"cached": true
}
}{
"jobId": "<string>",
"status": "queued",
"estimatedCredits": 123,
"pollUrl": "/v1/media/provenance/jobs/{jobId}",
"submittedAt": "2023-11-07T05:31:56Z"
}{
"statusCode": 123,
"message": "<string>",
"error": true,
"url": "<string>",
"statusMessage": "<string>",
"data": {
"code": "review_scope_not_enabled"
}
}{
"statusCode": 401,
"message": "Invalid API key",
"error": true,
"url": "https://api.zebratruth.ai/v1/whoami",
"statusMessage": "Invalid API key"
}{
"statusCode": 123,
"message": "<string>",
"error": true,
"url": "<string>",
"statusMessage": "<string>",
"data": {
"code": "review_scope_not_enabled"
}
}{
"statusCode": 123,
"message": "<string>",
"error": true,
"url": "<string>",
"statusMessage": "<string>",
"data": {
"code": "review_scope_not_enabled"
}
}{
"statusCode": 123,
"message": "<string>",
"error": true,
"url": "<string>",
"statusMessage": "<string>",
"data": {
"code": "review_scope_not_enabled"
}
}{
"statusCode": 123,
"message": "<string>",
"error": true,
"url": "<string>",
"statusMessage": "<string>",
"data": {
"code": "review_scope_not_enabled"
}
}{
"statusCode": 123,
"message": "<string>",
"error": true,
"url": "<string>",
"statusMessage": "<string>",
"data": {
"code": "review_scope_not_enabled"
}
}{
"statusCode": 123,
"message": "<string>",
"error": true,
"url": "<string>",
"statusMessage": "<string>",
"data": {
"code": "review_scope_not_enabled"
}
}{
"statusCode": 429,
"message": "Rate limit exceeded",
"error": true,
"url": "<string>",
"statusMessage": "Rate limit exceeded",
"data": {
"retryAfter": 5,
"limit": 60,
"remaining": 0
}
}{
"statusCode": 123,
"message": "<string>",
"error": true,
"url": "<string>",
"statusMessage": "<string>",
"data": {
"code": "review_scope_not_enabled"
}
}{
"statusCode": 123,
"message": "<string>",
"error": true,
"url": "<string>",
"statusMessage": "<string>",
"data": {
"code": "review_scope_not_enabled"
}
}Sign an image or video with Content Credentials
Attaches a C2PA manifest, signed by one of your registered signers, and stores the signed copy alongside the untouched original.
Images (multipart file, or JSON url) are signed synchronously and return 200
with a time-limited download link.
Video (JSON with blobPath from POST /compliance/media/upload-url) is signed
asynchronously: the call returns 202 with a jobId, credits are reserved rather than
charged, and you poll GET /media/provenance/jobs/{jobId}.
A signature is not a compliance approval; complianceGate.enforced is always false.
Requires the provenance:sign:invoke key scope, which is granted to service keys only.
curl --request POST \
--url https://api.zebratruth.ai/v1/media/provenance/sign \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: multipart/form-data' \
--data-binary $'<unknown>'import requests
url = "https://api.zebratruth.ai/v1/media/provenance/sign"
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "multipart/form-data"
}
response = requests.post(url, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'multipart/form-data'}
};
fetch('https://api.zebratruth.ai/v1/media/provenance/sign', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.zebratruth.ai/v1/media/provenance/sign",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => "<unknown>",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: multipart/form-data"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.zebratruth.ai/v1/media/provenance/sign"
payload := strings.NewReader("<unknown>")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "multipart/form-data")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.zebratruth.ai/v1/media/provenance/sign")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "multipart/form-data")
.body("<unknown>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.zebratruth.ai/v1/media/provenance/sign")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'multipart/form-data'
request.body = "<unknown>"
response = http.request(request)
puts response.read_body{
"requestId": "<string>",
"signedAt": "2023-11-07T05:31:56Z",
"signed": {
"blobPath": "<string>",
"downloadUrl": "<string>",
"expiresAt": "2023-11-07T05:31:56Z",
"deliveryPending": true,
"byteSize": 123,
"sha256": "<string>"
},
"c2pa": {
"status": "present_trusted",
"claimGenerator": "<string>",
"inspectionError": "<string>"
},
"signer": {
"signerId": "<string>",
"legalEntity": "<string>",
"algorithm": "<string>",
"certificateFingerprintSha256": "<string>"
},
"declared": {
"digitalSourceType": "digitalCapture",
"indicatesGenerativeAi": true
},
"complianceGate": {
"enforced": true,
"note": "<string>"
},
"source": {
"contentType": "<string>",
"originalByteSize": 123,
"sha256Original": "<string>",
"priorC2paStatus": "present_trusted",
"sourceUrl": "<string>"
},
"billing": {
"feature": "media.provenance.inspect",
"creditsCharged": 123,
"cached": true
}
}{
"jobId": "<string>",
"status": "queued",
"estimatedCredits": 123,
"pollUrl": "/v1/media/provenance/jobs/{jobId}",
"submittedAt": "2023-11-07T05:31:56Z"
}{
"statusCode": 123,
"message": "<string>",
"error": true,
"url": "<string>",
"statusMessage": "<string>",
"data": {
"code": "review_scope_not_enabled"
}
}{
"statusCode": 401,
"message": "Invalid API key",
"error": true,
"url": "https://api.zebratruth.ai/v1/whoami",
"statusMessage": "Invalid API key"
}{
"statusCode": 123,
"message": "<string>",
"error": true,
"url": "<string>",
"statusMessage": "<string>",
"data": {
"code": "review_scope_not_enabled"
}
}{
"statusCode": 123,
"message": "<string>",
"error": true,
"url": "<string>",
"statusMessage": "<string>",
"data": {
"code": "review_scope_not_enabled"
}
}{
"statusCode": 123,
"message": "<string>",
"error": true,
"url": "<string>",
"statusMessage": "<string>",
"data": {
"code": "review_scope_not_enabled"
}
}{
"statusCode": 123,
"message": "<string>",
"error": true,
"url": "<string>",
"statusMessage": "<string>",
"data": {
"code": "review_scope_not_enabled"
}
}{
"statusCode": 123,
"message": "<string>",
"error": true,
"url": "<string>",
"statusMessage": "<string>",
"data": {
"code": "review_scope_not_enabled"
}
}{
"statusCode": 123,
"message": "<string>",
"error": true,
"url": "<string>",
"statusMessage": "<string>",
"data": {
"code": "review_scope_not_enabled"
}
}{
"statusCode": 429,
"message": "Rate limit exceeded",
"error": true,
"url": "<string>",
"statusMessage": "Rate limit exceeded",
"data": {
"retryAfter": 5,
"limit": 60,
"remaining": 0
}
}{
"statusCode": 123,
"message": "<string>",
"error": true,
"url": "<string>",
"statusMessage": "<string>",
"data": {
"code": "review_scope_not_enabled"
}
}{
"statusCode": 123,
"message": "<string>",
"error": true,
"url": "<string>",
"statusMessage": "<string>",
"data": {
"code": "review_scope_not_enabled"
}
}Authorizations
API key starting with zt_live_ (production) or zt_test_ (sandbox).
Get your key at https://developers.zebratruth.ai
Body
The body is of type any.
Response
Image signed