Printstudios Public API

Machine-readable API for AI agents and integrations. Order custom textile printing on premium garments.

OpenAPI 3.0 MCP Ready x402 Payments Schema.org

Agent Discovery

AI agents can discover this API automatically via standard protocols:

OpenAI Plugin Manifest

ChatGPT-style plugin discovery

GET /.well-known/ai-plugin.json

MCP Protocol

Model Context Protocol discovery

GET /.well-known/mcp.json

OpenAPI 3.0 Specification

Full machine-readable spec

GET /api/public/openapi.json

Schema.org JSON-LD

Structured data in page <head>

WebAPI + Organization

Endpoints

GET /api/public/catalog Browse textiles & decoration methods

Returns the full textile catalog with pricing tiers, decoration methods (Siebdruck, DTF, Stick), delivery info, and payment options. No authentication required.

{
  "textiles": [
    { "id": "sols_regent", "name": "Sols Regent", "category": "T-Shirts", "base_price_from": 1.12 }
  ],
  "decoration_methods": [ ... ],
  "payment_methods": ["invoice", "x402_usdc"]
}
POST /api/public/calculate Calculate price quote

Send items with textile, sizes, and decoration config. Returns netto/brutto breakdown and a quote_token valid for 48h.

POST /api/public/calculate
{
  "items": [{
    "textile_id": "sols_regent",
    "sizes": { "M": 25, "L": 25 },
    "decoration": {
      "method": "siebdruck",
      "size": "MEDIUM",
      "colors": 2,
      "positions": ["front"]
    },
    "artwork_refs": ["pf_abc123..."]
  }]
}
POST /api/public/upload Upload artwork (logo, design)

Upload design files via multipart/form-data. Accepted: PNG, JPG, SVG, PDF, AI, EPS (max 50 MB). Returns a file_ref token.

curl -X POST http://printstudios.de/api/public/upload \
  -F "[email protected]"

{
  "file_ref": "pf_a1b2c3d4e5f6...",
  "filename": "logo.png",
  "valid_for_days": 30
}
POST /api/public/order Place an order

Create a textile printing order. Include customer info, delivery address, items with artwork refs. Supports payment_method: "x402" for USDC payments.

POST /api/public/order
{
  "items": [{ ... }],
  "customer": {
    "company": "My Brand GmbH",
    "email": "[email protected]"
  },
  "delivery_address": {
    "street": "Musterstr. 1",
    "zip": "70173",
    "city": "Stuttgart",
    "country": "DE"
  },
  "payment_method": "invoice"
}
GET /api/public/order/{tracking_token} Track order status

Real-time order status: production queue, shipping, payment verification. No auth needed — just the tracking token.

{
  "order_id": "PS-API-42",
  "status": "in_production",
  "queue": "todo",
  "payment_verified": true
}

x402 Autonomous Payments (USDC on Base L2)

AI agents can pay for orders autonomously using the x402 protocol. Payments are made in USDC on Base Layer 2 for fast, low-cost transactions.

1. CalculatePOST /calculate
→
2. OrderPOST /order
payment_method: x402
→
3. PaySend USDC to address
→
4. ConfirmPOST /confirm-payment
tx_hash: 0x...
→
5. TrackGET /order/{token}

Network: Base L2 | Token: USDC | Chain ID: 8453

Quick Start

# 1. Browse catalog
curl http://printstudios.de/api/public/catalog | jq .

# 2. Calculate price for 50 T-shirts with screen printing
curl -X POST http://printstudios.de/api/public/calculate \
  -H "Content-Type: application/json" \
  -d '{"items": [{"textile_id": "sols_regent", "sizes": {"M": 25, "L": 25}, "decoration": {"method": "siebdruck", "size": "MEDIUM", "colors": 2, "positions": ["front"]}}]}'

# 3. Upload artwork
curl -X POST http://printstudios.de/api/public/upload -F "[email protected]"

# 4. Place order
curl -X POST http://printstudios.de/api/public/order \
  -H "Content-Type: application/json" \
  -d '{"items": [...], "customer": {"company": "My Brand", "email": "[email protected]"}, "delivery_address": {"street": "Musterstr 1", "zip": "70173", "city": "Stuttgart", "country": "DE"}}'

# 5. Track order
curl http://printstudios.de/api/public/order/trk_abc123...