curl --request POST \
--url https://api.zebratruth.ai/v1/media/provenance/signers \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--header 'X-Recent-Auth-Proof: <x-recent-auth-proof>' \
--data '
{
"displayName": "<string>",
"legalEntity": "<string>",
"endpointUrl": "<string>",
"certificateChainPem": "<string>",
"certificateId": "<string>"
}
'import requests
url = "https://api.zebratruth.ai/v1/media/provenance/signers"
payload = {
"displayName": "<string>",
"legalEntity": "<string>",
"endpointUrl": "<string>",
"certificateChainPem": "<string>",
"certificateId": "<string>"
}
headers = {
"Idempotency-Key": "<idempotency-key>",
"X-Recent-Auth-Proof": "<x-recent-auth-proof>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'Idempotency-Key': '<idempotency-key>',
'X-Recent-Auth-Proof': '<x-recent-auth-proof>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
displayName: '<string>',
legalEntity: '<string>',
endpointUrl: '<string>',
certificateChainPem: '<string>',
certificateId: '<string>'
})
};
fetch('https://api.zebratruth.ai/v1/media/provenance/signers', 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/signers",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'displayName' => '<string>',
'legalEntity' => '<string>',
'endpointUrl' => '<string>',
'certificateChainPem' => '<string>',
'certificateId' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json",
"Idempotency-Key: <idempotency-key>",
"X-Recent-Auth-Proof: <x-recent-auth-proof>"
],
]);
$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/signers"
payload := strings.NewReader("{\n \"displayName\": \"<string>\",\n \"legalEntity\": \"<string>\",\n \"endpointUrl\": \"<string>\",\n \"certificateChainPem\": \"<string>\",\n \"certificateId\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Idempotency-Key", "<idempotency-key>")
req.Header.Add("X-Recent-Auth-Proof", "<x-recent-auth-proof>")
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
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/signers")
.header("Idempotency-Key", "<idempotency-key>")
.header("X-Recent-Auth-Proof", "<x-recent-auth-proof>")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"displayName\": \"<string>\",\n \"legalEntity\": \"<string>\",\n \"endpointUrl\": \"<string>\",\n \"certificateChainPem\": \"<string>\",\n \"certificateId\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.zebratruth.ai/v1/media/provenance/signers")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Idempotency-Key"] = '<idempotency-key>'
request["X-Recent-Auth-Proof"] = '<x-recent-auth-proof>'
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"displayName\": \"<string>\",\n \"legalEntity\": \"<string>\",\n \"endpointUrl\": \"<string>\",\n \"certificateChainPem\": \"<string>\",\n \"certificateId\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"signer": {
"tenantId": "<string>",
"signerId": "<string>",
"displayName": "<string>",
"legalEntity": "<string>",
"algorithm": "es256",
"endpointUrl": "<string>",
"certificateId": "<string>",
"status": "pending",
"rejectionCode": "<string>",
"rejectionDetail": "<string>",
"subject": "<string>",
"issuer": "<string>",
"validFrom": "2023-11-07T05:31:56Z",
"validTo": "2023-11-07T05:31:56Z",
"fingerprintSha256": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"verifiedAt": "2023-11-07T05:31:56Z"
},
"trustAnchor": {
"subject": "<string>",
"source": "refreshed",
"version": "<string>",
"testAnchor": true,
"warning": "<string>"
}
}{
"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"
}
}Register a signer
Registers your organisation’s signing certificate and endpoint. The chain is validated
against the trust anchors, the endpoint is challenged, and proof of possession of the
leaf key is verified before the signer becomes active. Rejections are persisted as a
failed signer so they appear in the list with rejectionCode.
This is an owner-only, dashboard-session action: it requires a recent-authentication
proof (X-Recent-Auth-Proof) and an Idempotency-Key, and cannot be performed with an
API key. Fetch GET /media/provenance/signing-keys first so your endpoint can verify
the challenge. Not billed.
curl --request POST \
--url https://api.zebratruth.ai/v1/media/provenance/signers \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--header 'X-Recent-Auth-Proof: <x-recent-auth-proof>' \
--data '
{
"displayName": "<string>",
"legalEntity": "<string>",
"endpointUrl": "<string>",
"certificateChainPem": "<string>",
"certificateId": "<string>"
}
'import requests
url = "https://api.zebratruth.ai/v1/media/provenance/signers"
payload = {
"displayName": "<string>",
"legalEntity": "<string>",
"endpointUrl": "<string>",
"certificateChainPem": "<string>",
"certificateId": "<string>"
}
headers = {
"Idempotency-Key": "<idempotency-key>",
"X-Recent-Auth-Proof": "<x-recent-auth-proof>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'Idempotency-Key': '<idempotency-key>',
'X-Recent-Auth-Proof': '<x-recent-auth-proof>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
displayName: '<string>',
legalEntity: '<string>',
endpointUrl: '<string>',
certificateChainPem: '<string>',
certificateId: '<string>'
})
};
fetch('https://api.zebratruth.ai/v1/media/provenance/signers', 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/signers",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'displayName' => '<string>',
'legalEntity' => '<string>',
'endpointUrl' => '<string>',
'certificateChainPem' => '<string>',
'certificateId' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json",
"Idempotency-Key: <idempotency-key>",
"X-Recent-Auth-Proof: <x-recent-auth-proof>"
],
]);
$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/signers"
payload := strings.NewReader("{\n \"displayName\": \"<string>\",\n \"legalEntity\": \"<string>\",\n \"endpointUrl\": \"<string>\",\n \"certificateChainPem\": \"<string>\",\n \"certificateId\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Idempotency-Key", "<idempotency-key>")
req.Header.Add("X-Recent-Auth-Proof", "<x-recent-auth-proof>")
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
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/signers")
.header("Idempotency-Key", "<idempotency-key>")
.header("X-Recent-Auth-Proof", "<x-recent-auth-proof>")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"displayName\": \"<string>\",\n \"legalEntity\": \"<string>\",\n \"endpointUrl\": \"<string>\",\n \"certificateChainPem\": \"<string>\",\n \"certificateId\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.zebratruth.ai/v1/media/provenance/signers")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Idempotency-Key"] = '<idempotency-key>'
request["X-Recent-Auth-Proof"] = '<x-recent-auth-proof>'
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"displayName\": \"<string>\",\n \"legalEntity\": \"<string>\",\n \"endpointUrl\": \"<string>\",\n \"certificateChainPem\": \"<string>\",\n \"certificateId\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"signer": {
"tenantId": "<string>",
"signerId": "<string>",
"displayName": "<string>",
"legalEntity": "<string>",
"algorithm": "es256",
"endpointUrl": "<string>",
"certificateId": "<string>",
"status": "pending",
"rejectionCode": "<string>",
"rejectionDetail": "<string>",
"subject": "<string>",
"issuer": "<string>",
"validFrom": "2023-11-07T05:31:56Z",
"validTo": "2023-11-07T05:31:56Z",
"fingerprintSha256": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"verifiedAt": "2023-11-07T05:31:56Z"
},
"trustAnchor": {
"subject": "<string>",
"source": "refreshed",
"version": "<string>",
"testAnchor": true,
"warning": "<string>"
}
}{
"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"
}
}Authorizations
API key starting with zt_live_ (production) or zt_test_ (sandbox).
Get your key at https://developers.zebratruth.ai
Headers
Unique request identifier to prevent duplicate execution and double-charging. Generate a new UUID for each distinct request. Reuse the same key to safely retry.
Body
1 - 1201 - 200es256, es384, es512, ps256, ps384, ps512, ed25519 Your signing endpoint. It is challenged during registration and called for every signature; requests to it are signed with the keys from GET /media/provenance/signing-keys.
Public certificate chain, leaf first, PEM. Up to 512 KB. Must terminate at an accepted trust anchor.
200