{"name":"Aprimo Librarian Agent API","version":"2.0","description":"Analyze digital assets and generate DAM metadata models powered by AI","endpoints":{"POST /api/analyze":{"description":"Analyze one or more assets and generate a company-specific metadata model with populated values, embedded metadata, and taxonomy suggestions","content_types":["application/json","multipart/form-data"],"json_body":{"companyName":"(required) Company name to build metadata model for","assetUrl":"(optional) Single image URL to analyze","assetUrls":"(optional) Array of image URLs to analyze in parallel","assetBase64":"(optional) Base64-encoded asset data","assetMediaType":"(optional) MIME type when using assetBase64","pageMetadataContext":"(optional) JSON string of scraped page metadata for webpage mode"},"form_data":{"companyName":"(required) Company name","assetUrl":"(optional) Single image URL","assetUrls[]":"(optional) Multiple image URLs","assetFile":"(optional) File upload(s)","pageMetadataContext":"(optional) JSON string of page metadata"},"response":{"success":true,"company":"string","input_mode":"image | webpage","metadata_model":"{ company_analysis, metadata_model: { core_fields[], industry_specific_fields[], taxonomy } }","asset_results":"[{ image_url, image_index, embedded_metadata: { file_info, exif?, iptc?, xmp?, c2pa }, asset_analysis, populated_metadata, taxonomy_suggestions }]","page_metadata":"(when input_mode=webpage) scraped page metadata","generated_at":"ISO timestamp"}},"POST /api/scrape-page":{"description":"Scrape a webpage to extract metadata and discover/score images","json_body":{"url":"(required) URL of the webpage to scrape"},"response":{"url":"string","page_metadata":"{ title, description, og_title, og_description, og_image, twitter_title, twitter_description, keywords, canonical, structured_data[] }","images":"[{ url, alt, width?, height?, score, isRecommended, reason }]"}}},"examples":{"single_image":"curl -X POST https://your-domain.vercel.app/api/analyze \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"companyName\": \"Nike\", \"assetUrl\": \"https://example.com/product-image.jpg\"}'","multiple_images":"curl -X POST https://your-domain.vercel.app/api/analyze \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"companyName\": \"Nike\", \"assetUrls\": [\"https://example.com/img1.jpg\", \"https://example.com/img2.jpg\"]}'","file_upload":"curl -X POST https://your-domain.vercel.app/api/analyze \\\n  -F \"companyName=Nike\" \\\n  -F \"assetFile=@/path/to/image.jpg\"","scrape_page":"curl -X POST https://your-domain.vercel.app/api/scrape-page \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"url\": \"https://www.nike.com/t/air-max-270\"}'"}}