Subscriptions API Reference
Planet Subscriptions service API (1.0.0)
Download OpenAPI specification:Download
List all subscriptions
Authorizations:
query Parameters
created | string Either a date-time or an interval, open or closed. Date and time expressions adhere to RFC 3339. Open intervals are expressed using double-dots. Examples:
Only subscriptions or results that have a created timestamp that intersects the
value of |
end_time | string Either a date-time or an interval, open or closed. Date and time expressions adhere to RFC 3339. Open intervals are expressed using double-dots. Examples:
Only subscriptions that have an end time that intersects the value of
|
hosting | boolean Only return subscriptions that contain a hosting block (e.g. SentinelHub hosting). |
name__contains | string Only return subscriptions with a name that contains the given string. |
name | string Only return subscriptions with a name that matches the given string. |
page_marker | string |
page_size | integer <int32> [ 0 .. 10000 ] |
string or string (SourceTypesAll) | |
start_time | string Either a date-time or an interval, open or closed. Date and time expressions adhere to RFC 3339. Open intervals are expressed using double-dots. Examples:
Only subscriptions that have a start time that intersects the value of
|
status | string Enum: "running" "cancelled" "preparing" "pending" "completed" "suspended" "failed" "invalid" |
sort_by | string Fields to sort subscriptions by. Multiple fields can be specified, separated by commas. The sort direction can be specified by appending ' ASC' or ' DESC' to the field name. The default sort direction is ascending. When multiple fields are specified, the sort order is applied in the order the fields are listed. If no Supported fields: name, created, updated, start_time, end_time Examples:
|
updated | string Either a date-time or an interval, open or closed. Date and time expressions adhere to RFC 3339. Open intervals are expressed using double-dots. Examples:
Only subscriptions or results that have an updated timestamp that intersects
the value of |
user_id | string^(all|[0-9]+)$ When set to When set to an integer that represents a user ID, only returns information about subscriptions created by that user in the organization. Only allowed if the calling user has sufficient permissions. |
geom_ref | string URI reference to a feature collection or individual feature in the Features API. Examples:
|
Responses
Response samples
- 200
- 403
- 500
{- "_links": {
- "_self": "string",
- "next": "string"
}, - "subscriptions": [
- {
- "created": "2019-08-24T14:15:22Z",
- "delivery": {
- "parameters": {
- "bucket": "string",
- "credentials": "string",
- "path_prefix": "of-interest/"
}, - "type": "google_cloud_storage"
}, - "error_hints": {
- "details": [
- null
], - "reason": "Unexpected error"
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "source": {
- "parameters": {
- "asset_types": [
- "string"
], - "end_time": "2019-08-24T14:15:22Z",
- "filter": { },
- "geometry": { },
- "item_types": [
- "string"
], - "publishing_stages": {
- "0": "standard",
- "1": "finalized"
}, - "rrule": "FREQ=MONTHLY;BYMONTH=3,4,5,6,7",
- "start_time": "2019-08-24T14:15:22Z",
- "time_range_type": "published"
}, - "type": "catalog"
}, - "status": "string",
- "tools": [
- {
- "parameters": {
- "aoi": { }
}, - "type": "clip"
}
], - "updated": "2019-08-24T14:15:22Z",
- "_links": {
- "_self": "string"
}
}
]
}
Create a subscription
Authorizations:
Request Body schema: application/jsonrequired
GCS (object) or AWS (object) or Azure (object) or OCS (object) or GEE (object) or S3 Compatible (object) A delivery mechanism. | |
Sentinel Hub (object) Specify a data hosting location. A hosting location removes the need to specify a delivery location. Specifying both is not allowed. This location cannot be updated after a subscription has been created. | |
name required | string Name of the subscription |
object Specify notifications via webhook. | |
required | object (Subscription Source) Source block to define the subscription source parameters |
Array of TransformClip (object) or TransformReproject (object) or TransformBandmath (object) or TransformHarmonize (object) or TransformToar (object) or TransformFileFormat (object) or TransformCloudFilter (object) A list of blocks for processing items obtained from 'source'. |
Responses
Request samples
- Payload
{- "delivery": {
- "parameters": {
- "bucket": "string",
- "credentials": "string",
- "path_prefix": "of-interest/"
}, - "type": "google_cloud_storage"
}, - "hosting": {
- "parameters": {
- "collection_id": "4bdef85c-3f50-4006-a713-2350da665f80",
- "configuration_id": "af0daaf4-983e-4703-a7ed-a10f146d6684",
- "create_configuration": true
}, - "type": "sentinel_hub"
}, - "name": "string",
- "source": {
- "parameters": {
- "asset_types": [
- "string"
], - "end_time": "2019-08-24T14:15:22Z",
- "filter": { },
- "geometry": { },
- "item_types": [
- "string"
], - "publishing_stages": {
- "0": "standard",
- "1": "finalized"
}, - "rrule": "FREQ=MONTHLY;BYMONTH=3,4,5,6,7",
- "start_time": "2019-08-24T14:15:22Z",
- "time_range_type": "published"
}, - "type": "catalog"
}, - "tools": [
- {
- "parameters": {
- "aoi": { }
}, - "type": "clip"
}
]
}
Response samples
- 200
- 400
- 403
- 500
{- "created": "2019-08-24T14:15:22Z",
- "delivery": {
- "parameters": {
- "bucket": "string",
- "credentials": "string",
- "path_prefix": "of-interest/"
}, - "type": "google_cloud_storage"
}, - "error_hints": {
- "details": [
- null
], - "reason": "Unexpected error"
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "source": {
- "parameters": {
- "asset_types": [
- "string"
], - "end_time": "2019-08-24T14:15:22Z",
- "filter": { },
- "geometry": { },
- "item_types": [
- "string"
], - "publishing_stages": {
- "0": "standard",
- "1": "finalized"
}, - "rrule": "FREQ=MONTHLY;BYMONTH=3,4,5,6,7",
- "start_time": "2019-08-24T14:15:22Z",
- "time_range_type": "published"
}, - "type": "catalog"
}, - "status": "string",
- "tools": [
- {
- "parameters": {
- "aoi": { }
}, - "type": "clip"
}
], - "updated": "2019-08-24T14:15:22Z",
- "_links": {
- "_self": "string"
}
}
Get a summary of all subscriptions
Authorizations:
query Parameters
user_id | string Value: "all" When set to Only allowed if the calling user has sufficient permissions. |
Responses
Response samples
- 200
- 403
- 500
{- "subscriptions": {
- "cancelled": 0,
- "completed": 0,
- "failed": 0,
- "invalid": 0,
- "pending": 0,
- "preparing": 0,
- "running": 0,
- "suspended": 0
}
}
Get a subscription
Authorizations:
path Parameters
subscriptionId required | string <uuid> |
query Parameters
user_id | string Value: "all" When set to Only allowed if the calling user has sufficient permissions. |
Responses
Response samples
- 200
- 403
- 500
{- "created": "2019-08-24T14:15:22Z",
- "delivery": {
- "parameters": {
- "bucket": "string",
- "credentials": "string",
- "path_prefix": "of-interest/"
}, - "type": "google_cloud_storage"
}, - "error_hints": {
- "details": [
- null
], - "reason": "Unexpected error"
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "source": {
- "parameters": {
- "asset_types": [
- "string"
], - "end_time": "2019-08-24T14:15:22Z",
- "filter": { },
- "geometry": { },
- "item_types": [
- "string"
], - "publishing_stages": {
- "0": "standard",
- "1": "finalized"
}, - "rrule": "FREQ=MONTHLY;BYMONTH=3,4,5,6,7",
- "start_time": "2019-08-24T14:15:22Z",
- "time_range_type": "published"
}, - "type": "catalog"
}, - "status": "string",
- "tools": [
- {
- "parameters": {
- "aoi": { }
}, - "type": "clip"
}
], - "updated": "2019-08-24T14:15:22Z",
- "_links": {
- "_self": "string"
}
}
Patch a subscription
Authorizations:
path Parameters
subscriptionId required | string <uuid> |
Request Body schema: application/jsonrequired
name required | string Name of the subscription |
Responses
Request samples
- Payload
{- "name": "string"
}
Response samples
- 200
- 400
- 403
- 500
{- "created": "2019-08-24T14:15:22Z",
- "delivery": {
- "parameters": {
- "bucket": "string",
- "credentials": "string",
- "path_prefix": "of-interest/"
}, - "type": "google_cloud_storage"
}, - "error_hints": {
- "details": [
- null
], - "reason": "Unexpected error"
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "source": {
- "parameters": {
- "asset_types": [
- "string"
], - "end_time": "2019-08-24T14:15:22Z",
- "filter": { },
- "geometry": { },
- "item_types": [
- "string"
], - "publishing_stages": {
- "0": "standard",
- "1": "finalized"
}, - "rrule": "FREQ=MONTHLY;BYMONTH=3,4,5,6,7",
- "start_time": "2019-08-24T14:15:22Z",
- "time_range_type": "published"
}, - "type": "catalog"
}, - "status": "string",
- "tools": [
- {
- "parameters": {
- "aoi": { }
}, - "type": "clip"
}
], - "updated": "2019-08-24T14:15:22Z",
- "_links": {
- "_self": "string"
}
}
Update a subscription
Authorizations:
path Parameters
subscriptionId required | string <uuid> |
Request Body schema: application/jsonrequired
GCS (object) or AWS (object) or Azure (object) or OCS (object) or GEE (object) or S3 Compatible (object) A delivery mechanism. | |
Sentinel Hub (object) Specify a data hosting location. A hosting location removes the need to specify a delivery location. Specifying both is not allowed. This location cannot be updated after a subscription has been created. | |
name required | string Name of the subscription |
required | object (Subscription Source) Source block to define the subscription source parameters |
Array of TransformClip (object) or TransformReproject (object) or TransformBandmath (object) or TransformHarmonize (object) or TransformToar (object) or TransformFileFormat (object) or TransformCloudFilter (object) A list of blocks for processing items obtained from 'source'. |
Responses
Request samples
- Payload
{- "delivery": {
- "parameters": {
- "bucket": "string",
- "credentials": "string",
- "path_prefix": "of-interest/"
}, - "type": "google_cloud_storage"
}, - "hosting": {
- "parameters": {
- "collection_id": "4bdef85c-3f50-4006-a713-2350da665f80",
- "configuration_id": "af0daaf4-983e-4703-a7ed-a10f146d6684",
- "create_configuration": true
}, - "type": "sentinel_hub"
}, - "name": "string",
- "source": {
- "parameters": {
- "asset_types": [
- "string"
], - "end_time": "2019-08-24T14:15:22Z",
- "filter": { },
- "geometry": { },
- "item_types": [
- "string"
], - "publishing_stages": {
- "0": "standard",
- "1": "finalized"
}, - "rrule": "FREQ=MONTHLY;BYMONTH=3,4,5,6,7",
- "start_time": "2019-08-24T14:15:22Z",
- "time_range_type": "published"
}, - "type": "catalog"
}, - "tools": [
- {
- "parameters": {
- "aoi": { }
}, - "type": "clip"
}
]
}
Response samples
- 200
- 400
- 403
- 500
{- "created": "2019-08-24T14:15:22Z",
- "delivery": {
- "parameters": {
- "bucket": "string",
- "credentials": "string",
- "path_prefix": "of-interest/"
}, - "type": "google_cloud_storage"
}, - "error_hints": {
- "details": [
- null
], - "reason": "Unexpected error"
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "source": {
- "parameters": {
- "asset_types": [
- "string"
], - "end_time": "2019-08-24T14:15:22Z",
- "filter": { },
- "geometry": { },
- "item_types": [
- "string"
], - "publishing_stages": {
- "0": "standard",
- "1": "finalized"
}, - "rrule": "FREQ=MONTHLY;BYMONTH=3,4,5,6,7",
- "start_time": "2019-08-24T14:15:22Z",
- "time_range_type": "published"
}, - "type": "catalog"
}, - "status": "string",
- "tools": [
- {
- "parameters": {
- "aoi": { }
}, - "type": "clip"
}
], - "updated": "2019-08-24T14:15:22Z",
- "_links": {
- "_self": "string"
}
}
Cancel subscriptions
Permanently cancel a subscription and stop delivery. Supported when a subscription is pending
, running
, failed
, or suspended
.
Authorizations:
path Parameters
subscriptionId required | string <uuid> |
Responses
Response samples
- 400
- 403
- 500
{- "error": {
- "details": { },
- "reason": "Could not find requested subscription"
}
}
Get results for a given subscription
Authorizations:
path Parameters
subscriptionId required | string <uuid> |
query Parameters
page_marker | string <date-time> |
page_size | integer <int32> [ 0 .. 10000 ] |
status | string Enum: "created" "queued" "processing" "failed" "success" |
created | string Either a date-time or an interval, open or closed. Date and time expressions adhere to RFC 3339. Open intervals are expressed using double-dots. Examples:
Only subscriptions or results that have a created timestamp that intersects the
value of |
updated | string Either a date-time or an interval, open or closed. Date and time expressions adhere to RFC 3339. Open intervals are expressed using double-dots. Examples:
Only subscriptions or results that have an updated timestamp that intersects
the value of |
completed | string Either a date-time or an interval, open or closed. Date and time expressions adhere to RFC 3339. Open intervals are expressed using double-dots. Examples:
Only subscriptions or results that have a completed timestamp that intersects
the value of |
item_datetime | string Either a date-time or an interval, open or closed. Date and time expressions adhere to RFC 3339. Open intervals are expressed using double-dots. Examples:
Only subscriptions that have an item datetime that intersects the value of
|
user_id | string Value: "all" When set to Only allowed if the calling user has sufficient permissions. |
Responses
Response samples
- 200
- 400
- 403
- 500
{- "_links": {
- "_next": "string",
- "_self": "string"
}, - "completed": "2019-08-24T14:15:22Z",
- "created": "2019-08-24T14:15:22Z",
- "errors": {
- "details": [
- "string"
], - "reason": "string"
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "outputs": [
- "string"
], - "properties": { },
- "status": "string",
- "updated": "2019-08-24T14:15:22Z"
}
Get a summary of results for a given subscription
Authorizations:
path Parameters
subscriptionId required | string <uuid> |
Responses
Response samples
- 200
- 403
- 500
{- "results": {
- "created": 0,
- "failed": 0,
- "processing": 0,
- "queued": 0,
- "success": 0
}, - "subscription": {
- "status": "string"
}
}