Request c2pa report as JSON Body Method
curl --request POST \
--url 'https://{host}/v1/probe/c2pa?token=' \
--header 'Content-Type: application/json' \
--data '
{
"url": "<string>",
"inject_json": false,
"inject_output": true,
"queue_timeout": 60000,
"timeout": 65000
}
'import requests
url = "https://{host}/v1/probe/c2pa?token="
payload = {
"url": "<string>",
"inject_json": False,
"inject_output": True,
"queue_timeout": 60000,
"timeout": 65000
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
url: '<string>',
inject_json: false,
inject_output: true,
queue_timeout: 60000,
timeout: 65000
})
};
fetch('https://{host}/v1/probe/c2pa?token=', 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://{host}/v1/probe/c2pa?token=",
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([
'url' => '<string>',
'inject_json' => false,
'inject_output' => true,
'queue_timeout' => 60000,
'timeout' => 65000
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$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://{host}/v1/probe/c2pa?token="
payload := strings.NewReader("{\n \"url\": \"<string>\",\n \"inject_json\": false,\n \"inject_output\": true,\n \"queue_timeout\": 60000,\n \"timeout\": 65000\n}")
req, _ := http.NewRequest("POST", url, payload)
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://{host}/v1/probe/c2pa?token=")
.header("Content-Type", "application/json")
.body("{\n \"url\": \"<string>\",\n \"inject_json\": false,\n \"inject_output\": true,\n \"queue_timeout\": 60000,\n \"timeout\": 65000\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://{host}/v1/probe/c2pa?token=")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"url\": \"<string>\",\n \"inject_json\": false,\n \"inject_output\": true,\n \"queue_timeout\": 60000,\n \"timeout\": 65000\n}"
response = http.request(request)
puts response.read_body{
"error": "<string>",
"metadata": {
"duration": 1,
"io_usage": 1,
"queue_time": 1,
"request_id": "<string>",
"usage": 1
},
"output": "<unknown>",
"success": true
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}Media
Request c2pa report as JSON Body Method
POST
/
v1
/
probe
/
c2pa
Request c2pa report as JSON Body Method
curl --request POST \
--url 'https://{host}/v1/probe/c2pa?token=' \
--header 'Content-Type: application/json' \
--data '
{
"url": "<string>",
"inject_json": false,
"inject_output": true,
"queue_timeout": 60000,
"timeout": 65000
}
'import requests
url = "https://{host}/v1/probe/c2pa?token="
payload = {
"url": "<string>",
"inject_json": False,
"inject_output": True,
"queue_timeout": 60000,
"timeout": 65000
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
url: '<string>',
inject_json: false,
inject_output: true,
queue_timeout: 60000,
timeout: 65000
})
};
fetch('https://{host}/v1/probe/c2pa?token=', 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://{host}/v1/probe/c2pa?token=",
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([
'url' => '<string>',
'inject_json' => false,
'inject_output' => true,
'queue_timeout' => 60000,
'timeout' => 65000
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$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://{host}/v1/probe/c2pa?token="
payload := strings.NewReader("{\n \"url\": \"<string>\",\n \"inject_json\": false,\n \"inject_output\": true,\n \"queue_timeout\": 60000,\n \"timeout\": 65000\n}")
req, _ := http.NewRequest("POST", url, payload)
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://{host}/v1/probe/c2pa?token=")
.header("Content-Type", "application/json")
.body("{\n \"url\": \"<string>\",\n \"inject_json\": false,\n \"inject_output\": true,\n \"queue_timeout\": 60000,\n \"timeout\": 65000\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://{host}/v1/probe/c2pa?token=")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"url\": \"<string>\",\n \"inject_json\": false,\n \"inject_output\": true,\n \"queue_timeout\": 60000,\n \"timeout\": 65000\n}"
response = http.request(request)
puts response.read_body{
"error": "<string>",
"metadata": {
"duration": 1,
"io_usage": 1,
"queue_time": 1,
"request_id": "<string>",
"usage": 1
},
"output": "<unknown>",
"success": true
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}Authorizations
api_keyapi_key_header
API Key Security
Body
application/jsonapplication/x-www-form-urlencoded
Was this page helpful?
⌘I

