Skip to main content
POST
List post-mortem templates

Restrictions

Usage

  • Requires the On-call Pro license.
  • The built-in template always comes first and matches the request language: Chinese returns post_mortem_default_tmpl_zh-cn, anything else post_mortem_default_tmpl_en-us. total includes it.
  • Custom templates are sorted by created_at_seconds, newest first unless asc is true.
  • Paginate with p and limit; p × limit must not exceed 10,000.
  • Built-in templates have account_id, team_id and both timestamps set to 0.

Authorizations

app_key
string
query
required

APP Key created in the Flashduty console under My → APP Key. Send it as the app_key query parameter or in the Fd-App-Key request header. Its effective access is the intersection of the key's permission scope and the creator's current role permissions. Keep it secret.

Body

application/json

Pagination and ordering options for post-mortem templates.

order_by
enum<string>

Sort field for custom templates. Only created_at_seconds is supported, which is also the default.

Available options:
created_at_seconds
asc
boolean

Sort custom templates in ascending order when true; default false (newest first).

p
integer<int64>

Page number starting at 1; 0 or omitted means 1.

Required range: x >= 0
limit
integer<int64>
default:20

Page size, 1–100; 0 or omitted means 20.

Required range: 0 <= x <= 100
search_after_ctx
string

Not supported by this operation; leave it unset and paginate with p. If sent, it must be an integer string, and p is then ignored (results start from the first page).

Response

Success

Success response envelope. On every 2xx response, request_id identifies the call (also mirrored in the Flashcat-Request-Id header) and data holds the endpoint-specific payload. Failure responses use a different shape — see ErrorResponse.

request_id
string
required

Unique ID for this request. Mirrored in the Flashcat-Request-Id response header. Include it when reporting issues.

Example:

"01HK8XQE3Z7JM2NTFQ5YJ8P9R4"

data
object

Paginated list of post-mortem templates.