Swell Products API

Product catalog including variants, options, bundles, gift cards, and subscription products.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 7

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /products List products · List Products #
Ask an LLM
“How do I list all products in my store?”
“Can I search products by name or SKU?”
Tell an agent
List all products.
Find products matching {where}.
POST /products Create a product · Create Product #
Ask an LLM
“How do I add a new product to my store?”
“What do I need to create a product, like name and SKU?”
Tell an agent
Create a product named {name} with SKU {sku}.
Add product {name} (SKU {sku}) priced at {price}.
GET /products/{id} Retrieve a product · Retrieve Product #
Ask an LLM
“How do I look up one product by its ID?”
“What price and stock level does a product have?”
Tell an agent
Get product {id}.
Show the details of product {id}.
PUT /products/{id} Update a product · Update Product #
Ask an LLM
“How do I change a product's price or description?”
“Can I deactivate a product without deleting it?”
Tell an agent
Update product {id} to price {price}.
Set product {id} active to {active}.
DELETE /products/{id} Delete a product · Delete Product #
Ask an LLM
“How do I remove a product from my store?”
“Can I delete a product by its ID?”
Tell an agent destructive · confirm first
Delete product {id}.
Remove product {id} from the store.
GET /api/products List products for the storefront · List Products #
Ask an LLM
“How do I list products on the storefront?”
“Can I filter storefront products by category?”
Tell an agent
List storefront products.
Show storefront products in category {category}.
GET /api/products/{slug} Look up a product by slug · Retrieve Product #
Ask an LLM
“How do I fetch a product's details from its slug?”
“Can I get a product's description and price by its slug?”
Tell an agent
Get the product with slug {slug}.
Look up product {slug} by its product slug.

Documentation

Specifications

Schemas & Data

Other Resources

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/swell-io:swell-io-products-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

swell-io-products-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Swell Io Products API
  version: 2025-01
  license:
    name: API Profile — API Evangelist
    url: https://apievangelist.com
  description: 'Operations tagged Products across 2 of this provider''s published API definitions: swell-backend-api-openapi.yml, swell-frontend-api-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://api.swell.store
  description: Production Backend API
- url: https://{storeId}.swell.store
  description: Per-store Frontend API endpoint
  variables:
    storeId:
      default: my-store
      description: Your Swell store ID (subdomain).
tags:
- name: Products
  description: Product catalog including variants, options, bundles, gift cards, and subscription products.
paths:
  /products:
    get:
      tags:
      - Products
      summary: List Products
      operationId: listProducts
      parameters:
      - $ref: '#/components/parameters/Limit'
      - $ref: '#/components/parameters/Page'
      - $ref: '#/components/parameters/Where'
      - $ref: '#/components/parameters/Sort'
      - $ref: '#/components/parameters/Search'
      - $ref: '#/components/parameters/Expand'
      - $ref: '#/components/parameters/Fields'
      responses:
        '200':
          description: A page of products.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProductList'
      security:
      - SwellStoreId: []
        SwellSecretKey: []
    post:
      tags:
      - Products
      summary: Create Product
      operationId: createProduct
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ProductCreate'
      responses:
        '201':
          description: Product created.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Product'
      security:
      - SwellStoreId: []
        SwellSecretKey: []
    servers:
    - url: https://api.swell.store
      description: Production Backend API
  /products/{id}:
    parameters:
    - $ref: '#/components/parameters/PathId'
    get:
      tags:
      - Products
      summary: Retrieve Product
      operationId: getProduct
      responses:
        '200':
          description: The requested product.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Product'
      security:
      - SwellStoreId: []
        SwellSecretKey: []
    put:
      tags:
      - Products
      summary: Update Product
      operationId: updateProduct
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ProductUpdate'
      responses:
        '200':
          description: Product updated.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Product'
      security:
      - SwellStoreId: []
        SwellSecretKey: []
    delete:
      tags:
      - Products
      summary: Delete Product
      operationId: deleteProduct
      responses:
        '200':
          description: Product deleted.
      security:
      - SwellStoreId: []
        SwellSecretKey: []
    servers:
    - url: https://api.swell.store
      description: Production Backend API
  /api/products:
    get:
      tags:
      - Products
      summary: List Products
      operationId: frontendListProducts
      parameters:
      - $ref: '#/components/parameters/Limit_2'
      - $ref: '#/components/parameters/Page_2'
      - $ref: '#/components/parameters/Search_2'
      - $ref: '#/components/parameters/Category'
      - $ref: '#/components/parameters/Sort_2'
      - $ref: '#/components/parameters/Expand_2'
      responses:
        '200':
          description: Page of public products.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProductList_2'
      security:
      - SwellPublicKey: []
    servers:
    - url: https://{storeId}.swell.store
      description: Per-store Frontend API endpoint
      variables:
        storeId:
          default: my-store
          description: Your Swell store ID (subdomain).
  /api/products/{slug}:
    parameters:
    - name: slug
      in: path
      required: true
      schema:
        type: string
      description: Product slug or ID.
    get:
      tags:
      - Products
      summary: Retrieve Product
      operationId: frontendGetProduct
      responses:
        '200':
          description: Public product.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Product_2'
      security:
      - SwellPublicKey: []
    servers:
    - url: https://{storeId}.swell.store
      description: Per-store Frontend API endpoint
      variables:
        storeId:
          default: my-store
          description: Your Swell store ID (subdomain).
components:
  schemas:
    Product:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/ObjectId'
        name:
          type: string
        slug:
          type: string
        sku:
          type: string
        active:
          type: boolean
        type:
          type: string
          enum:
          - standard
          - subscription
          - bundle
          - giftcard
        delivery:
          type:
          - string
          - 'null'
          enum:
          - shipment
          - subscription
          - giftcard
          - null
        price:
          $ref: '#/components/schemas/Money'
        sale_price:
          $ref: '#/components/schemas/Money'
        sale:
          type: boolean
        currency:
          type: string
          description: ISO 4217 currency code.
        description:
          type: string
        stock_tracking:
          type: boolean
        stock_level:
          type: integer
        stock_status:
          type: string
          enum:
          - in_stock
          - out_of_stock
          - preorder
          - backorder
        stock_purchasable:
          type: boolean
        variable:
          type: boolean
        variants:
          type: array
          items:
            type: object
        options:
          type: array
          items:
            type: object
        bundle:
          type: boolean
        bundle_items:
          type: array
          items:
            type: object
        purchase_options:
          type: object
        category_id:
          $ref: '#/components/schemas/ObjectId'
        categories:
          type: array
          items:
            type: object
        related_product_ids:
          type: array
          items:
            $ref: '#/components/schemas/ObjectId'
        cross_sells:
          type: array
          items:
            type: object
        up_sells:
          type: array
          items:
            type: object
        shipment_weight:
          type: number
        shipment_dimensions:
          type: object
        shipment_location:
          type: string
        shipment_prices:
          type: array
          items:
            type: object
        images:
          type: array
          items:
            type: object
        tags:
          type: array
          items:
            type: string
        meta_title:
          type: string
        meta_keywords:
          type: string
        meta_description:
          type: string
        date_created:
          type: string
          format: date-time
        date_updated:
          type: string
          format: date-time
      required:
      - name
      - sku
    ProductUpdate:
      allOf:
      - $ref: '#/components/schemas/Product'
    ObjectId:
      type: string
      pattern: ^[a-f0-9]{24}$
    ProductList:
      type: object
      properties:
        count:
          type: integer
        page:
          type: integer
        results:
          type: array
          items:
            $ref: '#/components/schemas/Product'
        pages:
          type: object
    Money:
      type: number
      format: float
      description: Currency amount expressed in store currency.
    ProductCreate:
      allOf:
      - $ref: '#/components/schemas/Product'
    ProductList_2:
      type: object
      properties:
        count:
          type: integer
        page:
          type: integer
        results:
          type: array
          items:
            $ref: '#/components/schemas/Product_2'
    Money_2:
      type: number
      format: float
    Product_2:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        slug:
          type: string
        active:
          type: boolean
        price:
          $ref: '#/components/schemas/Money_2'
        sale_price:
          $ref: '#/components/schemas/Money_2'
        currency:
          type: string
        type:
          type: string
        description:
          type: string
        images:
          type: array
          items:
            type: object
        options:
          type: array
          items:
            type: object
        variants:
          type: array
          items:
            type: object
        purchase_options:
          type: object
        meta_title:
          type: string
        meta_description:
          type: string
  parameters:
    Search:
      name: search
      in: query
      description: Full-text search across model-specific searchable fields.
      schema:
        type: string
    PathId:
      name: id
      in: path
      required: true
      description: The object ID of the resource.
      schema:
        type: string
        pattern: ^[a-f0-9]{24}$
    Limit:
      name: limit
      in: query
      description: Records per page (1-1000). Default 15.
      schema:
        type: integer
        minimum: 1
        maximum: 1000
        default: 15
    Expand:
      name: expand
      in: query
      description: Include related objects, e.g. expand=account or expand=variants:10.
      schema:
        type: string
    Sort:
      name: sort
      in: query
      description: Sort expression, e.g. "name asc" or "date_created desc".
      schema:
        type: string
    Fields:
      name: fields
      in: query
      description: Comma-separated list of fields to return.
      schema:
        type: string
    Page:
      name: page
      in: query
      description: Result page number, 1-indexed.
      schema:
        type: integer
        minimum: 1
        default: 1
    Where:
      name: where
      in: query
      description: MongoDB-style filter object. Supports operators $eq, $ne, $gt, $gte, $lt, $lte, $in, $nin, $regex, $type, $exists, $and, $or, $nor, $all, $elemMatch, $size.
      schema:
        type: object
    Search_2:
      name: search
      in: query
      schema:
        type: string
    Limit_2:
      name: limit
      in: query
      schema:
        type: integer
        minimum: 1
        maximum: 100
        default: 15
    Sort_2:
      name: sort
      in: query
      schema:
        type: string
    Category:
      name: category
      in: query
      description: Filter by category ID or slug.
      schema:
        type: string
    Expand_2:
      name: expand
      in: query
      schema:
        type: string
    Page_2:
      name: page
      in: query
      schema:
        type: integer
        minimum: 1
        default: 1
  securitySchemes:
    SwellStoreId:
      type: apiKey
      in: header
      name: X-Store-Id
      description: Your Swell store ID, found in the Developer section of the dashboard.
    SwellSecretKey:
      type: apiKey
      in: header
      name: Authorization
      description: 'Secret API key prefixed with `sk_`. Sent as `Authorization: Basic <base64(store-id:secret-key)>` or equivalent custom header by official libraries.'
    SwellPublicKey:
      type: apiKey
      in: header
      name: Authorization
      description: 'Public storefront key, prefixed with `pk_`. Pass as `Authorization: pk_...`.'
x-refined-from:
- swell-backend-api-openapi.yml
- swell-frontend-api-openapi.yml