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:- Find a public image URL.
- Build a stable
externalIdfor deduplication. - Send the image to
/ingestExternal. - Let Pindeck copy the file into RustFS, create the image record, extract colors, and put moderated sources into review.
Endpoint
Required fields
Recommended fields
Minimal request
imageId and resolved userId.
JavaScript agent example
Moderated sources
Images withsourceType 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
externalIdon every automated import. - Keep
INGEST_API_KEYserver-side only. - Omit
importBatchIdunless you have a real Convex import batch id. - Send
sourceUrlso reviewers can trace where an image came from. - Prefer direct image URLs that do not require browser cookies.
- Retry
502responses with backoff; they can mean the upstream image host or RustFS persistence step failed.