Eclipse Ditto™ HTTP API

v2
Base URLs
https://ditto.eclipseprojects.io/online Ditto Sandbox
/local Ditto

The HTTP API follows REST conventions and provides a resource-based interface for managing Things, Policies and Connections. You send standard HTTP requests (GET, PUT, POST, PATCH, DELETE) and receive JSON responses. Use it for request and response interactions: managing Things, Features, Policies and Connections, searching across Things, and sending messages to or from devices. For real-time events, Ditto also offers a WebSocket API and Server-Sent Events; see the API overview.

The Eclipse Ditto HTTP API uses response status codes (see RFC 7231) to indicate whether a specific request has been successfully completed, or not.

The information Ditto provides additionally to the status code (e.g. in API docs, or error codes like. "things:thing.tooLarge") might change without advance notice. These are not be considered as official API, and must therefore not be applied in your applications or tests.

Authentication

NginxBasichttp

Eclipse Ditto sandbox demo user (demo1 ... demo9) + password (demo)

Scheme: basic

Bearerhttp

A JSON Web Token issued by a supported OAuth 2.0 Identity Provider.

Scheme: bearer (JWT)

OpenIDConnectopenIdConnect

OpenID Connect Discovery URL. The placeholder is replaced by Swagger UI when configured.

DevOpsBasichttp

Eclipse Ditto devops user (devops) + password (foobar)

Scheme: basic

DevOpsBearerhttp

A JSON Web Token issued by a supported OAuth 2.0 Identity Provider for the Eclipse Ditto devops user.

Scheme: bearer (JWT)

Policies

Control access to your things

CloudEvents

Process CloudEvents in Ditto

Models