Skip to content

Ingestions

Ingestions: 25 operations, tagged ingestions in the OpenAPI document.

Method Path Summary
GET /api/ingestion-source-kinds List the source kinds a definition can use
POST /api/ingestion-tests Queue a test of an ingestion’s source
GET /api/ingestion-tests/{id} Get a queued test and, once a runtime has answered, its result
GET /api/ingestions List ingestions
POST /api/ingestions Create an ingestion
GET /api/ingestions/{id} Get an ingestion by id
PUT /api/ingestions/{id} Save a definition as the next version: made live with promote, a draft awaiting promote without it; a definition an existing version says is not saved again
DELETE /api/ingestions/{id} Delete an ingestion
GET /api/ingestions/{id}/config Get the config entry the ingestion’s source names (its settings in this environment)
PUT /api/ingestions/{id}/config Write the config entry the ingestion’s source names, after checking it against every ingestion that names it
DELETE /api/ingestions/{id}/config Delete the config entry the ingestion’s source names; the ingestions that name it wait for it
GET /api/ingestions/{id}/definition Get an ingestion as a definition file (YAML)
GET /api/ingestions/{id}/failures List the failures runtimes reported for an ingestion
POST /api/ingestions/{id}/failures/{failureId}/dismiss Dismiss a failure (a notice stops showing on the ingestion)
GET /api/ingestions/{id}/history List the audit history of an ingestion
POST /api/ingestions/{id}/pause Pause an ingestion
POST /api/ingestions/{id}/resume Resume a paused ingestion
GET /api/ingestions/{id}/secrets List the secrets the live definition binds and when each runtime last fetched them (names only, never values)
GET /api/ingestions/{id}/trace Read an ingestion’s trace window: whether tracing is on and until when
PUT /api/ingestions/{id}/trace Switch tracing on: a new window every runtime that runs the ingestion captures under
DELETE /api/ingestions/{id}/trace Switch tracing off now (idempotent)
GET /api/ingestions/{id}/trace-log List the trace records runtimes captured for an ingestion, newest first
GET /api/ingestions/{id}/versions List an ingestion’s saved versions
POST /api/ingestions/{id}/versions Save a definition as the next version (a definition an existing version says is not saved again)
POST /api/ingestions/{id}/versions/{version}/live Make a saved version the live one

List the source kinds a definition can use

Operation ID: listIngestionSourceKinds

Responses

Status Description Body
200 OK application/json IngestionSourceKindListResponse
default Error application/json ErrorModel

Queue a test of an ingestion’s source

Operation ID: testIngestionConnection

Request body (required)

Content type Schema
application/json TestIngestionRequest

Responses

Status Description Body
202 Accepted application/json IngestionTestResponse
default Error application/json ErrorModel

Get a queued test and, once a runtime has answered, its result

Operation ID: getIngestionTest

Parameters

Name In Type Required Description
id path string yes

Responses

Status Description Body
200 OK application/json IngestionTestResponse
default Error application/json ErrorModel

List ingestions

Operation ID: listIngestions

Parameters

Name In Type Required Description
applicationCode query string no Only the ingestions of this application
clientId query string no Only the ingestions of this client: its id or identifier
q query string no Matches the code or name, ignoring case
status query string no One of: ACTIVE, PAUSED.
kind query string no A source kind; for an extension’s kind, its type
after query string no Cursor from a previous page’s nextCursor
limit query integer (int64) no Page size (default 50, at most 200) Minimum 0. Maximum 200.

Responses

Status Description Body
200 OK application/json IngestionListResponse
default Error application/json ErrorModel

Create an ingestion

Operation ID: createIngestion

Request body (required)

Content type Schema
application/json CreateIngestionRequest

Responses

Status Description Body
201 Created application/json IngestionResponse
default Error application/json ErrorModel

Get an ingestion by id

Operation ID: getIngestion

Parameters

Name In Type Required Description
id path string yes

Responses

Status Description Body
200 OK application/json IngestionResponse
default Error application/json ErrorModel

Save a definition as the next version: made live with promote, a draft awaiting promote without it; a definition an existing version says is not saved again

Operation ID: updateIngestion

Parameters

Name In Type Required Description
id path string yes

Request body (required)

Content type Schema
application/json UpdateIngestionRequest

Responses

Status Description Body
200 OK application/json IngestionResponse
default Error application/json ErrorModel

Delete an ingestion

Operation ID: deleteIngestion

Parameters

Name In Type Required Description
id path string yes

Responses

Status Description Body
204 No Content none
default Error application/json ErrorModel

Get the config entry the ingestion’s source names (its settings in this environment)

Operation ID: getIngestionConfig

Parameters

Name In Type Required Description
id path string yes

Responses

Status Description Body
200 OK application/json IngestionConfigResponse
default Error application/json ErrorModel

Write the config entry the ingestion’s source names, after checking it against every ingestion that names it

Operation ID: setIngestionConfig

Parameters

Name In Type Required Description
id path string yes

Request body (required)

Content type Schema
application/json SetIngestionConfigRequest

Responses

Status Description Body
200 OK application/json IngestionConfigWritten
default Error application/json ErrorModel

Delete the config entry the ingestion’s source names; the ingestions that name it wait for it

Operation ID: deleteIngestionConfig

Parameters

Name In Type Required Description
id path string yes

Responses

Status Description Body
200 OK application/json IngestionConfigDeletedResponse
default Error application/json ErrorModel

Get an ingestion as a definition file (YAML)

Operation ID: getIngestionDefinition

Parameters

Name In Type Required Description
id path string yes

Responses

Status Description Body
200 The definition file fcdev ingest apply reads back application/yaml string
default Error application/json ErrorModel

List the failures runtimes reported for an ingestion

Operation ID: listIngestionFailures

Parameters

Name In Type Required Description
id path string yes
after query string no Cursor from a previous page’s nextCursor
limit query integer (int64) no Page size (default 50, at most 200) Minimum 0. Maximum 200.
undismissed query boolean no Only the failures nobody has dismissed
category query string no Only this category; rejected is the notices One of: payload, rejected.

Responses

Status Description Body
200 OK application/json IngestionFailureListResponse
default Error application/json ErrorModel

POST /api/ingestions/{id}/failures/{failureId}/dismiss

Section titled “POST /api/ingestions/{id}/failures/{failureId}/dismiss”

Dismiss a failure (a notice stops showing on the ingestion)

Operation ID: dismissIngestionFailure

Parameters

Name In Type Required Description
id path string yes
failureId path string yes

Responses

Status Description Body
200 OK application/json IngestionFailureResponse
default Error application/json ErrorModel

List the audit history of an ingestion

Operation ID: listIngestionHistory

Parameters

Name In Type Required Description
id path string yes
limit query integer (int64) no Page size (default 50, at most 200) Minimum 0. Maximum 200.
offset query integer (int64) no Minimum 0.

Responses

Status Description Body
200 OK application/json IngestionHistoryResponse
default Error application/json ErrorModel

Pause an ingestion

Operation ID: pauseIngestion

Parameters

Name In Type Required Description
id path string yes

Responses

Status Description Body
200 OK application/json IngestionResponse
default Error application/json ErrorModel

Resume a paused ingestion

Operation ID: resumeIngestion

Parameters

Name In Type Required Description
id path string yes

Responses

Status Description Body
200 OK application/json IngestionResponse
default Error application/json ErrorModel

List the secrets the live definition binds and when each runtime last fetched them (names only, never values)

Operation ID: listIngestionSecrets

Parameters

Name In Type Required Description
id path string yes

Responses

Status Description Body
200 OK application/json IngestionSecretListResponse
default Error application/json ErrorModel

Read an ingestion’s trace window: whether tracing is on and until when

Operation ID: getIngestionTrace

Parameters

Name In Type Required Description
id path string yes

Responses

Status Description Body
200 OK application/json IngestionTraceStateResponse
default Error application/json ErrorModel

Switch tracing on: a new window every runtime that runs the ingestion captures under

Operation ID: enableIngestionTrace

Parameters

Name In Type Required Description
id path string yes

Request body (required)

Content type Schema
application/json IngestionEnableTraceRequest

Responses

Status Description Body
200 OK application/json IngestionTraceStateResponse
default Error application/json ErrorModel

Switch tracing off now (idempotent)

Operation ID: disableIngestionTrace

Parameters

Name In Type Required Description
id path string yes

Responses

Status Description Body
204 No Content none
default Error application/json ErrorModel

List the trace records runtimes captured for an ingestion, newest first

Operation ID: listIngestionTraceLog

Parameters

Name In Type Required Description
id path string yes
kind query string no Only this record kind One of: poll, exchange, http, error.
runtimeId query string no Only this runtime’s records
captureId query string no One capture’s records
since query string no Oldest record time: RFC 3339 or unix milliseconds
until query string no Newest record time: RFC 3339 or unix milliseconds
limit query integer (int64) no Page size, default 100, max 500
cursor query string no nextCursor of the previous page

Responses

Status Description Body
200 OK application/json IngestionTraceLogResponse
default Error application/json ErrorModel

List an ingestion’s saved versions

Operation ID: listIngestionVersions

Parameters

Name In Type Required Description
id path string yes

Responses

Status Description Body
200 OK application/json IngestionVersionListResponse
default Error application/json ErrorModel

Save a definition as the next version (a definition an existing version says is not saved again)

Operation ID: saveIngestionVersion

Parameters

Name In Type Required Description
id path string yes

Request body (required)

Content type Schema
application/json SaveIngestionVersionRequest

Responses

Status Description Body
201 Created application/json IngestionVersionResponse
default Error application/json ErrorModel

POST /api/ingestions/{id}/versions/{version}/live

Section titled “POST /api/ingestions/{id}/versions/{version}/live”

Make a saved version the live one

Operation ID: makeIngestionVersionLive

Parameters

Name In Type Required Description
id path string yes
version path integer (int64) yes Minimum 1.

Responses

Status Description Body
200 OK application/json IngestionResponse
default Error application/json ErrorModel
Field Type Required Description
application string yes Code of the owning application, which must be of type INTEGRATION
client string yes The client’s id (clt_…) or identifier
code string yes Lowercase letters, digits and hyphens, unique within the application and client
keepFailedPayloads boolean no Keep the first 2 KB of a payload that failed. Off unless the client has agreed.
live boolean no Make the first version live. Default true; without the promote permission the first version is saved as a draft whatever this says (the answer’s save says so), and someone who holds promote makes it live. false always saves a draft.
name string yes
note string no
source any yes Where the data comes from: {kind: http|sftp|s3|sqs|rabbitmq|database-poll|api-poll|custom, …}
split any yes How a payload becomes records: {kind: none|csv|json|xml, …}
target Target yes
Field Type Required Description
code string yes
field string yes
message string yes
Field Type Required Description
ingestions string[] yes The codes of every ingestion that names the entry; each is now MISSING and does not run until the entry is set again
key string yes
Field Type Required Description
key string no The entry’s key; absent while the settings are inline
problems FieldError[] no Why the entry is INVALID
schemaChecked boolean yes A value is checked against the kind’s schema when written: always for a built-in kind, for an extension’s only while a live runtime reports its settings
secrets IngestionConfigSecret[] no The secret settings of the entry, for a caller who can update ingestions: the path of each setting, the name of its secret and whether the secret has a value. Never a value. Write a value with secretFields (by field) or secrets (by name)
status string yes One of: INLINE, SET, MISSING, INVALID.
updatedAt string (date-time) no
value object no The entry: the kind’s settings as an inline source holds them (an extension kind’s settings are the object itself), and optionally targetUrl. Absent when there is no entry, when it is not an object, and when valueHidden
valueHidden boolean no The entry exists but its value is withheld: it is shown only to a caller who can update ingestions (ingestion:update). The status and problems are shown regardless
Field Type Required Description
field string yes The path of the setting in the entry, such as password or auth.clientSecret
name string no The name of the secret the entry gives the setting; absent when it names none
set boolean yes The secret has a value at this client
updatedAt string no When the value was last set, RFC 3339; absent when not set
Field Type Required Description
key string no The entry’s key; absent while the settings are inline
problems FieldError[] no Why the entry is INVALID
status string yes One of: INLINE, SET, MISSING, INVALID.
updatedAt string (date-time) no
Field Type Required Description
ingestions string[] yes The codes of every ingestion of the application and client that names the entry, which the value was checked against
key string no The entry’s key; absent while the settings are inline
problems FieldError[] no Why the entry is INVALID
schemaChecked boolean yes A value is checked against the kind’s schema when written: always for a built-in kind, for an extension’s only while a live runtime reports its settings
secrets IngestionConfigSecret[] no The secret settings of the entry, for a caller who can update ingestions: the path of each setting, the name of its secret and whether the secret has a value. Never a value. Write a value with secretFields (by field) or secrets (by name)
status string yes One of: INLINE, SET, MISSING, INVALID.
updatedAt string (date-time) no
value object no The entry: the kind’s settings as an inline source holds them (an extension kind’s settings are the object itself), and optionally targetUrl. Absent when there is no entry, when it is not an object, and when valueHidden
valueHidden boolean no The entry exists but its value is withheld: it is shown only to a caller who can update ingestions (ingestion:update). The status and problems are shown regardless
warnings string[] no SCHEMA_UNCHECKED when no live runtime reports the kind’s settings, so the value was not checked against them
Field Type Required Description
keepFailedPayloads boolean no Keep the first 2 KB of a payload that failed. Off unless the client has agreed.
name string yes
source any yes Where the data comes from: {kind: http|sftp|s3|sqs|rabbitmq|database-poll|api-poll|custom, …}
split any yes How a payload becomes records: {kind: none|csv|json|xml, …}
target Target yes
Field Type Required Description
sampleEverySecs integer (int64) no A runtime starts a capture at most this often, 1 to 60 seconds (default 5). 400 TRACE_SAMPLE_INVALID otherwise.
windowSecs integer (int64) no How long each runtime captures: 60, 300 or 900 (default 60). 400 TRACE_WINDOW_INVALID otherwise.
Field Type Required Description
failures IngestionFailureResponse[] yes
hasMore boolean yes
nextCursor string no Pass as after to read the next page; absent on the last
Field Type Required Description
afterRecords integer (int64) yes
category string yes payload: a record or payload the runtime could not take. rejected: a notice, the platform refused the runtime’s jobs permanently One of: payload, rejected.
createdAt string (date-time) yes
dismissedAt string (date-time) no
dismissedBy string no The principal who dismissed it
excerpt string no The start of the payload, only for an ingestion that keeps failed payloads
id string yes
kind string yes
message string yes
occurredAt string (date-time) yes
runtimeId string no
version integer (int64) no
Field Type Required Description
details any no The command the operation ran with
id string yes
operation string yes
performedAt string (date-time) yes
principalId string no
principalName string no
Field Type Required Description
entries IngestionHistoryEntry[] yes
hasMore boolean yes
Field Type Required Description
hasMore boolean yes
ingestions IngestionResponse[] yes
nextCursor string no Pass as after to read the next page; absent on the last
Field Type Required Description
applicationCode string yes
applicationId string yes
clientId string yes
clientIdentifier string yes
code string yes
config IngestionConfigStatus yes Where the settings stand: INLINE (in the definition), or the config entry the source names: SET, MISSING (the ingestion does not run until it is set) or INVALID
createdAt string (date-time) yes
id string yes
keepFailedPayloads boolean no Keep the first 2 KB of a payload that failed. Off unless the client has agreed.
latestNotice string no The newest undismissed notice’s message
latestNoticeAt string (date-time) no
latestVersion integer (int64) yes
managedBy string no Id of the set that owns the ingestion; it is read-only until the set is released
name string yes
notices integer (int64) yes Undismissed notices: rejected failures (GET …/failures?category=rejected&undismissed=true)
runtimeNotice string no Set while a running ingestion runs nowhere: ‘no runtime carries this kind’, or, for a polled source, ‘not running: no runtime has held it since <RFC 3339 time>’ once no runtime has held its lease for a lease and two minutes
save IngestionSaveOutcome no What this create or update did: saved and made live, made an existing version live, saved as a draft awaiting promote, matched an existing draft, or changed nothing
source any yes Where the data comes from: {kind: http|sftp|s3|sqs|rabbitmq|database-poll|api-poll|custom, …}
split any yes How a payload becomes records: {kind: none|csv|json|xml, …}
status string yes One of: ACTIVE, PAUSED.
target Target yes
updatedAt string (date-time) yes
version integer (int64) yes
warnings string[] no What the definition says that will not run as meant, such as an sftp source that neither names the server’s host key nor accepts any
Field Type Required Description
awaitingPromote boolean yes The definition is in a version that is not live; someone who holds platform:ingestion:ingestion:promote makes it live
message string yes
outcome string yes UNCHANGED: the live version already says it, nothing written. SAVED: saved as a new version and made live. MADE_LIVE: a saved version that was not live already says it and was made live, nothing new saved. DRAFT: saved as a new version that is not live. DRAFT_EXISTS: a saved version that is not live already says it, nothing saved One of: UNCHANGED, SAVED, MADE_LIVE, DRAFT, DRAFT_EXISTS.
version integer (int64) yes The live version (UNCHANGED, SAVED, MADE_LIVE) or the draft (DRAFT, DRAFT_EXISTS)
Field Type Required Description
fetchCount integer (int64) yes How many times this runtime has fetched it
lastFetchedAt string (date-time) yes
principalId string no The runtime’s service account that made it
runtimeId string yes
version integer (int64) yes The live version the last fetch was made under
Field Type Required Description
namesHidden boolean no The source’s settings are in a config entry and the secret names it binds are withheld: they are shown only to a caller who can update ingestions (ingestion:update)
secrets IngestionSecretResponse[] yes
Field Type Required Description
bound boolean yes The live definition names it, so its runtime may fetch it; false for a name only fetched under an earlier live version
fetches IngestionSecretFetchResponse[] yes Per runtime, newest first; empty when no runtime has fetched it
name string yes
Field Type Required Description
kinds IngestionSourceKindResponse[] yes
Field Type Required Description
builtIn boolean yes
description string no
kind string yes
requiredPermission string no Creating or changing an ingestion of this kind needs this permission
settings any no The kind’s settings, as the runtime describes them for the form
singleOwner boolean yes
Field Type Required Description
completedAt string (date-time) no
createdAt string (date-time) yes
excerpt string no The start of the answer, only for an ingestion that keeps failed payloads
expiresAt string (date-time) yes
id string yes
ingestionId string no
kind string yes
notice string no Set while no live runtime carries the kind: the test waits, nothing has failed
outcome string no One of: RESULTS, NO_RESULTS, REFUSED, FAILED, NOT_SUPPORTED.
records integer (int64) no How many records the split makes of the answer, when it answered
runtimeId string no
status string yes PENDING until a runtime takes it, RUNNING while it tries, DONE with its result, EXPIRED when none answered in time One of: PENDING, RUNNING, DONE, EXPIRED.
steps string[] no What the runtime did, step by step, for a person
Field Type Required Description
nextCursor string | null yes Pass as cursor to fetch the next (older) page; null on the last page
records IngestionTraceRecordResponse[] yes
Field Type Required Description
at string (date-time) yes
captureId string yes Shared by the records of one capture: a poll cycle or one exchange
data any yes The record’s data, by kind
id string yes
kind string yes One of: poll, exchange, http, error.
level string yes
message string yes
redacted boolean no Sensitive parts withheld (no platform:ingestion:trace:view-bodies): an http record keeps the client, method, URL path, status, sizes, duration, attempt and failure; an exchange record its counts and outcome; a poll record all but its error; an error record nothing in data. The message of an http, exchange or error record is then rebuilt from what stays.
runtimeId string yes
version integer (int32) yes
windowId string yes
Field Type Required Description
enabledAt string (date-time) | null yes
enabledBy string | null yes
hardStop string (date-time) | null yes No runtime captures past this; switching off sets it to the switch-off time
live boolean yes The window is open now (hardStop is in the future)
maxWindowSecs integer (int64) yes The longest window that may be switched on
sampleEverySecs integer (int64) | null yes A runtime starts a capture of this ingestion at most this often
windowId string | null yes A new id every time tracing is switched on
windowSecs integer (int64) | null yes How long each runtime captures, counted from when it first sees the window
Field Type Required Description
versions IngestionVersionResponse[] yes
Field Type Required Description
appliedFrom string no Id of the set apply that produced the version
createdAt string (date-time) yes
createdBy string no
digest string no sha256 (hex) of the definition’s canonical form; a save whose definition has the digest of a saved version reuses that version
draft boolean yes A version saved after the live one (or while none is live) that is not live: it waits for someone who holds promote to make it live
id string yes
keepFailedPayloads boolean no Keep the first 2 KB of a payload that failed. Off unless the client has agreed.
live boolean yes
name string yes
note string no
save IngestionSaveOutcome no What this save did (the answer of POST …/versions only)
source any yes Where the data comes from: {kind: http|sftp|s3|sqs|rabbitmq|database-poll|api-poll|custom, …}
split any yes How a payload becomes records: {kind: none|csv|json|xml, …}
target Target yes
version integer (int64) yes
warnings string[] no What the saved definition says that will not run as meant, such as CONFIG_MISSING for a config entry that is not set (the answer of POST …/versions only)
Field Type Required Description
keepFailedPayloads boolean no Keep the first 2 KB of a payload that failed. Off unless the client has agreed.
live boolean no Also make the saved version live (needs the promote permission). Default false.
name string yes
note string no
source any yes Where the data comes from: {kind: http|sftp|s3|sqs|rabbitmq|database-poll|api-poll|custom, …}
split any yes How a payload becomes records: {kind: none|csv|json|xml, …}
target Target yes
Field Type Required Description
secretFields map<string, string> no Secret values by the path of the setting they belong to (password, credential.secretAccessKey, auth.clientSecret). The platform names the secret: the name the value gives the setting, else the one the entry has now, else the entry’s key and the path in kebab case (mix-positions-client-secret), writes the name into the value and the secret under it
secrets map<string, string> no Secret values by secret name, written with the entry as SECRET values of the application’s secrets section at the ingestion’s client. Each name must be one the value names. Needs no bind-secrets permission for a name the write gives a value
value object yes The entry: the kind’s settings as an inline source holds them, and optionally targetUrl. A secret setting holds the secret’s name
Field Type Required Description
batchSize integer (int64) yes
code string yes A dispatch job’s code, application:subdomain:aggregate:action; for an EVENT target, the code of an existing event type
connection string no
dataOnly boolean no DISPATCH_JOB only: deliver the record as it is, with its own content type, instead of the platform envelope
kind string no What each record becomes; DISPATCH_JOB when absent One of: DISPATCH_JOB, EVENT.
mode string no Not for an EVENT target
pool string no Not for an EVENT target
serviceAccount string no
targetUrl string no The delivery URL. May be left out only when the source names a config entry whose value gives it (exactly one of the two). Not for an EVENT target
wrapNonJson boolean no EVENT only: deliver a record that is not JSON as {contentType, body}. Required unless the records are known to be JSON
Field Type Required Description
application string no With definition: code of the owning application, which must be of type INTEGRATION
client string no With definition: the client’s id (clt_…) or identifier
code string no With definition: the ingestion’s code, which is the config entry’s key for a source that says config: true
definition IngestionDefinition no A definition to test without saving it
ingestionId string no Test this saved ingestion’s live definition
Field Type Required Description
expectedVersion integer (int64) yes The live version the caller read (0 when none is live); a different current version is a 409
keepFailedPayloads boolean no Keep the first 2 KB of a payload that failed. Off unless the client has agreed.
name string yes
note string no
source any yes Where the data comes from: {kind: http|sftp|s3|sqs|rabbitmq|database-poll|api-poll|custom, …}
split any yes How a payload becomes records: {kind: none|csv|json|xml, …}
target Target yes