This document describes the level of API support in our current development branch for diaspora* release 0.8.0.0. Please note that until this version is officially released, the API is not considered stable yet, and anything might change anytime!
We are interested in your feedback. If you spot an instance where diaspora* does not behave like described in the API, please do file a bug in the diaspora repository, and if you have feedback around the API specification, please do file a bug on the API documentation for discussions. For any other questions, including support on how to use the API and as a place for open discussions on the design, there is a dedicated category on Discourse!
diaspora* aims to offer a sophisticated API for most social networking applications. Because of our decentralized nature, some things might be a little bit different than most other API implementations, especially regarding authentication. If you experience any issues, feel free to get in touch with us.
Currently, the API only supports JSON data exchange, so all requests should have their
Accept header set correctly:
If, for some reason, setting the
Accept header is not possible, adding
.json to the call URL will also work.
Unless otherwise noted, bodies submitted via
POST requests should be JSON encoded. Parameters to
GET routes are simple request URL variables.
|GUID||A network-wide, unique identifier.||
|timestamp||An ISO 8601 time and date with timezone.||
Some responses, especially those with large response sets or with a larger server load, might respond in a paginated way. Paginated responses will contain a
Link header with API routes to request items before or after the items returned in the current response:
Link: <https://example.com/api/v1/example?page=2>; rel="next", <https://example.com/api/v1/example?page=42>; rel="last"
Note: Line breaks were added to increase the readability, the actual header will not contain line breaks.
Please do not try to guess the pagination URLs. Some resources like streams, might use timestamps or GUIDs instead of an increasing page counter.
||Returns the first set of items in the requested set.|
||Returns the items before the items in the currently returned set.|
||Returns the items after the items in the currently returned set.|
||Returns the last set of items in the requested set.|
By default, API endpoints return up to 20 items on a page. This can be changed by using the
https://example.com/api/v1/example?page=2&per_page=50 would, for example, return 50 items. Please note that, unless otherwise noted, this parameter is capped to a maximum value of
This document specifies API Version 1, which is supported by diaspora* release X and newer. Version discovery should be done using nodeinfo prior to making any requests to ensure the endpoints are available. If a compatible diaspora* version was detected once, it is safe to assume a pod will stay compatible.