This FEP defines an API endpoint used to initiate the “Export Actor” operation. The output and semantics of the result of the export operation is out of scope, and left to subsequent FEPs. The endpoint only specifies how to start the operation, and by extension, how to tell if a given Actor’s server supports this operation.
Conforming ActivityPub Actor profiles MUST specify their export API endpoints using the
service
descriptor property (inspired by the
DID Core Services section, and used in other
FEPs such as FEP-e3e9: Actor Relative URLs):
type
of the service descriptor object MUST be https://w3id.org/fep/9091#Export
(see example below).service
property MUST NOT contain more than one node with the #Export
type.
#Export
, the client SHOULD just use the first entry.{
"@context": [
"https://www.w3.org/ns/activitystreams",
"https://www.w3.org/ns/did/v1"
],
"id": "https://alice-personal-site.example/actor",
"type": "Person",
"name": "Alice",
"service": [{
"id": "https://alice-personal-site.example/actor#export",
"type": "https://w3id.org/fep/9091#Export",
"serviceEndpoint": "https://alice-personal-site.example/actor/accountExport"
}]
}
If a client conforming to this FEP wishes to start the ‘Export Actor’ process, such as to create a backup of the Actor profile, its private key material, and all content associated with this actor, the client MUST perform the following steps:
service
description object with the expanded type
equal to https://w3id.org/fep/9091#Export
.Locate the corresponding serviceEndpoint
URL, in that description object.
The client makes an HTTP POST
to the URL in the serviceEndpoint
to initiate the
export operation.
Example synchronous request (with an empty body) and response:
POST /actor/accountExport HTTP/1.1
Host: alice-personal-site.example
Authorization: Bearer ....
Accept: application/x-tar
Content-Length: 0
HTTP/1.1 200 OK
Content-type: application/x-tar
Transfer-Encoding: chunked
<binary data of the resulting .tar file>
CC0 1.0 Universal (CC0 1.0) Public Domain Dedication
To the extent possible under law, the authors of this Fediverse Enhancement Proposal have waived all copyright and related or neighboring rights to this work.