REST API · legal

GET /legal/current

The Terms of Service and Privacy Policy a sign-up accepts now.

For each document: the id of the newest published change, the SHA-256 of its rules, the page that shows them and a PDF of them. Send the two SHA-256 values as `accepted_legal` with `POST /signup`.

get_api_legal_current

Authentication

None

Responses

200

The rules a sign-up accepts now, by document.

application/json

{
    "terms_of_service": {
        "changeId": "0199478a-0000-7000-8000-000000000914",
        "sha256": "5f2a4c0e0b9d8e7f6a5b4c3d2e1f0a9b8c7d6e5f4a3b2c1d0e9f8a7b6c5d4e3f",
        "url": "https://echorelay.dev/terms-of-service",
        "pdfUrl": "https://api.echorelay.dev/legal/changes/0199478a-0000-7000-8000-000000000914.pdf"
    },
    "privacy_policy": {
        "changeId": "0199478a-0000-7000-8000-000000000806",
        "sha256": "9c1b7d3e5f7a9b1c3d5e7f9a1b3c5d7e9f1a3b5c7d9e1f3a5b7c9d1e3f5a7b9c",
        "url": "https://echorelay.dev/privacy",
        "pdfUrl": "https://api.echorelay.dev/legal/changes/0199478a-0000-7000-8000-000000000806.pdf"
    }
}

← REST API reference