Menu
Terms and acknowledgements
The terms in force, accepting them, and the texts an order is acknowledged with.
| Operation | Method and path |
|---|---|
| The acknowledgements an order needs, with their text | GET /legal/acknowledgements |
| The current terms of service and privacy notice | GET /legal/documents |
| The text of a legal document | GET /legal/documents/{kind} |
The acknowledgements an order needs, with their text#
GET /legal/acknowledgements · operation legalAcknowledgements
Every acknowledgement an order needs before it is placed (kind topup for POST /credits/topup, domain-order for registering, renewing and transferring a domain, stats-detail before a site's detailed traffic statistics are switched on for the first time), each with its current version, its text and the request fields that must be the JSON value true. Readable before the profile is complete, so the text can be shown before anything else. Each such operation carries the same fact as x-weird-acknowledgement. Changes nothing. This call is not charged.
| Credential | an API key holding the permission below, or a session (x-weird-auth: key) |
| Permission | legal:read |
| Charged | no |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
lang | query | string | no | the language of the texts answered: ro or en (any other value is refused 400 invalid-params, field lang); without it, the Accept-Language header, else the signed-in account's language, else Romanian (one of ro, en) |
Accept-Language | header | string | no | honoured when the request names no lang (body field or query parameter): its first language the platform speaks (ro, en) by the header's own weights; else the signed-in account's language, else Romanian |
Answer 200 (AcknowledgementList): the result
acknowledgements, array of objects, requiredkind, string (one oftopup,domain-order,stats-detail)version, string, requiredtext, string, requiredlang, string — the language oftext: the request'slang, else Accept-Language, else the account's language, else Romanian; one version covers both languages (one ofro,en)fields, array of strings, required — the request fields that must be truestanding, boolean — true: an acceptance kept for the account, sent again only whenversionchanges (detailed statistics); false: sent with every orderrequired, string — when the fields must be sent, and what already accepted meansrelies_on, array of objects — the legal documents this acknowledgement relies on:kind(read it withread, GET /legal/documents/{kind}) and, in a live answer, its currentversion(null: not published yet, and the operation that asks for this acknowledgement is refused until it is)kind, stringread, stringversion, string or null
Refusals ({"error": {"code", "message"}}; see errors):
| Status | Codes | When |
|---|---|---|
| 401 | unauthorized | unauthorized |
| 403 | insufficient-scope, terms-acceptance-required | insufficient-scope (an API key without the scope x-weird-scope names: use a key that holds it); terms-acceptance-required (the current terms of service or privacy notice are not accepted yet: required lists them; read them with GET /legal/documents and accept with POST /auth/legal/accept) |
| 429 | rate-limited | rate-limited |
Example
curl -X GET 'https://api.weird.ro/legal/acknowledgements' \
-H "Authorization: Bearer $WEIRD_API_KEY"With the CLI (weird legal acknowledgements, weird domains renew, weird domains trade):
$ weird legal acknowledgements$ weird domains renew <domain>$ weird domains trade <domain>
MCP: weird_legal_acknowledgements.
The current terms of service and privacy notice#
GET /legal/documents · operation legalDocuments
The current version of each published legal document (kind terms, privacy or dpa, version, title, url, published_at), without its text. A kind with nothing published is not listed. terms and privacy are accepted by every account (GET /auth/legal); dpa, the data processing agreement, is not accepted at sign-in: the acknowledgements that rely on it name it (relies_on of GET /legal/acknowledgements). This call is not charged.
| Credential | none: anyone may call it (x-weird-auth: public) |
| Charged | no |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
lang | query | string | no | the language of the texts answered: ro or en (any other value is refused 400 invalid-params, field lang); without it, the Accept-Language header, else the signed-in account's language, else Romanian (one of ro, en) |
Accept-Language | header | string | no | honoured when the request names no lang (body field or query parameter): its first language the platform speaks (ro, en) by the header's own weights; else the signed-in account's language, else Romanian |
Answer 200 (LegalDocumentList): the result
documents, array of objects, requiredlang, string — the language of this text (one ofro,en)url, string or nullpublished_at, string, requiredbody, string — the text, on a read of one documentlanguages, array of strings — the languages this version is published inkind, string, required (one ofterms,privacy,dpa)title, string, requiredeffective_at, string — when this version takes effect (its publication unless published ahead)version, string, required
upcoming, array of objects — versions published to take effect laterlang, string — the language of this text (one ofro,en)url, string or nullpublished_at, string, requiredbody, string — the text, on a read of one documentlanguages, array of strings — the languages this version is published inkind, string, required (one ofterms,privacy,dpa)title, string, requiredeffective_at, string — when this version takes effect (its publication unless published ahead)version, string, required
Refusals ({"error": {"code", "message"}}; see errors):
| Status | Codes | When |
|---|---|---|
| 429 | rate-limited | rate-limited |
Example
curl -X GET 'https://api.weird.ro/legal/documents'With the CLI (weird legal, weird legal accept, weird legal accept-dpa):
$ weird legal$ weird legal accept$ weird legal accept-dpa [version]
MCP: weird_legal_documents.
The text of a legal document#
GET /legal/documents/{kind} · operation legalDocument
The current version of kind (terms, privacy or dpa, the data processing agreement) with its text (body), or the version version names. A kind with nothing published (or an unknown version) answers 404 not-found. This call is not charged.
| Credential | none: anyone may call it (x-weird-auth: public) |
| Charged | no |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
kind | path | string | yes | |
version | query | string | no | an earlier version |
lang | query | string | no | the language of the texts answered: ro or en (any other value is refused 400 invalid-params, field lang); without it, the Accept-Language header, else the signed-in account's language, else Romanian (one of ro, en) |
Accept-Language | header | string | no | honoured when the request names no lang (body field or query parameter): its first language the platform speaks (ro, en) by the header's own weights; else the signed-in account's language, else Romanian |
Answer 200 (LegalDocument): the result
lang, string — the language of this text (one ofro,en)url, string or nullpublished_at, string, requiredbody, string — the text, on a read of one documentlanguages, array of strings — the languages this version is published inkind, string, required (one ofterms,privacy,dpa)title, string, requiredeffective_at, string — when this version takes effect (its publication unless published ahead)version, string, required
Refusals ({"error": {"code", "message"}}; see errors):
| Status | Codes | When |
|---|---|---|
| 404 | not-found | not-found |
| 429 | rate-limited | rate-limited |
Example
curl -X GET 'https://api.weird.ro/legal/documents/{kind}'With the CLI (weird legal show, weird terms show):
$ weird legal show <terms|privacy|dpa> [version]$ weird terms show <terms|privacy|dpa> [version]
MCP: weird_legal_documents.
This page is generated from the API's public document; it changes when the document does.