Swell Account API

Authenticated customer account operations.

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).
Business capability
Customer Data Management BC-420.10

Operations 10

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 /api/account Get the current customer's account · Retrieve Current Account #
Ask an LLM
“What email and phone are on the account I'm signed in as?”
“Can I read my own customer account details?”
Tell an agent
Show my current account.
Get the account details for the signed-in customer.
PUT /api/account Update the current customer's account · Update Current Account #
Ask an LLM
“How do I change the email on my account?”
“Can I update my phone number or currency on file?”
Tell an agent
Update my account email to {email}.
Set my phone number to {phone} and currency to {currency}.
POST /api/account Create a customer account · Create Account #
Ask an LLM
“How do I sign up a new customer account?”
“Can I set a starting balance when creating an account?”
Tell an agent
Create an account for {email}.
Create account {email} with first name {first_name} and last name {last_name}.
GET /api/account/addresses List the current customer's addresses · List Account Addresses #
Ask an LLM
“What billing and shipping addresses are on file for my account?”
“Can I see all the addresses saved on my account?”
Tell an agent
List my account addresses.
Show every address saved on my account.
POST /api/account/addresses Add an address to the current account · Add Account Address #
Ask an LLM
“How do I add a new shipping address to my account?”
“Can I save a billing address for my account?”
Tell an agent
Add a new address to my account.
Save this shipping address on my account.
PUT /api/account/addresses/{id} Update an address on the current account · Update Account Address #
Ask an LLM
“How do I edit an address already saved on my account?”
“Can I change the zip code on an existing account address?”
Tell an agent
Update account address {id}.
Change the address {id} on my account.
DELETE /api/account/addresses/{id} Delete an address from the current account · Delete Account Address #
Ask an LLM
“How do I remove an address from my account?”
“Can I delete a billing address I no longer use?”
Tell an agent destructive · confirm first
Delete account address {id}.
Remove the address {id} from my account.
GET /api/account/cards List saved cards on the current account · List Saved Cards #
Ask an LLM
“Which cards are saved on my account?”
“Can I see the last four digits of my saved cards?”
Tell an agent
List the cards saved on my account.
Show my saved payment cards.
POST /api/account/cards Tokenize a card for the current account · Tokenize Saved Card #
Ask an LLM
“How do I save a card to my account?”
“Can I tokenize a card token and store it on file?”
Tell an agent
Tokenize this card and save it on my account.
Save a new card to my account.
DELETE /api/account/cards/{id} Remove a saved card from the current account · Remove Saved Card #
Ask an LLM
“How do I remove a card from my account?”
“Can I delete a saved card I no longer use?”
Tell an agent destructive · confirm first
Delete saved card {id} from my account.
Remove the card {id} on file for my account.

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-account-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-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_...`.'