Batch Processing API Reference
API Reference (1.0.0)
Download OpenAPI specification:Download
This page contains the documentation on how to use sentinel hub services through API calls.
Note: This documentation is not complete
Submit new batch processing request
Authorizations:
Request Body schema:
required | object (ProcessRequestForBatchV2) Batch processing equivalent of the Process request. |
required | ProcessInput (object) or ProcessInput (object) (BatchV2ProcessInput) |
required | ProcessOutput (object) or ProcessOutput (object) (BatchV2ProcessOutput) |
| instanceType | string (InstanceType) Enum: "normal" "large" Instance type to be used for processing. |
| description | string Optional description that can be used to keep track of requests |
Responses
Request samples
- Payload
{- "processRequest": {
- "input": {
- "bounds": {
- "bbox": {
- "0": 13.822174072265625,
- "1": 45.85080395917834,
- "2": 14.55963134765625,
- "3": 46.29191774991382
}, - "geometry": {
- "type": "Polygon",
- "coordinates": {
- "0": {
- "0": {
- "0": 14.000701904296873,
- "1": 46.23685258143992
}, - "1": {
- "0": 13.822174072265625,
- "1": 46.09037664604301
}, - "2": {
- "0": 14.113311767578125,
- "1": 45.85080395917834
}, - "3": {
- "0": 14.55963134765625,
- "1": 46.038922598236
}, - "4": {
- "0": 14.441528320312498,
- "1": 46.28717293114449
}, - "5": {
- "0": 14.17236328125,
- "1": 46.29191774991382
}, - "6": {
- "0": 14.000701904296873,
- "1": 46.23685258143992
}
}
}
},
}, - "data": [
- {
- "type": "sentinel-2-l1c",
- "id": "string",
- "dataFilter": {
- "timeRange": {
- "from": "2018-10-01T00:00:00.000Z",
- "to": "2018-11-01T00:00:00.000Z"
}, - "mosaickingOrder": "mostRecent",
- "maxCloudCoverage": 100,
- "previewMode": "DETAIL"
}, - "processing": {
- "upsampling": "NEAREST",
- "downsampling": "NEAREST",
- "harmonizeValues": true
}
}
]
}, - "output": {
- "responses": [
- {
- "identifier": "<identifier>",
- "format": {
- "type": "image/tiff"
}
}
]
}, - "evalscript": "string"
}, - "input": {
- "type": "geopackage",
- "features": {
- "s3": {
- "url": "string",
- "iamRoleARN": "string",
- "accessKey": "string",
- "secretAccessKey": "string",
- "region": "string"
}
}, - "defaults": {
- "width": 512,
- "height": 512,
- "resolution": 1
}
}, - "output": {
- "type": "raster",
- "delivery": {
- "s3": {
- "url": "string",
- "iamRoleARN": "string",
- "accessKey": "string",
- "secretAccessKey": "string",
- "region": "string"
}
}, - "overwrite": false,
- "skipExisting": false,
- "cogOutput": false,
- "cogParameters": {
- "overviewLevels": [
- 0
], - "overviewMinSize": 0,
- "resamplingAlgorithm": "nearest",
- "blockxsize": 256,
- "blockysize": 256,
- "usePredictor": true
}, - "createCollection": false,
- "collectionId": "string"
}, - "instanceType": "normal",
- "description": "string"
}Response samples
- 201
- 400
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "request": {
- "processRequest": {
- "input": {
- "bounds": {
- "bbox": {
- "0": 13.822174072265625,
- "1": 45.85080395917834,
- "2": 14.55963134765625,
- "3": 46.29191774991382
}, - "geometry": {
- "type": "Polygon",
- "coordinates": {
- "0": {
- "0": {
- "0": 14.000701904296873,
- "1": 46.23685258143992
}, - "1": {
- "0": 13.822174072265625,
- "1": 46.09037664604301
}, - "2": {
- "0": 14.113311767578125,
- "1": 45.85080395917834
}, - "3": {
- "0": 14.55963134765625,
- "1": 46.038922598236
}, - "4": {
- "0": 14.441528320312498,
- "1": 46.28717293114449
}, - "5": {
- "0": 14.17236328125,
- "1": 46.29191774991382
}, - "6": {
- "0": 14.000701904296873,
- "1": 46.23685258143992
}
}
}
},
}, - "data": [
- {
- "type": "sentinel-2-l1c",
- "id": "string",
- "dataFilter": {
- "timeRange": {
- "from": "2018-10-01T00:00:00.000Z",
- "to": "2018-11-01T00:00:00.000Z"
}, - "mosaickingOrder": "mostRecent",
- "maxCloudCoverage": 100,
- "previewMode": "DETAIL"
}, - "processing": {
- "upsampling": "NEAREST",
- "downsampling": "NEAREST",
- "harmonizeValues": true
}
}
]
}, - "output": {
- "responses": [
- {
- "identifier": "<identifier>",
- "format": {
- "type": "image/tiff"
}
}
]
}, - "evalscript": "string"
}, - "input": {
- "type": "geopackage",
- "features": {
- "s3": {
- "url": "string",
- "iamRoleARN": "string",
- "accessKey": "string",
- "secretAccessKey": "string",
- "region": "string"
}
}, - "defaults": {
- "width": 512,
- "height": 512,
- "resolution": 1
}
}, - "output": {
- "type": "raster",
- "delivery": {
- "s3": {
- "url": "string",
- "iamRoleARN": "string",
- "accessKey": "string",
- "secretAccessKey": "string",
- "region": "string"
}
}, - "overwrite": false,
- "skipExisting": false,
- "cogOutput": false,
- "cogParameters": {
- "overviewLevels": [
- 0
], - "overviewMinSize": 0,
- "resamplingAlgorithm": "nearest",
- "blockxsize": 256,
- "blockysize": 256,
- "usePredictor": true
}, - "createCollection": false,
- "collectionId": "string"
}, - "instanceType": "normal",
- "description": "string"
}, - "domainAccountId": "4e1699b2-af74-455a-818d-6f1ec31a6d19",
- "projectId": "5a8591dd-4039-49df-9202-96385ba3eff8",
- "workspaceId": "ef0efa32-d1c1-43d4-a5e2-fe7b4f00403c",
- "status": "CREATED",
- "error": "string",
- "userAction": "NONE",
- "userActionUpdated": "2019-08-24T14:15:22Z",
- "created": "2019-08-24T14:15:22Z",
- "completionPercentage": 0,
- "lastUpdated": "2019-08-24T14:15:22Z",
- "costPU": 0,
- "stoppedStatusReason": "OUT_OF_PU"
}Query batch process requests
Authorizations:
query Parameters
| count | integer <int32> Upper limit to the number of items to retrieve. It cannot be larger than the endpoint-specific limit. If omitted, the endpoint-specific limit is used. For more records, use viewtoken to page through. |
| viewtoken | string When the total number of items is larger than count, the response contains viewtoken. This viewtoken can be used in the next request to retrieve the next page of items. The next page can be retrieved by repeating the query. However, replace your URL with the next URL in the returned links object. |
| sort | string Enum: "created" "created:desc" "status" "status:desc" Sort the batch process requests by given field. Omit for default ordering. |
Responses
Response samples
- 200
{- "data": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "request": {
- "processRequest": {
- "input": {
- "bounds": {
- "bbox": {
- "0": 13.822174072265625,
- "1": 45.85080395917834,
- "2": 14.55963134765625,
- "3": 46.29191774991382
}, - "geometry": {
- "type": "Polygon",
- "coordinates": {
- "0": {
- "0": {
- "0": 14.000701904296873,
- "1": 46.23685258143992
}, - "1": {
- "0": 13.822174072265625,
- "1": 46.09037664604301
}, - "2": {
- "0": 14.113311767578125,
- "1": 45.85080395917834
}, - "3": {
- "0": 14.55963134765625,
- "1": 46.038922598236
}, - "4": {
- "0": 14.441528320312498,
- "1": 46.28717293114449
}, - "5": {
- "0": 14.17236328125,
- "1": 46.29191774991382
}, - "6": {
- "0": 14.000701904296873,
- "1": 46.23685258143992
}
}
}
},
}, - "data": [
- {
- "type": "sentinel-2-l1c",
- "id": "string",
- "dataFilter": {
- "timeRange": {
- "from": "2018-10-01T00:00:00.000Z",
- "to": "2018-11-01T00:00:00.000Z"
}, - "mosaickingOrder": "mostRecent",
- "maxCloudCoverage": 100,
- "previewMode": "DETAIL"
}, - "processing": {
- "upsampling": "NEAREST",
- "downsampling": "NEAREST",
- "harmonizeValues": true
}
}
]
}, - "output": {
- "responses": [
- {
- "identifier": "<identifier>",
- "format": {
- "type": "image/tiff"
}
}
]
}, - "evalscript": "string"
}, - "input": {
- "type": "geopackage",
- "features": {
- "s3": {
- "url": "string",
- "iamRoleARN": "string",
- "accessKey": "string",
- "secretAccessKey": "string",
- "region": "string"
}
}, - "defaults": {
- "width": 512,
- "height": 512,
- "resolution": 1
}
}, - "output": {
- "type": "raster",
- "delivery": {
- "s3": {
- "url": "string",
- "iamRoleARN": "string",
- "accessKey": "string",
- "secretAccessKey": "string",
- "region": "string"
}
}, - "overwrite": false,
- "skipExisting": false,
- "cogOutput": false,
- "cogParameters": {
- "overviewLevels": [
- 0
], - "overviewMinSize": 0,
- "resamplingAlgorithm": "nearest",
- "blockxsize": 256,
- "blockysize": 256,
- "usePredictor": true
}, - "createCollection": false,
- "collectionId": "string"
}, - "instanceType": "normal",
- "description": "string"
}, - "domainAccountId": "4e1699b2-af74-455a-818d-6f1ec31a6d19",
- "projectId": "5a8591dd-4039-49df-9202-96385ba3eff8",
- "workspaceId": "ef0efa32-d1c1-43d4-a5e2-fe7b4f00403c",
- "status": "CREATED",
- "error": "string",
- "userAction": "NONE",
- "userActionUpdated": "2019-08-24T14:15:22Z",
- "created": "2019-08-24T14:15:22Z",
- "completionPercentage": 0,
- "lastUpdated": "2019-08-24T14:15:22Z",
- "costPU": 0,
- "stoppedStatusReason": "OUT_OF_PU"
}
], - "links": {
- "currentToken": "string",
- "nextToken": "string",
- "previousToken": "string",
}
}Retrieve a single batch process task by ID
Authorizations:
path Parameters
| taskId required | string <uuid> Task ID |
Responses
Response samples
- 200
- 404
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "request": {
- "processRequest": {
- "input": {
- "bounds": {
- "bbox": {
- "0": 13.822174072265625,
- "1": 45.85080395917834,
- "2": 14.55963134765625,
- "3": 46.29191774991382
}, - "geometry": {
- "type": "Polygon",
- "coordinates": {
- "0": {
- "0": {
- "0": 14.000701904296873,
- "1": 46.23685258143992
}, - "1": {
- "0": 13.822174072265625,
- "1": 46.09037664604301
}, - "2": {
- "0": 14.113311767578125,
- "1": 45.85080395917834
}, - "3": {
- "0": 14.55963134765625,
- "1": 46.038922598236
}, - "4": {
- "0": 14.441528320312498,
- "1": 46.28717293114449
}, - "5": {
- "0": 14.17236328125,
- "1": 46.29191774991382
}, - "6": {
- "0": 14.000701904296873,
- "1": 46.23685258143992
}
}
}
},
}, - "data": [
- {
- "type": "sentinel-2-l1c",
- "id": "string",
- "dataFilter": {
- "timeRange": {
- "from": "2018-10-01T00:00:00.000Z",
- "to": "2018-11-01T00:00:00.000Z"
}, - "mosaickingOrder": "mostRecent",
- "maxCloudCoverage": 100,
- "previewMode": "DETAIL"
}, - "processing": {
- "upsampling": "NEAREST",
- "downsampling": "NEAREST",
- "harmonizeValues": true
}
}
]
}, - "output": {
- "responses": [
- {
- "identifier": "<identifier>",
- "format": {
- "type": "image/tiff"
}
}
]
}, - "evalscript": "string"
}, - "input": {
- "type": "geopackage",
- "features": {
- "s3": {
- "url": "string",
- "iamRoleARN": "string",
- "accessKey": "string",
- "secretAccessKey": "string",
- "region": "string"
}
}, - "defaults": {
- "width": 512,
- "height": 512,
- "resolution": 1
}
}, - "output": {
- "type": "raster",
- "delivery": {
- "s3": {
- "url": "string",
- "iamRoleARN": "string",
- "accessKey": "string",
- "secretAccessKey": "string",
- "region": "string"
}
}, - "overwrite": false,
- "skipExisting": false,
- "cogOutput": false,
- "cogParameters": {
- "overviewLevels": [
- 0
], - "overviewMinSize": 0,
- "resamplingAlgorithm": "nearest",
- "blockxsize": 256,
- "blockysize": 256,
- "usePredictor": true
}, - "createCollection": false,
- "collectionId": "string"
}, - "instanceType": "normal",
- "description": "string"
}, - "domainAccountId": "4e1699b2-af74-455a-818d-6f1ec31a6d19",
- "projectId": "5a8591dd-4039-49df-9202-96385ba3eff8",
- "workspaceId": "ef0efa32-d1c1-43d4-a5e2-fe7b4f00403c",
- "status": "CREATED",
- "error": "string",
- "userAction": "NONE",
- "userActionUpdated": "2019-08-24T14:15:22Z",
- "created": "2019-08-24T14:15:22Z",
- "completionPercentage": 0,
- "lastUpdated": "2019-08-24T14:15:22Z",
- "costPU": 0,
- "stoppedStatusReason": "OUT_OF_PU"
}Update a batch process request
Only the requests that are not currently being processed nor waiting to be processed can be updated.
Authorizations:
path Parameters
| taskId required | string <uuid> Task ID |
Request Body schema: application/json
| description | string Optional description that can be used to keep track of requests. If omitted, the description will not be changed. |
Responses
Request samples
- Payload
{- "description": "string"
}Response samples
- 200
- 404
- 409
{- "processRequest": {
- "input": {
- "bounds": {
- "bbox": {
- "0": 13.822174072265625,
- "1": 45.85080395917834,
- "2": 14.55963134765625,
- "3": 46.29191774991382
}, - "geometry": {
- "type": "Polygon",
- "coordinates": {
- "0": {
- "0": {
- "0": 14.000701904296873,
- "1": 46.23685258143992
}, - "1": {
- "0": 13.822174072265625,
- "1": 46.09037664604301
}, - "2": {
- "0": 14.113311767578125,
- "1": 45.85080395917834
}, - "3": {
- "0": 14.55963134765625,
- "1": 46.038922598236
}, - "4": {
- "0": 14.441528320312498,
- "1": 46.28717293114449
}, - "5": {
- "0": 14.17236328125,
- "1": 46.29191774991382
}, - "6": {
- "0": 14.000701904296873,
- "1": 46.23685258143992
}
}
}
},
}, - "data": [
- {
- "type": "sentinel-2-l1c",
- "id": "string",
- "dataFilter": {
- "timeRange": {
- "from": "2018-10-01T00:00:00.000Z",
- "to": "2018-11-01T00:00:00.000Z"
}, - "mosaickingOrder": "mostRecent",
- "maxCloudCoverage": 100,
- "previewMode": "DETAIL"
}, - "processing": {
- "upsampling": "NEAREST",
- "downsampling": "NEAREST",
- "harmonizeValues": true
}
}
]
}, - "output": {
- "responses": [
- {
- "identifier": "<identifier>",
- "format": {
- "type": "image/tiff"
}
}
]
}, - "evalscript": "string"
}, - "input": {
- "type": "geopackage",
- "features": {
- "s3": {
- "url": "string",
- "iamRoleARN": "string",
- "accessKey": "string",
- "secretAccessKey": "string",
- "region": "string"
}
}, - "defaults": {
- "width": 512,
- "height": 512,
- "resolution": 1
}
}, - "output": {
- "type": "raster",
- "delivery": {
- "s3": {
- "url": "string",
- "iamRoleARN": "string",
- "accessKey": "string",
- "secretAccessKey": "string",
- "region": "string"
}
}, - "overwrite": false,
- "skipExisting": false,
- "cogOutput": false,
- "cogParameters": {
- "overviewLevels": [
- 0
], - "overviewMinSize": 0,
- "resamplingAlgorithm": "nearest",
- "blockxsize": 256,
- "blockysize": 256,
- "usePredictor": true
}, - "createCollection": false,
- "collectionId": "string"
}, - "instanceType": "normal",
- "description": "string"
}Get properties of all supported tiling grids
Authorizations:
query Parameters
| count | integer <int32> Upper limit to the number of items to retrieve. It cannot be larger than the endpoint-specific limit. If omitted, the endpoint-specific limit is used. For more records, use viewtoken to page through. |
| viewtoken | string When the total number of items is larger than count, the response contains viewtoken. This viewtoken can be used in the next request to retrieve the next page of items. The next page can be retrieved by repeating the query. However, replace your URL with the next URL in the returned links object. |
Responses
Response samples
- 200
{- "data": [
- {
- "id": 0,
- "name": "string",
- "properties": {
- "tileWidth": 0.1,
- "tileHeight": 0.1,
- "resolutions": [
- 0.1
], - "unit": "METRE"
}
}
], - "links": {
- "currentToken": "string",
- "nextToken": "string",
- "previousToken": "string",
}
}