docs-mastodon/content/en/entities/TermsOfService.md

1.6 KiB

title description menu aliases
TermsOfService Represents the terms of service of the instance.
docs
parent
entities
/entities/termsofservice
/entities/TermsOfService
/api/entities/termsofservice
/api/entities/TermsOfService

Example

{
  "effective_date": "2025-04-15",
  "effective": true,
  "content": "<p>Foo bar newer</p>\n",
  "succeeded_by": null
}

Attributes

effective_date

Description: The date these terms of service are coming or have come in effect.
Type: String (Date)
Version history:
4.4.0 - added

effective

Description: Whether these terms of service are currently in effect.
Type: Boolean
Version history:
4.4.0 - added

content

Description: The rendered HTML content of the terms of service.
Type: String (HTML)
Version history:
4.4.0 - added

succeeded_by

Description: If there are newer terms of service, their effective date.
Type: {{}} String (Date)
Version history:
4.4.0 - added

See also

{{< page-relref ref="methods/instance#terms_of_service" caption="GET /api/v1/instance/terms_of_service" >}}

{{< page-relref ref="methods/instance#terms_of_service_date" caption="GET /api/v1/instance/terms_of_service/:date" >}}

{{< caption-link url="https://github.com/mastodon/mastodon/blob/main/app/serializers/rest/terms_of_service_serializer.rb" caption="app/serializers/rest/terms_of_service_serializer.rb" >}}