OpenAPI Explorer & Spec Reference
Download the published machine-readable contracts for the Partner API, XJDF and PrintTalk layer, and Preflight surface.
The current RFQ create and organization-owned RFQ/quote read contract is generated at /api/v1/marketplace/openapi.json. The older /docs/api/openapi.yaml publication is a separate reference; do not assume the documents are identical. Confirm the environment origin and approved capabilities during onboarding.
Use this page as the single public index for NowToPrint machine-readable contracts. Each surface has a current contract or a clearly marked historical reference.
Published Resources
| Resource | Contract URL | Reference | Best for |
|---|---|---|---|
| Partner REST API contract | /api/v1/marketplace/openapi.json | Partner REST API | Postman import, SDK generation, and QA contract review |
| XJDF / PrintTalk readiness contract | /docs/api/xjdf-openapi.yaml | XJDF & PrintTalk API | Private-beta readiness review and capability tooling |
| PDF preflight (Web session) | Web OpenAPI (sign-in required) | Historical preflight YAML | Source analysis and queued job guidance |
| XJDF Swagger preview | /docs/api/swagger-ui.html | XJDF integration guide | Browser-based inspection of the XJDF contract |
Canonical publication flow
Only allowlisted public specs are published at the public /docs/api/* URLs during verification
and build. Internal Master Data contracts, admin routes, dark private-beta data-product contracts,
and future external-productization specs stay out of the public mirror. Use the current contract
for the deployment you are integrating with.
Partner REST API
Overview
The generated Marketplace contract publishes RFQ create (201), one owned RFQ read (?id=), and its owned quote read. There is no RFQ list. Order adapters still return capability-specific 503 after credential authentication and quota; they are not successful pricing/order operations.
- Base URL:
https://api.nowtoprint.com/api/v1 - Authentication:
Authorization: Bearer <ntp_agent_ key> - Best for: auth and disabled-capability contract checks
Capability check
curl -i https://api.nowtoprint.com/api/v1/orders \
-H "Authorization: Bearer ntp_agent_<secret>"
Next reading
XJDF / PrintTalk API
Overview
The XJDF and PrintTalk layer is a readiness-oriented private-beta contract for standards-referenced interoperability with MIS, ERP, and workflow systems. It is not a CIP4 certification, legal conformance claim, or external GA commitment.
- Route family:
https://api.nowtoprint.com/api/v1/xjdf - Authentication: public metadata needs no API key; costing session and XJMF sender auth are separate
- Best for: readiness review, standards-referenced job exchange, capability discovery, and external workflow alignment
Explore in the browser
Use the published preview when you need a human-friendly contract walkthrough before importing the spec:
Preflight Engine API
Overview
Open the current Web OpenAPI from your Web deployment after signing in. The Web contract uses a session cookie and route permissions. The standalone runtime serves its own contract at the same path on its configured origin with runtime credentials. The managed runtime exposes a separate V2 job and artifact contract under /api/v1/pdf-tools.
| Purpose | Route and behavior |
|---|---|
| Register PDF source bytes | POST /api/v1/pdf/artifacts with application/pdf and a matching Content-Digest. Use the Web session, CSRF token and an idempotency key for this write. Follow the deployment's intake limits. |
| Run native profile analysis | POST /api/v1/pdf/analyze with the registered source's full SHA-256. The response reports measured coverage and unavailable capabilities. |
| Submit or rerun a Web preflight job | POST /api/v1/pdf/preflight with mode: "enqueue" and a registered source reference, or mode: "rerun" and rerunJobId. Both require a CSRF token and an idempotency key. HTTP 202 acknowledges queue acceptance. |
| Read Web job status | GET /api/v1/pdf/jobs/{jobId} with the authorized Web session and the ID from the job response. |
Web job reads and reruns require the saved owner and tenant to match the signed-in user and active tenant. The workflow run, output and cancellation routes use the same scope. A missing or mismatched owner or tenant returns 404.
Sample request
In your signed-in Web application, use the digest of PDF bytes registered in the same tenant.
const response = await fetch('/api/v1/pdf/analyze', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ sourceSha256: registeredSourceSha256, profile: 'pdfx4' }),
});
Sample response shape
A successful analysis response describes the registered source and explicitly lists measured and unmeasured capabilities. A Web queue acceptance returns the job ID in the top-level jobId field. Poll that job to check completion.
For a standalone deployment, follow its authenticated contract for analysis and job submission. The standalone synchronous POST /api/v1/pdf/preflight returns 503 for valid requests until it can measure the requested custom thresholds.
Machine-readable contract
The historical preflight YAML preserves the retired queue, polling, and agent schemas. The current POST /api/v1/pdf/assistant provides deterministic advisory guidance and has its own request and response schema.
Problem details and retries
NowToPrint surfaces integration failures through structured HTTP responses. In general:
400means payload or schema mismatch401means missing or invalid credentials403means scope or entitlement mismatch429means use returned reset metadata and honorRetry-Afterwhen present5xxmeans transient failure or dependency disruption
Use request IDs in logs, keep write operations idempotent, and wire webhooks before production.
Change management
The current RFQ contract is generated as marketplace-partner-api.v1. Compare static allowlisted publications with actual operations/schemas; publication alone does not prove runtime parity, CIP4 certification or external GA. Reconcile breaking differences with the integration owner before updating clients.
Related: API Reference | Partner API | XJDF API | Webhook Access & Delivery
Cet article vous a-t-il été utile?