Skip to main content
GET
/
templates
List Script Templates
curl --request GET \
  --url https://api.altostrat.io/templates \
  --header 'Authorization: Bearer <token>'
{
  "data": [
    {
      "id": "d9e5b5e3-3e8a-4c2f-8d2a-7e6e5a4b1c0d",
      "name": "Standard Firewall Setup",
      "description": "Applies the standard set of corporate firewall rules to a device.",
      "content": "/ip firewall filter add chain=input action=accept connection-state=established,related",
      "metadata": {
        "version": "1.2",
        "compliance": "PCI-DSS"
      },
      "author": "auth0|642b7f3b8b3b3e3e3e3e3e3e",
      "read_only": false,
      "created_at": "2025-10-29T10:30:00.000000Z",
      "updated_at": "2025-10-29T11:00:00.000000Z"
    }
  ],
  "links": {
    "first": "https://api.altostrat.io/templates?page=1",
    "last": "https://api.altostrat.io/templates?page=5",
    "prev": "https://api.altostrat.io/templates?page=2",
    "next": "https://api.altostrat.io/templates?page=4"
  },
  "meta": {
    "current_page": 3,
    "from": 21,
    "last_page": 5,
    "path": "https://api.altostrat.io/templates",
    "per_page": 10,
    "to": 30,
    "total": 50
  }
}

Authorizations

Authorization
string
header
required

Altostrat SDX API uses JWT Bearer tokens for authentication. Obtain a token via the Authentication API and include it in the Authorization header as 'Bearer {token}'.

Query Parameters

type
enum<string>

Filter templates by type. 'public' for global templates, 'private' for organization-specific templates. Omitting this parameter returns both.

Available options:
public,
private

A search term to filter templates by name or description.

Response

A paginated list of script templates.

data
object[]
meta
object