AlmondTill/G3N API

FeedSubscription

object type

Delivery is pull only v1: list runs via feedSubscriptionRuns, then mint a short-lived presigned download with mintFeedRunDownload — the BI tool authenticates as its OWN ApiKey session and there are zero stored credentials (the presigned ticket IS the custody; a push feed-ready event is a named growth). The per-org weld: organizationId names the ONE exported org (in-group live-gated); org-parented dataset rows filter to it, group-parented catalog masters (Style/Product) export whole — the shared catalog IS each org's catalog. Group-parented (parentId === rootId); born active with nextDueAt = the birth instant (the next hourly tick runs it); at most 10 active feeds per group (the webhook cap class); 5 consecutive failed runs fire the automatic active → suspended flip; reactivate serves both inactive → active and suspended → active (fix the feed via update, then reactivate; no catch-up runs — the next run is the next cadence step). Runs prune to the newest 8 per feed (bounded custody). Owner-gated end to end (the mintApiKey posture — data-OUT is exfiltration-adjacent); NOT searchable (integration config — reached via the owner-gated list).

Fields

FieldTypeNotes
idID ID!The record’s id — a UUID the platform assigned when the record was created; every reference to this record uses it.
sysIdString String!The human-readable id, shaped like FD-… — stable for the record’s life.
typeString String!The kind of record — always FeedSubscription here.
captionString String!The record’s display name — what people see it called.
statusString String!The record’s current state — one of active, inactive, suspended or doomed.
parentIdID ID!The parent = the org group; parentId === rootId always.
rootIdID ID!The id of your organization group — every record of yours carries the same one.
createdAtString String!When the record was created, as a UTC timestamp.
updatedAtString String!When the record last changed, as a UTC timestamp.
revisionNumInt Int!How many times this record has been edited; the first save is 0.
revisionID ID!The id of the record’s current edit — send it back with a change so an edit made in the meantime is refused instead of overwritten.
refCaptionsRefCaption [RefCaption!]!The captions of the records this one refers to, composed for you — one row per referenced id; see RefCaption.
organizationIdID ID!The per-org weld: the ONE org this feed exports — must be an in-group live Organization (gated at create AND edit); org-parented dataset rows filter to it; group-parented catalog masters export whole (the shared catalog IS each org’s catalog).
datasetString String!What exports — one canned construct type. Mutable (routing, not authority).
cadenceString String!How often — daily · weekly · monthly. nextDueAt steps by the cadence from each RUN instant (a late run does not compound); a cadence edit applies from the next run (the stored due stands).
formatString String!The file serialization — jsonl (one stored record per line, storage attrs stripped; lossless, the default posture) or csv (the flat scalar fields, header = the union; nested fields omitted — the disclosed lossy trade for flat masters).
nextDueAtString String!When the next run is due (stored — the hourly sweeper compares against it, never re-derives from history; birth = the create instant, so the first tick runs it).
lastRunAtStringThe last successful run’s instant (null until the first success).
lastRunKeyStringThe last successful run’s object key under the group’s feeds/ prefix (the newest pull coordinate; feedSubscriptionRuns lists the retained window).
consecutiveFailuresInt Int!Consecutive failed runs (the exporter’s counter — reset by the first success after failures). At 5 the automatic suspend fires.
lastFailureAtStringThe last failed run’s instant (failure-path-only; stands as history after recovery until the next failure overwrites).
lastFailureCodeStringThe last failure’s short named token (rows_over_cap · serialize_fault · s3_fault); never row data.
suspendedAtStringStamped by the automatic suspend flip; cleared by reactivate.

Used by