Authorizations
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}'.
Our documentation site will be down for a migration until 31 Oct 2025. Please check back next week!
curl --request GET \
  --url https://api.altostrat.io/community-scripts \
  --header 'Authorization: Bearer <token>'{
  "data": [
    {
      "id": "01H8XGJWBWBAQ1Z3G1B6X2Q8P5",
      "name": "add-dns-static.rsc",
      "description": "This script adds a static DNS entry for a given name to a specified IP address.",
      "size": 128,
      "readme_url": "https://raw.githubusercontent.com/mikrotik-scripts/main/scripts/add-dns-static/README.md",
      "github_url": "https://github.com/mikrotik-scripts/main/blob/main/scripts/add-dns-static.rsc",
      "raw_url": "https://raw.githubusercontent.com/mikrotik-scripts/main/scripts/add-dns-static.rsc",
      "content": ":local name \"example.com\"; :local address 192.168.88.254; /ip dns static add name=$name address=$address;",
      "sha": "e69de29bb2d1d6434b8b29ae775ad8c2e48c5391",
      "repository": {
        "name": "mikrotik-scripts",
        "url": "https://github.com/user/mikrotik-scripts",
        "stars": 42,
        "created_at": "2024-01-15T12:00:00Z"
      },
      "user": {
        "name": "John Doe",
        "url": "https://github.com/johndoe",
        "avatar": "https://avatars.githubusercontent.com/u/12345?v=4",
        "followers": 100,
        "created_at": "2020-05-20T10:00:00Z"
      }
    }
  ],
  "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": 1,
    "from": 1,
    "path": "https://api.altostrat.io/community-scripts",
    "per_page": 25,
    "to": 25
  }
}Retrieves a paginated list of scripts from the public community repository. This is a valuable resource for finding pre-built solutions for common MikroTik tasks.
curl --request GET \
  --url https://api.altostrat.io/community-scripts \
  --header 'Authorization: Bearer <token>'{
  "data": [
    {
      "id": "01H8XGJWBWBAQ1Z3G1B6X2Q8P5",
      "name": "add-dns-static.rsc",
      "description": "This script adds a static DNS entry for a given name to a specified IP address.",
      "size": 128,
      "readme_url": "https://raw.githubusercontent.com/mikrotik-scripts/main/scripts/add-dns-static/README.md",
      "github_url": "https://github.com/mikrotik-scripts/main/blob/main/scripts/add-dns-static.rsc",
      "raw_url": "https://raw.githubusercontent.com/mikrotik-scripts/main/scripts/add-dns-static.rsc",
      "content": ":local name \"example.com\"; :local address 192.168.88.254; /ip dns static add name=$name address=$address;",
      "sha": "e69de29bb2d1d6434b8b29ae775ad8c2e48c5391",
      "repository": {
        "name": "mikrotik-scripts",
        "url": "https://github.com/user/mikrotik-scripts",
        "stars": 42,
        "created_at": "2024-01-15T12:00:00Z"
      },
      "user": {
        "name": "John Doe",
        "url": "https://github.com/johndoe",
        "avatar": "https://avatars.githubusercontent.com/u/12345?v=4",
        "followers": 100,
        "created_at": "2020-05-20T10:00:00Z"
      }
    }
  ],
  "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": 1,
    "from": 1,
    "path": "https://api.altostrat.io/community-scripts",
    "per_page": 25,
    "to": 25
  }
}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}'.
Was this page helpful?