Sweep Account Selection API

The Account Selection API from Sweep — 2 operation(s) for account selection.

Operations 3

GET /account-selection/accounts Get all accounts associated with the authenticated user's sub. This endpoint is used during account selection and does not require an account context to be established yet. #
POST /account-selection/accounts Create a new Auth0 organization for the authenticated user. This will create an Auth0 organization and associate the user as a member. Returns the Auth0 organization ID. #
DELETE /account-selection/accounts/{accountId} Deactivate an account (soft delete). Only allows deactivation if the account has exactly one user. Throws BadRequestException if the account has multiple users. #

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/sweep-account-selection-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 email required.

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

OpenAPI Specification

sweep-account-selection-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Sweep Account Selection API
  description: This is a publicly available Sweep API.
  version: '0.1'
  contact: {}
servers:
- url: https://api.sweep.io
  description: Sweep production API — the host this document was harvested from (GET /api-json); /health responds here
tags:
- name: Account Selection
paths:
  /account-selection/accounts:
    get:
      operationId: AccountSelectionController_getUserAccounts
      parameters: []
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
      security:
      - bearer: []
      summary: 'Get all accounts associated with the authenticated user''s sub.

        This endpoint is used during account selection and does not require

        an account context to be established yet.'
      tags:
      - Account Selection
    post:
      operationId: AccountSelectionController_createAccount
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateAccountDto'
      responses:
        '201':
          description: ''
      security:
      - bearer: []
      summary: 'Create a new Auth0 organization for the authenticated user.

        This will create an Auth0 organization and associate the user as a member.

        Returns the Auth0 organization ID.'
      tags:
      - Account Selection
  /account-selection/accounts/{accountId}:
    delete:
      operationId: AccountSelectionController_deactivateAccount
      parameters:
      - name: accountId
        required: true
        in: path
        schema:
          type: string
      responses:
        '200':
          description: ''
      security:
      - bearer: []
      summary: 'Deactivate an account (soft delete).

        Only allows deactivation if the account has exactly one user.

        Throws BadRequestException if the account has multiple users.'
      tags:
      - Account Selection
components:
  schemas:
    CreateAccountDto:
      type: object
      properties:
        name:
          type: string
          maxLength: 100
      required:
      - name
  securitySchemes:
    bearer:
      scheme: bearer
      bearerFormat: JWT
      type: http