{"openapi":"3.1.0","info":{"title":"Bot2Bot Labs Receipts API","version":"1.0.0","description":"Read-only JSON API for dated AI receipts. License: CC BY 4.0. Cite canonical URLs and price dates.","contact":{"name":"Bot2Bot Labs","url":"https://bot2botlabs.com","email":"jordan@bot2botlabs.com"}},"servers":[{"url":"https://bot2botlabs.com"}],"paths":{"/api/receipts.json":{"get":{"operationId":"listReceipts","summary":"List published receipts","parameters":[{"name":"include_examples","in":"query","schema":{"type":"boolean","default":false},"description":"Include is_example rows when true."}],"responses":{"200":{"description":"Receipt collection","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReceiptListResponse"}}}}}}},"/api/receipts/{id}.json":{"get":{"operationId":"getReceipt","summary":"Single receipt with sources and method link","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","example":"r-0001"}}],"responses":{"200":{"description":"Receipt detail","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReceiptDetailResponse"}}}},"404":{"description":"Receipt not found"}}}}},"components":{"schemas":{"ReceiptListResponse":{"type":"object","required":["schema_version","schema_url","license","generated_at","count","receipts","canonical_url","cite_as"],"properties":{"schema_version":{"type":"string"},"schema_url":{"type":"string","format":"uri"},"license":{"type":"string"},"generated_at":{"type":"string","format":"date-time"},"count":{"type":"integer"},"canonical_url":{"type":"string","format":"uri"},"cite_as":{"type":"string"},"receipts":{"type":"array","items":{"$ref":"#/components/schemas/Receipt"}}}},"ReceiptDetailResponse":{"type":"object","required":["schema_version","canonical_url","cite_as","method_url","receipt"],"properties":{"schema_version":{"type":"string"},"schema_url":{"type":"string","format":"uri"},"license":{"type":"string"},"generated_at":{"type":"string","format":"date-time"},"canonical_url":{"type":"string","format":"uri"},"cite_as":{"type":"string"},"method_url":{"type":"string","format":"uri"},"sources":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"url":{"type":"string","format":"uri"}}}},"receipt":{"$ref":"#/components/schemas/Receipt"}}},"Receipt":{"type":"object","description":"Full receipt.v1 object; see schema/receipt.v1.json","additionalProperties":true}}}}