tools.ozone.communication.listTemplates
GET/xrpc/tools.ozone.communication.listTemplates
This endpoint is part of the Ozone moderation service APIs. Requests usually require authentication, are directed to the user's PDS intance, and proxied to the Ozone instance indicated by the DID in the service proxying header. Admin authenentication may also be possible, with request sent directly to the Ozone instance.
To learn more about calling atproto API endpoints like this one, see the API Hosts and Auth guide.
Get list of all communication templates.
Request
Responses
- 200
- 400
- 401
OK
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
communicationTemplates
object[]
required
Name of the template.
Content of the template, can contain markdown and variable placeholders.
Subject of the message, used in emails.
Message language.
DID of the user who last updated the template.
{
"communicationTemplates": [
{
"id": "string",
"name": "string",
"subject": "string",
"contentMarkdown": "string",
"disabled": true,
"lang": "string",
"lastUpdatedBy": "string",
"createdAt": "2024-11-04T00:29:30.265Z",
"updatedAt": "2024-11-04T00:29:30.265Z"
}
]
}
Bad Request
- application/json
- Schema
- Example (from schema)
Schema
Possible values: [InvalidRequest
, ExpiredToken
, InvalidToken
]
{
"error": "InvalidRequest",
"message": "string"
}
Unauthorized
- application/json
- Schema
- Example (from schema)
Schema
{
"message": "string"
}