Ingestion API (1.0)
Download OpenAPI specification:Download
API powering the Data Ingestion feature of Algolia.
Get a list of authentications
Get a list of authentications.
Authorizations:
query Parameters
itemsPerPage | integer The number of items per page to return. |
page | integer The page number to fetch, starting at 1. |
Responses
Response samples
- 200
- 400
{- "authentications": [
- {
- "authenticationID": "string",
- "type": "googleServiceAccount",
- "name": "string",
- "platform": "bigcommerce",
- "createdAt": "string",
- "updatedAt": "string"
}
], - "pagination": {
- "nbPages": 0,
- "page": 0,
- "nbItems": 0,
- "itemsPerPage": 0
}
}
Create a authentication
Create a authentication.
Authorizations:
Request Body schema: application/json
type required | string (AuthenticationType) Enum: "googleServiceAccount" "basic" "apiKey" "oauth" "algolia" |
name required | string |
platform | string (PlatformType) Enum: "bigcommerce" "commercetools" |
required | AuthGoogleServiceAccount (object) or AuthBasic (object) or AuthAPIKey (object) or AuthOAuth (object) or AuthAlgolia (object) (AuthInput) |
Responses
Request samples
- Payload
{- "type": "googleServiceAccount",
- "name": "string",
- "platform": "bigcommerce",
- "input": {
- "clientEmail": "string",
- "privateKey": "string"
}
}
Response samples
- 200
- 400
{- "authenticationID": "string",
- "name": "string",
- "createdAt": "string"
}
Get a authentication
Get a authentication.
Authorizations:
path Parameters
authenticationID required | string Example: 6c02aeb1-775e-418e-870b-1faccd4b2c0f The authentication uuid. |
Responses
Response samples
- 200
- 400
{- "authenticationID": "string",
- "type": "googleServiceAccount",
- "name": "string",
- "platform": "bigcommerce",
- "createdAt": "string",
- "updatedAt": "string",
- "input": {
- "clientEmail": "string",
- "privateKey": "string"
}
}
Update a authentication
Update a authentication.
Authorizations:
path Parameters
authenticationID required | string Example: 6c02aeb1-775e-418e-870b-1faccd4b2c0f The authentication uuid. |
Request Body schema: application/json
type | string (AuthenticationType) Enum: "googleServiceAccount" "basic" "apiKey" "oauth" "algolia" |
name | string |
platform | string (PlatformType) Enum: "bigcommerce" "commercetools" |
AuthGoogleServiceAccount (object) or AuthBasic (object) or AuthAPIKey (object) or AuthOAuth (object) or AuthAlgolia (object) (AuthInput) |
Responses
Request samples
- Payload
{- "type": "googleServiceAccount",
- "name": "string",
- "platform": "bigcommerce",
- "input": {
- "clientEmail": "string",
- "privateKey": "string"
}
}
Response samples
- 200
- 400
{- "authenticationID": "string",
- "name": "string",
- "updatedAt": "string"
}
Get a list of destinations
Get a list of destinations.
Authorizations:
query Parameters
itemsPerPage | integer The number of items per page to return. |
page | integer The page number to fetch, starting at 1. |
Responses
Response samples
- 200
- 400
{- "destinations": [
- {
- "destinationID": "string",
- "type": "search",
- "name": "string",
- "input": {
- "indexPrefix": "string"
}, - "createdAt": "string",
- "updatedAt": "string",
- "authenticationID": "string"
}
], - "pagination": {
- "nbPages": 0,
- "page": 0,
- "nbItems": 0,
- "itemsPerPage": 0
}
}
Create a destination
Create a destination.
Authorizations:
Request Body schema: application/json
type required | string (DestinationType) Enum: "search" "insights" "flow" "predict" |
name required | string |
required | DestinationIndexPrefix (object) or DestinationIndexName (object) (DestinationInput) |
authenticationID required | string |
Responses
Request samples
- Payload
{- "type": "search",
- "name": "string",
- "input": {
- "indexPrefix": "string"
}, - "authenticationID": "string"
}
Response samples
- 200
- 400
{- "destinationID": "string",
- "name": "string",
- "createdAt": "string"
}
Get a destination
Get a destination.
Authorizations:
path Parameters
destinationID required | string Example: 6c02aeb1-775e-418e-870b-1faccd4b2c0f The destination uuid. |
Responses
Response samples
- 200
- 400
{- "destinationID": "string",
- "type": "search",
- "name": "string",
- "input": {
- "indexPrefix": "string"
}, - "createdAt": "string",
- "updatedAt": "string",
- "authenticationID": "string"
}
Update a destination
Update a destination.
Authorizations:
path Parameters
destinationID required | string Example: 6c02aeb1-775e-418e-870b-1faccd4b2c0f The destination uuid. |
Request Body schema: application/json
type | string (DestinationType) Enum: "search" "insights" "flow" "predict" |
name | string |
DestinationIndexPrefix (object) or DestinationIndexName (object) (DestinationInput) | |
authenticationID | string |
Responses
Request samples
- Payload
{- "type": "search",
- "name": "string",
- "input": {
- "indexPrefix": "string"
}, - "authenticationID": "string"
}
Response samples
- 200
- 400
{- "destinationID": "string",
- "name": "string",
- "updatedAt": "string"
}
Get a list of runs
Get a list of runs.
Authorizations:
query Parameters
itemsPerPage | integer The number of items per page to return. |
page | integer The page number to fetch, starting at 1. |
Responses
Response samples
- 200
- 400
{- "runs": [
- {
- "runID": "string",
- "appID": "string",
- "taskID": "string",
- "status": "created",
- "progress": {
- "expectedNbOfEvents": 0,
- "receivedNbOfEvents": 0
}, - "outcome": "success",
- "type": "reindex",
- "createdAt": "string",
- "updatedAt": "string",
- "startedAt": "string",
- "finishedAt": "string"
}
], - "pagination": {
- "nbPages": 0,
- "page": 0,
- "nbItems": 0,
- "itemsPerPage": 0
}
}
Get a run
Get a run.
Authorizations:
path Parameters
runID required | string Example: 6c02aeb1-775e-418e-870b-1faccd4b2c0f The run uuid. |
Responses
Response samples
- 200
- 400
{- "runID": "string",
- "appID": "string",
- "taskID": "string",
- "status": "created",
- "progress": {
- "expectedNbOfEvents": 0,
- "receivedNbOfEvents": 0
}, - "outcome": "success",
- "type": "reindex",
- "createdAt": "string",
- "updatedAt": "string",
- "startedAt": "string",
- "finishedAt": "string"
}
Get a list of events for a specific run
Get a list of events for a specific run.
Authorizations:
path Parameters
runID required | string Example: 6c02aeb1-775e-418e-870b-1faccd4b2c0f The run uuid. |
query Parameters
itemsPerPage | integer The number of items per page to return. |
page | integer The page number to fetch, starting at 1. |
Responses
Response samples
- 200
- 400
{- "events": [
- {
- "eventID": "string",
- "runID": "string",
- "parentID": "string",
- "status": "created",
- "type": "fetch",
- "data": { },
- "publishedAt": "string"
}
], - "pagination": {
- "nbPages": 0,
- "page": 0,
- "nbItems": 0,
- "itemsPerPage": 0
}
}
Get an event in a specific run
Get an event in a specific run.
Authorizations:
path Parameters
runID required | string Example: 6c02aeb1-775e-418e-870b-1faccd4b2c0f The run uuid. |
eventID required | string Example: 6c02aeb1-775e-418e-870b-1faccd4b2c0f The event uuid. |
Responses
Response samples
- 200
- 400
{- "eventID": "string",
- "runID": "string",
- "parentID": "string",
- "status": "created",
- "type": "fetch",
- "data": { },
- "publishedAt": "string"
}
Get a list of runs associated with a taskID
Get a list of runs associated with a taskID.
Authorizations:
path Parameters
taskID required | string Example: 6c02aeb1-775e-418e-870b-1faccd4b2c0f The task uuid. |
query Parameters
itemsPerPage | integer The number of items per page to return. |
page | integer The page number to fetch, starting at 1. |
Responses
Response samples
- 200
- 400
{- "runs": [
- {
- "runID": "string",
- "appID": "string",
- "taskID": "string",
- "status": "created",
- "progress": {
- "expectedNbOfEvents": 0,
- "receivedNbOfEvents": 0
}, - "outcome": "success",
- "type": "reindex",
- "createdAt": "string",
- "updatedAt": "string",
- "startedAt": "string",
- "finishedAt": "string"
}
], - "pagination": {
- "nbPages": 0,
- "page": 0,
- "nbItems": 0,
- "itemsPerPage": 0
}
}
Get a list of sources
Get a list of sources.
Authorizations:
query Parameters
itemsPerPage | integer The number of items per page to return. |
page | integer The page number to fetch, starting at 1. |
Responses
Response samples
- 200
- 400
{- "sources": [
- {
- "sourceID": "string",
- "type": "bigcommerce",
- "name": "string",
- "input": {
- "storeKeys": [
- "string"
], - "locales": [
- "string"
], - "url": "string",
- "projectKey": "string"
}, - "authenticationID": "string",
- "createdAt": "string",
- "updatedAt": "string"
}
], - "pagination": {
- "nbPages": 0,
- "page": 0,
- "nbItems": 0,
- "itemsPerPage": 0
}
}
Create a source
Create a source.
Authorizations:
Request Body schema: application/json
type required | string (SourceType) Enum: "bigcommerce" "commercetools" "json" |
name required | string |
required | SourceCommercetools (object) or SourceBigCommerce (object) or SourceJson (object) (SourceInput) |
authenticationID required | string |
Responses
Request samples
- Payload
{- "type": "bigcommerce",
- "name": "string",
- "input": {
- "storeKeys": [
- "string"
], - "locales": [
- "string"
], - "url": "string",
- "projectKey": "string"
}, - "authenticationID": "string"
}
Response samples
- 200
- 400
{- "sourceID": "string",
- "name": "string",
- "createdAt": "string"
}
Get a source
Get a source.
Authorizations:
path Parameters
sourceID required | string Example: 6c02aeb1-775e-418e-870b-1faccd4b2c0f The source uuid. |
Responses
Response samples
- 200
- 400
{- "sourceID": "string",
- "type": "bigcommerce",
- "name": "string",
- "input": {
- "storeKeys": [
- "string"
], - "locales": [
- "string"
], - "url": "string",
- "projectKey": "string"
}, - "authenticationID": "string",
- "createdAt": "string",
- "updatedAt": "string"
}
Update a source
Update a source.
Authorizations:
path Parameters
sourceID required | string Example: 6c02aeb1-775e-418e-870b-1faccd4b2c0f The source uuid. |
Request Body schema: application/json
type | string (SourceType) Enum: "bigcommerce" "commercetools" "json" |
name | string |
SourceCommercetools (object) or SourceBigCommerce (object) or SourceJson (object) (SourceInput) | |
authenticationID | string |
Responses
Request samples
- Payload
{- "type": "bigcommerce",
- "name": "string",
- "input": {
- "storeKeys": [
- "string"
], - "locales": [
- "string"
], - "url": "string",
- "projectKey": "string"
}, - "authenticationID": "string"
}
Response samples
- 200
- 400
{- "sourceID": "string",
- "name": "string",
- "updatedAt": "string"
}
Get a list of tasks
Get a list of tasks.
Authorizations:
query Parameters
itemsPerPage | integer The number of items per page to return. |
page | integer The page number to fetch, starting at 1. |
action | Array of strings (ActionType) Items Enum: "replace" "save" "delete" Example: action=save,replace Which action the returned task should have. Can be a list of string separated with commas. |
enabled | boolean If the returned task should have its 'enabled' property set to true. |
destinationID | Array of strings Which destinationID the returned task should have. Can be a list of string separated with commas. |
triggerType | Array of strings (TriggerType) Items Enum: "on_demand" "schedule" "subscription" Example: triggerType=on_demand,schedule Which trigger type the returned task should have. Can be a list of string separated with commas. |
Responses
Response samples
- 200
- 400
{- "tasks": [
- {
- "taskID": "string",
- "sourceID": "string",
- "destinationID": "string",
- "trigger": {
- "type": "on_demand",
- "cron": "string",
- "lastRun": "string",
- "nextRun": "string"
}, - "enabled": true,
- "action": "replace",
- "createdAt": "string",
- "updatedAt": "string"
}
], - "pagination": {
- "nbPages": 0,
- "page": 0,
- "nbItems": 0,
- "itemsPerPage": 0
}
}
Create a task
Create a task.
Authorizations:
Request Body schema: application/json
sourceID required | string |
destinationID required | string |
required | object (TriggerInput) |
action required | string (ActionType) Enum: "replace" "save" "delete" |
enabled | boolean |
Responses
Request samples
- Payload
{- "sourceID": "string",
- "destinationID": "string",
- "trigger": {
- "type": "on_demand",
- "cron": "string"
}, - "action": "replace",
- "enabled": true
}
Response samples
- 200
- 400
{- "taskID": "string",
- "createdAt": "string"
}
Get a task
Get a task.
Authorizations:
path Parameters
taskID required | string Example: 6c02aeb1-775e-418e-870b-1faccd4b2c0f The task uuid. |
Responses
Response samples
- 200
- 400
{- "taskID": "string",
- "sourceID": "string",
- "destinationID": "string",
- "trigger": {
- "type": "on_demand",
- "cron": "string",
- "lastRun": "string",
- "nextRun": "string"
}, - "enabled": true,
- "action": "replace",
- "createdAt": "string",
- "updatedAt": "string"
}
Update a task
Update a task.
Authorizations:
path Parameters
taskID required | string Example: 6c02aeb1-775e-418e-870b-1faccd4b2c0f The task uuid. |
Request Body schema: application/json
destinationID | string |
object (TriggerInput) | |
enabled | boolean |
Responses
Request samples
- Payload
{- "destinationID": "string",
- "trigger": {
- "type": "on_demand",
- "cron": "string"
}, - "enabled": true
}
Response samples
- 200
- 400
{- "taskID": "string",
- "updatedAt": "string"
}