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.
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