Skip to content
API reference/Templates

List packages

Try it

The packages a site can be sold on (page limit, features). Wholesale prices appear only when the key's creator may see prices.

GET/api/v1/packages

Authentication

An API key as Authorization: Bearer or x-api-key. It needs the templates:read scope — read templates, packages and section types.

templates:readRead onlyMCP tool: list_packages

Parameters

Named placeholders go in the path; the rest in the query string.

No parameters.

Response

200 with JSON on success (schema on the right). Errors use the standard envelope.

curl
curl -X GET 'https://websites.workflowcorp.com/api/v1/packages' \
  -H "Authorization: Bearer $WEBSITEBUDDY_API_KEY"
Example arguments
{}
Response schema
{
  "type": "object",
  "properties": {
    "data": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "slug": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "blurb": {
            "type": "string"
          },
          "page_limit": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              },
              {
                "type": "null"
              }
            ],
            "description": "Null = unlimited."
          },
          "features": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "key": {
                  "type": "string"
                },
                "label": {
                  "type": "string"
                }
              },
              "required": [
                "key",
                "label"
              ],
              "additionalProperties": false
            }
          },
          "is_default": {
            "type": "boolean"
          },
          "wholesale": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "setup_cents": {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  },
                  "monthly_cents": {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  }
                },
                "required": [
                  "setup_cents",
                  "monthly_cents"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "id",
          "slug",
          "name",
          "blurb",
          "page_limit",
          "features",
          "is_default",
          "wholesale"
        ],
        "additionalProperties": false
      }
    }
  },
  "required": [
    "data"
  ],
  "additionalProperties": false
}