Skip to main content

Agent ingest

Use this guide when an agent, automation, or external service needs to send images into Pindeck from another system. The common path is:
  1. Find a public image URL.
  2. Build a stable externalId for deduplication.
  3. Send the image to /ingestExternal.
  4. Let Pindeck copy the file into RustFS, create the image record, extract colors, and put moderated sources into review.

Endpoint

Required fields

Minimal request

Successful responses return the created imageId and resolved userId.

JavaScript agent example

Moderated sources

Images with sourceType set to discord or pinterest are created as draft/moderated imports. They are available to the review workflow before becoming active in the main library. For Discord-specific review tooling, use /discordQueue to list queued items and /discordModerate to approve, reject, or generate variations for a queued image. For Pinterest, keep sourceUrl as the original pin/page URL, but still send a downloadable imageUrl. Pindeck stores its own RustFS copy so Pinterest references remain usable for boards, decks, color extraction, and AI variation workflows even if the source URL changes later.

Integration checklist

  • Use externalId on every automated import.
  • Keep INGEST_API_KEY server-side only.
  • Omit importBatchId unless you have a real Convex import batch id.
  • Send sourceUrl so reviewers can trace where an image came from.
  • Prefer direct image URLs that do not require browser cookies.
  • Retry 502 responses with backoff; they can mean the upstream image host or RustFS persistence step failed.