Skip to main content
POST
List Automation templates

Restrictions

Usage

  • Templates are fixed by the platform and are the same for every account.
  • Language: a locale containing zh returns Chinese templates, one containing en returns English; any other non-empty value returns Chinese. When locale is omitted, the locale/lang query parameter or the Accept-Language header decides.
  • Each template is a partial create request: pass its fields to Create Automation rule and add what only you can supply (cron_expr when the template has none, timezone, channel IDs).

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
locale
string

Template language. A value containing zh returns Chinese, one containing en returns English, any other non-empty value returns Chinese. When omitted, the locale/lang query parameter or the Accept-Language header decides, defaulting to Chinese.

Maximum string length: 16

Response

Success

Standard response envelope used by every Flashduty public API. On success data contains the endpoint-specific payload and error is absent. On failure error is present and data is absent. request_id is always present and is also mirrored in the Flashcat-Request-Id response header.

request_id
string
required

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

Example:

"01HK8XQE3Z7JM2NTFQ5YJ8P9R4"

error
object

Error payload inside the response envelope. Present only on non-2xx responses.

data
object

Operation-specific payload, documented in each operation's 200 response. Operations without a payload return {} or omit data entirely.