openEO API (1.0.0-rc.1)

Download OpenAPI specification:Download

The openEO API specification for interoperable cloud-based processing of large Earth observation datasets.

API Principles

Language

In the specification the key words “MUST”, “MUST NOT”, “REQUIRED”, “SHALL”, “SHALL NOT”, “SHOULD”, “SHOULD NOT”, “RECOMMENDED”, “MAY”, and “OPTIONAL” in this document are to be interpreted as described in RFC 2119.

Casing

Unless otherwise stated the API works case sensitive.

All names SHOULD be written in snake case, i.e. words are separated with one underscore character (_) and no spaces, with all letters lower-cased. Example: hello_world. This applies particularly to endpoints and JSON property names. HTTP header fields follow their respective casing conventions, e.g. Content-Type or OpenEO-Costs, despite being case-insensitive according to RFC 7230.

HTTP / REST

This uses HTTP REST Level 2 for communication between client and back-end server.

Public APIs MUST be available via HTTPS only.

Endpoints are made use meaningful HTTP verbs (e.g. GET, POST, PUT, PATCH, DELETE) whenever technically possible. If there is a need to transfer big chunks of data for a GET requests to the back-end, POST requests MAY be used as a replacement as they support to send data via request body. Unless otherwise stated, PATCH requests are only defined to work on direct (first-level) children of the full JSON object. Therefore, changing a property on a deeper level of the full JSON object always requires to send the whole JSON object defined by the first-level property.

Naming of endpoints follow the REST principles. Therefore, endpoints are centered around resources. Resource identifiers MUST be named with a noun in plural form except for single actions that can not be modelled with the regular HTTP verbs. Single actions MUST be single endpoints with a single HTTP verb (POST is RECOMMENDED) and no other endpoints beneath it.

JSON

The API uses JSON for request and response bodies whenever feasible. Services use JSON as the default encoding. Other encodings can be requested using Content Negotiation. Clients and servers MUST NOT rely on the order in which properties appears in JSON. Collections usually don't include nested JSON objects if those information can be requested from the individual resources.

Web Linking

The API is designed in a way that to most entities (e.g. collections and processes) a set of links can be added. These can be alternate representations, e.g. data discovery via OGC WCS or OGC CSW, references to a license, references to actual raw data for downloading, detailed information about pre-processing and more. Clients should allow users to follow the links.

Whenever links are utilized in the API, the description explains which relation (rel property) types are commonly used. A list of standardized link relations types is provided by IANA and the API tries to align whenever feasible.

Some very common relation types - usually not mentioned explicitly in the description of links fields - are:

  1. self: which allows link to the location that the resource can be (permanently) found online.This is particularly useful when the data is data is made available offline, so that the downstream user knows where the data has come from.

  2. alternate: An alternative representation of the resource, may it be another metadata standard the data is available in or simply a human-readable version in HTML or PDF.

  3. about: A resource that is related or further explains the resource, e.g. a user guide.

Error Handling

The success of requests MUST be indicated using HTTP status codes according to RFC 7231.

If the API responds with a status code between 100 and 399 the back-end indicates that the request has been handled successfully.

In general an error is communicated with a status code between 400 and 599. Client errors are defined as a client passing invalid data to the service and the service correctly rejecting that data. Examples include invalid credentials, incorrect parameters, unknown versions, or similar. These are generally "4xx" HTTP error codes and are the result of a client passing incorrect or invalid data. Client errors do not contribute to overall API availability.

Server errors are defined as the server failing to correctly return in response to a valid client request. These are generally "5xx" HTTP error codes. Server errors do contribute to the overall API availability. Calls that fail due to rate limiting or quota failures MUST NOT count as server errors.

JSON error object

A JSON error object SHOULD be sent with all responses that have a status code between 400 and 599.

{
  "id": "936DA01F-9ABD-4D9D-80C7-02AF85C822A8",
  "code": "SampleError",
  "message": "A sample error message.",
  "url": "http://www.openeo.org/docs/errors/SampleError"
}

Sending code and message is REQUIRED.

  • A back-end MAY add a free-form id (unique identifier) to the error response to be able to log and track errors with further non-disclosable details.

  • The code is either one of the standardized textual openEO error codes or a proprietary error code.

  • The message explains the reason the server is rejecting the request. For "4xx" error codes the message explains how the client needs to modify the request.

    By default the message MUST be sent in English language. Content Negotiation is used to localize the error messages: If an Accept-Language header is sent by the client and a translation is available, the message should be translated accordingly and the Content-Language header must be present in the response. See "How to localize your API" for more information.

  • url is an OPTIONAL attribute and contains a link to a resource that is explaining the error and potential solutions in-depth.

Standardized status codes

The openEO API usually uses the following HTTP status codes for successful requests:

  • 200 OK: Indicates a successful request with a response body being sent.
  • 201 Created Indicates a successful request that successfully created a new resource. Sends a Location header to the newly created resource without a response body.
  • 202 Accepted Indicates a successful request that successfully queued the creation of a new resource, but it has not been created yet. The response is sent without a response body.
  • 204 No Content: Indicates a successful request without a response body being sent.

The openEO API has some commonly used HTTP status codes for failed requests:

  • 400 Bad Request: The back-end responds with this error code whenever the error has its origin on client side and no other HTTP status code in the 400 range is suitable.

  • 401 Unauthorized: The client did not provide any authentication details for a resource requiring authentication or the provided authentication details are not correct.

  • 403 Forbidden: The client did provided correct authentication details, but the privileges/permissions of the provided credentials do not allow to request the resource.

  • 404 Not Found: The resource specified by the path does not exist, i.e. one of the resources belonging to the specified identifiers are not available at the back-end. Note: Unsupported endpoints MUST use HTTP status code 501.

  • 500 Internal Server Error: The error has its origin on server side and no other status code in the 500 range is suitable.

If a HTTP status code in the 400 range is returned, the client SHOULD NOT repeat the request without modifications. For HTTP status code in the 500 range, the client MAY repeat the same request later.

All HTTP status codes defined in RFC 7231 in the 400 and 500 ranges can be used as openEO error code in addition to the most used status codes mentioned here. Responding with openEO error codes 400 and 500 SHOULD be avoided in favor of any more specific standardized or proprietary openEO error code.

Temporal data

Date, time, intervals and durations are formatted based on ISO 8601 or its profile RFC 3339 whenever there is an appropriate encoding available in the standard. All temporal data are specified based on the Gregorian calendar.

Authentication

The openEO API offers two forms of authentication by default:

  • OpenID Connect (recommended) at GET /credentials/oidc
  • Basic at GET /credentials/basic

After authentication with any of the methods listed above, the tokens obtained during the authentication workflows can be sent to protected endpoints in subsequent requests.

Further authentication methods MAY be added by back-ends.

Bearer

Security Scheme Type HTTP
HTTP Authorization Scheme bearer
Bearer format "The Bearer Token MUST consist of the authentication method, a provider ID (if available) and the token itself. All separated by a forward slash `/`. Examples (replace `TOKEN` with the actual access token): (1) Basic authentication (no provider ID available): `basic//TOKEN` (2) OpenID Connect (provider ID is `ms`): `oidc/ms/TOKEN`. For OpenID Connect, the provider ID corresponds to the value specified for `id` for each provider in `GET /credentials/oidc`."

Basic

Security Scheme Type HTTP
HTTP Authorization Scheme basic

Cross-Origin Resource Sharing (CORS)

Cross-origin resource sharing (CORS) is a mechanism that allows restricted resources [...] on a web page to be requested from another domain outside the domain from which the first resource was served. [...] CORS defines a way in which a browser and server can interact to determine whether or not it is safe to allow the cross-origin request. It allows for more freedom and functionality than purely same-origin requests, but is more secure than simply allowing all cross-origin requests.

Source: https://en.wikipedia.org/wiki/Cross-origin_resource_sharing

openEO-based back-ends are usually hosted on a different domain / host than the client that is requesting data from the back-end. Therefore most requests to the back-end are blocked by all modern browsers. This leads to the problem that the JavaScript library and any browser-based application can't access back-ends. Therefore, all back-end providers SHOULD support CORS to enable browser-based applications to access back-ends. CORS is a recommendation of the W3C organization. The following chapters will explain how back-end providers can implement CORS support.

OPTIONS method

All endpoints must respond to the OPTIONS HTTP method. This is a response for the preflight requests made by the browsers. It needs to respond with a status code of 204 and send the HTTP headers shown in the table below. No body needs to be provided.

Name Description Example
Access-Control-Allow-Origin Allowed origin for the request, including protocol, host and port. It is RECOMMENDED to return the value of the request's origin header. If no Origin is sent to the back-end CORS headers SHOULD NOT be sent at all. http://client.isp.com:80
Access-Control-Allow-Credentials If authorization is implemented by the back-end the value MUST be true. true
Access-Control-Allow-Headers Comma-separated list of HTTP headers allowed to be send. MUST contain at least Authorization if authorization is implemented by the back-end. Authorization, Content-Type
Access-Control-Allow-Methods Comma-separated list of HTTP methods allowed to be requested. Back-ends MUST list all implemented HTTP methods for the endpoint here. OPTIONS, GET, POST, PATCH, PUT, DELETE
Access-Control-Expose-Headers Some endpoints send non-safelisted HTTP response headers such as OpenEO-Identifier and OpenEO-Costs. All headers except Cache-Control, Content-Language, Content-Type, Expires, Last-Modified and Pragma must be listed in this header. Currently, the openEO API requires at least the following headers to be listed: Location, OpenEO-Identifier, OpenEO-Costs. Location, OpenEO-Identifier, OpenEO-Costs
Content-Type SHOULD return the content type delivered by the request that the permission is requested for. application/json

Example request and response

Request:

OPTIONS /api/v1/jobs HTTP/1.1
Host: openeo.cloudprovider.com
Origin: http://client.org:8080
Access-Control-Request-Method: POST 
Access-Control-Request-Headers: Authorization, Content-Type

Response:

HTTP/1.1 204 No Content
Access-Control-Allow-Origin: http://client.org:8080
Access-Control-Allow-Credentials: true
Access-Control-Allow-Methods: OPTIONS, GET, POST, PATCH, PUT, DELETE
Access-Control-Allow-Headers: Authorization, Content-Type
Content-Type: application/json

CORS headers

The following headers MUST be included with every response:

Name Description Example
Access-Control-Allow-Origin Allowed origin for the request, including protocol, host and port. It is RECOMMENDED to return the value of the request's origin header. If no Origin is sent to the back-end CORS headers SHOULD NOT be sent at all. http://client.isp.com:80
Access-Control-Allow-Credentials If authorization is implemented by the back-end the value MUST be true. true
Access-Control-Expose-Headers Some endpoints send non-safelisted HTTP response headers such as OpenEO-Identifier and OpenEO-Costs. All headers except Cache-Control, Content-Language, Content-Type, Expires, Last-Modified and Pragma must be listed in this header. Currently, the openEO API requires at least the following headers to be listed: Location, OpenEO-Identifier, OpenEO-Costs. Location, OpenEO-Identifier, OpenEO-Costs

Tip: Most server can send the required headers and the responses to the OPTIONS requests globally. Otherwise you may want to use a proxy server to add the headers and OPTIONS responses.

Processes

A process is an operation that performs a specific task on a set of parameters and returns a result. An example is computing a statistical operation, such as mean or median, on selected EO data. A process is similar to a function or method in programming languages. In openEO, processes are used to build a chain of processes (process graph), which can be applied to EO data to derive your own findings from the data.

A pre-defined process is a process provided by the back-end. There is a set of predefined processes by openEO to improve interoperability between back-ends. Back-ends SHOULD follow these specifications whenever possible. Not all processes need to be implemented by all back-ends. See the process reference for pre-defined processes.

A user-defined process is a process defined by the user. It can directly be part of another process graph or be stored as custom process on a back-end. Internally it is a process graph with optional additional metadata.

A process graph chains specific process calls from the set of pre-defined and user-defined processes together. A process graph itself can be stored as a (user-defined) process again. Similarly to scripts in the context of programming, process graphs organize and automate the execution of one or more processes that could alternatively be executed individually. In a process graph, processes need to be specific, i.e. concrete values or "placeholders" for input parameters need to be specified. These values can be scalars, arrays, objects, references to parameters or previous computations or other process graphs.

Defining Processes

Back-ends and users MAY define new proprietary processes for their domain.

Back-end providers MUST follow the schema for predefined processes as in GET /processes to define new processes. This includes:

  • Choosing a intuitive and ideally unique name as process id, consisting of only letters (a-z), numbers and underscores.
  • Defining the parameters and their exact (JSON) schemes.
  • Specifying the return value of a process also with a (JSON) schema.
  • Providing examples or compliance tests.
  • Trying to make the process universally usable so that other back-end providers or openEO can adopt it.

Users MUST follow the schema for user-defined processes as in GET /process_graphs to define new processes. This includes:

  • Choosing a intuitive and ideally unique name as process id, consisting of only letters (a-z), numbers and underscores.
  • Defining the algorithm as a process graph.
  • Optionally, specifying the additional metadata for processes.

If new process are potentially useful for other back-ends the openEO consortium is happily accepting pull requests to include them in the list of pre-defined processes.

Schemas

Each process parameter and the return values of a process define a schema that the value MUST comply to. The schemas are based on JSON Schema draft-07.

Two custom keywords have been defined:

  • subtype for more fine-grained data-types than JSON Schema supports.
  • parameters to specify parameters that processes can pass to other process graphs.

Subtypes

JSON Schema allows to specify only a small set of native data types (string, boolean, number, integer, array, object, null). To support more fine grained data types, a custom JSON Schema keyword has been defined: subtype. It works similarly as the JSON Schema keyword format and defines a number of subtypes for the native data types. These should be re-used in process schema definitions whenever suitable.

If a general data type such as string or number is used in a schema, all subtypes with the same parent data type can be passed, too. Clients should offer make passing subtypes as easy as passing a general data type. For example, a parameter accepting strings must also allow passing a string with subtype date and thus clients should encourage this by also providing a date-picker.

A list of predefined subtypes is available as JSON Schema.

Process Graphs

As defined above, a process graph is a chain of processes with explicit values for their parameters. Technically, a process graph is defined to be a graph of connected processes with exactly one node returning the final result:

<ProcessGraph> := {
  "<ProcessNodeIdentifier>": <ProcessNode>,
  ...
}

<ProcessNodeIdentifier> is a unique key within the process graph that is used to reference (the return value of) this process in arguments of other processes. The identifier is unique only strictly within itself, excluding any parent and child process graphs. Process node identifiers are also strictly scoped and can not be referenced from child or parent process graphs. Circular references are not allowed.

Note: We provide a non-binding JSON Schema for basic process graph validation.

Processes (Process Nodes)

A single node in a process graph (i.e. a specific instance of a process) is defined as follows:

<ProcessNode> := {
  "process_id": <string>,
  "description": <string>,
  "arguments": <Arguments>,
  "result": true / false
}

A process node MUST always contain key-value-pairs named process_id and arguments. It MAY contain a description.

One of the nodes in a map of processes (the final one) MUST have the result flag set to true, all the other nodes can omit it as the default value is false. Having such a node is important as multiple end nodes are possible, but in most use cases it is important to exactly specify the return value to be used by other processes. Each child process graph must also specify a result node similar to the "main" process graph.

process_id MUST be any of the pre-defined or user-defined process IDs, which are all listed at GET /processes and GET /process_graphs. An example is load_collection to retrieve data from a specific collection for processing.

Arguments

A process can have an arbitrary number of arguments. Their name and value are specified in the process specification as an object of key-value pairs:

<Arguments> := {
  "<ParameterName>": <string|number|boolean|null|array|object|UserDefinedProcess|ParameterReference|ResultReference>
}

Notes:

  • The specified data types are the native data types supported by JSON, except for UserDefinedProcess, ParameterReference and ResultReference.

  • Objects are not allowed to have keys with the following names:

    • from_parameter, except for objects of type ParameterReference
    • from_node, except for objects of type ResultReference
    • process_graph, except for objects of type UserDefinedProcess
  • Arrays and objects can also contain a UserDefinedProcess, a ParameterReference or a ResultReference. So back-ends must fully traverse the process graphs, including all children.

User-defined process

A user-defined process in a process graph is a simply a child process graph and thus to be evaluated as part of another process graph. It may consists only of an object with a key process_graph, but can be described with all additional properties available also for pre-defined processes such as an id, parameters, return values etc. In process graphs these additional properties are usually not used, except for validation purposes.

<UserDefinedProcess> := {
  "process_graph": <ProcessGraph>,
  ...
}

Accessing return values

A value of type <ResultReference> is an object with a key from_node with a <ProcessNodeIdentifier> as value:

<ResultReference> := {
  "from_node": "<ProcessNodeIdentifier>"
}

This tells the back-end that the process expects the result (i.e. the return value) from another node to be passed as argument. The <ProcessNodeIdentifier> is strictly scoped and can only referenced from within the same process graph, i.e. can not be referenced in child or parent process graphs.

Accessing process parameters

Example: You want to iterate over an array and calculate the absolute value of each value in the array. This can be achieved by executing the apply process in openEO and pass a process graph containing a single process absolute.

The parameters made available by the "parent" process (apply in this example) to the "child" process graph are the process graph parameters. Processes can access parameters by passing a certain type of object as argument to a processes. It is an object with key from_parameter specifying the name of the process graph parameter:

<ParameterReference> := {
  "from_parameter": "<ParameterReferenceName>"
}

The parameter names made available for <ParameterReferenceName> are defined and passed to the process graph by one of the parent entities. The parent could be a process such as apply or something else that executes a process graph, for example a secondary web service.

It is important to know that <ParameterReferenceName> is less strictly scoped than <ProcessNodeIdentifier>. <ParameterReferenceName> can be any parameter from the process graph or any of its parents. If there are multiple parameters with the same name, the parameter is resolved by starting in the current scope and then checking each parent for a suitable parameter until the "root" process graph is reached.

If the parent is a process, the parameter are defined in the parameters property of the corresponding JSON Schema. In case of the example given above, the parameter process in the process apply defines a process graph parameter named x and the process absolute expects an argument with the same name. The process graph for the example would look as follows:

{
  "process_id": "apply",
  "arguments": {
    "data": {"from_node": "loadcollection1"}
    "process": {
      "process_graph": {
        "abs1": {
          "process_id": "absolute",
          "arguments": {
            "x": {"from_parameter": "x"}
          },
          "result": true
        }
      }
    }
  }
}

loadcollection1 would be a result from another process, which is not part of this example.

Full example for an EVI computation

Deriving minimum EVI (Enhanced Vegetation Index) measurements over pixel time series of Sentinel 2 imagery. The main process graph in blue, child process graphs in yellow:

Graph with processing instructions

The process graph for the algorithm: pg-evi-example.json

Data Processing

Processes can run in three different ways:

  1. Results can be pre-computed by creating a batch job. They are submitted to the back-end's processing system, but will remain inactive until explicitly put into the processing queue. They will run only once and store results after execution. Results can be downloaded. Batch jobs are typically time consuming and user interaction is not possible although log files are generated for them. This is the only mode that allows to get an estimate about time, volume and costs beforehand.

  2. A more dynamic way of processing and accessing data is to create a secondary web service. They allow web-based access using different protocols such as OGC WMS (Open Geospatial Consortium Web Map Service), OGC WCS (Web Coverage Service) or XYZ tiles. These protocols usually allow users to change the viewing extent or level of detail (zoom level). Therefore, computations often run on demand so that the requested data is calculated during the request. Back-ends should make sure to cache processed data to avoid additional/high costs and reduce waiting times for the user.

  3. Processes can also be executed on-demand (i.e. synchronously). Results are delivered with the request itself and no job is created. Only lightweight computations, for example previews, should be executed using this approach as timeouts are to be expected for long-polling HTTP requests.

Validation

Process graph validation is a quite complex task. There's a JSON schema for basic process graph validation. It checks the general structure of a process graph, but only checking against the schema is not fully validating a process graph. Note that this JSON Schema is probably good enough for a first version, but should be revised and improved for production. There are further steps to do:

  1. Validate whether there's exactly one result: true per process graph.
  2. Check whether the process names that are referenced in the field process_id are actually available. There's a custom format process-id, which can be used to check the value directly during validation against the JSON Schema.
  3. Validate all arguments for each process against the JSON schemas that are specified in the corresponding process specifications.
  4. Check whether the values specified for from_node have a corresponding node in the same process graph.
  5. Validate whether the return value and the arguments requesting a return value with from_node are compatible.
  6. Check the content of arrays and objects. These could include parameter and result references (from_node, from_parameter etc.).

Execution

To process the process graph on the back-end you need to go through all nodes/processes in the list and set for each node to which node it passes data and from which it expects data. In another iteration the back-end can find all start nodes for processing by checking for zero dependencies.

You can now start and execute the start nodes (in parallel, if possible). Results can be passed to the nodes that were identified beforehand. For each node that depends on multiple inputs you need to check whether all dependencies have already finished and only execute once the last dependency is ready.

Please be aware that the result node (result set to true) is not necessarily the last node that is executed. The author of the process graph may choose to set a non-end node to the result node!

Capabilities

General information about the API implementation and other supported capabilities at the back-end.

Information about the back-end

get /

The URL of the API MAY freely be chosen by the back-end providers. The path, including API versioning, is a recommendation only. Nevertheless, all servers MUST support HTTPS as the authentication methods are not secure with HTTP only!

https://localhost/api/{version}/

Returns general information about the back-end, including which version and endpoints of the openEO API are supported. May also include billing information.

Authorizations:

Responses

200

Information about the API version and supported endpoints / features.

Response Schema: application/json
api_version
required
string

Version number of the openEO specification this back-end implements.

backend_version
required
string

Version number of the back-end implementation. Every change on back-end side MUST cause a change of the version number.

stac_version
required
string (stac_version)
Value: "0.9.0"

The STAC version implemented.

id
required
string

Identifier for the service. This field originates from STAC and is used as unique identifier for the STAC catalog available at /collections.

title
required
string

The name of the service.

description
required
string

A description of the service, which allows the service provider to introduce the user to its service. CommonMark 0.29 syntax MAY be used for rich text representation.

production
boolean (production)
Default: true

Specifies whether the implementation is ready to be used in production use (true) or not (false). Clients SHOULD only connect to non-production implementations if the user explicitly confirmed to use a non-production implementation.

endpoints
required
Array of objects (Endpoint)

Lists all supported endpoints. Supported are all endpoints, which are implemented, return a 2XX or 3XX HTTP status code and are fully compatible to the API specification.

billing
object (Billing)

Billing related data, e.g. the currency used or available plans to process jobs. MUST be specified if the back-end uses any billing related functionalities, e.g. budgeting, estimates.

links
required
Array of objects (Link)

Links related to this service, e.g. the homepage of the service provider or the terms of service.

It is highly RECOMMENDED to provide links with the following rel (relation) types:

  1. version-history: A link back to the Well-Known URL (see /.well-known/openeo) to allow clients to work on the most recent version.

  2. terms-of-service: A link to the terms of service. If a back-end provides a link to the terms of service, the clients MUST provide a way to read the terms of service and only connect to the back-end after the user agreed to them. The user interface MUST be designed in a way that the terms of service are not agreed to by default, i.e. the user MUST explicitly agree to them.

  3. privacy-policy: A link to the privacy policy (GDPR). If a back-end provides a link to a privacy policy, the clients MUST provide a way to read the privacy policy and only connect to the back-end after the user agreed to them. The user interface MUST be designed in a way that the privacy policy is not agreed to by default, i.e. the user MUST explicitly agree to them.

  4. service-desc or service-doc: A link to the API definition. Use service-desc for machine-readable API definition and service-doc for human-readable API definition. Required if full OGC API compatibility is desired.

  5. conformance: A link to the Conformance declaration (see /conformance). Required if full OGC API compatibility is desired.

  6. data: A link to the collections (see /collections). Required if full OGC API compatibility is desired.

For additional relation types see also the lists of common relation types in openEO.

4XX

The request can't be fulfilled due to an error on client-side, i.e. the request is invalid. The client should not repeat the request without modifications.

The response body SHOULD contain a JSON error object. MUST be any HTTP status code specified in RFC 7231. This request usually does not respond with HTTP status codes 401 and 403 due to missing authorization. HTTP status code 404 should be used if the value of a path parameter is invalid.

See also:

5XX

The request can't be fulfilled due to an error at the back-end. The error is never the client’s fault and therefore it is reasonable for the client to retry the exact same request that triggered this response.

The response body SHOULD contain a JSON error object. MUST be any HTTP status code specified in RFC 7231.

See also:

Response samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "api_version": "1.0.1",
  • "backend_version": "1.1.2",
  • "stac_version": "0.9.0",
  • "id": "cool-eo-cloud",
  • "title": "Cool EO Cloud",
  • "description": "This service is provided to you by [Cool EO Cloud Corp.](http://cool-eo-cloud-corp.com). It implements the full openEO API and allows to process a range of 999 EO data sets, including \n\n* Sentinel 1/2/3 and 5\n* Landsat 7/8\n\nA free plan is available to test the service. For further information please contact our customer service at [support@cool-eo-cloud-corp.com](mailto:support@cool-eo-cloud-corp.com).",
  • "production": true,
  • "endpoints":
    [
    ],
  • "billing":
    {},
  • "links":
    []
}

Supported openEO versions

get /.well-known/openeo

The Well-Known URI SHOULD be available directly at https://{{domain}}/.well-known/openeo in contrast to the other endpoints, which may be versioned and can run on other hosts, ports, ... etc.

https://localhost/.well-known/openeo

Well-Known URI (see RFC 57855) for openEO, listing all implemented openEO versions supported by the service provider.

This allows a client to easily identify the most recent openEO implementation it supports. By default, a client SHOULD connect to the most recent production-ready version it supports. Clients MAY let users choose to connect to versions that are not production-ready versions or outdated.

The Well-Known URI is the entry point for clients and users, so make sure it is permanent and easy to use and remember. Clients MUST NOT require the well-known path (./well-known/openeo) in the URL that is specified by a user to connect to the back-end. A client MUST request https://example.com/.well-known/openeo if a user tries to connect to https://example.com. If the request to the well-known URI fails, the client SHOULD try to request the capabilities at / from https://example.com.

This URI MUST NOT be versioned as the other endpoints. If your API is available at https://example.com/api/v1.0, the Well-Known URI SHOULD be located at https://example.com/.well-known/openeo and the URI users connect to SHOULD be https://example.com.

Clients MAY get additional information (e.g. title or description) about a back-end from the most recent version that has the production flag set to true.

Authorizations:

Responses

200

List of all available service instances, each with URL and the implemented openEO API version.

Response Schema: application/json
versions
required
Array of objects (Service Instance)
4XX

The request can't be fulfilled due to an error on client-side, i.e. the request is invalid. The client should not repeat the request without modifications.

The response body SHOULD contain a JSON error object. MUST be any HTTP status code specified in RFC 7231. This request usually does not respond with HTTP status codes 401 and 403 due to missing authorization. HTTP status code 404 should be used if the value of a path parameter is invalid.

See also:

5XX

The request can't be fulfilled due to an error at the back-end. The error is never the client’s fault and therefore it is reasonable for the client to retry the exact same request that triggered this response.

The response body SHOULD contain a JSON error object. MUST be any HTTP status code specified in RFC 7231.

See also:

Response samples

Content type
application/json
Copy
Expand all Collapse all
{}

Supported file formats

get /file_formats

The URL of the API MAY freely be chosen by the back-end providers. The path, including API versioning, is a recommendation only. Nevertheless, all servers MUST support HTTPS as the authentication methods are not secure with HTTP only!

https://localhost/api/{version}/file_formats

The request will ask the back-end for supported input and output file formats. Input file formats specify which file a back-end can read from. Output file formats specify which file a back-end can write to.

The response to this request is an object listing all available input and output file formats separately with their parameters and additional data. This endpoint does not include the supported secondary web services.

Note: Format names and parameters MUST be fully aligned with the GDAL codes if available, see GDAL Raster Formats and OGR Vector Formats. It is OPTIONAL to support all output format parameters supported by GDAL. Some file formats not available through GDAL may be defined centrally for openEO. Custom file formats or parameters MAY be defined.

The format descriptions must describe how the file formats relate to data cubes. Input file formats must describe how the files have to be structured to be transformed into data cubes. Output file formats must describe how the data cubes are stored at the back-end and how the resulting file structure looks like.

Back-ends MUST NOT support aliases, for example it is not allowed to support geotiff instead of gtiff. Nevertheless, openEO Clients MAY translate user input input for convenience (e.g. translate geotiff to gtiff). Also, for a better user experience the back-end can specify a title.

Format names are allowed to be case insensitive throughout the API.

Authorizations:

Responses

200

An object with containing all input and output format separately. For each property input and output an object is defined where the file format names are the property keys and the property values are objects that define a title, supported parameters and related links.

Response Schema: application/json
input
required
object (Input Formats Response)

List of supported input file formats, i.e. file formats a back-end can read from. The property keys are the file format names that are used by clients and users, for example in process graphs.

output
required
object (Output Formats Response)

List of supported output file formats, i.e. file formats a back-end can write to. The property keys are the file format names that are used by clients and users, for example in process graphs.

4XX

The request can't be fulfilled due to an error on client-side, i.e. the request is invalid. The client should not repeat the request without modifications.

The response body SHOULD contain a JSON error object. MUST be any HTTP status code specified in RFC 7231. This request usually does not respond with HTTP status codes 401 and 403 due to missing authorization. HTTP status code 404 should be used if the value of a path parameter is invalid.

See also:

5XX

The request can't be fulfilled due to an error at the back-end. The error is never the client’s fault and therefore it is reasonable for the client to retry the exact same request that triggered this response.

The response body SHOULD contain a JSON error object. MUST be any HTTP status code specified in RFC 7231.

See also:

Response samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "output":
    {
    },
  • "input":
    {
    }
}

OGC specifications this API conforms to

get /conformance

The URL of the API MAY freely be chosen by the back-end providers. The path, including API versioning, is a recommendation only. Nevertheless, all servers MUST support HTTPS as the authentication methods are not secure with HTTP only!

https://localhost/api/{version}/conformance

A list of all conformance classes specified in OGC standards that the server conforms to. This endpoint is only required if full compliance with OGC API standards is desired. Therefore, openEO back-ends may implement it for compatibility with OGC API clients and openEO clients don't need to request it.

Responses

200

The URIs of all conformance classes supported by the server.

Response Schema: application/json
conformsTo
required
Array of strings <uri>
5XX

The request can't be fulfilled due to an error at the back-end. The error is never the client’s fault and therefore it is reasonable for the client to retry the exact same request that triggered this response.

The response body SHOULD contain a JSON error object. MUST be any HTTP status code specified in RFC 7231.

See also:

Response samples

Content type
application/json
Copy
Expand all Collapse all

Supported UDF runtimes

get /udf_runtimes

The URL of the API MAY freely be chosen by the back-end providers. The path, including API versioning, is a recommendation only. Nevertheless, all servers MUST support HTTPS as the authentication methods are not secure with HTTP only!

https://localhost/api/{version}/udf_runtimes

Returns a list of supported runtimes for user-defined functions (UDFs), which includes either the programming languages including version numbers and available libraries including version numbers or docker containers.

Authorizations:

Responses

200

Description of UDF runtime support

Response Schema: application/json
UDF Runtime Name*
Programming language (object) or Docker container (object)
4XX

The request can't be fulfilled due to an error on client-side, i.e. the request is invalid. The client should not repeat the request without modifications.

The response body SHOULD contain a JSON error object. MUST be any HTTP status code specified in RFC 7231. This request MUST respond with HTTP status codes 401 if authorization is required or 403 if the authorization failed or access is forbidden in general to the authenticated user. HTTP status code 404 should be used if the value of a path parameter is invalid.

See also:

5XX

The request can't be fulfilled due to an error at the back-end. The error is never the client’s fault and therefore it is reasonable for the client to retry the exact same request that triggered this response.

The response body SHOULD contain a JSON error object. MUST be any HTTP status code specified in RFC 7231.

See also:

Response samples

Content type
application/json
Copy
Expand all Collapse all
{}

Supported secondary web service protocols

get /service_types

The URL of the API MAY freely be chosen by the back-end providers. The path, including API versioning, is a recommendation only. Nevertheless, all servers MUST support HTTPS as the authentication methods are not secure with HTTP only!

https://localhost/api/{version}/service_types

The request will ask the back-end for supported secondary web service protocols, e.g. WMS or WCS. The response is an object of all available secondary web service protocols,supported configuration settings and process parameters.

Configuration settings for the service need to be defined upon creation of a service and the service will be set up accordingly.

A list of process parameters is also available. This parameters can be used by users in a process graph that is used to compute web service results. The objects can directly be used inside the process graph with a from_parameter reference. Such parameters are usually things that have to be injected into the process graph from the context of the web service during runtime. For example, a map service such as a WMS would need to inject the spatial extent into the process graph so that the back-end can compute the corresponding tile correctly.

To improve interoperability between back-ends common names for the services SHOULD be used, e.g. the abbreviations used in the official OGC Schema Repository for the respective services.

Service names are allowed to be case insensitive throughout the API.

Authorizations:

Responses

200

An object with a map containing all service names as keys and an object that defines supported configuration settings and process parameters.

Response Schema: application/json
Service Name*
object (Service Type)
4XX

The request can't be fulfilled due to an error on client-side, i.e. the request is invalid. The client should not repeat the request without modifications.

The response body SHOULD contain a JSON error object. MUST be any HTTP status code specified in RFC 7231. This request usually does not respond with HTTP status codes 401 and 403 due to missing authorization. HTTP status code 404 should be used if the value of a path parameter is invalid.

See also:

5XX

The request can't be fulfilled due to an error at the back-end. The error is never the client’s fault and therefore it is reasonable for the client to retry the exact same request that triggered this response.

The response body SHOULD contain a JSON error object. MUST be any HTTP status code specified in RFC 7231.

See also:

Response samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "WMS":
    {
    },
  • "WFS":
    {
    }
}

Account Management

The following endpoints handle user profiles, accounting and authentication. See also Authentication. In general, the openEO API only defines a minimum subset of user management and accounting functionality. It allows to

  • authenticate and authorize a user, which may include user registration with OpenID Connect,
  • handle storage space limits (disk quota),
  • manage billing, which includes to
    • query the credit a user has available,
    • estimate costs for certain operations (data processing and downloading),
    • get information about produced costs,
    • limit costs of certain operations.

Therefore, the API leaves some aspects open that have to be handled by the back-ends separately, including

  • credential recovery, e.g. retrieving a forgotten password
  • user data management, e.g. changing the users payment details or email address
  • payments, i.e. topping up credits for pre-paid services or paying for post-paid services
  • other accounting related tasks, e.g. creating invoices,
  • user registration (except for user registration with OpenID Connect).

OpenID Connect authentication

get /credentials/oidc

The URL of the API MAY freely be chosen by the back-end providers. The path, including API versioning, is a recommendation only. Nevertheless, all servers MUST support HTTPS as the authentication methods are not secure with HTTP only!

https://localhost/api/{version}/credentials/oidc

This endpoint lists the supported OpenID Connect providers (OP). OpenID Providers MUST support OpenID Connect Discovery.

For each OpenID provider, a name and the issuer location MUST be listed. A description and related links can OPTIONALLY be added. The issuer location (also referred to as 'authority' in client libraries) is the URL of the OpenID provider, which conforms to a set of rules:

  1. After appending /.well-known/openid-configuration to the URL, a HTTP/1.1 GET request to the concatenated URL must return a OpenID Discovery Configuration Response. The response provides all information required to authenticate using OpenID Connect.
  2. The URL MUST NOT contain a terminating forward slash /.

It is highly RECOMMENDED to implement OpenID Connect for public services in favor of Basic authentication.

openEO clients MUST use the access token as part of the Bearer token for authorization in subsequent API calls (see also the information about Bearer tokens in this document). Clients MUST NOT use the id token or the authorization code. The access token provided by this the OpenID Provider does not always provide information about the issuer (i.e. the OpenID provider) and therefore a prefix MUST be added to the Bearer Token sent in subsequent API calls to protected endpoints. The Bearer Token sent to protected endpoints MUST consist of the authentication method (here oidc), the provider ID and the access token itself. All separated by a forward slash /. The provider ID corresponds to the value specified for id for each provider in the response body of this endpoint. The header in subsequent API calls for a provider with id ms would look as follows: Authorization: Bearer oidc/ms/TOKEN (replace TOKEN with the actual access token received from the OpenID Provider).

Back-ends MAY request user information (including Claims) from the OpenID Connect Userinfo endpoint using the access token (without the prefix described above). Therefore, both openEO client and openEO back-end are relying parties (clients) to the OpenID Provider.

Authorizations:

Responses

200

Lists the the OpenID Providers.

Response Schema: application/json
providers
required
Array of objects non-empty
4XX

The request can't be fulfilled due to an error on client-side, i.e. the request is invalid. The client should not repeat the request without modifications.

The response body SHOULD contain a JSON error object. MUST be any HTTP status code specified in RFC 7231. This request MUST respond with HTTP status codes 401 if authorization is required or 403 if the authorization failed or access is forbidden in general to the authenticated user. HTTP status code 404 should be used if the value of a path parameter is invalid.

See also:

5XX

The request can't be fulfilled due to an error at the back-end. The error is never the client’s fault and therefore it is reasonable for the client to retry the exact same request that triggered this response.

The response body SHOULD contain a JSON error object. MUST be any HTTP status code specified in RFC 7231.

See also:

Response samples

Content type
application/json
Copy
Expand all Collapse all
{}

HTTP Basic authentication

get /credentials/basic

The URL of the API MAY freely be chosen by the back-end providers. The path, including API versioning, is a recommendation only. Nevertheless, all servers MUST support HTTPS as the authentication methods are not secure with HTTP only!

https://localhost/api/{version}/credentials/basic

This request checks the credentials provided through HTTP Basic Authentication according to RFC 7617 and returns an access token for valid credentials.

The credentials (username and password) must be sent in the HTTP header Authorization with type Basic and the Base64 encoded string consisting of username and password separated by a double colon :. The header would look as follows for username user and password pw: Authorization: Basic dXNlcjpwdw==.

The access token has to be used in the Bearer token for authorization in subsequent API calls (see also the information about Bearer tokens in this document). The access token returned by this request MUST NOT be provided with basic// prefix, but the Bearer Token sent in subsequent API calls to protected endpoints MUST be prefixed with basic//. The header in subsequent API calls would look as follows: Authorization: Bearer basic//TOKEN (replace TOKEN with the actual access token).

It is RECOMMENDED to implement this authentication method for non-public services only.

Authorizations:

Responses

200

Credentials are correct and authentication succeeded.

Response Schema: application/json
access_token
required
string

The access token (without basic// prefix) to be used in the Bearer token for authorization in subsequent API calls.

4XX

The request can't be fulfilled due to an error on client-side, i.e. the request is invalid. The client should not repeat the request without modifications.

The response body SHOULD contain a JSON error object. MUST be any HTTP status code specified in RFC 7231. This request MUST respond with HTTP status codes 401 if authorization is required or 403 if the authorization failed or access is forbidden in general to the authenticated user. HTTP status code 404 should be used if the value of a path parameter is invalid.

See also:

5XX

The request can't be fulfilled due to an error at the back-end. The error is never the client’s fault and therefore it is reasonable for the client to retry the exact same request that triggered this response.

The response body SHOULD contain a JSON error object. MUST be any HTTP status code specified in RFC 7231.

See also:

Response samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "access_token": "b34ba2bdf9ac9ee1"
}

Information about the authenticated user

get /me

The URL of the API MAY freely be chosen by the back-end providers. The path, including API versioning, is a recommendation only. Nevertheless, all servers MUST support HTTPS as the authentication methods are not secure with HTTP only!

https://localhost/api/{version}/me

This endpoint always returns the user id and MAY return the disk quota available to the user. It MAY also return links related to user management and the user profile, e.g. where payments are handled or the user profile could be edited. For back-ends that involve accounting, this service MAY also return the currently available money or credits in the currency the back-end is working with. This endpoint MAY be extended to fulfil the specification of the OpenID Connect UserInfo Endpoint.

Authorizations:

Responses

200

Information about the logged in user.

Response Schema: application/json
user_id
required
string (user_id) ^[A-Za-z0-9_\-\.~]+$

Unique identifier of the user. MUST match the specified pattern. SHOULD be a human-friendly user name instead of a randomly generated identifier.

storage
object (User Storage) Nullable

Information about the storage space available to the user.

budget
number (budget) Nullable
Default: null

Maximum amount of costs the request is allowed to produce. The value MUST be specified in the currency the back-end is working with. The currency can be retrieved by calling GET /. If no currency is set, this field MUST NOT be a number.

If possible, back-ends SHOULD reject jobs with openEO error PaymentRequired if the budget is too low to process the request completely. Otherwise, when reaching the budget jobs MAY try to return partial results if possible. Otherwise the request and results are discarded. Users SHOULD be warned by clients that reaching the budget MAY discard the results and that setting this value should be well-wrought.

Setting the budget to null means there is no specified budget.

links
Array of objects (Link)

Links related to the user profile, e.g. where payments are handled or the user profile could be edited.

It is RECOMMENDED to provide links with the following rel (relation) types:

  1. payment: A page where users can recharge their user account with money or credits.

  2. edit-form: Points to a page where the user can edit his user profile.

For additional relation types see also the lists of common relation types in openEO.

4XX

The request can't be fulfilled due to an error on client-side, i.e. the request is invalid. The client should not repeat the request without modifications.

The response body SHOULD contain a JSON error object. MUST be any HTTP status code specified in RFC 7231. This request MUST respond with HTTP status codes 401 if authorization is required or 403 if the authorization failed or access is forbidden in general to the authenticated user. HTTP status code 404 should be used if the value of a path parameter is invalid.

See also:

5XX

The request can't be fulfilled due to an error at the back-end. The error is never the client’s fault and therefore it is reasonable for the client to retry the exact same request that triggered this response.

The response body SHOULD contain a JSON error object. MUST be any HTTP status code specified in RFC 7231.

See also:

Response samples

Content type
application/json
Copy
Expand all Collapse all
{}

EO Data Discovery

These endpoints allow to list the collections that are available at the back-end and can be used as data cubes for data processing.

STAC

For data discovery of Earth Observation Collections at the back-ends, openEO strives for compatibility with the specifications SpatioTemporal Asset Catalog (STAC) and OGC API - Features - Part 1: Core as far as possible. Implementing the data discovery endpoints of openEO should also produce valid STAC 0.9.0 and OGC API - Features 1.0 responses, including (partial) compatibility with their APIs.

The data discovery endpoints GET /collections and GET /collections/{name} are compatible with OGC API - Features and STAC. Both specifications define additional endpoints that need to be implemented to be fully compatible. The additional endpoints can easily be integrated into an openEO API implementation. A rough list of actions for compatibility is available below, but please refer to their specifications to find out the full details.

Content Extensions

STAC has several extensions that can be used to better describe your data. Clients and server are not required to implement all of them, so be aware that some clients may not be able to read all your metadata.

Some commonly used extensions that are relevant for datasets exposed through the openEO API are:

Provide data for download

If you'd like to provide your data for download in addition to offering the cloud processing service, you can implement the full STAC API. Therefore you can implement the endpoints GET /collections/{collectionId}/items and GET /collections/{collection-name}/items/{featureId} to support retrieval of individual items. To benefit from the STAC ecosystem and allow searching for items you can also implement POST /search and GET /search. Further information can be found in the STAC API repository and in the corresponding OpenAPI specification.

Basic metadata for all datasets

get /collections

The URL of the API MAY freely be chosen by the back-end providers. The path, including API versioning, is a recommendation only. Nevertheless, all servers MUST support HTTPS as the authentication methods are not secure with HTTP only!

https://localhost/api/{version}/collections

Lists available collections with at least the required information.

Back-ends can choose which optional information are not send, but should ensure the responses don't get overly large. To retrieve all information clients must make a request to GET /collections/{collection_id}.

This endpoint is compatible with STAC 0.9.0 and OGC API - Features. STAC API features / extensions and STAC extensions can be implemented in addition to what is documented here.

Authorizations:
query Parameters
limit
integer >= 1
Example: limit=10

This parameter enables pagination for the endpoint and specifies the maximum number of elements that arrays in the top-level object (e.g. jobs, log entries, secondary services, files etc.) are allowed to contain. The only exception is the links array, which MUST NOT be paginated as otherwise the pagination links may be missing ins responses. If the parameter is not provided or empty, all elements are returned.

Pagination is OPTIONAL and back-ends and clients may not support it. Therefore it MUST be implemented in a way that clients not supporting pagination get all resources regardless.

If the response is paginated, the links array MUST be used to propagate the links for pagination with pre-defined rel types. See the links array schema for supported rel types.

Note: Implementations can use all kind of pagination techniques, depending on what is supported best by their infrastructure. So it doesn't care whether it is page-based, offset-based or uses tokens for pagination. The clients will use whatever is specified in the links with the corresponding rel types.

Responses

200

A list of collections and related links.

Response Schema: application/json
collections
required
Array of objects (STAC Collection)
links
required
Array of objects (links_pagination)

Links related to this list of resources, for example links for pagination or alternative formats such as a human-readable HTML version. The links array MUST NOT be paginated.

If pagination is implemented, the following rel (relation) types apply:

  1. next (REQUIRED): A link to the next page, except on the last page.

  2. prev (OPTIONAL): A link to the previous page, except on the first page.

  3. first (OPTIONAL): A link to the first page, except on the first page.

  4. last (OPTIONAL): A link to the last page, except on the last page.

For additional relation types see also the lists of common relation types in openEO.

4XX

The request can't be fulfilled due to an error on client-side, i.e. the request is invalid. The client should not repeat the request without modifications.

The response body SHOULD contain a JSON error object. MUST be any HTTP status code specified in RFC 7231. This request MUST respond with HTTP status codes 401 if authorization is required or 403 if the authorization failed or access is forbidden in general to the authenticated user. HTTP status code 404 should be used if the value of a path parameter is invalid.

See also:

5XX

The request can't be fulfilled due to an error at the back-end. The error is never the client’s fault and therefore it is reasonable for the client to retry the exact same request that triggered this response.

The response body SHOULD contain a JSON error object. MUST be any HTTP status code specified in RFC 7231.

See also:

Response samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "collections":
    [
    ],
  • "links":
    []
}

Full metadata for a specific dataset

get /collections/{collection_id}

The URL of the API MAY freely be chosen by the back-end providers. The path, including API versioning, is a recommendation only. Nevertheless, all servers MUST support HTTPS as the authentication methods are not secure with HTTP only!

https://localhost/api/{version}/collections/{collection_id}

Lists all information about a specific collection specified by the identifier collection_id.

This endpoint is compatible with STAC 0.9.0 and OGC API - Features. STAC API features / extensions and STAC extensions can be implemented in addition to what is documented here.

Authorizations:
path Parameters
collection_id
required
string (collection_id) ^[A-Za-z0-9_\-\.~\/]+$
Example: Sentinel-2A

Collection identifier

Responses

200

JSON object with metadata about the collection.

Response Schema: application/json
stac_version
required
string (stac_version)
Value: "0.9.0"

The STAC version implemented.

stac_extensions
Array of Reference to a JSON Schema (string) or Reference to a core extension (string) (stac_extensions)

A list of implemented STAC extensions. The list contains URLs to the JSON Schema files it can be validated against. For official extensions, a "shortcut" can be used. This means you can specify the folder name of the extension in the STAC repository, for example sar for the SAR extension. If the versions of the extension and the collection diverge, you can specify the URL of the JSON schema file.

id
required
string (collection_id) ^[A-Za-z0-9_\-\.~\/]+$

A unique identifier for the collection, which MUST match the specified pattern.

title
string

A short descriptive one-line title for the collection.

description
required
string

Detailed multi-line description to explain the collection.

CommonMark 0.29 syntax MAY be used for rich text representation.

keywords
Array of strings

List of keywords describing the collection.

version
string

Version of the collection.

deprecated
boolean
Default: false

Specifies that the collection is deprecated with the potential to be removed. It should be transitioned out of usage as soon as possible and users should refrain from using it in new projects.

A link with relation type latest-version SHOULD be added to the links and MUST refer to the collection that can be used instead.

license
required
string (stac_license)

License(s) of the data as a SPDX License identifier. Alternatively, use proprietary if the license is not on the SPDX license list or various if multiple licenses apply. In these two cases links to the license texts SHOULD be added, see the license link relation type.

Non-SPDX licenses SHOULD add a link to the license text with the license relation in the links section. The license text MUST NOT be provided as a value of this field. If there is no public license URL available, it is RECOMMENDED to host the license text and link to it.

providers
Array of objects (stac_providers)

A list of providers, which may include all organizations capturing or processing the data or the hosting provider. Providers should be listed in chronological order with the most recent provider being the last element of the list.

extent
required
object (STAC Collection Extent)

The extent of the features in the collection. Additional members MAY be added to represent other extents, for example, thermal or pressure ranges.

links
required
Array of objects (Link)

Links related to this collection. Could reference to licensing information, other meta data formats with additional information or a preview image. It is RECOMMENDED to provide links with the following rel (relation) types:

  1. root and parent: URL to the data discovery endpoint at /collections.
  2. license: A link to the license(s) should be specified if the license field is set to proprietary or various.
  3. derived_from: Allows linking to the data this collection was derived from.
  4. cite-as: DOI links should be added. DOIs can also be listed in the STAC fields sci:doi and sci:publications, see the STAC scientific extension for more details.
  5. latest-version: If a collection has been marked as deprecated, a link should point to the latest version of the collection. The relation types predecessor-version (link to older version) and successor-version (link to newer version) can also be used to show the relation between versions.
  6. alternate: An alternative representation of the collection. For example, this could be the collection available through another catalog service such as OGC CSW, a human-readable HTML version or a metadata document following another standard such as ISO 19115 or DCAT. For additional relation types see also the lists of common relation types in openEO and the STAC specification for Collections.
cube:dimensions
required
object (STAC Collection Cube Dimensions)

Uniquely named dimensions of the data cube.

The keys of the object are the dimension names. For interoperability, it is RECOMMENDED to use the following dimension names if there is only a single dimension with the specified criteria:

  • x for the dimension of type spatial with the axis set to x
  • y for the dimension of type spatial with the axis set to y
  • z for the dimension of type spatial with the axis set to z
  • t for the dimension of type temporal
  • bands for dimensions of type bands
summaries
required
object (STAC Summaries (Collection Properties))

Collection properties from STAC extensions (e.g. EO, SAR, Satellite or Scientific) or even custom extensions.

Summaries are either a unique set of all available values or statistics. Statistics by default only specify the range (minimum and maximum values), but can optionally be accompanied by additional statistical values. The range can specify the potential range of values, but it is recommended to be as precise as possible. The set of values must contain at least one element and it is strongly recommended to list all values. It is recommended to list as many properties as reasonable so that consumers get a full overview of the Collection. Properties that are covered by the Collection specification (e.g. providers and license) may not be repeated in the summaries.

Potential fields for the summaries can be found here:

  • STAC Common Metadata: A list of commonly used fields throughout all domains
  • Content Extensions: Domain-specific fields for domains such as EO, SAR and point clouds.
  • Custom Properties: It is generally allowed to add custom fields.
4XX

The request can't be fulfilled due to an error on client-side, i.e. the request is invalid. The client should not repeat the request without modifications.

The response body SHOULD contain a JSON error object. MUST be any HTTP status code specified in RFC 7231. This request MUST respond with HTTP status codes 401 if authorization is required or 403 if the authorization failed or access is forbidden in general to the authenticated user. HTTP status code 404 should be used if the value of a path parameter is invalid.

See also:

5XX

The request can't be fulfilled due to an error at the back-end. The error is never the client’s fault and therefore it is reasonable for the client to retry the exact same request that triggered this response.

The response body SHOULD contain a JSON error object. MUST be any HTTP status code specified in RFC 7231.

See also:

Response samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "stac_version": "0.9.0",
  • "stac_extensions":
    [
    ],
  • "id": "Sentinel-2",
  • "title": "Sentinel-2 MSI L2A",
  • "description": "Sentinel-2A is a wide-swath, high-resolution, multi-spectral imaging mission supporting Copernicus Land Monitoring studies.",
  • "license": "proprietary",
  • "keywords":
    [
    ],
  • "version": "20200106A",
  • "providers":
    [],
  • "extent":
    {
    },
  • "cube:dimensions":
    {
    },
  • "sci:citation": "Copernicus Sentinel data [Year]",
  • "summaries":
    {
    }
}

Process Discovery

These endpoints allow to list the predefined processes that are available at the back-end. To list user-defined processes see 'User-Defined Processes'.

Supported predefined processes

get /processes

The URL of the API MAY freely be chosen by the back-end providers. The path, including API versioning, is a recommendation only. Nevertheless, all servers MUST support HTTPS as the authentication methods are not secure with HTTP only!

https://localhost/api/{version}/processes

The request asks the back-end for available predefined processes and returns detailed process descriptions, including parameters and return values.

Authorizations:
query Parameters
limit
integer >= 1
Example: limit=10

This parameter enables pagination for the endpoint and specifies the maximum number of elements that arrays in the top-level object (e.g. jobs, log entries, secondary services, files etc.) are allowed to contain. The only exception is the links array, which MUST NOT be paginated as otherwise the pagination links may be missing ins responses. If the parameter is not provided or empty, all elements are returned.

Pagination is OPTIONAL and back-ends and clients may not support it. Therefore it MUST be implemented in a way that clients not supporting pagination get all resources regardless.

If the response is paginated, the links array MUST be used to propagate the links for pagination with pre-defined rel types. See the links array schema for supported rel types.

Note: Implementations can use all kind of pagination techniques, depending on what is supported best by their infrastructure. So it doesn't care whether it is page-based, offset-based or uses tokens for pagination. The clients will use whatever is specified in the links with the corresponding rel types.

Responses

200

Formal specification describing the supported predefined processes.

Response Schema: application/json
processes
required
Array of objects (Pre-Defined Process)
links
required
Array of objects (links_pagination)

Links related to this list of resources, for example links for pagination or alternative formats such as a human-readable HTML version. The links array MUST NOT be paginated.

If pagination is implemented, the following rel (relation) types apply:

  1. next (REQUIRED): A link to the next page, except on the last page.

  2. prev (OPTIONAL): A link to the previous page, except on the first page.

  3. first (OPTIONAL): A link to the first page, except on the first page.

  4. last (OPTIONAL): A link to the last page, except on the last page.

For additional relation types see also the lists of common relation types in openEO.

4XX

The request can't be fulfilled due to an error on client-side, i.e. the request is invalid. The client should not repeat the request without modifications.

The response body SHOULD contain a JSON error object. MUST be any HTTP status code specified in RFC 7231. This request MUST respond with HTTP status codes 401 if authorization is required or 403 if the authorization failed or access is forbidden in general to the authenticated user. HTTP status code 404 should be used if the value of a path parameter is invalid.

See also:

5XX

The request can't be fulfilled due to an error at the back-end. The error is never the client’s fault and therefore it is reasonable for the client to retry the exact same request that triggered this response.

The response body SHOULD contain a JSON error object. MUST be any HTTP status code specified in RFC 7231.

See also:

Response samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "processes":
    [
    ],
  • "links":
    []
}

List all user-defined processes

get /process_graphs

The URL of the API MAY freely be chosen by the back-end providers. The path, including API versioning, is a recommendation only. Nevertheless, all servers MUST support HTTPS as the authentication methods are not secure with HTTP only!

https://localhost/api/{version}/process_graphs

This service lists all user-defined processes (process graphs) of the authenticated user that are stored at the back-end.

Authorizations:
query Parameters
limit
integer >= 1
Example: limit=10

This parameter enables pagination for the endpoint and specifies the maximum number of elements that arrays in the top-level object (e.g. jobs, log entries, secondary services, files etc.) are allowed to contain. The only exception is the links array, which MUST NOT be paginated as otherwise the pagination links may be missing ins responses. If the parameter is not provided or empty, all elements are returned.

Pagination is OPTIONAL and back-ends and clients may not support it. Therefore it MUST be implemented in a way that clients not supporting pagination get all resources regardless.

If the response is paginated, the links array MUST be used to propagate the links for pagination with pre-defined rel types. See the links array schema for supported rel types.

Note: Implementations can use all kind of pagination techniques, depending on what is supported best by their infrastructure. So it doesn't care whether it is page-based, offset-based or uses tokens for pagination. The clients will use whatever is specified in the links with the corresponding rel types.

Responses

200

JSON array with user-defined processes.

Response Schema: application/json
processes
required
Array of objects (User-Defined Process)

Array of user-defined processes

links
required
Array of objects (links_pagination)

Links related to this list of resources, for example links for pagination or alternative formats such as a human-readable HTML version. The links array MUST NOT be paginated.

If pagination is implemented, the following rel (relation) types apply:

  1. next (REQUIRED): A link to the next page, except on the last page.

  2. prev (OPTIONAL): A link to the previous page, except on the first page.

  3. first (OPTIONAL): A link to the first page, except on the first page.

  4. last (OPTIONAL): A link to the last page, except on the last page.

For additional relation types see also the lists of common relation types in openEO.

4XX

The request can't be fulfilled due to an error on client-side, i.e. the request is invalid. The client should not repeat the request without modifications.

The response body SHOULD contain a JSON error object. MUST be any HTTP status code specified in RFC 7231. This request MUST respond with HTTP status codes 401 if authorization is required or 403 if the authorization failed or access is forbidden in general to the authenticated user. HTTP status code 404 should be used if the value of a path parameter is invalid.

See also:

5XX

The request can't be fulfilled due to an error at the back-end. The error is never the client’s fault and therefore it is reasonable for the client to retry the exact same request that triggered this response.

The response body SHOULD contain a JSON error object. MUST be any HTTP status code specified in RFC 7231.

See also:

Response samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "processes":
    [
    ],
  • "links": [ ]
}

Full metadata for a user-defined process

get /process_graphs/{process_graph_id}

The URL of the API MAY freely be chosen by the back-end providers. The path, including API versioning, is a recommendation only. Nevertheless, all servers MUST support HTTPS as the authentication methods are not secure with HTTP only!

https://localhost/api/{version}/process_graphs/{process_graph_id}

Returns all information about a user-defined process, including its process graph.

Authorizations:
path Parameters
process_graph_id
required
string (process_id) ^[A-Za-z0-9_]+$
Example: ndvi

Unique process graph identifier.

Responses

200

The user-defined process with process graph.

Response Schema: application/json
id
required
string (process_id) ^[A-Za-z0-9_]+$

Unique identifier for the process.

MUST be unique across all predefined and user-defined processes available for the authenticated user. If a back-end adds a process with the name of a user-defined process, the user-defined process takes preference over predefined processes in execution to not break existing process graphs.

Back-ends may choose to enforce a prefix for user-defined processes while storing the process, e.g. user_ndvi with user_ being the prefix. Prefixes must still follow the pattern.

summary
string (process_summary)

A short summary of what the process does.

description
string (process_description)

Detailed description to explain the entity.

CommonMark 0.29 syntax MAY be used for rich text representation. In addition to the CommonMark syntax, clients can convert process IDs that are formatted as in the following example into links instead of code blocks: ``process_id()``

categories
Array of strings (process_categories)

A list of categories.

parameters
Array of objects (process_parameters)

A list of parameters.

The order in the array corresponds to the parameter order to be used in clients that don't support named parameters.

returns
object (Process Return Value)

The data that is returned from this process.

deprecated
boolean (process_deprecated)
Default: false

Specifies that the process or parameter is deprecated with the potential to be removed in any of the next versions. It should be transitioned out of usage as soon as possible and users should refrain from using it in new implementations.

For processes a link with relation type latest-version SHOULD be added to the links and MUST refer to the process that can be used instead.

experimental
boolean (process_experimental)
Default: false

Declares the process or parameter to be experimental, which means that it is likely to change or may produce unpredictable behaviour. Users should refrain from using it in production, but still feel encouraged to try it out and give feedback.

exceptions
object (Process Exceptions)

Declares any exceptions (errors) that might occur during execution of this process. MUST be used only for exceptions that stop the execution of a process and are therefore not to be used for warnings, or notices or debugging messages.

The keys define the error code and MUST match the following pattern: ^[A-Za-z0-9_]+$

This schema follows the schema of the general openEO error list (see errors.json).

examples
Array of Process Example with Process Graph (object) or Process Example with Arguments (object) (Process Example)

Examples, may be used for tests. Either process_graph or arguments must be set, never both.

links
Array of objects (Link)

Links related to this process, e.g. additional external documentation. It is RECOMMENDED to provide links with the following rel (relation) types:

  1. latest-version: If a process has been marked as deprecated, a link should point to the preferred version of the process. The relation types predecessor-version (link to older version) and successor-version (link to newer version) can also be used to show the relation between versions.
  2. cite-as: For all DOIs associated with the process, the respective DOI links should be added. For additional relation types see also the lists of common relation types in openEO.
process_graph
required
object (Process Graph)

A process graph defines a graph-like structure as a connected set of executable processes. Each key is a unique identifier (node ID) that is used to refer to the process in the graph.

4XX

The request can't be fulfilled due to an error on client-side, i.e. the request is invalid. The client should not repeat the request without modifications.

The response body SHOULD contain a JSON error object. MUST be any HTTP status code specified in RFC 7231. This request MUST respond with HTTP status codes 401 if authorization is required or 403 if the authorization failed or access is forbidden in general to the authenticated user. HTTP status code 404 should be used if the value of a path parameter is invalid.

See also:

5XX

The request can't be fulfilled due to an error at the back-end. The error is never the client’s fault and therefore it is reasonable for the client to retry the exact same request that triggered this response.

The response body SHOULD contain a JSON error object. MUST be any HTTP status code specified in RFC 7231.

See also:

Response samples

Content type
application/json

A user-defined process that computes the EVI.

Copy
Expand all Collapse all
{
  • "id": "evi",
  • "summary": "Enhanced Vegetation Index",
  • "description": "Computes the Enhanced Vegetation Index (EVI). It is computed with the following formula: `2.5 * (NIR - RED) / (1 + NIR + 6*RED + -7.5*BLUE)`.",
  • "parameters":
    [
    ],
  • "returns":
    {
    },
  • "process_graph":
    {
    }
}

User-Defined Processes

These endpoints allow to store and manage user-defined processes with their process graphs at the back-end.

Validate a user-defined process (graph)

post /validation

The URL of the API MAY freely be chosen by the back-end providers. The path, including API versioning, is a recommendation only. Nevertheless, all servers MUST support HTTPS as the authentication methods are not secure with HTTP only!

https://localhost/api/{version}/validation

Validates a process graph without executing it. A process graph is considered valid unless the errors array in the response contains at least one error.

Checks whether the process graph is schematically correct and the processes are supported by the back-end. It MUST also checks the parameter values against the schema, but checking whether the values are adequate in the context of data is OPTIONAL. For example, a non-existing band name may may get rejected only by a few back-ends.

Errors that usually occur during processing MAY NOT get reported, e.g. if a referenced file is accessible at the time of execution.

Back-ends can either report all errors at once or stop the validation once they found the first error.

Please note that a validation always returns with HTTP status code 200. Error codes in the 4xx and 5xx ranges MUST be returned only when the general validation request is invalid (e.g. server is busy or no process graph parameter specified), but never if the process graph validation found an error (e.g. an unsupported process).

Authorizations:
Request Body schema: application/json

Specifies the process graph to be validated.

id
string (process_id) ^[A-Za-z0-9_]+$

Unique identifier for the process.

MUST be unique across all predefined and user-defined processes available for the authenticated user. If a back-end adds a process with the name of a user-defined process, the user-defined process takes preference over predefined processes in execution to not break existing process graphs.

Back-ends may choose to enforce a prefix for user-defined processes while storing the process, e.g. user_ndvi with user_ being the prefix. Prefixes must still follow the pattern.

summary
string (process_summary)

A short summary of what the process does.

description
string (process_description)

Detailed description to explain the entity.

CommonMark 0.29 syntax MAY be used for rich text representation. In addition to the CommonMark syntax, clients can convert process IDs that are formatted as in the following example into links instead of code blocks: ``process_id()``

categories
Array of strings (process_categories)

A list of categories.

parameters
Array of objects (process_parameters)

A list of parameters.

The order in the array corresponds to the parameter order to be used in clients that don't support named parameters.

returns
object (Process Return Value)

The data that is returned from this process.

deprecated
boolean (process_deprecated)
Default: false

Specifies that the process or parameter is deprecated with the potential to be removed in any of the next versions. It should be transitioned out of usage as soon as possible and users should refrain from using it in new implementations.

For processes a link with relation type latest-version SHOULD be added to the links and MUST refer to the process that can be used instead.

experimental
boolean (process_experimental)
Default: false

Declares the process or parameter to be experimental, which means that it is likely to change or may produce unpredictable behaviour. Users should refrain from using it in production, but still feel encouraged to try it out and give feedback.

exceptions
object (Process Exceptions)

Declares any exceptions (errors) that might occur during execution of this process. MUST be used only for exceptions that stop the execution of a process and are therefore not to be used for warnings, or notices or debugging messages.

The keys define the error code and MUST match the following pattern: ^[A-Za-z0-9_]+$

This schema follows the schema of the general openEO error list (see errors.json).

examples
Array of Process Example with Process Graph (object) or Process Example with Arguments (object) (Process Example)

Examples, may be used for tests. Either process_graph or arguments must be set, never both.

links
Array of objects (Link)

Links related to this process, e.g. additional external documentation. It is RECOMMENDED to provide links with the following rel (relation) types:

  1. latest-version: If a process has been marked as deprecated, a link should point to the preferred version of the process. The relation types predecessor-version (link to older version) and successor-version (link to newer version) can also be used to show the relation between versions.
  2. cite-as: For all DOIs associated with the process, the respective DOI links should be added. For additional relation types see also the lists of common relation types in openEO.
process_graph
required
object (Process Graph)

A process graph defines a graph-like structure as a connected set of executable processes. Each key is a unique identifier (node ID) that is used to refer to the process in the graph.

Responses

200

Returns the validation result as a list of errors. An empty list indicates a successful validation.

Response Schema: application/json
errors
required
Array of objects (General Error)

A list of validation errors.

4XX

The request can't be fulfilled due to an error on client-side, i.e. the request is invalid. The client should not repeat the request without modifications.

The response body SHOULD contain a JSON error object. MUST be any HTTP status code specified in RFC 7231. This request MUST respond with HTTP status codes 401 if authorization is required or 403 if the authorization failed or access is forbidden in general to the authenticated user. HTTP status code 404 should be used if the value of a path parameter is invalid.

See also:

5XX

The request can't be fulfilled due to an error at the back-end. The error is never the client’s fault and therefore it is reasonable for the client to retry the exact same request that triggered this response.

The response body SHOULD contain a JSON error object. MUST be any HTTP status code specified in RFC 7231.

See also:

Request samples

Content type
application/json

A user-defined process that computes the EVI.

Copy
Expand all Collapse all
{
  • "id": "evi",
  • "summary": "Enhanced Vegetation Index",
  • "description": "Computes the Enhanced Vegetation Index (EVI). It is computed with the following formula: `2.5 * (NIR - RED) / (1 + NIR + 6*RED + -7.5*BLUE)`.",
  • "parameters":
    [
    ],
  • "returns":
    {
    },
  • "process_graph":
    {
    }
}

Response samples

Content type
application/json
Copy
Expand all Collapse all
{}

List all user-defined processes

get /process_graphs

The URL of the API MAY freely be chosen by the back-end providers. The path, including API versioning, is a recommendation only. Nevertheless, all servers MUST support HTTPS as the authentication methods are not secure with HTTP only!

https://localhost/api/{version}/process_graphs

This service lists all user-defined processes (process graphs) of the authenticated user that are stored at the back-end.

Authorizations:
query Parameters
limit
integer >= 1
Example: limit=10

This parameter enables pagination for the endpoint and specifies the maximum number of elements that arrays in the top-level object (e.g. jobs, log entries, secondary services, files etc.) are allowed to contain. The only exception is the links array, which MUST NOT be paginated as otherwise the pagination links may be missing ins responses. If the parameter is not provided or empty, all elements are returned.

Pagination is OPTIONAL and back-ends and clients may not support it. Therefore it MUST be implemented in a way that clients not supporting pagination get all resources regardless.

If the response is paginated, the links array MUST be used to propagate the links for pagination with pre-defined rel types. See the links array schema for supported rel types.

Note: Implementations can use all kind of pagination techniques, depending on what is supported best by their infrastructure. So it doesn't care whether it is page-based, offset-based or uses tokens for pagination. The clients will use whatever is specified in the links with the corresponding rel types.

Responses

200

JSON array with user-defined processes.

Response Schema: application/json
processes
required
Array of objects (User-Defined Process)

Array of user-defined processes

links
required
Array of objects (links_pagination)

Links related to this list of resources, for example links for pagination or alternative formats such as a human-readable HTML version. The links array MUST NOT be paginated.

If pagination is implemented, the following rel (relation) types apply:

  1. next (REQUIRED): A link to the next page, except on the last page.

  2. prev (OPTIONAL): A link to the previous page, except on the first page.

  3. first (OPTIONAL): A link to the first page, except on the first page.

  4. last (OPTIONAL): A link to the last page, except on the last page.

For additional relation types see also the lists of common relation types in openEO.

4XX

The request can't be fulfilled due to an error on client-side, i.e. the request is invalid. The client should not repeat the request without modifications.

The response body SHOULD contain a JSON error object. MUST be any HTTP status code specified in RFC 7231. This request MUST respond with HTTP status codes 401 if authorization is required or 403 if the authorization failed or access is forbidden in general to the authenticated user. HTTP status code 404 should be used if the value of a path parameter is invalid.

See also:

5XX

The request can't be fulfilled due to an error at the back-end. The error is never the client’s fault and therefore it is reasonable for the client to retry the exact same request that triggered this response.

The response body SHOULD contain a JSON error object. MUST be any HTTP status code specified in RFC 7231.

See also:

Response samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "processes":
    [
    ],
  • "links": [ ]
}

Store a user-defined process

post /process_graphs

The URL of the API MAY freely be chosen by the back-end providers. The path, including API versioning, is a recommendation only. Nevertheless, all servers MUST support HTTPS as the authentication methods are not secure with HTTP only!

https://localhost/api/{version}/process_graphs

Stores a provided user-defined process with process graph that can be reused in other process graphs.

The process id must be unique for the authenticated user, including all pre-defined processes by the back-end.

Authorizations:
Request Body schema: application/json

Specifies the process graph with its meta data.

id
required
string (process_id) ^[A-Za-z0-9_]+$

Unique identifier for the process.

MUST be unique across all predefined and user-defined processes available for the authenticated user. If a back-end adds a process with the name of a user-defined process, the user-defined process takes preference over predefined processes in execution to not break existing process graphs.

Back-ends may choose to enforce a prefix for user-defined processes while storing the process, e.g. user_ndvi with user_ being the prefix. Prefixes must still follow the pattern.

summary
string (process_summary)

A short summary of what the process does.

description
string (process_description)

Detailed description to explain the entity.

CommonMark 0.29 syntax MAY be used for rich text representation. In addition to the CommonMark syntax, clients can convert process IDs that are formatted as in the following example into links instead of code blocks: ``process_id()``

categories
Array of strings (process_categories)

A list of categories.

parameters
Array of objects (process_parameters)

A list of parameters.

The order in the array corresponds to the parameter order to be used in clients that don't support named parameters.

returns
object (Process Return Value)

The data that is returned from this process.

deprecated
boolean (process_deprecated)
Default: false

Specifies that the process or parameter is deprecated with the potential to be removed in any of the next versions. It should be transitioned out of usage as soon as possible and users should refrain from using it in new implementations.

For processes a link with relation type latest-version SHOULD be added to the links and MUST refer to the process that can be used instead.

experimental
boolean (process_experimental)
Default: false

Declares the process or parameter to be experimental, which means that it is likely to change or may produce unpredictable behaviour. Users should refrain from using it in production, but still feel encouraged to try it out and give feedback.

exceptions
object (Process Exceptions)

Declares any exceptions (errors) that might occur during execution of this process. MUST be used only for exceptions that stop the execution of a process and are therefore not to be used for warnings, or notices or debugging messages.

The keys define the error code and MUST match the following pattern: ^[A-Za-z0-9_]+$

This schema follows the schema of the general openEO error list (see errors.json).

examples
Array of Process Example with Process Graph (object) or Process Example with Arguments (object) (Process Example)

Examples, may be used for tests. Either process_graph or arguments must be set, never both.

links
Array of objects (Link)

Links related to this process, e.g. additional external documentation. It is RECOMMENDED to provide links with the following rel (relation) types:

  1. latest-version: If a process has been marked as deprecated, a link should point to the preferred version of the process. The relation types predecessor-version (link to older version) and successor-version (link to newer version) can also be used to show the relation between versions.
  2. cite-as: For all DOIs associated with the process, the respective DOI links should be added. For additional relation types see also the lists of common relation types in openEO.
process_graph
required
object (Process Graph)

A process graph defines a graph-like structure as a connected set of executable processes. Each key is a unique identifier (node ID) that is used to refer to the process in the graph.

Responses

201

The resource has been created successfully and the location of the newly created resource is advertized by the back-end.

Examples:

  • POST /services redirects to GET /services/{service_id}
  • POST /jobs redirects to GET /jobs/{job_id}
Response Headers
Location
required
string <uri>
Example: "https://openeo.org/api/v1.0/resource/123"

URL to the newly created resource.

OpenEO-Identifier
required
string
Example: "123"

Unique Identifier (e.g. job id or service id) of the newly created resource.

4XX

The request can't be fulfilled due to an error on client-side, i.e. the request is invalid. The client should not repeat the request without modifications.

The response body SHOULD contain a JSON error object. MUST be any HTTP status code specified in RFC 7231. This request MUST respond with HTTP status codes 401 if authorization is required or 403 if the authorization failed or access is forbidden in general to the authenticated user. HTTP status code 404 should be used if the value of a path parameter is invalid.

See also:

5XX

The request can't be fulfilled due to an error at the back-end. The error is never the client’s fault and therefore it is reasonable for the client to retry the exact same request that triggered this response.

The response body SHOULD contain a JSON error object. MUST be any HTTP status code specified in RFC 7231.

See also:

Request samples

Content type
application/json

A user-defined process that computes the EVI.

Copy
Expand all Collapse all
{
  • "id": "evi",
  • "summary": "Enhanced Vegetation Index",
  • "description": "Computes the Enhanced Vegetation Index (EVI). It is computed with the following formula: `2.5 * (NIR - RED) / (1 + NIR + 6*RED + -7.5*BLUE)`.",
  • "parameters":
    [
    ],
  • "returns":
    {
    },
  • "process_graph":
    {
    }
}

Response samples

Content type
application/json
Copy
Expand all Collapse all
{}

Full metadata for a user-defined process

get /process_graphs/{process_graph_id}

The URL of the API MAY freely be chosen by the back-end providers. The path, including API versioning, is a recommendation only. Nevertheless, all servers MUST support HTTPS as the authentication methods are not secure with HTTP only!

https://localhost/api/{version}/process_graphs/{process_graph_id}

Returns all information about a user-defined process, including its process graph.

Authorizations:
path Parameters
process_graph_id
required
string (process_id) ^[A-Za-z0-9_]+$
Example: ndvi

Unique process graph identifier.

Responses

200

The user-defined process with process graph.

Response Schema: application/json
id
required
string (process_id) ^[A-Za-z0-9_]+$

Unique identifier for the process.

MUST be unique across all predefined and user-defined processes available for the authenticated user. If a back-end adds a process with the name of a user-defined process, the user-defined process takes preference over predefined processes in execution to not break existing process graphs.

Back-ends may choose to enforce a prefix for user-defined processes while storing the process, e.g. user_ndvi with user_ being the prefix. Prefixes must still follow the pattern.

summary
string (process_summary)

A short summary of what the process does.

description
string (process_description)

Detailed description to explain the entity.

CommonMark 0.29 syntax MAY be used for rich text representation. In addition to the CommonMark syntax, clients can convert process IDs that are formatted as in the following example into links instead of code blocks: ``process_id()``

categories
Array of strings (process_categories)

A list of categories.

parameters
Array of objects (process_parameters)

A list of parameters.

The order in the array corresponds to the parameter order to be used in clients that don't support named parameters.

returns
object (Process Return Value)

The data that is returned from this process.

deprecated
boolean (process_deprecated)
Default: false

Specifies that the process or parameter is deprecated with the potential to be removed in any of the next versions. It should be transitioned out of usage as soon as possible and users should refrain from using it in new implementations.

For processes a link with relation type latest-version SHOULD be added to the links and MUST refer to the process that can be used instead.

experimental
boolean (process_experimental)
Default: false

Declares the process or parameter to be experimental, which means that it is likely to change or may produce unpredictable behaviour. Users should refrain from using it in production, but still feel encouraged to try it out and give feedback.

exceptions
object (Process Exceptions)

Declares any exceptions (errors) that might occur during execution of this process. MUST be used only for exceptions that stop the execution of a process and are therefore not to be used for warnings, or notices or debugging messages.

The keys define the error code and MUST match the following pattern: ^[A-Za-z0-9_]+$

This schema follows the schema of the general openEO error list (see errors.json).

examples
Array of Process Example with Process Graph (object) or Process Example with Arguments (object) (Process Example)

Examples, may be used for tests. Either process_graph or arguments must be set, never both.

links
Array of objects (Link)

Links related to this process, e.g. additional external documentation. It is RECOMMENDED to provide links with the following rel (relation) types:

  1. latest-version: If a process has been marked as deprecated, a link should point to the preferred version of the process. The relation types predecessor-version (link to older version) and successor-version (link to newer version) can also be used to show the relation between versions.
  2. cite-as: For all DOIs associated with the process, the respective DOI links should be added. For additional relation types see also the lists of common relation types in openEO.
process_graph
required
object (Process Graph)

A process graph defines a graph-like structure as a connected set of executable processes. Each key is a unique identifier (node ID) that is used to refer to the process in the graph.

4XX

The request can't be fulfilled due to an error on client-side, i.e. the request is invalid. The client should not repeat the request without modifications.

The response body SHOULD contain a JSON error object. MUST be any HTTP status code specified in RFC 7231. This request MUST respond with HTTP status codes 401 if authorization is required or 403 if the authorization failed or access is forbidden in general to the authenticated user. HTTP status code 404 should be used if the value of a path parameter is invalid.

See also:

5XX

The request can't be fulfilled due to an error at the back-end. The error is never the client’s fault and therefore it is reasonable for the client to retry the exact same request that triggered this response.

The response body SHOULD contain a JSON error object. MUST be any HTTP status code specified in RFC 7231.

See also:

Response samples

Content type
application/json

A user-defined process that computes the EVI.

Copy
Expand all Collapse all
{
  • "id": "evi",
  • "summary": "Enhanced Vegetation Index",
  • "description": "Computes the Enhanced Vegetation Index (EVI). It is computed with the following formula: `2.5 * (NIR - RED) / (1 + NIR + 6*RED + -7.5*BLUE)`.",
  • "parameters":
    [
    ],
  • "returns":
    {
    },
  • "process_graph":
    {
    }
}

Modify a user-defined process

patch /process_graphs/{process_graph_id}

The URL of the API MAY freely be chosen by the back-end providers. The path, including API versioning, is a recommendation only. Nevertheless, all servers MUST support HTTPS as the authentication methods are not secure with HTTP only!

https://localhost/api/{version}/process_graphs/{process_graph_id}

Fully or partially replaces a user-defined process (process graph). The process id must still be unique for the authenticated user, including all pre-defined processes by the back-end.

Authorizations:
path Parameters
process_graph_id
required
string (process_id) ^[A-Za-z0-9_]+$
Example: ndvi

Unique process graph identifier.

Request Body schema: application/json
id
string (process_id) ^[A-Za-z0-9_]+$

Unique identifier for the process.

MUST be unique across all predefined and user-defined processes available for the authenticated user. If a back-end adds a process with the name of a user-defined process, the user-defined process takes preference over predefined processes in execution to not break existing process graphs.

Back-ends may choose to enforce a prefix for user-defined processes while storing the process, e.g. user_ndvi with user_ being the prefix. Prefixes must still follow the pattern.

summary
string (process_summary)

A short summary of what the process does.

description
string (process_description)

Detailed description to explain the entity.

CommonMark 0.29 syntax MAY be used for rich text representation. In addition to the CommonMark syntax, clients can convert process IDs that are formatted as in the following example into links instead of code blocks: ``process_id()``

categories
Array of strings (process_categories)

A list of categories.

parameters
Array of objects (process_parameters)

A list of parameters.

The order in the array corresponds to the parameter order to be used in clients that don't support named parameters.

returns
object (Process Return Value)

The data that is returned from this process.

deprecated
boolean (process_deprecated)
Default: false

Specifies that the process or parameter is deprecated with the potential to be removed in any of the next versions. It should be transitioned out of usage as soon as possible and users should refrain from using it in new implementations.

For processes a link with relation type latest-version SHOULD be added to the links and MUST refer to the process that can be used instead.

experimental
boolean (process_experimental)
Default: false

Declares the process or parameter to be experimental, which means that it is likely to change or may produce unpredictable behaviour. Users should refrain from using it in production, but still feel encouraged to try it out and give feedback.

exceptions
object (Process Exceptions)

Declares any exceptions (errors) that might occur during execution of this process. MUST be used only for exceptions that stop the execution of a process and are therefore not to be used for warnings, or notices or debugging messages.

The keys define the error code and MUST match the following pattern: ^[A-Za-z0-9_]+$

This schema follows the schema of the general openEO error list (see errors.json).

examples
Array of Process Example with Process Graph (object) or Process Example with Arguments (object) (Process Example)

Examples, may be used for tests. Either process_graph or arguments must be set, never both.

links
Array of objects (Link)

Links related to this process, e.g. additional external documentation. It is RECOMMENDED to provide links with the following rel (relation) types:

  1. latest-version: If a process has been marked as deprecated, a link should point to the preferred version of the process. The relation types predecessor-version (link to older version) and successor-version (link to newer version) can also be used to show the relation between versions.
  2. cite-as: For all DOIs associated with the process, the respective DOI links should be added. For additional relation types see also the lists of common relation types in openEO.

Responses

204

The process graph data has been updated successfully.

4XX

The request can't be fulfilled due to an error on client-side, i.e. the request is invalid. The client should not repeat the request without modifications.

The response body SHOULD contain a JSON error object. MUST be any HTTP status code specified in RFC 7231. This request MUST respond with HTTP status codes 401 if authorization is required or 403 if the authorization failed or access is forbidden in general to the authenticated user. HTTP status code 404 should be used if the value of a path parameter is invalid.

See also:

5XX

The request can't be fulfilled due to an error at the back-end. The error is never the client’s fault and therefore it is reasonable for the client to retry the exact same request that triggered this response.

The response body SHOULD contain a JSON error object. MUST be any HTTP status code specified in RFC 7231.

See also:

Request samples

Content type
application/json

A user-defined process that computes the EVI.

Copy
Expand all Collapse all
{
  • "id": "evi",
  • "summary": "Enhanced Vegetation Index",
  • "description": "Computes the Enhanced Vegetation Index (EVI). It is computed with the following formula: `2.5 * (NIR - RED) / (1 + NIR + 6*RED + -7.5*BLUE)`.",
  • "parameters":
    [
    ],
  • "returns":
    {
    },
  • "process_graph":
    {
    }
}

Response samples

Content type
application/json
Copy
Expand all Collapse all
{}

Delete a user-defined process

delete /process_graphs/{process_graph_id}

The URL of the API MAY freely be chosen by the back-end providers. The path, including API versioning, is a recommendation only. Nevertheless, all servers MUST support HTTPS as the authentication methods are not secure with HTTP only!

https://localhost/api/{version}/process_graphs/{process_graph_id}

Deletes the data related to this user-defined process, including its process graph.

Does NOT delete jobs or services that reference this user-defined process.

Authorizations:
path Parameters
process_graph_id
required
string (process_id) ^[A-Za-z0-9_]+$
Example: ndvi

Unique process graph identifier.

Responses

204

The user-defined process has been successfully deleted

4XX

The request can't be fulfilled due to an error on client-side, i.e. the request is invalid. The client should not repeat the request without modifications.

The response body SHOULD contain a JSON error object. MUST be any HTTP status code specified in RFC 7231. This request MUST respond with HTTP status codes 401 if authorization is required or 403 if the authorization failed or access is forbidden in general to the authenticated user. HTTP status code 404 should be used if the value of a path parameter is invalid.

See also:

5XX

The request can't be fulfilled due to an error at the back-end. The error is never the client’s fault and therefore it is reasonable for the client to retry the exact same request that triggered this response.

The response body SHOULD contain a JSON error object. MUST be any HTTP status code specified in RFC 7231.

See also:

Response samples

Content type
application/json
Copy
Expand all Collapse all
{}

Data Processing

Organizes and manages data processing on the back-end, either as synchronous on-demand computation or batch jobs.

Supported file formats

get /file_formats

The URL of the API MAY freely be chosen by the back-end providers. The path, including API versioning, is a recommendation only. Nevertheless, all servers MUST support HTTPS as the authentication methods are not secure with HTTP only!

https://localhost/api/{version}/file_formats

The request will ask the back-end for supported input and output file formats. Input file formats specify which file a back-end can read from. Output file formats specify which file a back-end can write to.

The response to this request is an object listing all available input and output file formats separately with their parameters and additional data. This endpoint does not include the supported secondary web services.

Note: Format names and parameters MUST be fully aligned with the GDAL codes if available, see GDAL Raster Formats and OGR Vector Formats. It is OPTIONAL to support all output format parameters supported by GDAL. Some file formats not available through GDAL may be defined centrally for openEO. Custom file formats or parameters MAY be defined.

The format descriptions must describe how the file formats relate to data cubes. Input file formats must describe how the files have to be structured to be transformed into data cubes. Output file formats must describe how the data cubes are stored at the back-end and how the resulting file structure looks like.

Back-ends MUST NOT support aliases, for example it is not allowed to support geotiff instead of gtiff. Nevertheless, openEO Clients MAY translate user input input for convenience (e.g. translate geotiff to gtiff). Also, for a better user experience the back-end can specify a title.

Format names are allowed to be case insensitive throughout the API.

Authorizations:

Responses

200

An object with containing all input and output format separately. For each property input and output an object is defined where the file format names are the property keys and the property values are objects that define a title, supported parameters and related links.

Response Schema: application/json
input
required
object (Input Formats Response)

List of supported input file formats, i.e. file formats a back-end can read from. The property keys are the file format names that are used by clients and users, for example in process graphs.

output
required
object (Output Formats Response)

List of supported output file formats, i.e. file formats a back-end can write to. The property keys are the file format names that are used by clients and users, for example in process graphs.

4XX

The request can't be fulfilled due to an error on client-side, i.e. the request is invalid. The client should not repeat the request without modifications.

The response body SHOULD contain a JSON error object. MUST be any HTTP status code specified in RFC 7231. This request usually does not respond with HTTP status codes 401 and 403 due to missing authorization. HTTP status code 404 should be used if the value of a path parameter is invalid.

See also:

5XX

The request can't be fulfilled due to an error at the back-end. The error is never the client’s fault and therefore it is reasonable for the client to retry the exact same request that triggered this response.

The response body SHOULD contain a JSON error object. MUST be any HTTP status code specified in RFC 7231.

See also:

Response samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "output":
    {
    },
  • "input":
    {
    }
}

Process and download data synchronously

post /result

The URL of the API MAY freely be chosen by the back-end providers. The path, including API versioning, is a recommendation only. Nevertheless, all servers MUST support HTTPS as the authentication methods are not secure with HTTP only!

https://localhost/api/{version}/result

Process graphs will be executed directly and the result will be downloaded in the format specified in the process graph. This endpoint can be used to generate small previews or test process graphs before starting a batch job. Timeouts on either client- or server-side are to be expected for complex computations. Back-ends MAY send the openEO error ProcessGraphComplexity immediately if the computation is expected to time out. Otherwise requests MAY time-out after a certain amount of time by sending openEO error RequestTimeout. A header named OpenEO-Costs MAY be sent with all responses, which MUST include the costs for processing and downloading the data. Additionally, a link to a log file MAY be sent in the header.

Authorizations:
Request Body schema: application/json

Specifies the job details, e.g. the process graph and billing details.

process_graph
required
object (Process Graph)

A process graph defines a graph-like structure as a connected set of executable processes. Each key is a unique identifier (node ID) that is used to refer to the process in the graph.

budget
number (budget) Nullable
Default: null

Maximum amount of costs the request is allowed to produce. The value MUST be specified in the currency the back-end is working with. The currency can be retrieved by calling GET /. If no currency is set, this field MUST NOT be a number.

If possible, back-ends SHOULD reject jobs with openEO error PaymentRequired if the budget is too low to process the request completely. Otherwise, when reaching the budget jobs MAY try to return partial results if possible. Otherwise the request and results are discarded. Users SHOULD be warned by clients that reaching the budget MAY discard the results and that setting this value should be well-wrought.

Setting the budget to null means there is no specified budget.

plan
string (billing_plan_defaultable) Nullable

The billing plan to process and charge the job with.

The plans and the default plan can be retrieved by calling GET /.

Billing plans MUST be accepted case insensitive. Billing plans not on the list of available plans MUST be rejected with openEO error BillingPlanInvalid.

If no billing plan is specified by the client, the server MUST default to the default billing plan in GET /. If the default billing plan of the provider changes, the job or service MUST not be affected by the change, i.e. the default plan which is valid during job or service creation must be permanently assigned to the job or service until the client requests to change it.

Responses

200

Result data in the requested output format

Response Headers
Content-Type
string

The appropriate media (MIME) type for the requested output format MUST be sent.

OpenEO-Costs
number (money) Nullable
Default: null
Example: 12.98

MAY include the costs for processing and downloading the data.

Link
string ^<[^>]+>;\s?rel="monitor"
Example: "<https://openeo.org/api/logs/258489231>; rel=\"monitor\""

The header MAY indicate a link to a log file generated by the request. If provided, the link MUST be serialized according to RFC 8288 and MUST use the relation type monitor. The link MUST follow the specifications for the links GET /jobs/{job_id}/logs and GET /services/{service_id}/logs, except that is MUST NOT accept any parameters (limit/offset). Therefore, the link MUST be accessible with HTTP GET, MUST be secured using a Bearer token and MUST follow the corresponding request body schema.

4XX

The request can't be fulfilled due to an error on client-side, i.e. the request is invalid. The client should not repeat the request without modifications.

The response body SHOULD contain a JSON error object. MUST be any HTTP status code specified in RFC 7231. This request MUST respond with HTTP status codes 401 if authorization is required or 403 if the authorization failed or access is forbidden in general to the authenticated user. HTTP status code 404 should be used if the value of a path parameter is invalid.

See also:

5XX

The request can't be fulfilled due to an error at the back-end. The error is never the client’s fault and therefore it is reasonable for the client to retry the exact same request that triggered this response.

The response body SHOULD contain a JSON error object. MUST be any HTTP status code specified in RFC 7231.

See also:

Request samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "process_graph":
    {
    },
  • "budget": 100,
  • "plan": "free"
}

Response samples

Content type
application/json
Copy
Expand all Collapse all
{}

List all batch jobs

get /jobs

The URL of the API MAY freely be chosen by the back-end providers. The path, including API versioning, is a recommendation only. Nevertheless, all servers MUST support HTTPS as the authentication methods are not secure with HTTP only!

https://localhost/api/{version}/jobs

Requests to this endpoint will list all batch jobs submitted by a user with given id.

Authorizations:
query Parameters
limit
integer >= 1
Example: limit=10

This parameter enables pagination for the endpoint and specifies the maximum number of elements that arrays in the top-level object (e.g. jobs, log entries, secondary services, files etc.) are allowed to contain. The only exception is the links array, which MUST NOT be paginated as otherwise the pagination links may be missing ins responses. If the parameter is not provided or empty, all elements are returned.

Pagination is OPTIONAL and back-ends and clients may not support it. Therefore it MUST be implemented in a way that clients not supporting pagination get all resources regardless.

If the response is paginated, the links array MUST be used to propagate the links for pagination with pre-defined rel types. See the links array schema for supported rel types.

Note: Implementations can use all kind of pagination techniques, depending on what is supported best by their infrastructure. So it doesn't care whether it is page-based, offset-based or uses tokens for pagination. The clients will use whatever is specified in the links with the corresponding rel types.

Responses

200

Array of job descriptions

Response Schema: application/json
jobs
required
Array of objects (Batch Job Metadata)

Array of job descriptions

links
required
Array of objects (links_pagination)

Links related to this list of resources, for example links for pagination or alternative formats such as a human-readable HTML version. The links array MUST NOT be paginated.

If pagination is implemented, the following rel (relation) types apply:

  1. next (REQUIRED): A link to the next page, except on the last page.

  2. prev (OPTIONAL): A link to the previous page, except on the first page.

  3. first (OPTIONAL): A link to the first page, except on the first page.

  4. last (OPTIONAL): A link to the last page, except on the last page.

For additional relation types see also the lists of common relation types in openEO.

4XX

The request can't be fulfilled due to an error on client-side, i.e. the request is invalid. The client should not repeat the request without modifications.

The response body SHOULD contain a JSON error object. MUST be any HTTP status code specified in RFC 7231. This request MUST respond with HTTP status codes 401 if authorization is required or 403 if the authorization failed or access is forbidden in general to the authenticated user. HTTP status code 404 should be used if the value of a path parameter is invalid.

See also:

5XX

The request can't be fulfilled due to an error at the back-end. The error is never the client’s fault and therefore it is reasonable for the client to retry the exact same request that triggered this response.

The response body SHOULD contain a JSON error object. MUST be any HTTP status code specified in RFC 7231.

See also:

Response samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "jobs":
    [
    ],
  • "links":
    []
}

Create a new batch job

post /jobs

The URL of the API MAY freely be chosen by the back-end providers. The path, including API versioning, is a recommendation only. Nevertheless, all servers MUST support HTTPS as the authentication methods are not secure with HTTP only!

https://localhost/api/{version}/jobs

Creates a new batch processing task (job) from one or more (chained) processes at the back-end.

Processing the data doesn't start yet. The job status gets initialized as created by default.

Authorizations:
Request Body schema: application/json

Specifies the job details, e.g. the process graph and billing details.

title
string (eo_title) Nullable

A short description to easily distinguish entities.

description
string (eo_description) Nullable

Detailed multi-line description to explain the entity.

CommonMark 0.29 syntax MAY be used for rich text representation.

process_graph
required
object (Process Graph)

A process graph defines a graph-like structure as a connected set of executable processes. Each key is a unique identifier (node ID) that is used to refer to the process in the graph.

plan
string (billing_plan_defaultable) Nullable

The billing plan to process and charge the job with.

The plans and the default plan can be retrieved by calling GET /.

Billing plans MUST be accepted case insensitive. Billing plans not on the list of available plans MUST be rejected with openEO error BillingPlanInvalid.

If no billing plan is specified by the client, the server MUST default to the default billing plan in GET /. If the default billing plan of the provider changes, the job or service MUST not be affected by the change, i.e. the default plan which is valid during job or service creation must be permanently assigned to the job or service until the client requests to change it.

budget
number (budget) Nullable
Default: null

Maximum amount of costs the request is allowed to produce. The value MUST be specified in the currency the back-end is working with. The currency can be retrieved by calling GET /. If no currency is set, this field MUST NOT be a number.

If possible, back-ends SHOULD reject jobs with openEO error PaymentRequired if the budget is too low to process the request completely. Otherwise, when reaching the budget jobs MAY try to return partial results if possible. Otherwise the request and results are discarded. Users SHOULD be warned by clients that reaching the budget MAY discard the results and that setting this value should be well-wrought.

Setting the budget to null means there is no specified budget.

Responses

201

The resource has been created successfully and the location of the newly created resource is advertized by the back-end.

Examples:

  • POST /services redirects to GET /services/{service_id}
  • POST /jobs redirects to GET /jobs/{job_id}
Response Headers
Location
required
string <uri>
Example: "https://openeo.org/api/v1.0/resource/123"

URL to the newly created resource.

OpenEO-Identifier
required
string
Example: "123"

Unique Identifier (e.g. job id or service id) of the newly created resource.

4XX

The request can't be fulfilled due to an error on client-side, i.e. the request is invalid. The client should not repeat the request without modifications.

The response body SHOULD contain a JSON error object. MUST be any HTTP status code specified in RFC 7231. This request MUST respond with HTTP status codes 401 if authorization is required or 403 if the authorization failed or access is forbidden in general to the authenticated user. HTTP status code 404 should be used if the value of a path parameter is invalid.

See also:

5XX

The request can't be fulfilled due to an error at the back-end. The error is never the client’s fault and therefore it is reasonable for the client to retry the exact same request that triggered this response.

The response body SHOULD contain a JSON error object. MUST be any HTTP status code specified in RFC 7231.

See also:

Request samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "title": "NDVI based on Sentinel 2",
  • "description": "Deriving minimum NDVI measurements over pixel time series of Sentinel 2",
  • "process_graph":
    {
    },
  • "plan": "free",
  • "budget": 100
}

Response samples

Content type
application/json
Copy
Expand all Collapse all
{}

Modify a batch job

patch /jobs/{job_id}

The URL of the API MAY freely be chosen by the back-end providers. The path, including API versioning, is a recommendation only. Nevertheless, all servers MUST support HTTPS as the authentication methods are not secure with HTTP only!

https://localhost/api/{version}/jobs/{job_id}

Modifies an existing job at the back-end but maintains the identifier. Changes can be grouped in a single request.

Jobs can only be modified when the job is not queued or running. Otherwise requests to this endpoint MUST be rejected with openEO error JobLocked.

Authorizations:
path Parameters
job_id
required
string (job_id) ^[A-Za-z0-9_\-\.~]+$
Example: a3cca2b2aa1e3b5b

Unique job identifier.

Request Body schema: application/json

Specifies the job details to update.

title
string (eo_title) Nullable

A short description to easily distinguish entities.

description
string (eo_description) Nullable

Detailed multi-line description to explain the entity.

CommonMark 0.29 syntax MAY be used for rich text representation.

process_graph
object (Process Graph)

A process graph defines a graph-like structure as a connected set of executable processes. Each key is a unique identifier (node ID) that is used to refer to the process in the graph.

plan
string (billing_plan_defaultable) Nullable

The billing plan to process and charge the job with.

The plans and the default plan can be retrieved by calling GET /.

Billing plans MUST be accepted case insensitive. Billing plans not on the list of available plans MUST be rejected with openEO error BillingPlanInvalid.

If no billing plan is specified by the client, the server MUST default to the default billing plan in GET /. If the default billing plan of the provider changes, the job or service MUST not be affected by the change, i.e. the default plan which is valid during job or service creation must be permanently assigned to the job or service until the client requests to change it.

budget
number (budget) Nullable
Default: null

Maximum amount of costs the request is allowed to produce. The value MUST be specified in the currency the back-end is working with. The currency can be retrieved by calling GET /. If no currency is set, this field MUST NOT be a number.

If possible, back-ends SHOULD reject jobs with openEO error PaymentRequired if the budget is too low to process the request completely. Otherwise, when reaching the budget jobs MAY try to return partial results if possible. Otherwise the request and results are discarded. Users SHOULD be warned by clients that reaching the budget MAY discard the results and that setting this value should be well-wrought.

Setting the budget to null means there is no specified budget.

Responses

204

Changes to the job applied successfully.

4XX

The request can't be fulfilled due to an error on client-side, i.e. the request is invalid. The client should not repeat the request without modifications.

The response body SHOULD contain a JSON error object. MUST be any HTTP status code specified in RFC 7231. This request MUST respond with HTTP status codes 401 if authorization is required or 403 if the authorization failed or access is forbidden in general to the authenticated user. HTTP status code 404 should be used if the value of a path parameter is invalid.

See also:

5XX

The request can't be fulfilled due to an error at the back-end. The error is never the client’s fault and therefore it is reasonable for the client to retry the exact same request that triggered this response.

The response body SHOULD contain a JSON error object. MUST be any HTTP status code specified in RFC 7231.

See also:

Request samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "title": "NDVI based on Sentinel 2",
  • "description": "Deriving minimum NDVI measurements over pixel time series of Sentinel 2",
  • "process_graph":
    {
    },
  • "plan": "free",
  • "budget": 100
}

Response samples

Content type
application/json
Copy
Expand all Collapse all
{}

Full metadata for a batch job

get /jobs/{job_id}

The URL of the API MAY freely be chosen by the back-end providers. The path, including API versioning, is a recommendation only. Nevertheless, all servers MUST support HTTPS as the authentication methods are not secure with HTTP only!

https://localhost/api/{version}/jobs/{job_id}

Returns detailed information about a submitted batch job.

Authorizations:
path Parameters
job_id
required
string (job_id) ^[A-Za-z0-9_\-\.~]+$
Example: a3cca2b2aa1e3b5b

Unique job identifier.

Responses

200

Full job information.

Response Schema: application/json
id
required
string (job_id) ^[A-Za-z0-9_\-\.~]+$

Unique identifier of a job that is generated by the back-end during job submission. MUST match the specified pattern.

title
string (eo_title) Nullable

A short description to easily distinguish entities.

description
string (eo_description) Nullable

Detailed multi-line description to explain the entity.

CommonMark 0.29 syntax MAY be used for rich text representation.

process_graph
required
object (Process Graph)

A process graph defines a graph-like structure as a connected set of executable processes. Each key is a unique identifier (node ID) that is used to refer to the process in the graph.

status
required
string (status)
Default: "created"
Enum: "created" "queued" "running" "canceled" "finished" "error"

The current status of a batch job.

The following status changes can occur:

  • POST /jobs: The status is initialized as created.
  • POST /jobs/{job_id}/results: The status is set to queued, if processing doesn't start instantly.
    • Once the processing starts the status is set to running.
    • Once the data is available to download the status is set to finished.
    • Whenever an error occurs during processing, the status must be set to error.
  • DELETE /jobs/{job_id}/results: The status is set to canceled if the status was running beforehand and partial or preliminary results are available to be downloaded. Otherwise the status is set to created.
progress
number [ 0 .. 100 ]

Indicates the process of a running batch job in percent. Can also be set for a job which stopped due to an error or was canceled by the user. In this case, the value indicates the progress at which the job stopped. Property may not be available for the status codes created and queued. Submitted and queued jobs only allow the value 0, finished jobs only allow the value 100.

created
required
string <date-time> (created)

Date and time of creation, formatted as a RFC 3339 date-time.

updated
string <date-time> (updated)

Date and time of last status change, formatted as a RFC 3339 date-time.

plan
string (billing_plan)

The billing plan to process and charge the job with. The plans can be retrieved by calling GET /. Billing plans MUST be accepted case insensitive.

costs
number (money) Nullable
Default: null

An amount of money or credits. The value MUST be specified in the currency the back-end is working with. The currency can be retrieved by calling GET /. If no currency is set, this field MUST be null.

budget
number (budget) Nullable
Default: null

Maximum amount of costs the request is allowed to produce. The value MUST be specified in the currency the back-end is working with. The currency can be retrieved by calling GET /. If no currency is set, this field MUST NOT be a number.

If possible, back-ends SHOULD reject jobs with openEO error PaymentRequired if the budget is too low to process the request completely. Otherwise, when reaching the budget jobs MAY try to return partial results if possible. Otherwise the request and results are discarded. Users SHOULD be warned by clients that reaching the budget MAY discard the results and that setting this value should be well-wrought.

Setting the budget to null means there is no specified budget.

4XX

The request can't be fulfilled due to an error on client-side, i.e. the request is invalid. The client should not repeat the request without modifications.

The response body SHOULD contain a JSON error object. MUST be any HTTP status code specified in RFC 7231. This request MUST respond with HTTP status codes 401 if authorization is required or 403 if the authorization failed or access is forbidden in general to the authenticated user. HTTP status code 404 should be used if the value of a path parameter is invalid.

See also:

5XX

The request can't be fulfilled due to an error at the back-end. The error is never the client’s fault and therefore it is reasonable for the client to retry the exact same request that triggered this response.

The response body SHOULD contain a JSON error object. MUST be any HTTP status code specified in RFC 7231.

See also:

Response samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "id": "a3cca2b2aa1e3b5b",
  • "title": "NDVI based on Sentinel 2",
  • "description": "Deriving minimum NDVI measurements over pixel time series of Sentinel 2",
  • "process_graph":
    {
    },
  • "status": "running",
  • "progress": 75.5,
  • "created": "2017-01-01T09:32:12Z",
  • "updated": "2017-01-01T09:36:18Z",
  • "plan": "free",
  • "costs": 12.98,
  • "budget": 100
}

Delete a batch job

delete /jobs/{job_id}

The URL of the API MAY freely be chosen by the back-end providers. The path, including API versioning, is a recommendation only. Nevertheless, all servers MUST support HTTPS as the authentication methods are not secure with HTTP only!

https://localhost/api/{version}/jobs/{job_id}

Deletes all data related to this job. Computations are stopped and computed results are deleted. This job won't generate additional costs for processing.

Authorizations:
path Parameters
job_id
required
string (job_id) ^[A-Za-z0-9_\-\.~]+$
Example: a3cca2b2aa1e3b5b

Unique job identifier.

Responses

204

The job has been successfully deleted.

4XX

The request can't be fulfilled due to an error on client-side, i.e. the request is invalid. The client should not repeat the request without modifications.

The response body SHOULD contain a JSON error object. MUST be any HTTP status code specified in RFC 7231. This request MUST respond with HTTP status codes 401 if authorization is required or 403 if the authorization failed or access is forbidden in general to the authenticated user. HTTP status code 404 should be used if the value of a path parameter is invalid.

See also:

5XX

The request can't be fulfilled due to an error at the back-end. The error is never the client’s fault and therefore it is reasonable for the client to retry the exact same request that triggered this response.

The response body SHOULD contain a JSON error object. MUST be any HTTP status code specified in RFC 7231.

See also:

Response samples

Content type
application/json
Copy
Expand all Collapse all
{}

Get an estimate for a batch job

get /jobs/{job_id}/estimate

The URL of the API MAY freely be chosen by the back-end providers. The path, including API versioning, is a recommendation only. Nevertheless, all servers MUST support HTTPS as the authentication methods are not secure with HTTP only!

https://localhost/api/{version}/jobs/{job_id}/estimate

Clients can ask for an estimate for a batch job. Back-ends can decide to either calculate the duration, the costs, the size or a combination of them. This MUST be the upper limit of the incurring costs. Clients can be charged less than specified, but never more. Back-end providers MAY specify an expiry time for the estimate. Starting to process data afterwards MAY be charged at a higher cost. Costs MAY NOT include downloading costs. This can be indicated with the downloads_included flag.

Authorizations:
path Parameters
job_id
required
string (job_id) ^[A-Za-z0-9_\-\.~]+$
Example: a3cca2b2aa1e3b5b

Unique job identifier.

Responses

200

The estimated costs with regard to money, processing time and storage capacity. At least one of costs, duration or size MUST be provided.

Response Schema: application/json
costs
number (money) Nullable
Default: null

An amount of money or credits. The value MUST be specified in the currency the back-end is working with. The currency can be retrieved by calling GET /. If no currency is set, this field MUST be null.

duration
string

Estimated duration for the operation. Duration MUST be specified as a ISO 8601 duration.

size
integer

Estimated required storage capacity, i.e. the size of the generated files. Size MUST be specified in bytes.

downloads_included
integer Nullable
Default: null

Specifies how many full downloads of the processed data are included in the estimate. Set to null for unlimited downloads, which is also the default value.

expires
string <date-time>

Time until which the estimate is valid, formatted as a RFC 3339 date-time.

4XX

The request can't be fulfilled due to an error on client-side, i.e. the request is invalid. The client should not repeat the request without modifications.

The response body SHOULD contain a JSON error object. MUST be any HTTP status code specified in RFC 7231. This request MUST respond with HTTP status codes 401 if authorization is required or 403 if the authorization failed or access is forbidden in general to the authenticated user. HTTP status code 404 should be used if the value of a path parameter is invalid.

See also:

5XX

The request can't be fulfilled due to an error at the back-end. The error is never the client’s fault and therefore it is reasonable for the client to retry the exact same request that triggered this response.

The response body SHOULD contain a JSON error object. MUST be any HTTP status code specified in RFC 7231.

See also:

Response samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "costs": 12.98,
  • "duration": "P1Y2M10DT2H30M",
  • "size": 157286400,
  • "downloads_included": 5,
  • "expires": "2020-11-01T00:00:00Z"
}

Logs for a batch job

get /jobs/{job_id}/logs

The URL of the API MAY freely be chosen by the back-end providers. The path, including API versioning, is a recommendation only. Nevertheless, all servers MUST support HTTPS as the authentication methods are not secure with HTTP only!

https://localhost/api/{version}/jobs/{job_id}/logs

Logs for the batch job.

Authorizations:
path Parameters
job_id
required
string (job_id) ^[A-Za-z0-9_\-\.~]+$
Example: a3cca2b2aa1e3b5b

Unique job identifier.

query Parameters
limit
integer >= 1
Example: limit=10

This parameter enables pagination for the endpoint and specifies the maximum number of elements that arrays in the top-level object (e.g. jobs, log entries, secondary services, files etc.) are allowed to contain. The only exception is the links array, which MUST NOT be paginated as otherwise the pagination links may be missing ins responses. If the parameter is not provided or empty, all elements are returned.

Pagination is OPTIONAL and back-ends and clients may not support it. Therefore it MUST be implemented in a way that clients not supporting pagination get all resources regardless.

If the response is paginated, the links array MUST be used to propagate the links for pagination with pre-defined rel types. See the links array schema for supported rel types.

Note: Implementations can use all kind of pagination techniques, depending on what is supported best by their infrastructure. So it doesn't care whether it is page-based, offset-based or uses tokens for pagination. The clients will use whatever is specified in the links with the corresponding rel types.

Responses

200

Lists the requested log entries.

Response Schema: application/json
logs
required
Array of objects (Log Entry)
links
required
Array of objects (links_pagination)

Links related to this list of resources, for example links for pagination or alternative formats such as a human-readable HTML version. The links array MUST NOT be paginated.

If pagination is implemented, the following rel (relation) types apply:

  1. next (REQUIRED): A link to the next page, except on the last page.

  2. prev (OPTIONAL): A link to the previous page, except on the first page.

  3. first (OPTIONAL): A link to the first page, except on the first page.

  4. last (OPTIONAL): A link to the last page, except on the last page.

For additional relation types see also the lists of common relation types in openEO.

4XX

The request can't be fulfilled due to an error on client-side, i.e. the request is invalid. The client should not repeat the request without modifications.

The response body SHOULD contain a JSON error object. MUST be any HTTP status code specified in RFC 7231. This request MUST respond with HTTP status codes 401 if authorization is required or 403 if the authorization failed or access is forbidden in general to the authenticated user. HTTP status code 404 should be used if the value of a path parameter is invalid.

See also:

5XX

The request can't be fulfilled due to an error at the back-end. The error is never the client’s fault and therefore it is reasonable for the client to retry the exact same request that triggered this response.

The response body SHOULD contain a JSON error object. MUST be any HTTP status code specified in RFC 7231.

See also:

Response samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "logs":
    [
    ],
  • "links":
    []
}

Download results for a completed batch job

get /jobs/{job_id}/results

The URL of the API MAY freely be chosen by the back-end providers. The path, including API versioning, is a recommendation only. Nevertheless, all servers MUST support HTTPS as the authentication methods are not secure with HTTP only!

https://localhost/api/{version}/jobs/{job_id}/results

After finishing processing, this request will provide signed URLs to the processed files of the batch job with some additional metadata. The response is a STAC Item (version 0.9.0) if it has spatial and temporal references included.

URL signing is a way to protect files from unauthorized access with a key in the URL instead of HTTP header based authorization. The URL signing key is similar to a password and its inclusion in the URL allows to download files using simple GET requests supported by a wide range of programs, e.g. web browsers or download managers. Back-ends are responsible to generate the URL signing keys and to manage their appropriate expiration. The back-end MAY indicate an expiration time by setting the expires property.

If processing has not finished yet requests to this endpoint MUST be rejected with openEO error JobNotFinished.

Authorizations:
path Parameters
job_id
required
string (job_id) ^[A-Za-z0-9_\-\.~]+$
Example: a3cca2b2aa1e3b5b

Unique job identifier.

Responses

200

Valid download links have been returned. The download links doesn't necessarily need to be located under the API base url.

Response Headers
OpenEO-Costs
number (money) Nullable
Default: null
Example: 12.98

Specifies the costs for fully downloading the data once, i.e. this header MAY change in subsequent calls. It MUST be set to 0 if the requester is the owner of the job and still has free downloads included in his processing charges estimated by GET /jobs/{job_id}/estimate. If a requester other than the owner is requesting the data of a shared job this header indicates the costs for the requester.

Response Schema:
stac_version
required
string (stac_version)
Value: "0.9.0"

The STAC version implemented.

stac_extensions
Array of Reference to a JSON Schema (string) or Reference to a core extension (string) (stac_extensions)

A list of implemented STAC extensions. The list contains URLs to the JSON Schema files it can be validated against. For official extensions, a "shortcut" can be used. This means you can specify the folder name of the extension in the STAC repository, for example sar for the SAR extension. If the versions of the extension and the collection diverge, you can specify the URL of the JSON schema file.

id
required
string (job_id) ^[A-Za-z0-9_\-\.~]+$

Unique identifier of a job that is generated by the back-end during job submission. MUST match the specified pattern.

type
required
string
Value: "Feature"
bbox
required
Array of numbers (bbox) [ 4 .. 6 ] items

Potential spatial extent covered by the data. The bounding box is provided as four or six numbers, depending on whether the coordinate reference system includes a vertical axis (height or depth):

  • West (lower left corner, coordinate axis 1)
  • South (lower left corner, coordinate axis 2)
  • Base (optional, lower left corner, coordinate axis 3)
  • East (upper right corner, coordinate axis 1)
  • North (upper right corner, coordinate axis 2)
  • Height (optional, upper right corner, coordinate axis 3)

The coordinate reference system of the values is WGS84 longitude/latitude.

geometry
required
GeoJSON Point (object) or GeoJSON LineString (object) or GeoJSON Polygon (object) or GeoJSON MultiPoint (object) or GeoJSON MultiLineString (object) or GeoJSON MultiPolygon (object) or GeoJSON GeometryCollection (object)

Defines the full footprint of the asset represented by this item as GeoJSON Geometry.

properties
required
object (Item Properties)

MAY contain any additional properties, e.g. other STAC Item properties, properties from STAC extensions or custom properties.

assets
required
object (Item Assets)

Dictionary of asset objects that can be downloaded, each with a unique key. The keys MAY be used by clients as file names.

links
required
Array of objects (Link)

Links related to this batch job result, e.g. a link to an invoice, additional log files or external documentation. The links MUST NOT contain links to the processed and downloadable data. Instead specify these in the assets property. Clients MUST NOT download the data referenced in the links by default. For relation types see the lists of common relation types in openEO.

424

The request can't be fulfilled as the batch job failed. This request will deliver the last error message that was produced by the batch job.

This HTTP code MUST be sent only when the job status is error.

4XX

The request can't be fulfilled due to an error on client-side, i.e. the request is invalid. The client should not repeat the request without modifications.

The response body SHOULD contain a JSON error object. MUST be any HTTP status code specified in RFC 7231. This request MUST respond with HTTP status codes 401 if authorization is required or 403 if the authorization failed or access is forbidden in general to the authenticated user. HTTP status code 404 should be used if the value of a path parameter is invalid.

See also:

5XX

The request can't be fulfilled due to an error at the back-end. The error is never the client’s fault and therefore it is reasonable for the client to retry the exact same request that triggered this response.

The response body SHOULD contain a JSON error object. MUST be any HTTP status code specified in RFC 7231.

See also:

Response samples

Content type
Copy
Expand all Collapse all
{
  • "stac_version": "0.9.0",
  • "stac_extensions": [ ],
  • "id": "a3cca2b2aa1e3b5b",
  • "type": "Feature",
  • "bbox":
    [
    ],
  • "geometry":
    {
    },
  • "properties":
    {
    },
  • "assets":
    {},
  • "links":
    []
}

Start processing a batch job

post /jobs/{job_id}/results

The URL of the API MAY freely be chosen by the back-end providers. The path, including API versioning, is a recommendation only. Nevertheless, all servers MUST support HTTPS as the authentication methods are not secure with HTTP only!

https://localhost/api/{version}/jobs/{job_id}/results

Adds a batch job to the processing queue to compute the results.

The result will be stored in the format specified in the process graph. To specify the format use a process such as save_result.

This endpoint has no effect if the job status is already queued or running. In particular, it doesn't restart a running job. Processing MUST be canceled before to restart it.

The job status is set to queued, if processing doesn't start instantly.

  • Once the processing starts the status is set to running.

  • Once the data is available to download the status is set to finished.

  • Whenever an error occurs during processing, the status must be set to error.

Authorizations:
path Parameters
job_id
required
string (job_id) ^[A-Za-z0-9_\-\.~]+$
Example: a3cca2b2aa1e3b5b

Unique job identifier.

Responses

202

The creation of the resource has been queued successfully.

4XX

The request can't be fulfilled due to an error on client-side, i.e. the request is invalid. The client should not repeat the request without modifications.

The response body SHOULD contain a JSON error object. MUST be any HTTP status code specified in RFC 7231. This request MUST respond with HTTP status codes 401 if authorization is required or 403 if the authorization failed or access is forbidden in general to the authenticated user. HTTP status code 404 should be used if the value of a path parameter is invalid.

See also:

5XX

The request can't be fulfilled due to an error at the back-end. The error is never the client’s fault and therefore it is reasonable for the client to retry the exact same request that triggered this response.

The response body SHOULD contain a JSON error object. MUST be any HTTP status code specified in RFC 7231.

See also:

Response samples

Content type
application/json
Copy
Expand all Collapse all
{}

Cancel processing a batch job

delete /jobs/{job_id}/results

The URL of the API MAY freely be chosen by the back-end providers. The path, including API versioning, is a recommendation only. Nevertheless, all servers MUST support HTTPS as the authentication methods are not secure with HTTP only!

https://localhost/api/{version}/jobs/{job_id}/results

Cancels all related computations for this job at the back-end. It will stop generating additional costs for processing.

A subset of processed results may be available for downloading depending on the state of the job as it was canceled. Finished results MUST NOT be deleted until the job is deleted or job processing is started again.

This endpoint only has an effect if the job status is queued or running.

The job status is set to canceled if the status was running beforehand and partial or preliminary results are available to be downloaded. Otherwise the status is set to created.

Authorizations:
path Parameters
job_id
required
string (job_id) ^[A-Za-z0-9_\-\.~]+$
Example: a3cca2b2aa1e3b5b

Unique job identifier.

Responses

204

Processing the job has been successfully canceled.

4XX

The request can't be fulfilled due to an error on client-side, i.e. the request is invalid. The client should not repeat the request without modifications.

The response body SHOULD contain a JSON error object. MUST be any HTTP status code specified in RFC 7231. This request MUST respond with HTTP status codes 401 if authorization is required or 403 if the authorization failed or access is forbidden in general to the authenticated user. HTTP status code 404 should be used if the value of a path parameter is invalid.

See also:

5XX

The request can't be fulfilled due to an error at the back-end. The error is never the client’s fault and therefore it is reasonable for the client to retry the exact same request that triggered this response.

The response body SHOULD contain a JSON error object. MUST be any HTTP status code specified in RFC 7231.

See also:

Response samples

Content type
application/json
Copy
Expand all Collapse all
{}

Batch Jobs

Management of batch processing tasks (jobs) and their results.

Create a new batch job

post /jobs

The URL of the API MAY freely be chosen by the back-end providers. The path, including API versioning, is a recommendation only. Nevertheless, all servers MUST support HTTPS as the authentication methods are not secure with HTTP only!

https://localhost/api/{version}/jobs

Creates a new batch processing task (job) from one or more (chained) processes at the back-end.

Processing the data doesn't start yet. The job status gets initialized as created by default.

Authorizations:
Request Body schema: application/json

Specifies the job details, e.g. the process graph and billing details.

title
string (eo_title) Nullable

A short description to easily distinguish entities.

description
string (eo_description) Nullable

Detailed multi-line description to explain the entity.

CommonMark 0.29 syntax MAY be used for rich text representation.

process_graph
required
object (Process Graph)

A process graph defines a graph-like structure as a connected set of executable processes. Each key is a unique identifier (node ID) that is used to refer to the process in the graph.

plan
string (billing_plan_defaultable) Nullable

The billing plan to process and charge the job with.

The plans and the default plan can be retrieved by calling GET /.

Billing plans MUST be accepted case insensitive. Billing plans not on the list of available plans MUST be rejected with openEO error BillingPlanInvalid.

If no billing plan is specified by the client, the server MUST default to the default billing plan in GET /. If the default billing plan of the provider changes, the job or service MUST not be affected by the change, i.e. the default plan which is valid during job or service creation must be permanently assigned to the job or service until the client requests to change it.

budget
number (budget) Nullable
Default: null

Maximum amount of costs the request is allowed to produce. The value MUST be specified in the currency the back-end is working with. The currency can be retrieved by calling GET /. If no currency is set, this field MUST NOT be a number.

If possible, back-ends SHOULD reject jobs with openEO error PaymentRequired if the budget is too low to process the request completely. Otherwise, when reaching the budget jobs MAY try to return partial results if possible. Otherwise the request and results are discarded. Users SHOULD be warned by clients that reaching the budget MAY discard the results and that setting this value should be well-wrought.

Setting the budget to null means there is no specified budget.

Responses

201

The resource has been created successfully and the location of the newly created resource is advertized by the back-end.

Examples:

  • POST /services redirects to GET /services/{service_id}
  • POST /jobs redirects to GET /jobs/{job_id}
Response Headers
Location
required
string <uri>
Example: "https://openeo.org/api/v1.0/resource/123"

URL to the newly created resource.

OpenEO-Identifier
required
string
Example: "123"

Unique Identifier (e.g. job id or service id) of the newly created resource.

4XX

The request can't be fulfilled due to an error on client-side, i.e. the request is invalid. The client should not repeat the request without modifications.

The response body SHOULD contain a JSON error object. MUST be any HTTP status code specified in RFC 7231. This request MUST respond with HTTP status codes 401 if authorization is required or 403 if the authorization failed or access is forbidden in general to the authenticated user. HTTP status code 404 should be used if the value of a path parameter is invalid.

See also:

5XX

The request can't be fulfilled due to an error at the back-end. The error is never the client’s fault and therefore it is reasonable for the client to retry the exact same request that triggered this response.

The response body SHOULD contain a JSON error object. MUST be any HTTP status code specified in RFC 7231.

See also:

Request samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "title": "NDVI based on Sentinel 2",
  • "description": "Deriving minimum NDVI measurements over pixel time series of Sentinel 2",
  • "process_graph":
    {
    },
  • "plan": "free",
  • "budget": 100
}

Response samples

Content type
application/json
Copy
Expand all Collapse all
{}

Modify a batch job

patch /jobs/{job_id}

The URL of the API MAY freely be chosen by the back-end providers. The path, including API versioning, is a recommendation only. Nevertheless, all servers MUST support HTTPS as the authentication methods are not secure with HTTP only!

https://localhost/api/{version}/jobs/{job_id}

Modifies an existing job at the back-end but maintains the identifier. Changes can be grouped in a single request.

Jobs can only be modified when the job is not queued or running. Otherwise requests to this endpoint MUST be rejected with openEO error JobLocked.

Authorizations:
path Parameters
job_id
required
string (job_id) ^[A-Za-z0-9_\-\.~]+$
Example: a3cca2b2aa1e3b5b

Unique job identifier.

Request Body schema: application/json

Specifies the job details to update.

title
string (eo_title) Nullable

A short description to easily distinguish entities.

description
string (eo_description) Nullable

Detailed multi-line description to explain the entity.

CommonMark 0.29 syntax MAY be used for rich text representation.

process_graph
object (Process Graph)

A process graph defines a graph-like structure as a connected set of executable processes. Each key is a unique identifier (node ID) that is used to refer to the process in the graph.

plan
string (billing_plan_defaultable) Nullable

The billing plan to process and charge the job with.

The plans and the default plan can be retrieved by calling GET /.

Billing plans MUST be accepted case insensitive. Billing plans not on the list of available plans MUST be rejected with openEO error BillingPlanInvalid.

If no billing plan is specified by the client, the server MUST default to the default billing plan in GET /. If the default billing plan of the provider changes, the job or service MUST not be affected by the change, i.e. the default plan which is valid during job or service creation must be permanently assigned to the job or service until the client requests to change it.

budget
number (budget) Nullable
Default: null

Maximum amount of costs the request is allowed to produce. The value MUST be specified in the currency the back-end is working with. The currency can be retrieved by calling GET /. If no currency is set, this field MUST NOT be a number.

If possible, back-ends SHOULD reject jobs with openEO error PaymentRequired if the budget is too low to process the request completely. Otherwise, when reaching the budget jobs MAY try to return partial results if possible. Otherwise the request and results are discarded. Users SHOULD be warned by clients that reaching the budget MAY discard the results and that setting this value should be well-wrought.

Setting the budget to null means there is no specified budget.

Responses

204

Changes to the job applied successfully.

4XX

The request can't be fulfilled due to an error on client-side, i.e. the request is invalid. The client should not repeat the request without modifications.

The response body SHOULD contain a JSON error object. MUST be any HTTP status code specified in RFC 7231. This request MUST respond with HTTP status codes 401 if authorization is required or 403 if the authorization failed or access is forbidden in general to the authenticated user. HTTP status code 404 should be used if the value of a path parameter is invalid.

See also:

5XX

The request can't be fulfilled due to an error at the back-end. The error is never the client’s fault and therefore it is reasonable for the client to retry the exact same request that triggered this response.

The response body SHOULD contain a JSON error object. MUST be any HTTP status code specified in RFC 7231.

See also:

Request samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "title": "NDVI based on Sentinel 2",
  • "description": "Deriving minimum NDVI measurements over pixel time series of Sentinel 2",
  • "process_graph":
    {
    },
  • "plan": "free",
  • "budget": 100
}

Response samples

Content type
application/json
Copy
Expand all Collapse all
{}

Full metadata for a batch job

get /jobs/{job_id}

The URL of the API MAY freely be chosen by the back-end providers. The path, including API versioning, is a recommendation only. Nevertheless, all servers MUST support HTTPS as the authentication methods are not secure with HTTP only!

https://localhost/api/{version}/jobs/{job_id}

Returns detailed information about a submitted batch job.

Authorizations:
path Parameters
job_id
required
string (job_id) ^[A-Za-z0-9_\-\.~]+$
Example: a3cca2b2aa1e3b5b

Unique job identifier.

Responses

200

Full job information.

Response Schema: application/json
id
required
string (job_id) ^[A-Za-z0-9_\-\.~]+$

Unique identifier of a job that is generated by the back-end during job submission. MUST match the specified pattern.

title
string (eo_title) Nullable

A short description to easily distinguish entities.

description
string (eo_description) Nullable

Detailed multi-line description to explain the entity.

CommonMark 0.29 syntax MAY be used for rich text representation.

process_graph
required
object (Process Graph)

A process graph defines a graph-like structure as a connected set of executable processes. Each key is a unique identifier (node ID) that is used to refer to the process in the graph.

status
required
string (status)
Default: "created"
Enum: "created" "queued" "running" "canceled" "finished" "error"

The current status of a batch job.

The following status changes can occur:

  • POST /jobs: The status is initialized as created.
  • POST /jobs/{job_id}/results: The status is set to queued, if processing doesn't start instantly.
    • Once the processing starts the status is set to running.
    • Once the data is available to download the status is set to finished.
    • Whenever an error occurs during processing, the status must be set to error.
  • DELETE /jobs/{job_id}/results: The status is set to canceled if the status was running beforehand and partial or preliminary results are available to be downloaded. Otherwise the status is set to created.
progress
number [ 0 .. 100 ]

Indicates the process of a running batch job in percent. Can also be set for a job which stopped due to an error or was canceled by the user. In this case, the value indicates the progress at which the job stopped. Property may not be available for the status codes created and queued. Submitted and queued jobs only allow the value 0, finished jobs only allow the value 100.

created
required
string <date-time> (created)

Date and time of creation, formatted as a RFC 3339 date-time.

updated
string <date-time> (updated)

Date and time of last status change, formatted as a RFC 3339 date-time.

plan
string (billing_plan)

The billing plan to process and charge the job with. The plans can be retrieved by calling GET /. Billing plans MUST be accepted case insensitive.

costs
number (money) Nullable
Default: null

An amount of money or credits. The value MUST be specified in the currency the back-end is working with. The currency can be retrieved by calling GET /. If no currency is set, this field MUST be null.

budget
number (budget) Nullable
Default: null

Maximum amount of costs the request is allowed to produce. The value MUST be specified in the currency the back-end is working with. The currency can be retrieved by calling GET /. If no currency is set, this field MUST NOT be a number.

If possible, back-ends SHOULD reject jobs with openEO error PaymentRequired if the budget is too low to process the request completely. Otherwise, when reaching the budget jobs MAY try to return partial results if possible. Otherwise the request and results are discarded. Users SHOULD be warned by clients that reaching the budget MAY discard the results and that setting this value should be well-wrought.

Setting the budget to null means there is no specified budget.

4XX

The request can't be fulfilled due to an error on client-side, i.e. the request is invalid. The client should not repeat the request without modifications.

The response body SHOULD contain a JSON error object. MUST be any HTTP status code specified in RFC 7231. This request MUST respond with HTTP status codes 401 if authorization is required or 403 if the authorization failed or access is forbidden in general to the authenticated user. HTTP status code 404 should be used if the value of a path parameter is invalid.

See also:

5XX

The request can't be fulfilled due to an error at the back-end. The error is never the client’s fault and therefore it is reasonable for the client to retry the exact same request that triggered this response.

The response body SHOULD contain a JSON error object. MUST be any HTTP status code specified in RFC 7231.

See also:

Response samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "id": "a3cca2b2aa1e3b5b",
  • "title": "NDVI based on Sentinel 2",
  • "description": "Deriving minimum NDVI measurements over pixel time series of Sentinel 2",
  • "process_graph":
    {
    },
  • "status": "running",
  • "progress": 75.5,
  • "created": "2017-01-01T09:32:12Z",
  • "updated": "2017-01-01T09:36:18Z",
  • "plan": "free",
  • "costs": 12.98,
  • "budget": 100
}

Delete a batch job

delete /jobs/{job_id}

The URL of the API MAY freely be chosen by the back-end providers. The path, including API versioning, is a recommendation only. Nevertheless, all servers MUST support HTTPS as the authentication methods are not secure with HTTP only!

https://localhost/api/{version}/jobs/{job_id}

Deletes all data related to this job. Computations are stopped and computed results are deleted. This job won't generate additional costs for processing.

Authorizations:
path Parameters
job_id
required
string (job_id) ^[A-Za-z0-9_\-\.~]+$
Example: a3cca2b2aa1e3b5b

Unique job identifier.

Responses

204

The job has been successfully deleted.

4XX

The request can't be fulfilled due to an error on client-side, i.e. the request is invalid. The client should not repeat the request without modifications.

The response body SHOULD contain a JSON error object. MUST be any HTTP status code specified in RFC 7231. This request MUST respond with HTTP status codes 401 if authorization is required or 403 if the authorization failed or access is forbidden in general to the authenticated user. HTTP status code 404 should be used if the value of a path parameter is invalid.

See also:

5XX

The request can't be fulfilled due to an error at the back-end. The error is never the client’s fault and therefore it is reasonable for the client to retry the exact same request that triggered this response.

The response body SHOULD contain a JSON error object. MUST be any HTTP status code specified in RFC 7231.

See also:

Response samples

Content type
application/json
Copy
Expand all Collapse all
{}

Get an estimate for a batch job

get /jobs/{job_id}/estimate

The URL of the API MAY freely be chosen by the back-end providers. The path, including API versioning, is a recommendation only. Nevertheless, all servers MUST support HTTPS as the authentication methods are not secure with HTTP only!

https://localhost/api/{version}/jobs/{job_id}/estimate

Clients can ask for an estimate for a batch job. Back-ends can decide to either calculate the duration, the costs, the size or a combination of them. This MUST be the upper limit of the incurring costs. Clients can be charged less than specified, but never more. Back-end providers MAY specify an expiry time for the estimate. Starting to process data afterwards MAY be charged at a higher cost. Costs MAY NOT include downloading costs. This can be indicated with the downloads_included flag.

Authorizations:
path Parameters
job_id
required
string (job_id) ^[A-Za-z0-9_\-\.~]+$
Example: a3cca2b2aa1e3b5b

Unique job identifier.

Responses

200

The estimated costs with regard to money, processing time and storage capacity. At least one of costs, duration or size MUST be provided.

Response Schema: application/json
costs
number (money) Nullable
Default: null

An amount of money or credits. The value MUST be specified in the currency the back-end is working with. The currency can be retrieved by calling GET /. If no currency is set, this field MUST be null.

duration
string

Estimated duration for the operation. Duration MUST be specified as a ISO 8601 duration.

size
integer

Estimated required storage capacity, i.e. the size of the generated files. Size MUST be specified in bytes.

downloads_included
integer Nullable
Default: null

Specifies how many full downloads of the processed data are included in the estimate. Set to null for unlimited downloads, which is also the default value.

expires
string <date-time>

Time until which the estimate is valid, formatted as a RFC 3339 date-time.

4XX

The request can't be fulfilled due to an error on client-side, i.e. the request is invalid. The client should not repeat the request without modifications.

The response body SHOULD contain a JSON error object. MUST be any HTTP status code specified in RFC 7231. This request MUST respond with HTTP status codes 401 if authorization is required or 403 if the authorization failed or access is forbidden in general to the authenticated user. HTTP status code 404 should be used if the value of a path parameter is invalid.

See also:

5XX

The request can't be fulfilled due to an error at the back-end. The error is never the client’s fault and therefore it is reasonable for the client to retry the exact same request that triggered this response.

The response body SHOULD contain a JSON error object. MUST be any HTTP status code specified in RFC 7231.

See also:

Response samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "costs": 12.98,
  • "duration": "P1Y2M10DT2H30M",
  • "size": 157286400,
  • "downloads_included": 5,
  • "expires": "2020-11-01T00:00:00Z"
}

Logs for a batch job

get /jobs/{job_id}/logs

The URL of the API MAY freely be chosen by the back-end providers. The path, including API versioning, is a recommendation only. Nevertheless, all servers MUST support HTTPS as the authentication methods are not secure with HTTP only!

https://localhost/api/{version}/jobs/{job_id}/logs

Logs for the batch job.

Authorizations:
path Parameters
job_id
required
string (job_id) ^[A-Za-z0-9_\-\.~]+$
Example: a3cca2b2aa1e3b5b

Unique job identifier.

query Parameters
limit
integer >= 1
Example: limit=10

This parameter enables pagination for the endpoint and specifies the maximum number of elements that arrays in the top-level object (e.g. jobs, log entries, secondary services, files etc.) are allowed to contain. The only exception is the links array, which MUST NOT be paginated as otherwise the pagination links may be missing ins responses. If the parameter is not provided or empty, all elements are returned.

Pagination is OPTIONAL and back-ends and clients may not support it. Therefore it MUST be implemented in a way that clients not supporting pagination get all resources regardless.

If the response is paginated, the links array MUST be used to propagate the links for pagination with pre-defined rel types. See the links array schema for supported rel types.

Note: Implementations can use all kind of pagination techniques, depending on what is supported best by their infrastructure. So it doesn't care whether it is page-based, offset-based or uses tokens for pagination. The clients will use whatever is specified in the links with the corresponding rel types.

Responses

200

Lists the requested log entries.

Response Schema: application/json
logs
required
Array of objects (Log Entry)
links
required
Array of objects (links_pagination)

Links related to this list of resources, for example links for pagination or alternative formats such as a human-readable HTML version. The links array MUST NOT be paginated.

If pagination is implemented, the following rel (relation) types apply:

  1. next (REQUIRED): A link to the next page, except on the last page.

  2. prev (OPTIONAL): A link to the previous page, except on the first page.

  3. first (OPTIONAL): A link to the first page, except on the first page.

  4. last (OPTIONAL): A link to the last page, except on the last page.

For additional relation types see also the lists of common relation types in openEO.

4XX

The request can't be fulfilled due to an error on client-side, i.e. the request is invalid. The client should not repeat the request without modifications.

The response body SHOULD contain a JSON error object. MUST be any HTTP status code specified in RFC 7231. This request MUST respond with HTTP status codes 401 if authorization is required or 403 if the authorization failed or access is forbidden in general to the authenticated user. HTTP status code 404 should be used if the value of a path parameter is invalid.

See also:

5XX

The request can't be fulfilled due to an error at the back-end. The error is never the client’s fault and therefore it is reasonable for the client to retry the exact same request that triggered this response.

The response body SHOULD contain a JSON error object. MUST be any HTTP status code specified in RFC 7231.

See also:

Response samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "logs":
    [
    ],
  • "links":
    []
}

Download results for a completed batch job

get /jobs/{job_id}/results

The URL of the API MAY freely be chosen by the back-end providers. The path, including API versioning, is a recommendation only. Nevertheless, all servers MUST support HTTPS as the authentication methods are not secure with HTTP only!

https://localhost/api/{version}/jobs/{job_id}/results

After finishing processing, this request will provide signed URLs to the processed files of the batch job with some additional metadata. The response is a STAC Item (version 0.9.0) if it has spatial and temporal references included.

URL signing is a way to protect files from unauthorized access with a key in the URL instead of HTTP header based authorization. The URL signing key is similar to a password and its inclusion in the URL allows to download files using simple GET requests supported by a wide range of programs, e.g. web browsers or download managers. Back-ends are responsible to generate the URL signing keys and to manage their appropriate expiration. The back-end MAY indicate an expiration time by setting the expires property.

If processing has not finished yet requests to this endpoint MUST be rejected with openEO error JobNotFinished.

Authorizations:
path Parameters
job_id
required
string (job_id) ^[A-Za-z0-9_\-\.~]+$
Example: a3cca2b2aa1e3b5b

Unique job identifier.

Responses

200

Valid download links have been returned. The download links doesn't necessarily need to be located under the API base url.

Response Headers
OpenEO-Costs
number (money) Nullable
Default: null
Example: 12.98

Specifies the costs for fully downloading the data once, i.e. this header MAY change in subsequent calls. It MUST be set to 0 if the requester is the owner of the job and still has free downloads included in his processing charges estimated by GET /jobs/{job_id}/estimate. If a requester other than the owner is requesting the data of a shared job this header indicates the costs for the requester.

Response Schema:
stac_version
required
string (stac_version)
Value: "0.9.0"

The STAC version implemented.

stac_extensions
Array of Reference to a JSON Schema (string) or Reference to a core extension (string) (stac_extensions)

A list of implemented STAC extensions. The list contains URLs to the JSON Schema files it can be validated against. For official extensions, a "shortcut" can be used. This means you can specify the folder name of the extension in the STAC repository, for example sar for the SAR extension. If the versions of the extension and the collection diverge, you can specify the URL of the JSON schema file.

id
required
string (job_id) ^[A-Za-z0-9_\-\.~]+$

Unique identifier of a job that is generated by the back-end during job submission. MUST match the specified pattern.

type
required
string
Value: "Feature"
bbox
required
Array of numbers (bbox) [ 4 .. 6 ] items

Potential spatial extent covered by the data. The bounding box is provided as four or six numbers, depending on whether the coordinate reference system includes a vertical axis (height or depth):

  • West (lower left corner, coordinate axis 1)
  • South (lower left corner, coordinate axis 2)
  • Base (optional, lower left corner, coordinate axis 3)
  • East (upper right corner, coordinate axis 1)
  • North (upper right corner, coordinate axis 2)
  • Height (optional, upper right corner, coordinate axis 3)

The coordinate reference system of the values is WGS84 longitude/latitude.

geometry
required
GeoJSON Point (object) or GeoJSON LineString (object) or GeoJSON Polygon (object) or GeoJSON MultiPoint (object) or GeoJSON MultiLineString (object) or GeoJSON MultiPolygon (object) or GeoJSON GeometryCollection (object)

Defines the full footprint of the asset represented by this item as GeoJSON Geometry.

properties
required
object (Item Properties)

MAY contain any additional properties, e.g. other STAC Item properties, properties from STAC extensions or custom properties.

assets
required
object (Item Assets)

Dictionary of asset objects that can be downloaded, each with a unique key. The keys MAY be used by clients as file names.

links
required
Array of objects (Link)

Links related to this batch job result, e.g. a link to an invoice, additional log files or external documentation. The links MUST NOT contain links to the processed and downloadable data. Instead specify these in the assets property. Clients MUST NOT download the data referenced in the links by default. For relation types see the lists of common relation types in openEO.

424

The request can't be fulfilled as the batch job failed. This request will deliver the last error message that was produced by the batch job.

This HTTP code MUST be sent only when the job status is error.

4XX

The request can't be fulfilled due to an error on client-side, i.e. the request is invalid. The client should not repeat the request without modifications.

The response body SHOULD contain a JSON error object. MUST be any HTTP status code specified in RFC 7231. This request MUST respond with HTTP status codes 401 if authorization is required or 403 if the authorization failed or access is forbidden in general to the authenticated user. HTTP status code 404 should be used if the value of a path parameter is invalid.

See also:

5XX

The request can't be fulfilled due to an error at the back-end. The error is never the client’s fault and therefore it is reasonable for the client to retry the exact same request that triggered this response.

The response body SHOULD contain a JSON error object. MUST be any HTTP status code specified in RFC 7231.

See also:

Response samples

Content type
Copy
Expand all Collapse all
{
  • "stac_version": "0.9.0",
  • "stac_extensions": [ ],
  • "id": "a3cca2b2aa1e3b5b",
  • "type": "Feature",
  • "bbox":
    [
    ],
  • "geometry":
    {
    },
  • "properties":
    {
    },
  • "assets":
    {},
  • "links":
    []
}

Start processing a batch job

post /jobs/{job_id}/results

The URL of the API MAY freely be chosen by the back-end providers. The path, including API versioning, is a recommendation only. Nevertheless, all servers MUST support HTTPS as the authentication methods are not secure with HTTP only!

https://localhost/api/{version}/jobs/{job_id}/results

Adds a batch job to the processing queue to compute the results.

The result will be stored in the format specified in the process graph. To specify the format use a process such as save_result.

This endpoint has no effect if the job status is already queued or running. In particular, it doesn't restart a running job. Processing MUST be canceled before to restart it.

The job status is set to queued, if processing doesn't start instantly.

  • Once the processing starts the status is set to running.

  • Once the data is available to download the status is set to finished.

  • Whenever an error occurs during processing, the status must be set to error.

Authorizations:
path Parameters
job_id
required
string (job_id) ^[A-Za-z0-9_\-\.~]+$
Example: a3cca2b2aa1e3b5b

Unique job identifier.

Responses

202

The creation of the resource has been queued successfully.

4XX

The request can't be fulfilled due to an error on client-side, i.e. the request is invalid. The client should not repeat the request without modifications.

The response body SHOULD contain a JSON error object. MUST be any HTTP status code specified in RFC 7231. This request MUST respond with HTTP status codes 401 if authorization is required or 403 if the authorization failed or access is forbidden in general to the authenticated user. HTTP status code 404 should be used if the value of a path parameter is invalid.

See also:

5XX

The request can't be fulfilled due to an error at the back-end. The error is never the client’s fault and therefore it is reasonable for the client to retry the exact same request that triggered this response.

The response body SHOULD contain a JSON error object. MUST be any HTTP status code specified in RFC 7231.

See also:

Response samples

Content type
application/json
Copy
Expand all Collapse all
{}

Cancel processing a batch job

delete /jobs/{job_id}/results

The URL of the API MAY freely be chosen by the back-end providers. The path, including API versioning, is a recommendation only. Nevertheless, all servers MUST support HTTPS as the authentication methods are not secure with HTTP only!

https://localhost/api/{version}/jobs/{job_id}/results

Cancels all related computations for this job at the back-end. It will stop generating additional costs for processing.

A subset of processed results may be available for downloading depending on the state of the job as it was canceled. Finished results MUST NOT be deleted until the job is deleted or job processing is started again.

This endpoint only has an effect if the job status is queued or running.

The job status is set to canceled if the status was running beforehand and partial or preliminary results are available to be downloaded. Otherwise the status is set to created.

Authorizations:
path Parameters
job_id
required
string (job_id) ^[A-Za-z0-9_\-\.~]+$
Example: a3cca2b2aa1e3b5b

Unique job identifier.

Responses

204

Processing the job has been successfully canceled.

4XX

The request can't be fulfilled due to an error on client-side, i.e. the request is invalid. The client should not repeat the request without modifications.

The response body SHOULD contain a JSON error object. MUST be any HTTP status code specified in RFC 7231. This request MUST respond with HTTP status codes 401 if authorization is required or 403 if the authorization failed or access is forbidden in general to the authenticated user. HTTP status code 404 should be used if the value of a path parameter is invalid.

See also:

5XX

The request can't be fulfilled due to an error at the back-end. The error is never the client’s fault and therefore it is reasonable for the client to retry the exact same request that triggered this response.

The response body SHOULD contain a JSON error object. MUST be any HTTP status code specified in RFC 7231.

See also:

Response samples

Content type
application/json
Copy
Expand all Collapse all
{}

Secondary Services

On-demand access to data using other web service protocols.

Supported secondary web service protocols

get /service_types

The URL of the API MAY freely be chosen by the back-end providers. The path, including API versioning, is a recommendation only. Nevertheless, all servers MUST support HTTPS as the authentication methods are not secure with HTTP only!

https://localhost/api/{version}/service_types

The request will ask the back-end for supported secondary web service protocols, e.g. WMS or WCS. The response is an object of all available secondary web service protocols,supported configuration settings and process parameters.

Configuration settings for the service need to be defined upon creation of a service and the service will be set up accordingly.

A list of process parameters is also available. This parameters can be used by users in a process graph that is used to compute web service results. The objects can directly be used inside the process graph with a from_parameter reference. Such parameters are usually things that have to be injected into the process graph from the context of the web service during runtime. For example, a map service such as a WMS would need to inject the spatial extent into the process graph so that the back-end can compute the corresponding tile correctly.

To improve interoperability between back-ends common names for the services SHOULD be used, e.g. the abbreviations used in the official OGC Schema Repository for the respective services.

Service names are allowed to be case insensitive throughout the API.

Authorizations:

Responses

200

An object with a map containing all service names as keys and an object that defines supported configuration settings and process parameters.

Response Schema: application/json
Service Name*
object (Service Type)
4XX

The request can't be fulfilled due to an error on client-side, i.e. the request is invalid. The client should not repeat the request without modifications.

The response body SHOULD contain a JSON error object. MUST be any HTTP status code specified in RFC 7231. This request usually does not respond with HTTP status codes 401 and 403 due to missing authorization. HTTP status code 404 should be used if the value of a path parameter is invalid.

See also:

5XX

The request can't be fulfilled due to an error at the back-end. The error is never the client’s fault and therefore it is reasonable for the client to retry the exact same request that triggered this response.

The response body SHOULD contain a JSON error object. MUST be any HTTP status code specified in RFC 7231.

See also:

Response samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "WMS":
    {
    },
  • "WFS":
    {
    }
}

List all web services

get /services

The URL of the API MAY freely be chosen by the back-end providers. The path, including API versioning, is a recommendation only. Nevertheless, all servers MUST support HTTPS as the authentication methods are not secure with HTTP only!

https://localhost/api/{version}/services

Requests to this endpoint will list all running secondary web services submitted by a user with given id.

Authorizations:
query Parameters
limit
integer >= 1
Example: limit=10

This parameter enables pagination for the endpoint and specifies the maximum number of elements that arrays in the top-level object (e.g. jobs, log entries, secondary services, files etc.) are allowed to contain. The only exception is the links array, which MUST NOT be paginated as otherwise the pagination links may be missing ins responses. If the parameter is not provided or empty, all elements are returned.

Pagination is OPTIONAL and back-ends and clients may not support it. Therefore it MUST be implemented in a way that clients not supporting pagination get all resources regardless.

If the response is paginated, the links array MUST be used to propagate the links for pagination with pre-defined rel types. See the links array schema for supported rel types.

Note: Implementations can use all kind of pagination techniques, depending on what is supported best by their infrastructure. So it doesn't care whether it is page-based, offset-based or uses tokens for pagination. The clients will use whatever is specified in the links with the corresponding rel types.

Responses

200

Array of service descriptions

Response Schema: application/json
services
required
Array of objects (Secondary Web Service Metadata)
links
required
Array of objects (links_pagination)

Links related to this list of resources, for example links for pagination or alternative formats such as a human-readable HTML version. The links array MUST NOT be paginated.

If pagination is implemented, the following rel (relation) types apply:

  1. next (REQUIRED): A link to the next page, except on the last page.

  2. prev (OPTIONAL): A link to the previous page, except on the first page.

  3. first (OPTIONAL): A link to the first page, except on the first page.

  4. last (OPTIONAL): A link to the last page, except on the last page.

For additional relation types see also the lists of common relation types in openEO.

4XX

The request can't be fulfilled due to an error on client-side, i.e. the request is invalid. The client should not repeat the request without modifications.

The response body SHOULD contain a JSON error object. MUST be any HTTP status code specified in RFC 7231. This request MUST respond with HTTP status codes 401 if authorization is required or 403 if the authorization failed or access is forbidden in general to the authenticated user. HTTP status code 404 should be used if the value of a path parameter is invalid.

See also:

5XX

The request can't be fulfilled due to an error at the back-end. The error is never the client’s fault and therefore it is reasonable for the client to retry the exact same request that triggered this response.

The response body SHOULD contain a JSON error object. MUST be any HTTP status code specified in RFC 7231.

See also:

Response samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "services":
    [
    ],
  • "links":
    []
}

Publish a new service

post /services

The URL of the API MAY freely be chosen by the back-end providers. The path, including API versioning, is a recommendation only. Nevertheless, all servers MUST support HTTPS as the authentication methods are not secure with HTTP only!

https://localhost/api/{version}/services

Calling this endpoint will create a secondary web service such as WMTS, TMS or WCS. The underlying data is processes on-demand, but a process graph may simply access results from a batch job. Computations should be performed in the sense that it is only evaluated for the requested spatial / temporal extent and resolution.

Note: Costs incurred by shared secondary web services are usually paid by the owner, but this depends on the service type and whether it supports charging fees or not.

Authorizations:
Request Body schema: application/json

The base data for the secondary web service to create

title
string (eo_title) Nullable

A short description to easily distinguish entities.

description
string (eo_description) Nullable

Detailed multi-line description to explain the entity.

CommonMark 0.29 syntax MAY be used for rich text representation.

process_graph
required
object (Process Graph)

A process graph defines a graph-like structure as a connected set of executable processes. Each key is a unique identifier (node ID) that is used to refer to the process in the graph.

type
required
string (service_type)

Definition of the service type to access result data. All available service types can be retrieved via GET /service_types. Service types MUST be accepted case insensitive.

enabled
boolean (service_enabled)
Default: true

Describes whether a secondary web service is responding to requests (true) or not (false). Defaults to true. Disabled services don't produce any costs.

configuration
object (Service Configuration)

List of arguments, i.e. the parameter names supported by the secondary web service combined with actual values. See GET /service_types for supported parameters and valid arguments. For example, this could specify the required version of the service, visualization details or any other service dependant configuration.

plan
string (billing_plan_defaultable) Nullable

The billing plan to process and charge the job with.

The plans and the default plan can be retrieved by calling GET /.

Billing plans MUST be accepted case insensitive. Billing plans not on the list of available plans MUST be rejected with openEO error BillingPlanInvalid.

If no billing plan is specified by the client, the server MUST default to the default billing plan in GET /. If the default billing plan of the provider changes, the job or service MUST not be affected by the change, i.e. the default plan which is valid during job or service creation must be permanently assigned to the job or service until the client requests to change it.

budget
number (budget) Nullable
Default: null

Maximum amount of costs the request is allowed to produce. The value MUST be specified in the currency the back-end is working with. The currency can be retrieved by calling GET /. If no currency is set, this field MUST NOT be a number.

If possible, back-ends SHOULD reject jobs with openEO error PaymentRequired if the budget is too low to process the request completely. Otherwise, when reaching the budget jobs MAY try to return partial results if possible. Otherwise the request and results are discarded. Users SHOULD be warned by clients that reaching the budget MAY discard the results and that setting this value should be well-wrought.

Setting the budget to null means there is no specified budget.

Responses

201

The resource has been created successfully and the location of the newly created resource is advertized by the back-end.

Examples:

  • POST /services redirects to GET /services/{service_id}
  • POST /jobs redirects to GET /jobs/{job_id}
Response Headers
Location
required
string <uri>
Example: "https://openeo.org/api/v1.0/resource/123"

URL to the newly created resource.

OpenEO-Identifier
required
string
Example: "123"

Unique Identifier (e.g. job id or service id) of the newly created resource.

4XX

The request can't be fulfilled due to an error on client-side, i.e. the request is invalid. The client should not repeat the request without modifications.

The response body SHOULD contain a JSON error object. MUST be any HTTP status code specified in RFC 7231. This request MUST respond with HTTP status codes 401 if authorization is required or 403 if the authorization failed or access is forbidden in general to the authenticated user. HTTP status code 404 should be used if the value of a path parameter is invalid.

See also:

5XX

The request can't be fulfilled due to an error at the back-end. The error is never the client’s fault and therefore it is reasonable for the client to retry the exact same request that triggered this response.

The response body SHOULD contain a JSON error object. MUST be any HTTP status code specified in RFC 7231.

See also:

Request samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "title": "NDVI based on Sentinel 2",
  • "description": "Deriving minimum NDVI measurements over pixel time series of Sentinel 2",
  • "process_graph":
    {
    },
  • "type": "wms",
  • "enabled": true,
  • "configuration":
    {
    },
  • "plan": "free",
  • "budget": 100
}

Response samples

Content type
application/json
Copy
Expand all Collapse all
{}

Modify a service

patch /services/{service_id}

The URL of the API MAY freely be chosen by the back-end providers. The path, including API versioning, is a recommendation only. Nevertheless, all servers MUST support HTTPS as the authentication methods are not secure with HTTP only!

https://localhost/api/{version}/services/{service_id}

Calling this endpoint will change the specified secondary web service, but maintain its identifier. Changes can be grouped in a single request. To change the service type create a new service.

Authorizations:
path Parameters
service_id
required
string (service_id) ^[A-Za-z0-9_\-\.~]+$
Example: wms-a3cca9

Unique secondary web service identifier.

Request Body schema: application/json

The data to change for the specified secondary web service.

title
string (eo_title) Nullable

A short description to easily distinguish entities.

description
string (eo_description) Nullable

Detailed multi-line description to explain the entity.

CommonMark 0.29 syntax MAY be used for rich text representation.

process_graph
object (Process Graph)

A process graph defines a graph-like structure as a connected set of executable processes. Each key is a unique identifier (node ID) that is used to refer to the process in the graph.

enabled
boolean (service_enabled)
Default: true

Describes whether a secondary web service is responding to requests (true) or not (false). Defaults to true. Disabled services don't produce any costs.

configuration
object (Service Configuration)

List of arguments, i.e. the parameter names supported by the secondary web service combined with actual values. See GET /service_types for supported parameters and valid arguments. For example, this could specify the required version of the service, visualization details or any other service dependant configuration.

plan
string (billing_plan_defaultable) Nullable

The billing plan to process and charge the job with.

The plans and the default plan can be retrieved by calling GET /.

Billing plans MUST be accepted case insensitive. Billing plans not on the list of available plans MUST be rejected with openEO error BillingPlanInvalid.

If no billing plan is specified by the client, the server MUST default to the default billing plan in GET /. If the default billing plan of the provider changes, the job or service MUST not be affected by the change, i.e. the default plan which is valid during job or service creation must be permanently assigned to the job or service until the client requests to change it.

budget
number (budget) Nullable
Default: null

Maximum amount of costs the request is allowed to produce. The value MUST be specified in the currency the back-end is working with. The currency can be retrieved by calling GET /. If no currency is set, this field MUST NOT be a number.

If possible, back-ends SHOULD reject jobs with openEO error PaymentRequired if the budget is too low to process the request completely. Otherwise, when reaching the budget jobs MAY try to return partial results if possible. Otherwise the request and results are discarded. Users SHOULD be warned by clients that reaching the budget MAY discard the results and that setting this value should be well-wrought.

Setting the budget to null means there is no specified budget.

Responses

204

Changes to the service were applied successfully.

4XX

The request can't be fulfilled due to an error on client-side, i.e. the request is invalid. The client should not repeat the request without modifications.

The response body SHOULD contain a JSON error object. MUST be any HTTP status code specified in RFC 7231. This request MUST respond with HTTP status codes 401 if authorization is required or 403 if the authorization failed or access is forbidden in general to the authenticated user. HTTP status code 404 should be used if the value of a path parameter is invalid.

See also:

5XX

The request can't be fulfilled due to an error at the back-end. The error is never the client’s fault and therefore it is reasonable for the client to retry the exact same request that triggered this response.

The response body SHOULD contain a JSON error object. MUST be any HTTP status code specified in RFC 7231.

See also:

Request samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "title": "NDVI based on Sentinel 2",
  • "description": "Deriving minimum NDVI measurements over pixel time series of Sentinel 2",
  • "process_graph":
    {
    },
  • "enabled": true,
  • "configuration":
    {
    },
  • "plan": "free",
  • "budget": 100
}

Response samples

Content type
application/json
Copy
Expand all Collapse all
{}

Full metadata for a service

get /services/{service_id}

The URL of the API MAY freely be chosen by the back-end providers. The path, including API versioning, is a recommendation only. Nevertheless, all servers MUST support HTTPS as the authentication methods are not secure with HTTP only!

https://localhost/api/{version}/services/{service_id}

Requests to this endpoint will return JSON description of the secondary web service.

Authorizations:
path Parameters
service_id
required
string (service_id) ^[A-Za-z0-9_\-\.~]+$
Example: wms-a3cca9

Unique secondary web service identifier.

Responses

200

Details of the created service

Response Schema: application/json
id
required
string (service_id) ^[A-Za-z0-9_\-\.~]+$

Unique identifier of a secondary web service that is generated by the back-end during creation. MUST match the specified pattern.

title
string (eo_title) Nullable

A short description to easily distinguish entities.

description
string (eo_description) Nullable

Detailed multi-line description to explain the entity.

CommonMark 0.29 syntax MAY be used for rich text representation.

process_graph
required
object (Process Graph)

A process graph defines a graph-like structure as a connected set of executable processes. Each key is a unique identifier (node ID) that is used to refer to the process in the graph.

url
required
string <uri> (service_url)

URL at which the secondary web service is accessible. Doesn't necessarily need to be located within the API.

type
required
string (service_type)

Definition of the service type to access result data. All available service types can be retrieved via GET /service_types. Service types MUST be accepted case insensitive.

enabled
required
boolean (service_enabled)
Default: true

Describes whether a secondary web service is responding to requests (true) or not (false). Defaults to true. Disabled services don't produce any costs.

configuration
object (Service Configuration)

List of arguments, i.e. the parameter names supported by the secondary web service combined with actual values. See GET /service_types for supported parameters and valid arguments. For example, this could specify the required version of the service, visualization details or any other service dependant configuration.

attributes
required
object (Secondary Web Service Attributes)

Additional attributes of the secondary web service, e.g. available layers for a WMS based on the bands in the underlying GeoTiff.

created
string <date-time> (created)

Date and time of creation, formatted as a RFC 3339 date-time.

plan
string (billing_plan)

The billing plan to process and charge the job with. The plans can be retrieved by calling GET /. Billing plans MUST be accepted case insensitive.

costs
number (money) Nullable
Default: null

An amount of money or credits. The value MUST be specified in the currency the back-end is working with. The currency can be retrieved by calling GET /. If no currency is set, this field MUST be null.

budget
number (budget) Nullable
Default: null

Maximum amount of costs the request is allowed to produce. The value MUST be specified in the currency the back-end is working with. The currency can be retrieved by calling GET /. If no currency is set, this field MUST NOT be a number.

If possible, back-ends SHOULD reject jobs with openEO error PaymentRequired if the budget is too low to process the request completely. Otherwise, when reaching the budget jobs MAY try to return partial results if possible. Otherwise the request and results are discarded. Users SHOULD be warned by clients that reaching the budget MAY discard the results and that setting this value should be well-wrought.

Setting the budget to null means there is no specified budget.

4XX

The request can't be fulfilled due to an error on client-side, i.e. the request is invalid. The client should not repeat the request without modifications.

The response body SHOULD contain a JSON error object. MUST be any HTTP status code specified in RFC 7231. This request MUST respond with HTTP status codes 401 if authorization is required or 403 if the authorization failed or access is forbidden in general to the authenticated user. HTTP status code 404 should be used if the value of a path parameter is invalid.

See also:

5XX

The request can't be fulfilled due to an error at the back-end. The error is never the client’s fault and therefore it is reasonable for the client to retry the exact same request that triggered this response.

The response body SHOULD contain a JSON error object. MUST be any HTTP status code specified in RFC 7231.

See also:

Response samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "id": "wms-a3cca9",
  • "title": "NDVI based on Sentinel 2",
  • "description": "Deriving minimum NDVI measurements over pixel time series of Sentinel 2",
  • "process_graph":
    {
    },
  • "type": "wms",
  • "enabled": true,
  • "configuration":
    {
    },
  • "attributes":
    {
    },
  • "created": "2017-01-01T09:32:12Z",
  • "plan": "free",
  • "costs": 12.98,
  • "budget": 100
}

Delete a service

delete /services/{service_id}

The URL of the API MAY freely be chosen by the back-end providers. The path, including API versioning, is a recommendation only. Nevertheless, all servers MUST support HTTPS as the authentication methods are not secure with HTTP only!

https://localhost/api/{version}/services/{service_id}

Calling this endpoint will stop a given secondary web service to access result data.

Authorizations:
path Parameters
service_id
required
string (service_id) ^[A-Za-z0-9_\-\.~]+$
Example: wms-a3cca9

Unique secondary web service identifier.

Responses

204

The service has been successfully deleted.

4XX

The request can't be fulfilled due to an error on client-side, i.e. the request is invalid. The client should not repeat the request without modifications.

The response body SHOULD contain a JSON error object. MUST be any HTTP status code specified in RFC 7231. This request MUST respond with HTTP status codes 401 if authorization is required or 403 if the authorization failed or access is forbidden in general to the authenticated user. HTTP status code 404 should be used if the value of a path parameter is invalid.

See also:

5XX

The request can't be fulfilled due to an error at the back-end. The error is never the client’s fault and therefore it is reasonable for the client to retry the exact same request that triggered this response.

The response body SHOULD contain a JSON error object. MUST be any HTTP status code specified in RFC 7231.

See also:

Response samples

Content type
application/json
Copy
Expand all Collapse all
{}

Logs for a secondary service

get /services/{service_id}/logs

The URL of the API MAY freely be chosen by the back-end providers. The path, including API versioning, is a recommendation only. Nevertheless, all servers MUST support HTTPS as the authentication methods are not secure with HTTP only!

https://localhost/api/{version}/services/{service_id}/logs

Logs for the secondary service.

Authorizations:
path Parameters
service_id
required
string (service_id) ^[A-Za-z0-9_\-\.~]+$
Example: wms-a3cca9

Unique secondary web service identifier.

query Parameters
limit
integer >= 1
Example: limit=10

This parameter enables pagination for the endpoint and specifies the maximum number of elements that arrays in the top-level object (e.g. jobs, log entries, secondary services, files etc.) are allowed to contain. The only exception is the links array, which MUST NOT be paginated as otherwise the pagination links may be missing ins responses. If the parameter is not provided or empty, all elements are returned.

Pagination is OPTIONAL and back-ends and clients may not support it. Therefore it MUST be implemented in a way that clients not supporting pagination get all resources regardless.

If the response is paginated, the links array MUST be used to propagate the links for pagination with pre-defined rel types. See the links array schema for supported rel types.

Note: Implementations can use all kind of pagination techniques, depending on what is supported best by their infrastructure. So it doesn't care whether it is page-based, offset-based or uses tokens for pagination. The clients will use whatever is specified in the links with the corresponding rel types.

Responses

200

Lists the requested log entries.

Response Schema: application/json
logs
required
Array of objects (Log Entry)
links
required
Array of objects (links_pagination)

Links related to this list of resources, for example links for pagination or alternative formats such as a human-readable HTML version. The links array MUST NOT be paginated.

If pagination is implemented, the following rel (relation) types apply:

  1. next (REQUIRED): A link to the next page, except on the last page.

  2. prev (OPTIONAL): A link to the previous page, except on the first page.

  3. first (OPTIONAL): A link to the first page, except on the first page.

  4. last (OPTIONAL): A link to the last page, except on the last page.

For additional relation types see also the lists of common relation types in openEO.

4XX

The request can't be fulfilled due to an error on client-side, i.e. the request is invalid. The client should not repeat the request without modifications.

The response body SHOULD contain a JSON error object. MUST be any HTTP status code specified in RFC 7231. This request MUST respond with HTTP status codes 401 if authorization is required or 403 if the authorization failed or access is forbidden in general to the authenticated user. HTTP status code 404 should be used if the value of a path parameter is invalid.

See also:

5XX

The request can't be fulfilled due to an error at the back-end. The error is never the client’s fault and therefore it is reasonable for the client to retry the exact same request that triggered this response.

The response body SHOULD contain a JSON error object. MUST be any HTTP status code specified in RFC 7231.

See also:

Response samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "logs":
    [
    ],
  • "links":
    []
}

File Storage

Management of user-uploaded assets and processed data.

List all files in the workspace

get /files

The URL of the API MAY freely be chosen by the back-end providers. The path, including API versioning, is a recommendation only. Nevertheless, all servers MUST support HTTPS as the authentication methods are not secure with HTTP only!

https://localhost/api/{version}/files

This service lists all user-uploaded files that are stored at the back-end.

Authorizations:
query Parameters
limit
integer >= 1
Example: limit=10

This parameter enables pagination for the endpoint and specifies the maximum number of elements that arrays in the top-level object (e.g. jobs, log entries, secondary services, files etc.) are allowed to contain. The only exception is the links array, which MUST NOT be paginated as otherwise the pagination links may be missing ins responses. If the parameter is not provided or empty, all elements are returned.

Pagination is OPTIONAL and back-ends and clients may not support it. Therefore it MUST be implemented in a way that clients not supporting pagination get all resources regardless.

If the response is paginated, the links array MUST be used to propagate the links for pagination with pre-defined rel types. See the links array schema for supported rel types.

Note: Implementations can use all kind of pagination techniques, depending on what is supported best by their infrastructure. So it doesn't care whether it is page-based, offset-based or uses tokens for pagination. The clients will use whatever is specified in the links with the corresponding rel types.

Responses

200

Flattened file tree with path relative to the user's root directory and some basic properties such as the file size and the timestamp of the last modification. All properties except the name are optional. Folders MUST NOT be listed separately so each element in the list MUST be a downloadable file.

Response Schema: application/json
files
required
Array of objects (Workspace File)
links
required
Array of objects (links_pagination)

Links related to this list of resources, for example links for pagination or alternative formats such as a human-readable HTML version. The links array MUST NOT be paginated.

If pagination is implemented, the following rel (relation) types apply:

  1. next (REQUIRED): A link to the next page, except on the last page.

  2. prev (OPTIONAL): A link to the previous page, except on the first page.

  3. first (OPTIONAL): A link to the first page, except on the first page.

  4. last (OPTIONAL): A link to the last page, except on the last page.

For additional relation types see also the lists of common relation types in openEO.

4XX

The request can't be fulfilled due to an error on client-side, i.e. the request is invalid. The client should not repeat the request without modifications.

The response body SHOULD contain a JSON error object. MUST be any HTTP status code specified in RFC 7231. This request MUST respond with HTTP status codes 401 if authorization is required or 403 if the authorization failed or access is forbidden in general to the authenticated user. HTTP status code 404 should be used if the value of a path parameter is invalid.

See also:

5XX

The request can't be fulfilled due to an error at the back-end. The error is never the client’s fault and therefore it is reasonable for the client to retry the exact same request that triggered this response.

The response body SHOULD contain a JSON error object. MUST be any HTTP status code specified in RFC 7231.

See also:

Response samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "files":
    [
    ],
  • "links": [ ]
}

Download a file from the workspace

get /files/{path}

The URL of the API MAY freely be chosen by the back-end providers. The path, including API versioning, is a recommendation only. Nevertheless, all servers MUST support HTTPS as the authentication methods are not secure with HTTP only!

https://localhost/api/{version}/files/{path}

This service downloads a user files identified by its path relative to the user's root directory. If a folder is specified as path a FileOperationUnsupported error MUST be sent as response.

Authorizations:
path Parameters
path
required
string

Path of the file, relative to the user's root directory.

Note: Folder and file names in the path MUST be url-encoded. The path separator / and the file extension separator . MUST NOT be url-encoded. This may be shown incorrectly in rendered versions due to OpenAPI 3 not supporting path parameters which contain slashes.

Responses

200

A file from the workspace.

Response Schema: application/octet-stream
string <binary>
4XX

The request can't be fulfilled due to an error on client-side, i.e. the request is invalid. The client should not repeat the request without modifications.

The response body SHOULD contain a JSON error object. MUST be any HTTP status code specified in RFC 7231. This request MUST respond with HTTP status codes 401 if authorization is required or 403 if the authorization failed or access is forbidden in general to the authenticated user. HTTP status code 404 should be used if the value of a path parameter is invalid.

See also:

5XX

The request can't be fulfilled due to an error at the back-end. The error is never the client’s fault and therefore it is reasonable for the client to retry the exact same request that triggered this response.

The response body SHOULD contain a JSON error object. MUST be any HTTP status code specified in RFC 7231.

See also:

Response samples

Content type
application/json
Copy
Expand all Collapse all
{}

Upload a file to the workspace

put /files/{path}

The URL of the API MAY freely be chosen by the back-end providers. The path, including API versioning, is a recommendation only. Nevertheless, all servers MUST support HTTPS as the authentication methods are not secure with HTTP only!

https://localhost/api/{version}/files/{path}

This service uploads a new or updates an existing file at a given path.

Folders are created once required by a file upload. Empty folders can't be created.

Authorizations:
path Parameters
path
required
string

Path of the file, relative to the user's root directory.

Note: Folder and file names in the path MUST be url-encoded. The path separator / and the file extension separator . MUST NOT be url-encoded. This may be shown incorrectly in rendered versions due to OpenAPI 3 not supporting path parameters which contain slashes.

Request Body schema: application/octet-stream
string <binary>

Responses

200

The file has been uploaded successfully.

Response Schema: application/json
path
required
string

Path of the file, relative to the user's root directory. MUST NOT start with a slash and MUST NOT be url-encoded.

size
integer

File size in bytes.

modified
string <date-time>

Date and time the file has lastly been modified, formatted as a RFC 3339 date-time.

4XX

The request can't be fulfilled due to an error on client-side, i.e. the request is invalid. The client should not repeat the request without modifications.

The response body SHOULD contain a JSON error object. MUST be any HTTP status code specified in RFC 7231. This request MUST respond with HTTP status codes 401 if authorization is required or 403 if the authorization failed or access is forbidden in general to the authenticated user. HTTP status code 404 should be used if the value of a path parameter is invalid.

See also:

5XX

The request can't be fulfilled due to an error at the back-end. The error is never the client’s fault and therefore it is reasonable for the client to retry the exact same request that triggered this response.

The response body SHOULD contain a JSON error object. MUST be any HTTP status code specified in RFC 7231.

See also:

Response samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "path": "folder/file.txt",
  • "size": 1024,
  • "modified": "2018-01-03T10:55:29Z"
}

Delete a file from the workspace

delete /files/{path}

The URL of the API MAY freely be chosen by the back-end providers. The path, including API versioning, is a recommendation only. Nevertheless, all servers MUST support HTTPS as the authentication methods are not secure with HTTP only!

https://localhost/api/{version}/files/{path}

This service deletes an existing user-uploaded file specified by its path. Resulting empty folders MUST be deleted automatically.

Back-ends MAY support deleting folders including its files and sub-folders. If not supported by the back-end a FileOperationUnsupported error MUST be sent as response.

Authorizations:
path Parameters
path
required
string

Path of the file, relative to the user's root directory.

Note: Folder and file names in the path MUST be url-encoded. The path separator / and the file extension separator . MUST NOT be url-encoded. This may be shown incorrectly in rendered versions due to OpenAPI 3 not supporting path parameters which contain slashes.

Responses

204

The file has been successfully deleted at the back-end.

4XX

The request can't be fulfilled due to an error on client-side, i.e. the request is invalid. The client should not repeat the request without modifications.

The response body SHOULD contain a JSON error object. MUST be any HTTP status code specified in RFC 7231. This request MUST respond with HTTP status codes 401 if authorization is required or 403 if the authorization failed or access is forbidden in general to the authenticated user. HTTP status code 404 should be used if the value of a path parameter is invalid.

See also:

5XX

The request can't be fulfilled due to an error at the back-end. The error is never the client’s fault and therefore it is reasonable for the client to retry the exact same request that triggered this response.

The response body SHOULD contain a JSON error object. MUST be any HTTP status code specified in RFC 7231.

See also:

Response samples

Content type
application/json
Copy
Expand all Collapse all
{}