api-gateway
VerifiedCall third-party APIs through the Maton gateway, which injects the credential for an app the user has already connected. Use this skill when the user names a connected app and a concrete action in it - read a mailbox, query a CRM, file an issue, update a spreadsheet, run a query through a connected search or scraping provider. Every call goes to an app the user connected. It is not a general-purpose browser or network client, and it cannot reach a service with no Maton connection. It also manages event triggers, webhook destinations that forward event payloads to an external URL until deleted, and local `--exec` handlers that run a script per event - separate, high-risk capabilities beyond a normal API call. Default to read and list calls; every write, connection, trigger, destination, or handler needs explicit user confirmation.
references/squarespace/README.md
View on GitHub# Squarespace
## API Reference
> **Safety:** All write operations (POST, PUT, PATCH, DELETE) require explicit user confirmation before execution. Verify the target resource and intended effect with the user first. See the main [SKILL.md](../../SKILL.md#security--permissions) for full security policy.
**App name:** `squarespace`
**Upstream base URL:** `api.squarespace.com`
Replace the upstream base URL with the app name. Everything after the base URL including query strings is kept as-is. Any account-specific part of the base URL and the API credentials are stored in the Maton connection, and the gateway injects both so requests never carry them. For example:
- Upstream: `https://api.squarespace.com/1.0/commerce/inventory`
- Gateway: `https://api.maton.ai/squarespace/1.0/commerce/inventory`
**Important**: Squarespace sits behind Cloudflare, which blocks requests without `User-Agent`. The `maton` CLI sets one on every request, so `maton api` calls need no extra header. If you call the gateway over HTTP instead, make sure to send the `User-Agent` header.
### Inventory API
#### List All Inventory
```bash
maton api '/squarespace/1.0/commerce/inventory'
```
**Query parameters:**
- `cursor` (optional): Pagination cursor from previous response
**Response:**
```json
{
"inventory": [
{
"variantId": "5ba1418df4204bb2d21eac3f",
"sku": "SQ0001",
"descriptor": "Product Name - Size: Medium",
"isUnlimited": false,
"quantity": 25
}
],
"pagination": {
"hasNextPage": true,
"nextPageCursor": "abc123",
"nextPageUrl": ".../1.0/commerce/inventory?cursor=abc123"
}
}
```
#### Get Specific Inventory
```bash
maton api '/squarespace/1.0/commerce/inventory/{variantIds}'
```
**Note:** `{variantIds}` is a placeholder. Replace it with a real value before sending the request.
**Query parameters:**
- `{variantIds}`: Comma-separated variant IDs (max 50)
#### Adjust Stock Quantities
```bash
maton api -X POST '/squarespace/1.0/commerce/inventory/adjustments' -H 'Idempotency-Key: unique-key-here' -H 'Content-Type: application/json' --input - <<'JSON'
{
"incrementOperations": [{"variantId": "variant-id-1", "quantity": 5}],
"decrementOperations": [{"variantId": "variant-id-2", "quantity": 2}],
"setFiniteOperations": [{"variantId": "variant-id-3", "quantity": 100}],
"setUnlimitedOperations": ["variant-id-4"]
}
JSON
```
Returns 204 No Content on success
### Orders API
#### List All Orders
```bash
maton api '/squarespace/1.0/commerce/orders'
maton api '/squarespace/1.0/commerce/orders?fulfillmentStatus=PENDING'
maton api '/squarespace/1.0/commerce/orders?modifiedAfter=2024-01-01T00:00:00Z&modifiedBefore=2024-12-31T23:59:59Z'
maton api '/squarespace/1.0/commerce/orders?customerId={customerId}'
```
**Note:** `{customerId}` is a placeholder. Replace it with a real value before sending the request.
**Note:** Cannot combine cursor with date range parameters. Date filters must be used together.
**Query parameters:**
- `customerId` (optional): Filter by customer ID
- `modifiedAfter` (conditional): ISO 8601 datetime (e.g., `2024-01-01T00:00:00Z`) - required with `modifiedBefore`
- `modifiedBefore` (conditional): ISO 8601 datetime - required with `modifiedAfter`
- `cursor` (optional): Pagination cursor
- `fulfillmentStatus` (optional): `PENDING`, `FULFILLED`, or `CANCELED`
**Response:**
```json
{
"result": [
{
"id": "order-id",
"orderNumber": "1001",
"createdOn": "2024-01-15T10:30:00Z",
"modifiedOn": "2024-01-15T12:00:00Z",
"channel": "web",
"testmode": false,
"customerEmail": "customer@example.com",
"fulfillmentStatus": "PENDING",
"lineItems": [...],
"subtotal": {"value": "99.99", "currency": "USD"},
"shippingTotal": {"value": "9.99", "currency": "USD"},
"taxTotal": {"value": "8.50", "currency": "USD"},
"grandTotal": {"value": "118.48", "currency": "USD"}
}
],
"pagination": {
"hasNextPage": true,
"nextPageCursor": "abc123",
"nextPageUrl": "..."
}
}
```
#### Get Specific Order
```bash
maton api '/squarespace/1.0/commerce/orders/{orderId}'
```
**Note:** `{orderId}` is a placeholder. Replace it with a real value before sending the request.
#### Create Order
```bash
maton api -X POST '/squarespace/1.0/commerce/orders' -H 'Idempotency-Key: unique-key-here' -H 'Content-Type: application/json' --input - <<'JSON'
{
"channelName": "External Store",
"externalOrderReference": "ORDER-12345",
"customerEmail": "customer@example.com",
"lineItems": [
{
"lineItemType": "PHYSICAL_PRODUCT",
"variantId": "variant-id",
"quantity": 2,
"unitPricePaid": {"currency": "USD", "value": "29.99"}
}
],
"subtotal": {"currency": "USD", "value": "59.98"},
"priceTaxInterpretation": "EXCLUSIVE",
"grandTotal": {"currency": "USD", "value": "59.98"},
"createdOn": "2024-01-15T10:30:00Z"
}
JSON
```
**Note:** `subtotal` must equal sum of `lineItems.unitPricePaid.value * quantity`.
Returns 201 Created with Order object
#### Fulfill Order
```bash
maton api -X POST '/squarespace/1.0/commerce/orders/{orderId}/fulfillments' -H 'Content-Type: application/json' --input - <<'JSON'
{
"shouldSendNotification": true,
"shipments": [
{
"shipDate": "2024-01-16T08:00:00Z",
"carrierName": "USPS",
"service": "Priority Mail",
"trackingNumber": "9400111899223456789012",
"trackingUrl": "https://tools.usps.com/go/TrackConfirmAction?tLabels=9400111899223456789012"
}
]
}
JSON
```
**Note:** `{orderId}` is a placeholder. Replace it with a real value before sending the request.
Returns 204 No Content on success
### Products API
#### List Store Pages
```bash
maton api '/squarespace/1.0/commerce/store_pages'
```
**Note:** Store Pages endpoint uses v1.0 (no v2 available).
**Query parameters:**
- `cursor` (optional): Pagination cursor
**Response:**
```json
{
"storePages": [
{
"id": "store-page-id",
"title": "Main Store",
"isEnabled": true,
"urlSlug": "store"
}
],
"pagination": {...}
}
```
#### List All Products
```bash
maton api '/squarespace/v2/commerce/products'
maton api '/squarespace/v2/commerce/products?type=PHYSICAL,SERVICE,GIFT_CARD,DIGITAL'
maton api '/squarespace/v2/commerce/products?modifiedAfter=2024-01-01T00:00:00Z'
```
**Note:** Cannot combine `cursor` with date/type filters.
**Query parameters:**
- `modifiedAfter` (optional): ISO 8601 datetime
- `modifiedBefore` (optional): ISO 8601 datetime
- `type` (optional): Comma-separated types: `PHYSICAL`, `SERVICE`, `GIFT_CARD`, `DIGITAL`
- `cursor` (optional): Pagination cursor
**Response:**
```json
{
"products": [
{
"id": "product-id",
"type": "PHYSICAL",
"storePageId": "store-page-id",
"name": "Product Name",
"description": "<p>HTML description</p>",
"url": "https://example.squarespace.com/store/product-slug",
"urlSlug": "product-slug",
"tags": ["tag1", "tag2"],
"isVisible": true,
"variants": [...],
"images": [...],
"createdOn": "2024-01-01T00:00:00Z",
"modifiedOn": "2024-01-15T12:00:00Z"
}
],
"pagination": {...}
}
```
#### Get Specific Products
```bash
maton api '/squarespace/v2/commerce/products/{productIds}'
```
**Note:** `{productIds}` is a placeholder. Replace it with a real value before sending the request.
**Query parameters:**
- `{productIds}`: Comma-separated product IDs (max 50)
#### Create Product
```bash
maton api -X POST '/squarespace/v2/commerce/products' -H 'Content-Type: application/json' --input - <<'JSON'
{
"type": "PHYSICAL",
"storePageId": "store-page-id",
"name": "New Product",
"description": "<p>Product description</p>",
"urlSlug": "new-product",
"tags": ["new", "featured"],
"isVisible": true,
"variants": [
{
"sku": "SKU-001",
"pricing": {
"basePrice": {"currency": "USD", "value": "49.99"}
},
"stock": {"quantity": 100, "unlimited": false}
}
]
}
JSON
```
Returns 201 Created with Product object
#### Update Product
```bash
maton api -X POST '/squarespace/v2/commerce/products/{productId}' -H 'Content-Type: application/json' --input - <<'JSON'
{
"name": "Updated Product Name",
"description": "<p>Updated description</p>",
"isVisible": true,
"tags": ["updated", "sale"]
}
JSON
```
**Note:** `{productId}` is a placeholder. Replace it with a real value before sending the request.
Returns 200 OK with Product object
#### Delete Product
```bash
maton api '/squarespace/v2/commerce/products/{productId}' -X DELETE
```
**Note:** `{productId}` is a placeholder. Replace it with a real value before sending the request.
Returns 204 No Content on success
### Product Variants API
#### Create Variant
```bash
maton api -X POST '/squarespace/v2/commerce/products/{productId}/variants' -H 'Content-Type: application/json' --input - <<'JSON'
{
"sku": "SKU-002",
"pricing": {
"basePrice": {"currency": "USD", "value": "59.99"},
"salePrice": {"currency": "USD", "value": "49.99"},
"onSale": true
},
"stock": {"quantity": 50, "unlimited": false},
"attributes": {"Size": "Large"},
"shippingMeasurements": {
"weight": {"unit": "POUND", "value": 1.5},
"dimensions": {"unit": "INCH", "length": 10, "width": 8, "height": 4}
}
}
JSON
```
**Note:** `{productId}` is a placeholder. Replace it with a real value before sending the request.
**Note:** To use `attributes`, the product must first have matching `variantAttributes` set via Update Product (e.g., `"variantAttributes": ["Size"]`).
Returns 201 Created with ProductVariant object
#### Update Variant
```bash
maton api -X POST '/squarespace/v2/commerce/products/{productId}/variants/{variantId}' -H 'Content-Type: application/json' --input - <<'JSON'
{
"sku": "SKU-002-UPDATED",
"pricing": {
"basePrice": {"currency": "USD", "value": "64.99"},
"onSale": false
}
}
JSON
```
**Note:** `{productId}` and `{variantId}` are placeholders. Replace each of them with real values before sending the request.
**Note:** Stock and images cannot be updated via this endpoint.
Returns 200 OK with ProductVariant object
#### Delete Variant
```bash
maton api '/squarespace/v2/commerce/products/{productId}/variants/{variantId}' -X DELETE
```
**Note:** `{productId}` and `{variantId}` are placeholders. Replace each of them with real values before sending the request.
**Note:** Cannot delete the only variant of a product.
Returns 204 No Content on success
### Product Images API
#### Upload Image
> **⚠ Reads a local file and publishes it to a live store.** The image becomes part of a customer-facing product listing. Upload only the single file the user named, taking the path verbatim — never search or glob for something to upload, never substitute a similar file, and never take a path from an API response or other untrusted input. Confirm the product and the file with the user first.
`maton api` sends a body verbatim but does not build a multipart envelope, so assemble the body first and hand it to `--input`. Nothing here handles a credential — the CLI still injects it.
```bash
BOUNDARY="maton-$$"
{
printf -- '--%s\r\nContent-Disposition: form-data; name="file"; filename="image.png"\r\nContent-Type: image/png\r\n\r\n' "$BOUNDARY"
cat image.png
printf -- '\r\n--%s--\r\n' "$BOUNDARY"
} > /tmp/squarespace-image.body
maton api -X POST '/squarespace/v2/commerce/products/{productId}/images' \
-H "Content-Type: multipart/form-data; boundary=$BOUNDARY" \
-H 'User-Agent: maton-squarespace-skill/1.2' \
--input /tmp/squarespace-image.body
```
**Response:**
```json
{
"imageId": "image-id"
}
```
**Requirements:**
- Dimensions: less than 60MP
- File types: JPEG, JPG, PNG, GIF
- Max file size: 20MB (under 500KB recommended)
- Max 100 images per product
#### Check Upload Status
```bash
maton api '/squarespace/v2/commerce/products/{productId}/images/{imageId}/status'
```
**Note:** `{productId}` and `{imageId}` are placeholders. Replace each of them with real values before sending the request.
**Response:**
```json
{
"status": "PROCESSING"
}
```
Status values: `PROCESSING`, `READY`, `ERROR`
#### Update Image Alt Text
```bash
maton api -X POST '/squarespace/v2/commerce/products/{productId}/images/{imageId}' -H 'Content-Type: application/json' --input - <<'JSON'
{
"altText": "Product image description"
}
JSON
```
**Note:** `{productId}` and `{imageId}` are placeholders. Replace each of them with real values before sending the request.
Returns 200 OK with ProductImage object
#### Reorder Image
```bash
maton api -X POST '/squarespace/v2/commerce/products/{productId}/images/{imageId}/order' -H 'Content-Type: application/json' --input - <<'JSON'
{
"afterImageId": "other-image-id"
}
JSON
```
**Note:** `{productId}` and `{imageId}` are placeholders. Replace each of them with real values before sending the request.
Use `null` for `afterImageId` to move image to the top.
REturns 204 No Content
#### Assign Image to Variant
```bash
maton api -X POST '/squarespace/v2/commerce/products/{productId}/variants/{variantId}/image' -H 'Content-Type: application/json' --input - <<'JSON'
{
"imageId": "image-id"
}
JSON
```
**Note:** `{productId}` and `{variantId}` are placeholders. Replace each of them with real values before sending the request.
Use `null` for `imageId` to remove the image from the variant.
Returns 204 No Content
#### Delete Image
```bash
maton api '/squarespace/v2/commerce/products/{productId}/images/{imageId}' -X DELETE
```
**Note:** `{productId}` and `{imageId}` are placeholders. Replace each of them with real values before sending the request.
Returns 204 No Content
### Profiles API
#### List All Profiles
```bash
maton api '/squarespace/1.0/profiles'
maton api '/squarespace/1.0/profiles?filter=isCustomer,true'
maton api '/squarespace/1.0/profiles?sortField=email&sortDirection=asc'
```
Filters (semicolon-separated):
- `isCustomer,true` or `isCustomer,false`
- `hasAccount,true` or `hasAccount,false`
- `email,customer@example.com`
Sort fields: `createdOn`, `id`, `email`, `lastName`
**Query parameters:**
- `cursor` (optional): Pagination cursor
- `filter` (optional): Semicolon-separated filters (e.g., `isCustomer,true;hasAccount,true`)
- `sortDirection` (optional): `asc` or `dsc` (default: `dsc`)
- `sortField` (optional): `createdOn`, `id`, `email`, or `lastName` (default: `id`)
**Filter options:**
- `isCustomer,true` or `isCustomer,false`
- `hasAccount,true` or `hasAccount,false`
- `email,customer@example.com`
**Response:**
```json
{
"profiles": [
{
"id": "profile-id",
"firstName": "John",
"lastName": "Doe",
"email": "john@example.com",
"hasAccount": true,
"isCustomer": true,
"createdOn": "2024-01-01T00:00:00Z",
"address": {
"address1": "123 Main St",
"city": "New York",
"state": "NY",
"countryCode": "US",
"postalCode": "10001"
},
"acceptsMarketing": true,
"transactionsSummary": {
"orderCount": 5,
"totalOrderAmount": {"value": "499.95", "currency": "USD"}
}
}
],
"pagination": {...}
}
```
#### Get Specific Profiles
```bash
maton api '/squarespace/1.0/profiles/{profileIds}'
```
**Note:** `{profileIds}` is a placeholder. Replace it with a real value before sending the request.
**Query parameters:**
- `{profileIds}`: Comma-separated profile IDs (max 50)
### Transactions API
#### List All Transactions
```bash
maton api '/squarespace/1.0/commerce/transactions'
maton api '/squarespace/1.0/commerce/transactions?modifiedAfter=2024-01-01T00:00:00Z&modifiedBefore=2024-12-31T23:59:59Z'
```
**Note:** Date filters must be used together (both `modifiedAfter` and `modifiedBefore` required).
**Query parameters:**
- `modifiedAfter` (conditional): ISO 8601 datetime - required with `modifiedBefore`
- `modifiedBefore` (conditional): ISO 8601 datetime - required with `modifiedAfter`
- `cursor` (optional): Pagination cursor
**Response:**
```json
{
"documents": [
{
"id": "document-id",
"createdOn": "2024-01-15T10:30:00Z",
"modifiedOn": "2024-01-15T12:00:00Z",
"customerEmail": "customer@example.com",
"salesOrderId": "order-id",
"voided": false,
"totalSales": {"value": "99.99", "currency": "USD"},
"totalNetSales": {"value": "99.99", "currency": "USD"},
"totalTaxes": {"value": "8.50", "currency": "USD"},
"total": {"value": "108.49", "currency": "USD"},
"payments": [
{
"id": "payment-id",
"amount": {"value": "108.49", "currency": "USD"},
"creditCardType": "VISA",
"provider": "STRIPE",
"paidOn": "2024-01-15T10:35:00Z"
}
]
}
],
"pagination": {...}
}
```
#### Get Specific Transactions
```bash
maton api '/squarespace/1.0/commerce/transactions/{documentIds}'
```
**Note:** `{documentIds}` is a placeholder. Replace it with a real value before sending the request.
**Query parameters:**
- `{documentIds}`: Comma-separated document IDs (max 50)
### Pagination
Squarespace uses cursor-based pagination:
```json
{
"pagination": {
"hasNextPage": true,
"nextPageCursor": "cursor-value",
"nextPageUrl": "https://api.squarespace.com/..."
}
}
```
Use the `cursor` parameter to get the next page:
```bash
maton api '/squarespace/v2/commerce/products?cursor=cursor-value'
```
### Notes
- Requests without a custom User-Agent are subject to stricter rate limits
- Maximum 50 items per batch request
- Idempotency-Key header is required for stock adjustments and order creation
- Rate limit: 300 requests per minute (5 per second)
- Create Order has a stricter rate limit: 100 requests per hour per website
### Resources
- [Squarespace Commerce APIs Overview](https://developers.squarespace.com/commerce-apis/overview)
- [Inventory API](https://developers.squarespace.com/commerce-apis/inventory-overview)
- [Orders API](https://developers.squarespace.com/commerce-apis/orders-overview)
- [Products API](https://developers.squarespace.com/commerce-apis/products-overview)
- [Profiles API](https://developers.squarespace.com/commerce-apis/profiles-overview)
- [Transactions API](https://developers.squarespace.com/commerce-apis/transactions-overview)
- [Maton CLI Manual](https://cli.maton.ai/manual)
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| canvas-designanthropics/skillsCreate beautiful visual art in .png and .pdf documents using design philosophy. You should use this skill when the user asks to create a poster, piece of art, design, or other static piece. Create original visual designs, never copying existing artists' work to avoid copyright violations. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| docxanthropics/skillsUse this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include: any mention of 'Word doc', 'word document', '.docx', '.dotx', or requests to produce professional documents with formatting like tables of contents, headings, page numbers, or letterheads. Also use when extracting or reorganizing content from .docx or .dotx files, inserting or replacing images in documents, performing find-and-replace in Word files, working with tracked changes or comments, or converting content into a polished Word document. If the user asks for a 'report', 'memo', 'letter', 'template', or similar deliverable as a Word or .docx file, use this skill. Do NOT use for PDFs, spreadsheets, Google Docs, or general coding tasks unrelated to document generation. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| pdfanthropics/skillsUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple PDFs into one, splitting PDFs apart, rotating pages, adding watermarks, creating new PDFs, filling PDF forms, encrypting/decrypting PDFs, extracting images, and OCR on scanned PDFs to make them searchable. If the user mentions a .pdf file or asks to produce one, use this skill. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| pptxanthropics/skillsUse this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or presentations; reading, parsing, or extracting text from any .pptx or .potx file (even if the extracted content will be used elsewhere, like in an email or summary); editing, modifying, or updating existing presentations; combining or splitting slide files; working with templates (.potx), layouts, speaker notes, or comments. Trigger whenever the user mentions "deck," "slides," "presentation," or references a .pptx or .potx filename, regardless of what they plan to do with the content afterward. If a .pptx or .potx file needs to be opened, created, or touched, use this skill. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |