{"openapi":"3.0.3","info":{"title":"PeptideClients Public API","version":"1.0.0","description":"Operator-managed REST API for the PeptideClients workspace. Authenticate every request with a Bearer api key minted in Settings -> API keys."},"servers":[{"url":"https://api.peptideclients.com","description":"Custom domain (if DNS is wired)"},{"url":"https://bxbdqmtldkhgwpnwecox.supabase.co/functions/v1/public-api","description":"Supabase Edge Function fallback"}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"API key (pck_live_*)"}}},"security":[{"bearerAuth":[]}],"paths":{"/v1/health":{"get":{"summary":"Liveness probe","responses":{"200":{"description":"OK"}}}},"/v1/orders":{"get":{"summary":"List orders for the calling org","parameters":[{"name":"cursor_at","in":"query","schema":{"type":"string","format":"date-time"}},{"name":"cursor_id","in":"query","schema":{"type":"string","format":"uuid"}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}}],"responses":{"200":{"description":"OK"}}}},"/v1/orders/{id}":{"get":{"summary":"Get one order","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK"},"404":{"description":"Not found"}}}},"/v1/vendors":{"get":{"summary":"List vendors (org supplier CRM)","responses":{"200":{"description":"OK"}}}},"/v1/vendors/{id}":{"get":{"summary":"Get one vendor","responses":{"200":{"description":"OK"}}}},"/v1/clients":{"get":{"summary":"List CRM clients","responses":{"200":{"description":"OK"}}}},"/v1/products":{"get":{"summary":"List published products for org-linked shop sellers","responses":{"200":{"description":"OK"}}}},"/v1/products/{id}":{"get":{"summary":"Get one product","responses":{"200":{"description":"OK"}}}},"/v1/webhooks/test/{endpoint_id}":{"post":{"summary":"Fire a synthetic webhook.test event (requires read_write)","responses":{"200":{"description":"Delivery enqueued"},"403":{"description":"insufficient_scope"}}}},"/v1/openapi.json":{"get":{"summary":"Return this OpenAPI document","responses":{"200":{"description":"OK"}}}}}}