v32

latestOpenAPI 3.1.0raw.githubusercontent.com2026-05-151,1412,2144.5 MB
Protection Templates

Get protection template

Get a specific protection template. Returns 404 if template not found.

get/security/sifter/v3/templates/{protection_template_id}

Path parameters

protection_template_idinteger required

A positive integer ID

A positive integer ID

Response

Successful Response

namestring required

Name of the template

descriptionstring required

Description of the template

{"stackTrail":"components:schemas:ProtectionTemplateResponse:properties:template","oasType":"schema","type":"unknown","title":"Template","description":"JSON schema for the template"}
allow_mergeboolean required

Allow merging of this config with others

client_idinteger nullable required

ID of the client this template belongs to

idinteger required

Unique identifier for the template

Example response

{
  "allow_merge": false,
  "client_id": 42,
  "description": "Template for configuring DDoS protection policies",
  "fields": [
    {
      "description": "Maximum number of requests per second before triggering protection",
      "field_type": "RULES",
      "id": 1,
      "name": "Rate Limit Threshold",
      "name_in_config": "rate_limit_threshold",
      "validation_schema": {
        "maximum": 100000,
        "minimum": 1,
        "type": "integer"
      }
    }
  ],
  "id": 7,
  "name": "DDoS Protection Template",
  "template": {
    "properties": {
      "threshold": {
        "minimum": 1,
        "type": "integer"
      },
      "action": {
        "enum": [
          "block",
          "challenge",
          "log"
        ],
        "type": "string"
      }
    },
    "type": "object"
  }
}