> For the complete documentation index, see [llms.txt](https://docs.violet.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.violet.io/ecom-platforms/swell.md).

# Swell

Swell is a headless ecommerce backend designed for modern storefronts. Violet integrates via Swell's API using a store secret key.

## Connection

Merchants provide a **Secret Key** and their **Store ID**. The secret key is generated in the Swell dashboard under **Developer → API Keys**. The store ID is the subdomain used to access the store (e.g. `my-store` from `my-store.swell.store`).

## Webhooks

Swell webhooks are registered automatically when a merchant connects. Violet listens for product and order lifecycle events.

## Notable Behavior

* **Headless-first**: Swell is designed as a headless backend, meaning the merchant may not have a traditional storefront URL. The store URL is derived from the store ID during connection.
* **Inventory**: Swell tracks inventory at the variant level. Stock quantities are synced during catalog synchronization.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.violet.io/ecom-platforms/swell.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
