curl -X POST https://api.paperjsx.com/api/v2/preflight \
-H "Authorization: Bearer pj_live_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{
"sourceSchema": "protocol_v2",
"preflightPolicy": {
"autoFix": "suggest_only"
},
"document": {
"version": "2.0",
"title": "My First Deck",
"accentColor": "#2563EB",
"slides": [
{
"slideType": "title-body",
"title": "Hello, CmdCal!",
"subtitle": "Generated through the V2 runtime",
"body": [
"Semantic specs are the default public input format.",
"Preflight returns stable findings and a deck score before render."
]
}
]
}
}'
curl -X POST https://api.paperjsx.com/api/v2/render \
-H "Authorization: Bearer pj_live_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{
"sourceSchema": "protocol_v2",
"mode": "async",
"approvalRequired": true,
"preflightPolicy": {
"renderIfScoreAbove": 70,
"autoFix": "suggest_only"
},
"document": {
"version": "2.0",
"title": "My First Deck",
"accentColor": "#2563EB",
"slides": [
{
"slideType": "title-body",
"title": "Hello, CmdCal!",
"subtitle": "Generated through the V2 runtime",
"body": [
"Semantic specs are the default public input format.",
"Render jobs stay reviewable, comparable, and approvable."
]
}
]
}
}'