Import entity logo from website
Previews or imports a logo discovered from the entity’s first-party website. Use exactly one target selector: id, slug, or canonical website url; url is not a direct image, social card, banner, or screenshot.
Authentication
User bearer token: Supabase or Clerk session JWT, Clerk OAuth access token, or Clerk personal API key
Admin API key for system-to-system write operations
Query parameters
Exact entity UUID whose logo slot should be imported. CLI flag: —media-id. Mutually exclusive with slug/—media-slug and url/—url.
Exact entity slug whose logo slot should be imported. CLI flag: —media-slug. Mutually exclusive with id/—media-id and url/—url.
Canonical first-party company website URL to inspect for logo candidates; do not pass a direct image, OpenGraph card, social card, banner, or screenshot URL. Mutually exclusive with id/—media-id and slug/—media-slug.
Fallback that permits a wide (non-square) logo into the square logo slot, used only after confirming no square or near-square logo exists. Default false rejects wide wordmark/banner candidates. CLI flag: —permit-wide. Blank or invisible images are always rejected regardless of this flag.
Provider name for provider-native IDs or slugs.
Provider-native source ID.
Provider-native source slug.
Actor type; inferred as agent when agentChassis and agentModel are supplied, or as employee from an authenticated user JWT session.
Agent chassis token for agent-authored writes.
Agent model id for agent-authored writes.
Response
Managed Cloudflare R2/images-v2 media asset after import; absent for preview. When news id/slug is omitted, use media.path as newsImageThumbnail on create.
Winning discovery signal such as JSON_LD_IMAGE or OPEN_GRAPH