Machine-readable API for AI agents and integrations. Order custom textile printing on premium garments.
AI agents can discover this API automatically via standard protocols:
ChatGPT-style plugin discovery
GET /.well-known/ai-plugin.json
Model Context Protocol discovery
GET /.well-known/mcp.json
Full machine-readable spec
GET /api/public/openapi.json
Structured data in page <head>
WebAPI + Organization
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"]
}
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..."]
}]
}
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 }
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"
}
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
}
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.
Network: Base L2 | Token: USDC | Chain ID: 8453
# 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...