Ingestion API (1.0.0)
Download OpenAPI specification:Download
The Ingestion API lets you connect third-party services and platforms with Algolia and schedule tasks to ingest your data. The Ingestion API powers the no-code data connectors.
The base URLs for requests to the Ingestion API are:
https://data.us.algolia.com
https://data.eu.algolia.com
Use the URL that matches your analytics region.
All requests must use HTTPS.
To authenticate your API requests, add these headers:
x-algolia-application-id
. Your Algolia application ID.x-algolia-api-key
. An API key with the necessary permissions to make the request. The required access control list (ACL) to make a request is listed in each endpoint's reference.
You can find your application ID and API key in the Algolia dashboard.
Response bodies are JSON objects. Deleting a user token returns an empty response body with rate-limiting information as headers.
Successful responses return a 2xx
status. Client errors return a 4xx
status. Server errors are indicated by a 5xx
status.
Error responses have a message
property with more information.
The Insights API doesn't validate if the event parameters such as indexName
, objectIDs
, or userToken
,
correspond to anything in the Search API. It justs checks if they're formatted correctly.
Check the Events health section,
whether your events can be used for Algolia features such as Analytics, or Dynamic Re-Ranking.
The current version of the Insights API is version 1, as indicated by the /1/
in each endpoint's URL.
List authentication resources
Retrieves a list of all authentication resources.
query Parameters
itemsPerPage | integer [ 1 .. 100 ] Default: 10 Number of items per page. |
order | string Default: "desc" Enum: "asc" "desc" Sort order of the response, ascending or descending. |
page | integer >= 1 Page number of the paginated API response. |
Array of (Platform (Platform (string) or Platform (null))) or platformNone (string) Example: platform=commercetools,none Ecommerce platform for which to retrieve authentication resources. | |
sort | string Default: "createdAt" Enum: "auth_type" "createdAt" "name" "platform" "updatedAt" Property by which to sort the list of authentication resources. |
type | Array of strings Items Enum: "algolia" "algoliaInsights" "apiKey" "basic" "googleServiceAccount" "oauth" Example: type=basic,oauth Type of authentication resource to retrieve. |
Responses
Request samples
- C#
- Go
- Java
- JavaScript
- Kotlin
- PHP
- Python
- Ruby
- Scala
- Swift
// Initialize the client var client = new IngestionClient( new IngestionConfig("YOUR_APP_ID", "YOUR_API_KEY", "YOUR_APP_ID_REGION") ); // Call the API var response = await client.GetAuthenticationsAsync();
Response samples
- 200
- 400
{- "authentications": [
- {
- "authenticationID": "6c02aeb1-775e-418e-870b-1faccd4b2c0f",
- "type": "algolia",
- "name": "string",
- "platform": null,
- "input": {
- "clientEmail": "service-account-name@project-id.iam.gserviceaccount.com",
- "privateKey": "string"
}, - "createdAt": "string",
- "updatedAt": "string"
}
], - "pagination": {
- "nbPages": 1,
- "page": 1,
- "nbItems": 0,
- "itemsPerPage": 10
}
}
Create an authentication resource
Creates a new authentication resource.
Request Body schema: application/jsonrequired
required | Google service account (object) or Basic (object) or API key (object) or OAuth (object) or Algolia (object) or Algolia Insights (object) |
name required | string Descriptive name for the resource. |
type required | string Enum: "algolia" "algoliaInsights" "apiKey" "basic" "googleServiceAccount" "oauth" Type of authentication. This determines the type of credentials required in the |
string or null Default: null |
Responses
Request samples
- C#
- Go
- Java
- JavaScript
- Kotlin
- PHP
- Python
- Ruby
- Scala
- Swift
// Initialize the client var client = new IngestionClient( new IngestionConfig("YOUR_APP_ID", "YOUR_API_KEY", "YOUR_APP_ID_REGION") ); // Call the API var response = await client.CreateAuthenticationAsync( new AuthenticationCreate { Type = Enum.Parse<AuthenticationType>("Oauth"), Name = "authName", Input = new AuthInput( new AuthOAuth { Url = "http://test.oauth", ClientId = "myID", ClientSecret = "mySecret", } ), } );
Response samples
- 200
- 400
{- "authenticationID": "6c02aeb1-775e-418e-870b-1faccd4b2c0f",
- "name": "string",
- "createdAt": "string"
}
Search for authentication resources
Searches for authentication resources.
Request Body schema: application/jsonrequired
authenticationIDs required | Array of strings |
Responses
Request samples
- C#
- Go
- Java
- JavaScript
- Kotlin
- PHP
- Python
- Ruby
- Scala
- Swift
// Initialize the client var client = new IngestionClient( new IngestionConfig("YOUR_APP_ID", "YOUR_API_KEY", "YOUR_APP_ID_REGION") ); // Call the API var response = await client.SearchAuthenticationsAsync( new AuthenticationSearch { AuthenticationIDs = new List<string> { "6c02aeb1-775e-418e-870b-1faccd4b2c0f", "947ac9c4-7e58-4c87-b1e7-14a68e99699a" }, } );
Response samples
- 200
- 400
[- {
- "authenticationID": "6c02aeb1-775e-418e-870b-1faccd4b2c0f",
- "type": "algolia",
- "name": "string",
- "platform": null,
- "input": {
- "clientEmail": "service-account-name@project-id.iam.gserviceaccount.com",
- "privateKey": "string"
}, - "createdAt": "string",
- "updatedAt": "string"
}
]
Retrieve an authentication resource
Retrieves an authentication resource by its ID.
path Parameters
authenticationID required | string Example: 6c02aeb1-775e-418e-870b-1faccd4b2c0f Unique identifier of an authentication resource. |
Responses
Request samples
- C#
- Go
- Java
- JavaScript
- Kotlin
- PHP
- Python
- Ruby
- Scala
- Swift
// Initialize the client var client = new IngestionClient( new IngestionConfig("YOUR_APP_ID", "YOUR_API_KEY", "YOUR_APP_ID_REGION") ); // Call the API var response = await client.GetAuthenticationAsync("6c02aeb1-775e-418e-870b-1faccd4b2c0f");
Response samples
- 200
- 400
{- "authenticationID": "6c02aeb1-775e-418e-870b-1faccd4b2c0f",
- "type": "algolia",
- "name": "string",
- "platform": null,
- "input": {
- "clientEmail": "service-account-name@project-id.iam.gserviceaccount.com",
- "privateKey": "string"
}, - "createdAt": "string",
- "updatedAt": "string"
}
Update an authentication resource
Updates an authentication resource.
path Parameters
authenticationID required | string Example: 6c02aeb1-775e-418e-870b-1faccd4b2c0f Unique identifier of an authentication resource. |
Request Body schema: application/jsonrequired
Google service account (object) or Basic (object) or API key (object) or OAuth (object) or Algolia (object) or Algolia Insights (object) | |
name | string Descriptive name for the resource. |
string or null Default: null | |
type | string Enum: "algolia" "algoliaInsights" "apiKey" "basic" "googleServiceAccount" "oauth" Type of authentication. This determines the type of credentials required in the |
Responses
Request samples
- C#
- Go
- Java
- JavaScript
- Kotlin
- PHP
- Python
- Ruby
- Scala
- Swift
// Initialize the client var client = new IngestionClient( new IngestionConfig("YOUR_APP_ID", "YOUR_API_KEY", "YOUR_APP_ID_REGION") ); // Call the API var response = await client.UpdateAuthenticationAsync( "6c02aeb1-775e-418e-870b-1faccd4b2c0f", new AuthenticationUpdate { Name = "newName", } );
Response samples
- 200
- 400
{- "authenticationID": "6c02aeb1-775e-418e-870b-1faccd4b2c0f",
- "name": "string",
- "updatedAt": "string"
}
Delete an authentication resource
Deletes an authentication resource. You can't delete authentication resources that are used by a source or a destination.
path Parameters
authenticationID required | string Example: 6c02aeb1-775e-418e-870b-1faccd4b2c0f Unique identifier of an authentication resource. |
Responses
Request samples
- C#
- Go
- Java
- JavaScript
- Kotlin
- PHP
- Python
- Ruby
- Scala
- Swift
// Initialize the client var client = new IngestionClient( new IngestionConfig("YOUR_APP_ID", "YOUR_API_KEY", "YOUR_APP_ID_REGION") ); // Call the API var response = await client.DeleteAuthenticationAsync("6c02aeb1-775e-418e-870b-1faccd4b2c0f");
Response samples
- 200
- 400
{- "deletedAt": "string"
}
Destinations are Algolia products or features where your data should be used, such as a search index or events.
Algolia destinations require authentication with the algolia
type.
You can reference authentications by their ID when creating destinations.
List destinations
Retrieves a list of destinations.
query Parameters
authenticationID | Array of strings Example: authenticationID=6c02aeb1-775e-418e-870b-1faccd4b2c0f Authentication ID used by destinations. |
itemsPerPage | integer [ 1 .. 100 ] Default: 10 Number of items per page. |
order | string Default: "desc" Enum: "asc" "desc" Sort order of the response, ascending or descending. |
page | integer >= 1 Page number of the paginated API response. |
sort | string Default: "createdAt" Enum: "createdAt" "name" "type" "updatedAt" Example: sort=type Property by which to sort the destinations. |
type | Array of strings Items Enum: "insights" "search" Example: type=search Destination type. |
Responses
Request samples
- C#
- Go
- Java
- JavaScript
- Kotlin
- PHP
- Python
- Ruby
- Scala
- Swift
// Initialize the client var client = new IngestionClient( new IngestionConfig("YOUR_APP_ID", "YOUR_API_KEY", "YOUR_APP_ID_REGION") ); // Call the API var response = await client.GetDestinationsAsync();
Response samples
- 200
- 400
{- "destinations": [
- {
- "destinationID": "6c02aeb1-775e-418e-870b-1faccd4b2c0f",
- "type": "insights",
- "name": "string",
- "input": {
- "indexPrefix": "string"
}, - "createdAt": "string",
- "updatedAt": "string",
- "authenticationID": "6c02aeb1-775e-418e-870b-1faccd4b2c0f"
}
], - "pagination": {
- "nbPages": 1,
- "page": 1,
- "nbItems": 0,
- "itemsPerPage": 10
}
}
Create a destination
Creates a new destination.
Request Body schema: application/jsonrequired
required | DestinationIndexPrefix (object) or DestinationIndexName (object) |
name required | string Descriptive name for the resource. |
type required | string Enum: "insights" "search" Destination type.
|
authenticationID | string Universally unique identifier (UUID) of an authentication resource. |
Responses
Request samples
- C#
- Go
- Java
- JavaScript
- Kotlin
- PHP
- Python
- Ruby
- Scala
- Swift
// Initialize the client var client = new IngestionClient( new IngestionConfig("YOUR_APP_ID", "YOUR_API_KEY", "YOUR_APP_ID_REGION") ); // Call the API var response = await client.CreateDestinationAsync( new DestinationCreate { Type = Enum.Parse<DestinationType>("Search"), Name = "destinationName", Input = new DestinationInput(new DestinationIndexPrefix { IndexPrefix = "prefix_", }), AuthenticationID = "6c02aeb1-775e-418e-870b-1faccd4b2c0f", } );
Response samples
- 200
- 400
{- "destinationID": "6c02aeb1-775e-418e-870b-1faccd4b2c0f",
- "name": "string",
- "createdAt": "string"
}
Search for destinations
Searches for destinations.
Request Body schema: application/jsonrequired
destinationIDs required | Array of strings |
Responses
Request samples
- C#
- Go
- Java
- JavaScript
- Kotlin
- PHP
- Python
- Ruby
- Scala
- Swift
// Initialize the client var client = new IngestionClient( new IngestionConfig("YOUR_APP_ID", "YOUR_API_KEY", "YOUR_APP_ID_REGION") ); // Call the API var response = await client.SearchDestinationsAsync( new DestinationSearch { DestinationIDs = new List<string> { "6c02aeb1-775e-418e-870b-1faccd4b2c0f", "947ac9c4-7e58-4c87-b1e7-14a68e99699a" }, } );
Response samples
- 200
- 400
[- {
- "destinationID": "6c02aeb1-775e-418e-870b-1faccd4b2c0f",
- "type": "insights",
- "name": "string",
- "input": {
- "indexPrefix": "string"
}, - "createdAt": "string",
- "updatedAt": "string",
- "authenticationID": "6c02aeb1-775e-418e-870b-1faccd4b2c0f"
}
]
Retrieve a destination
Retrieves a destination by its ID.
path Parameters
destinationID required | string Example: 6c02aeb1-775e-418e-870b-1faccd4b2c0f Unique identifier of a destination. |
Responses
Request samples
- C#
- Go
- Java
- JavaScript
- Kotlin
- PHP
- Python
- Ruby
- Scala
- Swift
// Initialize the client var client = new IngestionClient( new IngestionConfig("YOUR_APP_ID", "YOUR_API_KEY", "YOUR_APP_ID_REGION") ); // Call the API var response = await client.GetDestinationAsync("6c02aeb1-775e-418e-870b-1faccd4b2c0f");
Response samples
- 200
- 400
{- "destinationID": "6c02aeb1-775e-418e-870b-1faccd4b2c0f",
- "type": "insights",
- "name": "string",
- "input": {
- "indexPrefix": "string"
}, - "createdAt": "string",
- "updatedAt": "string",
- "authenticationID": "6c02aeb1-775e-418e-870b-1faccd4b2c0f"
}
Update a destination
Updates the destination by its ID.
path Parameters
destinationID required | string Example: 6c02aeb1-775e-418e-870b-1faccd4b2c0f Unique identifier of a destination. |
Request Body schema: application/jsonrequired
authenticationID | string Universally unique identifier (UUID) of an authentication resource. |
DestinationIndexPrefix (object) or DestinationIndexName (object) | |
name | string Descriptive name for the resource. |
type | string Enum: "insights" "search" Destination type.
|
Responses
Request samples
- C#
- Go
- Java
- JavaScript
- Kotlin
- PHP
- Python
- Ruby
- Scala
- Swift
// Initialize the client var client = new IngestionClient( new IngestionConfig("YOUR_APP_ID", "YOUR_API_KEY", "YOUR_APP_ID_REGION") ); // Call the API var response = await client.UpdateDestinationAsync( "6c02aeb1-775e-418e-870b-1faccd4b2c0f", new DestinationUpdate { Name = "newName", } );
Response samples
- 200
- 400
{- "destinationID": "6c02aeb1-775e-418e-870b-1faccd4b2c0f",
- "name": "string",
- "updatedAt": "string"
}
Delete a destination
Deletes a destination by its ID. You can't delete destinations that are referenced in tasks.
path Parameters
destinationID required | string Example: 6c02aeb1-775e-418e-870b-1faccd4b2c0f Unique identifier of a destination. |
Responses
Request samples
- C#
- Go
- Java
- JavaScript
- Kotlin
- PHP
- Python
- Ruby
- Scala
- Swift
// Initialize the client var client = new IngestionClient( new IngestionConfig("YOUR_APP_ID", "YOUR_API_KEY", "YOUR_APP_ID_REGION") ); // Call the API var response = await client.DeleteDestinationAsync("6c02aeb1-775e-418e-870b-1faccd4b2c0f");
Response samples
- 200
- 400
{- "deletedAt": "string"
}
Check the status and details of your task runs. A run is one instance of a configured task.
List task runs
Retrieve a list of task runs.
query Parameters
endDate | string Date in RFC 3339 format for the latest run to retrieve. By default, the current day is used. |
itemsPerPage | integer [ 1 .. 100 ] Default: 10 Number of items per page. |
order | string Default: "desc" Enum: "asc" "desc" Sort order of the response, ascending or descending. |
page | integer >= 1 Page number of the paginated API response. |
sort | string Default: "createdAt" Enum: "createdAt" "status" "updatedAt" Property by which to sort the list of task runs. |
startDate | string Date in RFC 3339 format for the earliest run to retrieve. By default, the current day minus seven days is used. |
status | Array of strings Items Enum: "created" "finished" "idled" "skipped" "started" Run status for filtering the list of task runs. |
taskID | string Example: taskID=6c02aeb1-775e-418e-870b-1faccd4b2c0f Task ID for filtering the list of task runs. |
Responses
Request samples
- C#
- Go
- Java
- JavaScript
- Kotlin
- PHP
- Python
- Ruby
- Scala
- Swift
// Initialize the client var client = new IngestionClient( new IngestionConfig("YOUR_APP_ID", "YOUR_API_KEY", "YOUR_APP_ID_REGION") ); // Call the API var response = await client.GetRunsAsync();
Response samples
- 200
- 400
{- "runs": [
- {
- "runID": "6c02aeb1-775e-418e-870b-1faccd4b2c0f",
- "appID": "string",
- "taskID": "6c02aeb1-775e-418e-870b-1faccd4b2c0f",
- "status": "created",
- "progress": {
- "expectedNbOfEvents": 0,
- "receivedNbOfEvents": 0
}, - "outcome": "failure",
- "failureThreshold": 100,
- "reason": "string",
- "reasonCode": "blocking",
- "type": "discover",
- "createdAt": "string",
- "startedAt": "string",
- "finishedAt": "string"
}
], - "pagination": {
- "nbPages": 1,
- "page": 1,
- "nbItems": 0,
- "itemsPerPage": 10
}, - "window": {
- "startDate": "string",
- "endDate": "string"
}
}
Retrieve a task run
Retrieve a single task run by its ID.
path Parameters
runID required | string Example: 6c02aeb1-775e-418e-870b-1faccd4b2c0f Unique identifier of a task run. |
Responses
Request samples
- C#
- Go
- Java
- JavaScript
- Kotlin
- PHP
- Python
- Ruby
- Scala
- Swift
// Initialize the client var client = new IngestionClient( new IngestionConfig("YOUR_APP_ID", "YOUR_API_KEY", "YOUR_APP_ID_REGION") ); // Call the API var response = await client.GetRunAsync("6c02aeb1-775e-418e-870b-1faccd4b2c0f");
Response samples
- 200
- 400
{- "runID": "6c02aeb1-775e-418e-870b-1faccd4b2c0f",
- "appID": "string",
- "taskID": "6c02aeb1-775e-418e-870b-1faccd4b2c0f",
- "status": "created",
- "progress": {
- "expectedNbOfEvents": 0,
- "receivedNbOfEvents": 0
}, - "outcome": "failure",
- "failureThreshold": 100,
- "reason": "string",
- "reasonCode": "blocking",
- "type": "discover",
- "createdAt": "string",
- "startedAt": "string",
- "finishedAt": "string"
}
List task run events
Retrieves a list of events for a task run, identified by it's ID.
path Parameters
runID required | string Example: 6c02aeb1-775e-418e-870b-1faccd4b2c0f Unique identifier of a task run. |
query Parameters
endDate | string Date and time in RFC 3339 format for the latest events to retrieve. By default, the current time is used. |
itemsPerPage | integer [ 1 .. 100 ] Default: 10 Number of items per page. |
order | string Default: "desc" Enum: "asc" "desc" Sort order of the response, ascending or descending. |
page | integer >= 1 Page number of the paginated API response. |
sort | string Enum: "publishedAt" "status" "type" Property by which to sort the list of task run events. |
startDate | string Date and time in RFC 3339 format for the earliest events to retrieve. By default, the current time minus three hours is used. |
status | Array of strings Items Enum: "created" "critical" "failed" "retried" "started" "succeeded" Event status for filtering the list of task runs. |
type | Array of strings Items Enum: "fetch" "log" "record" "transform" Event type for filtering the list of task runs. |
Responses
Request samples
- C#
- Go
- Java
- JavaScript
- Kotlin
- PHP
- Python
- Ruby
- Scala
- Swift
// Initialize the client var client = new IngestionClient( new IngestionConfig("YOUR_APP_ID", "YOUR_API_KEY", "YOUR_APP_ID_REGION") ); // Call the API var response = await client.GetEventsAsync("6c02aeb1-775e-418e-870b-1faccd4b2c0f");
Response samples
- 200
- 400
{- "events": [
- {
- "eventID": "6c02aeb1-775e-418e-870b-1faccd4b2c0f",
- "runID": "6c02aeb1-775e-418e-870b-1faccd4b2c0f",
- "parentID": "6c02aeb1-775e-418e-870b-1faccd4b2c0f",
- "status": "created",
- "type": "fetch",
- "batchSize": 10,
- "data": { },
- "publishedAt": "string"
}
], - "pagination": {
- "nbPages": 1,
- "page": 1,
- "nbItems": 0,
- "itemsPerPage": 10
}, - "window": {
- "startDate": "string",
- "endDate": "string"
}
}
Retrieve a task run event
Retrieves a single task run event by its ID.
path Parameters
eventID required | string Example: 6c02aeb1-775e-418e-870b-1faccd4b2c0f Unique identifier of an event. |
runID required | string Example: 6c02aeb1-775e-418e-870b-1faccd4b2c0f Unique identifier of a task run. |
Responses
Request samples
- C#
- Go
- Java
- JavaScript
- Kotlin
- PHP
- Python
- Ruby
- Scala
- Swift
// Initialize the client var client = new IngestionClient( new IngestionConfig("YOUR_APP_ID", "YOUR_API_KEY", "YOUR_APP_ID_REGION") ); // Call the API var response = await client.GetEventAsync( "6c02aeb1-775e-418e-870b-1faccd4b2c0f", "6c02aeb1-775e-418e-870b-1faccd4b2c0c" );
Response samples
- 200
- 400
{- "eventID": "6c02aeb1-775e-418e-870b-1faccd4b2c0f",
- "runID": "6c02aeb1-775e-418e-870b-1faccd4b2c0f",
- "parentID": "6c02aeb1-775e-418e-870b-1faccd4b2c0f",
- "status": "created",
- "type": "fetch",
- "batchSize": 10,
- "data": { },
- "publishedAt": "string"
}
Sources are third-party platforms or services from where you want to ingest your data. Sources may require authentication. To interact with such sources, you can reference an authentication resource by its ID.
List sources
Retrieves a list of sources.
query Parameters
authenticationID | Array of strings Example: authenticationID=10000000-0a75-4000-a000-000000000001,none Authentication IDs of the sources to retrieve. 'none' returns sources that doesn't have an authentication resource. |
itemsPerPage | integer [ 1 .. 100 ] Default: 10 Number of items per page. |
order | string Default: "desc" Enum: "asc" "desc" Sort order of the response, ascending or descending. |
page | integer >= 1 Page number of the paginated API response. |
sort | string Default: "createdAt" Enum: "createdAt" "name" "type" "updatedAt" Property by which to sort the list of sources. |
type | Array of strings Items Enum: "bigcommerce" "bigquery" "commercetools" "csv" "docker" "ga4BigqueryExport" "json" "sfcc" "shopify" Example: type=commercetools,bigcommerce Source type. Some sources require authentication. |
Responses
Request samples
- C#
- Go
- Java
- JavaScript
- Kotlin
- PHP
- Python
- Ruby
- Scala
- Swift
// Initialize the client var client = new IngestionClient( new IngestionConfig("YOUR_APP_ID", "YOUR_API_KEY", "YOUR_APP_ID_REGION") ); // Call the API var response = await client.GetSourcesAsync();
Response samples
- 200
- 400
{- "sources": [
- {
- "sourceID": "6c02aeb1-775e-418e-870b-1faccd4b2c0f",
- "type": "bigcommerce",
- "name": "string",
- "input": {
- "storeKeys": [
- "string"
], - "locales": [
- "fr-FR"
], - "url": "string",
- "projectKey": "string",
- "fallbackIsInStockValue": true,
- "customFields": {
- "inventory": [
- "string"
], - "price": [
- "string"
], - "category": [
- "string"
]
}
}, - "authenticationID": "6c02aeb1-775e-418e-870b-1faccd4b2c0f",
- "createdAt": "string",
- "updatedAt": "string"
}
], - "pagination": {
- "nbPages": 1,
- "page": 1,
- "nbItems": 0,
- "itemsPerPage": 10
}
}
Create a source
Creates a new source.
Request Body schema: application/jsonrequired
required | Commercetools (object) or BigCommerce (object) or JSON (object) or CSV (object) or BigQuery (object) or GA4 BigQuery export (object) or Docker (object) or Shopify (object) |
name required | string Descriptive name of the source. |
type required | string Enum: "bigcommerce" "bigquery" "commercetools" "csv" "docker" "ga4BigqueryExport" "json" "sfcc" "shopify" |
authenticationID | string Universally unique identifier (UUID) of an authentication resource. |
Responses
Request samples
- C#
- Go
- Java
- JavaScript
- Kotlin
- PHP
- Python
- Ruby
- Scala
- Swift
// Initialize the client var client = new IngestionClient( new IngestionConfig("YOUR_APP_ID", "YOUR_API_KEY", "YOUR_APP_ID_REGION") ); // Call the API var response = await client.CreateSourceAsync( new SourceCreate { Type = Enum.Parse<SourceType>("Commercetools"), Name = "sourceName", Input = new SourceInput( new SourceCommercetools { StoreKeys = new List<string> { "myStore" }, Locales = new List<string> { "de" }, Url = "http://commercetools.com", ProjectKey = "keyID", } ), AuthenticationID = "6c02aeb1-775e-418e-870b-1faccd4b2c0f", } );
Response samples
- 200
- 400
{- "sourceID": "6c02aeb1-775e-418e-870b-1faccd4b2c0f",
- "name": "string",
- "createdAt": "string"
}
Validates a source payload
Validates a source payload to ensure it can be created and that the data source can be reached by Algolia.
Request Body schema: application/json
required | Commercetools (object) or BigCommerce (object) or JSON (object) or CSV (object) or BigQuery (object) or GA4 BigQuery export (object) or Docker (object) or Shopify (object) |
name required | string Descriptive name of the source. |
type required | string Enum: "bigcommerce" "bigquery" "commercetools" "csv" "docker" "ga4BigqueryExport" "json" "sfcc" "shopify" |
authenticationID | string Universally unique identifier (UUID) of an authentication resource. |
Responses
Request samples
- C#
- Go
- Java
- JavaScript
- Kotlin
- PHP
- Python
- Ruby
- Scala
- Swift
// Initialize the client var client = new IngestionClient( new IngestionConfig("YOUR_APP_ID", "YOUR_API_KEY", "YOUR_APP_ID_REGION") ); // Call the API var response = await client.ValidateSourceAsync( new SourceCreate { Type = Enum.Parse<SourceType>("Commercetools"), Name = "sourceName", Input = new SourceInput( new SourceCommercetools { StoreKeys = new List<string> { "myStore" }, Locales = new List<string> { "de" }, Url = "http://commercetools.com", ProjectKey = "keyID", } ), AuthenticationID = "6c02aeb1-775e-418e-870b-1faccd4b2c0f", } );
Response samples
- 200
- 400
{- "runID": "6c02aeb1-775e-418e-870b-1faccd4b2c0f",
- "data": [
- { }
], - "events": [
- {
- "eventID": "6c02aeb1-775e-418e-870b-1faccd4b2c0f",
- "runID": "6c02aeb1-775e-418e-870b-1faccd4b2c0f",
- "parentID": "6c02aeb1-775e-418e-870b-1faccd4b2c0f",
- "status": "created",
- "type": "fetch",
- "batchSize": 10,
- "data": { },
- "publishedAt": "string"
}
], - "message": "string"
}
Search for sources
Searches for sources.
Request Body schema: application/jsonrequired
sourceIDs required | Array of strings |
Responses
Request samples
- C#
- Go
- Java
- JavaScript
- Kotlin
- PHP
- Python
- Ruby
- Scala
- Swift
// Initialize the client var client = new IngestionClient( new IngestionConfig("YOUR_APP_ID", "YOUR_API_KEY", "YOUR_APP_ID_REGION") ); // Call the API var response = await client.SearchSourcesAsync( new SourceSearch { SourceIDs = new List<string> { "6c02aeb1-775e-418e-870b-1faccd4b2c0f", "947ac9c4-7e58-4c87-b1e7-14a68e99699a" }, } );
Response samples
- 200
- 400
[- {
- "sourceID": "6c02aeb1-775e-418e-870b-1faccd4b2c0f",
- "type": "bigcommerce",
- "name": "string",
- "input": {
- "storeKeys": [
- "string"
], - "locales": [
- "fr-FR"
], - "url": "string",
- "projectKey": "string",
- "fallbackIsInStockValue": true,
- "customFields": {
- "inventory": [
- "string"
], - "price": [
- "string"
], - "category": [
- "string"
]
}
}, - "authenticationID": "6c02aeb1-775e-418e-870b-1faccd4b2c0f",
- "createdAt": "string",
- "updatedAt": "string"
}
]
Retrieve a source
Retrieve a source by its ID.
path Parameters
sourceID required | string Example: 6c02aeb1-775e-418e-870b-1faccd4b2c0f Unique identifier of a source. |
Responses
Request samples
- C#
- Go
- Java
- JavaScript
- Kotlin
- PHP
- Python
- Ruby
- Scala
- Swift
// Initialize the client var client = new IngestionClient( new IngestionConfig("YOUR_APP_ID", "YOUR_API_KEY", "YOUR_APP_ID_REGION") ); // Call the API var response = await client.GetSourceAsync("75eeb306-51d3-4e5e-a279-3c92bd8893ac");
Response samples
- 200
- 400
{- "sourceID": "6c02aeb1-775e-418e-870b-1faccd4b2c0f",
- "type": "bigcommerce",
- "name": "string",
- "input": {
- "storeKeys": [
- "string"
], - "locales": [
- "fr-FR"
], - "url": "string",
- "projectKey": "string",
- "fallbackIsInStockValue": true,
- "customFields": {
- "inventory": [
- "string"
], - "price": [
- "string"
], - "category": [
- "string"
]
}
}, - "authenticationID": "6c02aeb1-775e-418e-870b-1faccd4b2c0f",
- "createdAt": "string",
- "updatedAt": "string"
}
Update a source
Updates a source by its ID.
path Parameters
sourceID required | string Example: 6c02aeb1-775e-418e-870b-1faccd4b2c0f Unique identifier of a source. |
Request Body schema: application/jsonrequired
authenticationID | string Universally unique identifier (UUID) of an authentication resource. |
SourceUpdateCommercetools (object) or JSON (object) or CSV (object) or BigQuery (object) or GA4 BigQuery export (object) or SourceUpdateDocker (object) or Shopify (object) | |
name | string Descriptive name of the source. |
Responses
Request samples
- C#
- Go
- Java
- JavaScript
- Kotlin
- PHP
- Python
- Ruby
- Scala
- Swift
// Initialize the client var client = new IngestionClient( new IngestionConfig("YOUR_APP_ID", "YOUR_API_KEY", "YOUR_APP_ID_REGION") ); // Call the API var response = await client.UpdateSourceAsync( "6c02aeb1-775e-418e-870b-1faccd4b2c0f", new SourceUpdate { Name = "newName", } );
Response samples
- 200
- 400
{- "sourceID": "6c02aeb1-775e-418e-870b-1faccd4b2c0f",
- "name": "string",
- "updatedAt": "string"
}
Delete a source
Deletes a source by its ID. You can't delete sources that are referenced in tasks.
path Parameters
sourceID required | string Example: 6c02aeb1-775e-418e-870b-1faccd4b2c0f Unique identifier of a source. |
Responses
Request samples
- C#
- Go
- Java
- JavaScript
- Kotlin
- PHP
- Python
- Ruby
- Scala
- Swift
// Initialize the client var client = new IngestionClient( new IngestionConfig("YOUR_APP_ID", "YOUR_API_KEY", "YOUR_APP_ID_REGION") ); // Call the API var response = await client.DeleteSourceAsync("6c02aeb1-775e-418e-870b-1faccd4b2c0f");
Response samples
- 200
- 400
{- "deletedAt": "string"
}
Validates an update of a source payload
Validates an update of a source payload to ensure it can be created and that the data source can be reached by Algolia.
path Parameters
sourceID required | string Example: 6c02aeb1-775e-418e-870b-1faccd4b2c0f Unique identifier of a source. |
Request Body schema: application/jsonrequired
authenticationID | string Universally unique identifier (UUID) of an authentication resource. |
SourceUpdateCommercetools (object) or JSON (object) or CSV (object) or BigQuery (object) or GA4 BigQuery export (object) or SourceUpdateDocker (object) or Shopify (object) | |
name | string Descriptive name of the source. |
Responses
Request samples
- C#
- Go
- Java
- JavaScript
- Kotlin
- PHP
- Python
- Ruby
- Scala
- Swift
// Initialize the client var client = new IngestionClient( new IngestionConfig("YOUR_APP_ID", "YOUR_API_KEY", "YOUR_APP_ID_REGION") ); // Call the API var response = await client.ValidateSourceBeforeUpdateAsync( "6c02aeb1-775e-418e-870b-1faccd4b2c0f", new SourceUpdate { Name = "newName", } );
Response samples
- 200
- 400
{- "runID": "6c02aeb1-775e-418e-870b-1faccd4b2c0f",
- "data": [
- { }
], - "events": [
- {
- "eventID": "6c02aeb1-775e-418e-870b-1faccd4b2c0f",
- "runID": "6c02aeb1-775e-418e-870b-1faccd4b2c0f",
- "parentID": "6c02aeb1-775e-418e-870b-1faccd4b2c0f",
- "status": "created",
- "type": "fetch",
- "batchSize": 10,
- "data": { },
- "publishedAt": "string"
}
], - "message": "string"
}
Trigger a stream-listing request
Triggers a stream-listing request for a source.
Triggering stream-listing requests only works with sources with type: docker
and imageType: singer
.
path Parameters
sourceID required | string Example: 6c02aeb1-775e-418e-870b-1faccd4b2c0f Unique identifier of a source. |
Responses
Request samples
- C#
- Go
- Java
- JavaScript
- Kotlin
- PHP
- Python
- Ruby
- Scala
- Swift
// Initialize the client var client = new IngestionClient( new IngestionConfig("YOUR_APP_ID", "YOUR_API_KEY", "YOUR_APP_ID_REGION") ); // Call the API var response = await client.TriggerDockerSourceDiscoverAsync( "6c02aeb1-775e-418e-870b-1faccd4b2c0f" );
Response samples
- 200
- 400
{- "runID": "6c02aeb1-775e-418e-870b-1faccd4b2c0f",
- "data": [
- { }
], - "events": [
- {
- "eventID": "6c02aeb1-775e-418e-870b-1faccd4b2c0f",
- "runID": "6c02aeb1-775e-418e-870b-1faccd4b2c0f",
- "parentID": "6c02aeb1-775e-418e-870b-1faccd4b2c0f",
- "status": "created",
- "type": "fetch",
- "batchSize": 10,
- "data": { },
- "publishedAt": "string"
}
], - "message": "string"
}
Tasks contain information how your data should be read from a source and stored in a destination. Tasks have triggers which determine when the task should run.
List tasks
Retrieves a list of tasks.
query Parameters
action | Array of strings Items Enum: "append" "partial" "replace" "save" Example: action=save,replace,partial,append Actions for filtering the list of tasks. |
destinationID | Array of strings Example: destinationID=6c02aeb1-775e-418e-870b-1faccd4b2c0f Destination IDs for filtering the list of tasks. |
enabled | boolean Whether to filter the list of tasks by the |
itemsPerPage | integer [ 1 .. 100 ] Default: 10 Number of items per page. |
order | string Default: "desc" Enum: "asc" "desc" Sort order of the response, ascending or descending. |
page | integer >= 1 Page number of the paginated API response. |
sort | string Default: "createdAt" Enum: "action" "createdAt" "enabled" "triggerType" "updatedAt" Property by which to sort the list of tasks. |
sourceID | Array of strings Example: sourceID=6c02aeb1-775e-418e-870b-1faccd4b2c0f Source IDs for filtering the list of tasks. |
triggerType | Array of strings Items Enum: "onDemand" "schedule" "streaming" "subscription" Example: triggerType=onDemand,schedule,subscription,streaming Type of task trigger for filtering the list of tasks. |
Responses
Request samples
- C#
- Go
- Java
- JavaScript
- Kotlin
- PHP
- Python
- Ruby
- Scala
- Swift
// Initialize the client var client = new IngestionClient( new IngestionConfig("YOUR_APP_ID", "YOUR_API_KEY", "YOUR_APP_ID_REGION") ); // Call the API var response = await client.GetTasksAsync();
Response samples
- 200
- 400
{- "tasks": [
- {
- "taskID": "6c02aeb1-775e-418e-870b-1faccd4b2c0f",
- "sourceID": "6c02aeb1-775e-418e-870b-1faccd4b2c0f",
- "destinationID": "6c02aeb1-775e-418e-870b-1faccd4b2c0f",
- "trigger": {
- "type": "onDemand",
- "lastRun": "string"
}, - "input": {
- "startDate": "string",
- "endDate": "string",
- "mapping": {
- "format": "mappingkit/v1",
- "actions": [
- {
- "id": "string",
- "enabled": true,
- "trigger": "string",
- "fieldDirectives": [
- {
- "fieldKey": "string",
- "value": { }
}
]
}
]
}
}, - "enabled": true,
- "failureThreshold": 100,
- "action": "append",
- "cursor": "string",
- "createdAt": "string",
- "updatedAt": "string"
}
], - "pagination": {
- "nbPages": 1,
- "page": 1,
- "nbItems": 0,
- "itemsPerPage": 10
}
}
Create a task
Creates a new task.
Request Body schema: application/jsonrequired
Request body for creating a task.
action required | string Enum: "append" "partial" "replace" "save" Action to perform on the Algolia index. |
destinationID required | string Universally unique identifier (UUID) of a destination resource. |
sourceID required | string Universally uniqud identifier (UUID) of a source. |
required | On demand (object) or Schedule (object) or Subscription (object) or Streaming (object) |
cursor | string Date of the last cursor in RFC 3339 format. |
enabled | boolean Whether the task is enabled. |
failureThreshold | integer [ 0 .. 100 ] Maximum accepted percentage of failures for a task run to finish successfully. |
On demand date range (object) or Schedule dates (object) or Streaming input (object) or Shopify input (object) Configuration of the task, depending on its type. |
Responses
Request samples
- C#
- Go
- Java
- JavaScript
- Kotlin
- PHP
- Python
- Ruby
- Scala
- Swift
// Initialize the client var client = new IngestionClient( new IngestionConfig("YOUR_APP_ID", "YOUR_API_KEY", "YOUR_APP_ID_REGION") ); // Call the API var response = await client.CreateTaskAsync( new TaskCreate { SourceID = "search", DestinationID = "destinationName", Trigger = new TaskCreateTrigger( new OnDemandTriggerInput { Type = Enum.Parse<OnDemandTriggerType>("OnDemand"), } ), Action = Enum.Parse<ActionType>("Replace"), } );
Response samples
- 200
- 400
{- "taskID": "6c02aeb1-775e-418e-870b-1faccd4b2c0f",
- "createdAt": "string"
}
Search for tasks
Searches for tasks.
Request Body schema: application/jsonrequired
taskIDs required | Array of strings |
Responses
Request samples
- C#
- Go
- Java
- JavaScript
- Kotlin
- PHP
- Python
- Ruby
- Scala
- Swift
// Initialize the client var client = new IngestionClient( new IngestionConfig("YOUR_APP_ID", "YOUR_API_KEY", "YOUR_APP_ID_REGION") ); // Call the API var response = await client.SearchTasksAsync( new TaskSearch { TaskIDs = new List<string> { "6c02aeb1-775e-418e-870b-1faccd4b2c0f", "947ac9c4-7e58-4c87-b1e7-14a68e99699a", "76ab4c2a-ce17-496f-b7a6-506dc59ee498" }, } );
Response samples
- 200
- 400
[- {
- "taskID": "6c02aeb1-775e-418e-870b-1faccd4b2c0f",
- "sourceID": "6c02aeb1-775e-418e-870b-1faccd4b2c0f",
- "destinationID": "6c02aeb1-775e-418e-870b-1faccd4b2c0f",
- "trigger": {
- "type": "onDemand",
- "lastRun": "string"
}, - "input": {
- "startDate": "string",
- "endDate": "string",
- "mapping": {
- "format": "mappingkit/v1",
- "actions": [
- {
- "id": "string",
- "enabled": true,
- "trigger": "string",
- "fieldDirectives": [
- {
- "fieldKey": "string",
- "value": { }
}
]
}
]
}
}, - "enabled": true,
- "failureThreshold": 100,
- "action": "append",
- "cursor": "string",
- "createdAt": "string",
- "updatedAt": "string"
}
]
Retrieve a task
Retrieves a task by its ID.
path Parameters
taskID required | string Example: 6c02aeb1-775e-418e-870b-1faccd4b2c0f Unique identifier of a task. |
Responses
Request samples
- C#
- Go
- Java
- JavaScript
- Kotlin
- PHP
- Python
- Ruby
- Scala
- Swift
// Initialize the client var client = new IngestionClient( new IngestionConfig("YOUR_APP_ID", "YOUR_API_KEY", "YOUR_APP_ID_REGION") ); // Call the API var response = await client.GetTaskAsync("6c02aeb1-775e-418e-870b-1faccd4b2c0f");
Response samples
- 200
- 400
{- "taskID": "6c02aeb1-775e-418e-870b-1faccd4b2c0f",
- "sourceID": "6c02aeb1-775e-418e-870b-1faccd4b2c0f",
- "destinationID": "6c02aeb1-775e-418e-870b-1faccd4b2c0f",
- "trigger": {
- "type": "onDemand",
- "lastRun": "string"
}, - "input": {
- "startDate": "string",
- "endDate": "string",
- "mapping": {
- "format": "mappingkit/v1",
- "actions": [
- {
- "id": "string",
- "enabled": true,
- "trigger": "string",
- "fieldDirectives": [
- {
- "fieldKey": "string",
- "value": { }
}
]
}
]
}
}, - "enabled": true,
- "failureThreshold": 100,
- "action": "append",
- "cursor": "string",
- "createdAt": "string",
- "updatedAt": "string"
}
Update a task
Updates a task by its ID.
path Parameters
taskID required | string Example: 6c02aeb1-775e-418e-870b-1faccd4b2c0f Unique identifier of a task. |
Request Body schema: application/jsonrequired
destinationID | string Universally unique identifier (UUID) of a destination resource. |
enabled | boolean Whether the task is enabled. |
failureThreshold | integer [ 0 .. 100 ] Maximum accepted percentage of failures for a task run to finish successfully. |
On demand date range (object) or Schedule dates (object) or Streaming input (object) or Shopify input (object) Configuration of the task, depending on its type. | |
object Trigger for a task update. |
Responses
Request samples
- C#
- Go
- Java
- JavaScript
- Kotlin
- PHP
- Python
- Ruby
- Scala
- Swift
// Initialize the client var client = new IngestionClient( new IngestionConfig("YOUR_APP_ID", "YOUR_API_KEY", "YOUR_APP_ID_REGION") ); // Call the API var response = await client.UpdateTaskAsync( "6c02aeb1-775e-418e-870b-1faccd4b2c0f", new TaskUpdate { Enabled = false, } );
Response samples
- 200
- 400
{- "taskID": "6c02aeb1-775e-418e-870b-1faccd4b2c0f",
- "updatedAt": "string"
}
Delete a task
Deletes a task by its ID.
path Parameters
taskID required | string Example: 6c02aeb1-775e-418e-870b-1faccd4b2c0f Unique identifier of a task. |
Responses
Request samples
- C#
- Go
- Java
- JavaScript
- Kotlin
- PHP
- Python
- Ruby
- Scala
- Swift
// Initialize the client var client = new IngestionClient( new IngestionConfig("YOUR_APP_ID", "YOUR_API_KEY", "YOUR_APP_ID_REGION") ); // Call the API var response = await client.DeleteTaskAsync("6c02aeb1-775e-418e-870b-1faccd4b2c0f");
Response samples
- 200
- 400
{- "deletedAt": "string"
}
Run a task
Runs a task. You can check the status of task runs with the observability endpoints.
path Parameters
taskID required | string Example: 6c02aeb1-775e-418e-870b-1faccd4b2c0f Unique identifier of a task. |
Responses
Request samples
- C#
- Go
- Java
- JavaScript
- Kotlin
- PHP
- Python
- Ruby
- Scala
- Swift
// Initialize the client var client = new IngestionClient( new IngestionConfig("YOUR_APP_ID", "YOUR_API_KEY", "YOUR_APP_ID_REGION") ); // Call the API var response = await client.RunTaskAsync("6c02aeb1-775e-418e-870b-1faccd4b2c0f");
Response samples
- 200
- 400
{- "runID": "6c02aeb1-775e-418e-870b-1faccd4b2c0f",
- "createdAt": "string"
}
Enable a task
Enables a task.
path Parameters
taskID required | string Example: 6c02aeb1-775e-418e-870b-1faccd4b2c0f Unique identifier of a task. |
Responses
Request samples
- C#
- Go
- Java
- JavaScript
- Kotlin
- PHP
- Python
- Ruby
- Scala
- Swift
// Initialize the client var client = new IngestionClient( new IngestionConfig("YOUR_APP_ID", "YOUR_API_KEY", "YOUR_APP_ID_REGION") ); // Call the API var response = await client.EnableTaskAsync("76ab4c2a-ce17-496f-b7a6-506dc59ee498");
Response samples
- 200
- 400
{- "taskID": "6c02aeb1-775e-418e-870b-1faccd4b2c0f",
- "updatedAt": "string"
}
Disable a task
Disables a task.
path Parameters
taskID required | string Example: 6c02aeb1-775e-418e-870b-1faccd4b2c0f Unique identifier of a task. |
Responses
Request samples
- C#
- Go
- Java
- JavaScript
- Kotlin
- PHP
- Python
- Ruby
- Scala
- Swift
// Initialize the client var client = new IngestionClient( new IngestionConfig("YOUR_APP_ID", "YOUR_API_KEY", "YOUR_APP_ID_REGION") ); // Call the API var response = await client.DisableTaskAsync("6c02aeb1-775e-418e-870b-1faccd4b2c0f");
Response samples
- 200
- 400
{- "taskID": "6c02aeb1-775e-418e-870b-1faccd4b2c0f",
- "updatedAt": "string"
}
List transformations
Retrieves a list of transformations.
query Parameters
order | string Default: "desc" Enum: "asc" "desc" Sort order of the response, ascending or descending. |
sort | string Default: "desc" Enum: "createdAt" "name" "type" "updatedAt" Property by which to sort the list. |
Responses
Request samples
- C#
- Go
- Java
- JavaScript
- Kotlin
- PHP
- Python
- Ruby
- Scala
- Swift
// Initialize the client var client = new IngestionClient( new IngestionConfig("YOUR_APP_ID", "YOUR_API_KEY", "YOUR_APP_ID_REGION") ); // Call the API var response = await client.GetTransformationsAsync();
Response samples
- 200
- 400
{- "transformations": [
- {
- "transformationID": "6c02aeb1-775e-418e-870b-1faccd4b2c0f",
- "code": "string",
- "name": "string",
- "description": "string",
- "createdAt": "string",
- "updatedAt": "string"
}
], - "pagination": {
- "nbPages": 1,
- "page": 1,
- "nbItems": 0,
- "itemsPerPage": 10
}
}
Create a transformation
Creates a new transformation.
Request Body schema: application/jsonrequired
Request body for creating a transformation.
code required | string The source code of the transformation. |
description required | string A descriptive name for your transformation of what it does. |
name required | string The uniquely identified name of your transformation. |
Responses
Request samples
- C#
- Go
- Java
- JavaScript
- Kotlin
- PHP
- Python
- Ruby
- Scala
- Swift
// Initialize the client var client = new IngestionClient( new IngestionConfig("YOUR_APP_ID", "YOUR_API_KEY", "YOUR_APP_ID_REGION") ); // Call the API var response = await client.CreateTransformationAsync( new TransformationCreate { Code = "foo", Name = "bar", Description = "baz", } );
Response samples
- 200
- 400
{- "transformationID": "6c02aeb1-775e-418e-870b-1faccd4b2c0f",
- "createdAt": "string"
}
Try a transformation
Try a transformation.
Request Body schema: application/jsonrequired
code required | string The source code of the transformation. |
sampleRecord required | object The record to apply the given code to. |
Responses
Request samples
- C#
- Go
- Java
- JavaScript
- Kotlin
- PHP
- Python
- Ruby
- Scala
- Swift
// Initialize the client var client = new IngestionClient( new IngestionConfig("YOUR_APP_ID", "YOUR_API_KEY", "YOUR_APP_ID_REGION") ); // Call the API var response = await client.TryTransformationsAsync( new TransformationTry { Code = "foo", SampleRecord = new Dictionary<string, string> { { "bar", "baz" } }, } );
Response samples
- 200
- 400
{- "payloads": [
- { }
], - "error": {
- "code": 0,
- "message": "string"
}
}
Search for transformations
Searches for transformations.
Request Body schema: application/jsonrequired
transformationsIDs required | Array of strings |
Responses
Request samples
- C#
- Go
- Java
- JavaScript
- Kotlin
- PHP
- Python
- Ruby
- Scala
- Swift
// Initialize the client var client = new IngestionClient( new IngestionConfig("YOUR_APP_ID", "YOUR_API_KEY", "YOUR_APP_ID_REGION") ); // Call the API var response = await client.SearchTransformationsAsync( new TransformationSearch { TransformationsIDs = new List<string> { "6c02aeb1-775e-418e-870b-1faccd4b2c0f", "947ac9c4-7e58-4c87-b1e7-14a68e99699a", "76ab4c2a-ce17-496f-b7a6-506dc59ee498" }, } );
Response samples
- 200
- 400
[- {
- "transformationID": "6c02aeb1-775e-418e-870b-1faccd4b2c0f",
- "code": "string",
- "name": "string",
- "description": "string",
- "createdAt": "string",
- "updatedAt": "string"
}
]
Retrieve a transformation
Retrieves a transformation by its ID.
path Parameters
transformationID required | string Example: 6c02aeb1-775e-418e-870b-1faccd4b2c0f Unique identifier of a transformation. |
Responses
Request samples
- C#
- Go
- Java
- JavaScript
- Kotlin
- PHP
- Python
- Ruby
- Scala
- Swift
// Initialize the client var client = new IngestionClient( new IngestionConfig("YOUR_APP_ID", "YOUR_API_KEY", "YOUR_APP_ID_REGION") ); // Call the API var response = await client.GetTransformationAsync("6c02aeb1-775e-418e-870b-1faccd4b2c0f");
Response samples
- 200
- 400
{- "transformationID": "6c02aeb1-775e-418e-870b-1faccd4b2c0f",
- "code": "string",
- "name": "string",
- "description": "string",
- "createdAt": "string",
- "updatedAt": "string"
}
Update a transformation
Updates a transformation by its ID.
path Parameters
transformationID required | string Example: 6c02aeb1-775e-418e-870b-1faccd4b2c0f Unique identifier of a transformation. |
Request Body schema: application/jsonrequired
code required | string The source code of the transformation. |
description required | string A descriptive name for your transformation of what it does. |
name required | string The uniquely identified name of your transformation. |
Responses
Request samples
- C#
- Go
- Java
- JavaScript
- Kotlin
- PHP
- Python
- Ruby
- Scala
- Swift
// Initialize the client var client = new IngestionClient( new IngestionConfig("YOUR_APP_ID", "YOUR_API_KEY", "YOUR_APP_ID_REGION") ); // Call the API var response = await client.UpdateTransformationAsync( "6c02aeb1-775e-418e-870b-1faccd4b2c0f", new TransformationCreate { Code = "foo", Name = "bar", Description = "baz", } );
Response samples
- 200
- 400
{- "transformationID": "6c02aeb1-775e-418e-870b-1faccd4b2c0f",
- "updatedAt": "string"
}
Delete a transformation
Deletes a transformation by its ID.
path Parameters
transformationID required | string Example: 6c02aeb1-775e-418e-870b-1faccd4b2c0f Unique identifier of a transformation. |
Responses
Request samples
- C#
- Go
- Java
- JavaScript
- Kotlin
- PHP
- Python
- Ruby
- Scala
- Swift
// Initialize the client var client = new IngestionClient( new IngestionConfig("YOUR_APP_ID", "YOUR_API_KEY", "YOUR_APP_ID_REGION") ); // Call the API var response = await client.DeleteTransformationAsync("6c02aeb1-775e-418e-870b-1faccd4b2c0f");
Response samples
- 200
- 400
{- "deletedAt": "string"
}