{"name":"image-grabber library API","auth":"Authorization: Bearer <key>. The read key, or a WorkOS access token from a member of the organization, covers every GET route and /mcp, plus POST and PATCH on /ads/saved (saving an ad idea is the one write agents may make); other writes use the library secret or, for research ad imports, the scoped research key.","routes":{"POST /mcp":"MCP server (Streamable HTTP): search_library, library_facets, get_images, view_images, search_ads, view_ads, save_ad_idea. Sign in through WorkOS.","GET /search":"q, group, content, tags (all of, comma-separated), colors (all color families, comma-separated), host (any exact source hostname, comma-separated), ids, needsReview, sort (relevance|newest|oldest|random), limit (<=200), offset, ttl (signed URL seconds), facets=1 (chip counts for the filtered results). Items carry signed imageUrl and thumbUrl.","GET /facets":"counts of groups, content types, tags, styles, colors and source hosts","GET /items/:id":"one full record","GET /index":"every record","GET /img/<key>":"original bytes","GET /thumb/:id":"webp thumbnail","GET /ads/search":"Ad cards, one per unique image: q (advertiser, titles, bodies, link host), section (competitor|aspirational|ours|archive), advertiser (any, comma-separated names), format (any of image|dpa|video|carousel), minDays, stillRunning, saved, newThisWeek, sort (longest|newest|relevance), limit (<=200), offset, ttl, facets=1. Items carry signed imageUrl and thumbUrl.","GET /ads/facets":"counts of Ad cards by section, New This Week, saved ideas, advertisers and formats","GET /ads/cards/:id":"one Ad card with every ad that used its image and its saved ideas","GET /ads/img/<id>.<ext>":"an ad creative","GET /ads/thumb/:id":"an ad creative preview","POST /ads/ingest":"library secret or scoped research key: {section, advertiser, source, runId, activeCount, complete, seenOn, dryRun, ads[]}. Applies the keep rule and merges duplicates.","GET /ads/saved":"Saved to Develop ideas: q, store, savedBy, stage (idea|briefed|made|live), cardId. Each idea carries its card.","POST /ads/saved":"save an idea: {cardId, idea, store, savedBy, stage?, briefUrl?}. Open to the read key and members.","PATCH /ads/saved/:id":"change an idea's idea, store, savedBy, stage or briefUrl. Open to the read key and members.","DELETE /ads/saved/:id":"library secret only"}}