{"openapi":"3.0.3","info":{"title":"Promptiful","version":"1.0.0","description":"Public HTTP routes on the Promptiful product host. This is not a general-purpose public API. It covers liveness and the token-level catalog only. Auth, billing, admin, personal library, push, LinkedIn, and the signed-in search and spec JSON are omitted. Prompt search and fetch for agents is MCP at https://promptiful.ai/mcp, documented at https://dev.promptiful.ai/mcp. These routes are not served on the docs host."},"servers":[{"url":"https://promptiful.ai","description":"Product host"}],"paths":{"/api/health":{"get":{"operationId":"getHealth","summary":"Liveness and library size","description":"No authentication. Returns whether the Worker is up and how many specs are bundled.","responses":{"200":{"description":"Worker is responding.","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["ok","library","stage"],"properties":{"ok":{"type":"boolean"},"library":{"type":"integer","minimum":0,"description":"Number of bundled specs."},"stage":{"type":"string","description":"Product stage. Currently M0."}}},"example":{"ok":true,"library":100,"stage":"M0"}}}}}}},"/api/market":{"get":{"operationId":"getMarket","summary":"Token-level catalog","description":"No authentication. Listings are id, title, category, level, token estimate, tier, up to six job phrases, and a locked flag. Prompt bodies are never included. A Promptiful session cookie, if a browser sends one, only changes locked and the entitlement summary. Do not send that cookie from another client. An unknown level query is ignored. An unknown category matches nothing.","parameters":[{"name":"level","in":"query","required":false,"description":"Shelf to return. Any other value is ignored and all shelves are returned.","schema":{"type":"string","enum":["free","go","plus","pro","master"]}},{"name":"category","in":"query","required":false,"description":"Exact category. Known values: writing, marketing, engineering, ops, research, sales, product, data, game, world, business, creator, education, agency, hospitality, commerce, events, fitness, nonprofit, property, media, startup.","schema":{"type":"string"}},{"name":"q","in":"query","required":false,"description":"Token search across id, title, category, and job phrases.","schema":{"type":"string"}}],"responses":{"200":{"description":"Catalog grouped by token level. No prompt bodies.","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["levels","entitlement","filters"],"properties":{"levels":{"type":"array","items":{"type":"object","additionalProperties":false,"required":["level","package","checkout_level","unlocks","count","tokens_est_min","tokens_est_max","listings"],"properties":{"level":{"type":"string","enum":["free","go","plus","pro","master"]},"package":{"type":"string","nullable":true,"description":"Stripe package id, or null on the free shelf."},"checkout_level":{"type":"string","nullable":true,"enum":["go","plus","pro","master",null],"description":"Paid level name for this shelf, or null when the shelf is free. Checkout itself is not part of this spec."},"unlocks":{"type":"string"},"count":{"type":"integer"},"tokens_est_min":{"type":"integer","nullable":true},"tokens_est_max":{"type":"integer","nullable":true},"listings":{"type":"array","items":{"type":"object","additionalProperties":false,"required":["id","title","category","level","tokens_est","tier","jobs","locked"],"properties":{"id":{"type":"string","example":"PRM-WRT-014"},"title":{"type":"string"},"category":{"type":"string","enum":["writing","marketing","engineering","ops","research","sales","product","data","game","world","business","creator","education","agency","hospitality","commerce","events","fitness","nonprofit","property","media","startup"]},"level":{"type":"string","enum":["free","go","plus","pro","master"]},"tokens_est":{"type":"integer"},"tier":{"type":"string","enum":["free","paid"]},"jobs":{"type":"array","items":{"type":"string"},"maxItems":6},"locked":{"type":"boolean","description":"True when this shelf needs a paid entitlement the caller does not have. The listing never includes the prompt body."}}}}}}},"entitlement":{"type":"object","additionalProperties":false,"required":["active","level"],"properties":{"active":{"type":"boolean"},"level":{"type":"string","nullable":true,"enum":["go","plus","pro","master",null]}}},"filters":{"type":"object","additionalProperties":false,"required":["level","category","q"],"properties":{"level":{"type":"string","nullable":true,"enum":["free","go","plus","pro","master",null]},"category":{"type":"string","nullable":true},"q":{"type":"string"}}}}}}}}}}}}}