Swell Account API

Authenticated customer account operations.

Operations 10

GET /api/account Retrieve Current Account #
PUT /api/account Update Current Account #
POST /api/account Create Account #
GET /api/account/addresses List Account Addresses #
POST /api/account/addresses Add Account Address #
PUT /api/account/addresses/{id} Update Account Address #
DELETE /api/account/addresses/{id} Delete Account Address #
GET /api/account/cards List Saved Cards #
POST /api/account/cards Tokenize Saved Card #
DELETE /api/account/cards/{id} Remove Saved Card #

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-account-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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. See our Privacy Policy and Terms.

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

OpenAPI Specification

swell-io-account-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Swell Frontend Account API
  version: 2025-01
  description: Swell Frontend API — the client-safe, public-key-authenticated REST surface used from storefronts, single-page apps, and headless commerce experiences.
  contact:
    name: Swell Developer Support
    url: https://developers.swell.is/frontend-api/introduction
  license:
    name: API Profile — API Evangelist
    url: https://apievangelist.com
servers:
- url: https://{storeId}.swell.store
  description: Per-store Frontend API endpoint
  variables:
    storeId:
      default: my-store
      description: Your Swell store ID (subdomain).
security:
- SwellPublicKey: []
tags:
- name: Account
  description: Authenticated customer account operations.
paths:
  /api/account:
    get:
      tags:
      - Account
      summary: Retrieve Current Account
      operationId: frontendGetAccount
      responses:
        '200':
          description: Current authenticated account.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Account'
    put:
      tags:
      - Account
      summary: Update Current Account
      operationId: frontendUpdateAccount
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Account'
      responses:
        '200':
          description: Updated.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Account'
    post:
      tags:
      - Account
      summary: Create Account
      operationId: frontendCreateAccount
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Account'
      responses:
        '201':
          description: Account created.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Account'
  /api/account/addresses:
    get:
      tags:
      - Account
      summary: List Account Addresses
      operationId: frontendListAccountAddresses
      responses:
        '200':
          description: Addresses.
    post:
      tags:
      - Account
      summary: Add Account Address
      operationId: frontendCreateAccountAddress
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
      responses:
        '201':
          description: Created.
  /api/account/addresses/{id}:
    parameters:
    - name: id
      in: path
      required: true
      schema:
        type: string
    put:
      tags:
      - Account
      summary: Update Account Address
      operationId: frontendUpdateAccountAddress
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
      responses:
        '200':
          description: Updated.
    delete:
      tags:
      - Account
      summary: Delete Account Address
      operationId: frontendDeleteAccountAddress
      responses:
        '200':
          description: Deleted.
  /api/account/cards:
    get:
      tags:
      - Account
      summary: List Saved Cards
      operationId: frontendListAccountCards
      responses:
        '200':
          description: Saved cards.
    post:
      tags:
      - Account
      summary: Tokenize Saved Card
      operationId: frontendCreateAccountCard
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
      responses:
        '201':
          description: Created.
  /api/account/cards/{id}:
    parameters:
    - name: id
      in: path
      required: true
      schema:
        type: string
    delete:
      tags:
      - Account
      summary: Remove Saved Card
      operationId: frontendDeleteAccountCard
      responses:
        '200':
          description: Removed.
components:
  schemas:
    Money:
      type: number
      format: float
    Account:
      type: object
      properties:
        id:
          type: string
        email:
          type: string
          format: email
        first_name:
          type: string
        last_name:
          type: string
        phone:
          type: string
        currency:
          type: string
        balance:
          $ref: '#/components/schemas/Money'
  securitySchemes:
    SwellPublicKey:
      type: apiKey
      in: header
      name: Authorization
      description: 'Public storefront key, prefixed with `pk_`. Pass as `Authorization: pk_...`.'