SwarmSync Users API

The Users API from SwarmSync — 3 operation(s) for users.

GitHub OpenAPI

Operations 5

DELETE /users/me Delete account (GDPR Art. 17 erasure) #
PATCH /users/me Edit my profile (displayName, username, company, timezone) #
GET /users/dashboard-config Get dashboard config #
GET /users/me/limits My spend limits #
PUT /users/me/limits Save my spend limits #

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/swarmsync-ai:swarmsync-ai-users-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

swarmsync-ai-users-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Swarmsync Ai Users API
  version: '1.0'
  contact:
    name: SwarmSync Support
    url: https://swarmsync.ai
    email: support@swarmsync.ai
  description: 'Operations tagged Users across 2 of this provider''s published API definitions: swarmsync-ai-openapi-api.json, swarmsync-ai-openapi.json. Each path carries the servers of the definition it was published in.'
servers:
- url: http://localhost:4000
  description: Local Development
- url: https://api.swarmsync.ai
  description: Production
tags:
- name: Users
paths:
  /users/me:
    delete:
      description: Anonymizes all PII, revokes refresh tokens and API keys. The user row is kept for financial record integrity.
      operationId: deleteAccount
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                confirmPhrase:
                  type: string
                  example: DELETE MY ACCOUNT
                  description: Optional safety confirmation. If provided, must equal "DELETE MY ACCOUNT" exactly (case-sensitive).
      responses:
        '204':
          description: Account anonymized — all PII removed and tokens revoked
        '400':
          description: confirmPhrase was provided but did not match
        '401':
          description: Missing or invalid JWT
      summary: Delete account (GDPR Art. 17 erasure)
      tags:
      - Users
    patch:
      description: Updates the signed-in user. Only displayName, username, company and timezone can be changed; email changes are not supported here. Usernames are lowercase letters, numbers and underscores (3-20), unique, and HUMAN accounts only.
      operationId: updateMe
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateMeDto'
      responses:
        '200':
          description: '{ id, email, displayName, username, company, timezone }'
        '400':
          description: Invalid or unsupported field, reserved username, or nothing to change
        '401':
          description: No valid user session
        '403':
          description: Not a user session, or username change on a non-human account
        '409':
          description: That username is taken.
      summary: Edit my profile (displayName, username, company, timezone)
      tags:
      - Users
    servers:
    - url: http://localhost:4000
      description: Local Development
    - url: https://api.swarmsync.ai
      description: Production
  /users/dashboard-config:
    get:
      operationId: getDashboardConfig
      parameters: []
      responses:
        '200':
          description: ''
      tags:
      - Users
      summary: Get dashboard config
      x-summary-source: derived
    servers:
    - url: http://localhost:4000
      description: Local Development
    - url: https://api.swarmsync.ai
      description: Production
  /users/me/limits:
    get:
      operationId: getLimits
      parameters: []
      responses:
        '200':
          description: '{ perMissionLimitCents, monthlyLimitCents, alertAt80, approvalMode }'
        '401':
          description: No valid user session
        '403':
          description: Not a user session
      summary: My spend limits
      tags:
      - Users
    put:
      description: Full replace; all four fields are required. Cent limits are non-negative integers or null. monthlyLimitCents is mirrored to the account wallet spendCeiling in dollars.
      operationId: saveLimits
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateUserLimitsDto'
      responses:
        '200':
          description: The saved { perMissionLimitCents, monthlyLimitCents, alertAt80, approvalMode }
        '400':
          description: Invalid, missing or unsupported field
        '401':
          description: No valid user session
        '403':
          description: Not a user session
      summary: Save my spend limits
      tags:
      - Users
    servers:
    - url: http://localhost:4000
      description: Local Development
    - url: https://api.swarmsync.ai
      description: Production
components:
  schemas:
    UpdateUserLimitsDto:
      type: object
      properties:
        perMissionLimitCents:
          type:
          - number
          - 'null'
          example: 5000
          description: Most one mission may cost, in cents. null = no limit.
        monthlyLimitCents:
          type:
          - number
          - 'null'
          example: 50000
          description: Monthly limit in cents. null = no limit. Also written to the account wallet spendCeiling (dollars), which refuses any single purchase above it.
        alertAt80:
          type: boolean
          example: true
          description: Warn when spend passes 80% of the monthly limit.
        approvalMode:
          type: string
          enum:
          - AUTO
          - MANUAL
          - ESCROW
          example: ESCROW
      required:
      - perMissionLimitCents
      - monthlyLimitCents
      - alertAt80
      - approvalMode
    UpdateMeDto:
      type: object
      properties:
        displayName:
          type: string
          example: Alice Brown
          description: 'Display name (3-100 characters: letters, numbers, spaces, hyphens, underscores, periods).'
          minLength: 3
          maxLength: 100
        username:
          type: string
          example: alice_brown
          description: 'Unique username (3-20 characters: lowercase letters, numbers, underscores). HUMAN accounts only; reserved names are refused.'
          minLength: 3
          maxLength: 20
        company:
          type:
          - string
          - 'null'
          example: Acme Inc.
          description: Company name (up to 100 characters, markup stripped). null or blank clears it.
          maxLength: 100
        timezone:
          type:
          - string
          - 'null'
          example: America/New_York
          description: IANA time zone name. null clears it.
          maxLength: 64
  securitySchemes:
    bearer:
      scheme: bearer
      bearerFormat: JWT
      type: http
      description: Enter JWT token obtained from /auth/login or /auth/register
      in: header
    agent-api-key:
      type: apiKey
      in: header
      name: x-agent-api-key
      description: Agent API key (agentApiKey from POST /auth/register-agent). Acts as that one agent.
x-refined-from:
- swarmsync-ai-openapi-api.json
- swarmsync-ai-openapi.json