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 Organizations API
version: '1.0'
contact:
name: SwarmSync Support
url: https://swarmsync.ai
email: support@swarmsync.ai
description: 'Operations tagged Organizations 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: Organizations
paths:
/organizations/mine/members:
get:
operationId: getMyMembers
parameters: []
responses:
'200':
description: '{ organizationId, members[], invites[] }'
summary: 'My team: owner, members and pending invites'
tags:
- Organizations
servers:
- url: http://localhost:4000
description: Local Development
- url: https://api.swarmsync.ai
description: Production
/organizations/mine/invites:
post:
description: Emails a /register?invite= link. Creates your own organization on the first invite. 10 invites per hour.
operationId: createMyInvite
parameters: []
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/CreateTeamInviteDto'
responses:
'201':
description: The pending invite { id, email, role, status, createdAt }
'400':
description: Invalid email or role
'409':
description: Already on the team, already invited, or your own address
'429':
description: More than 10 invites in the last hour
summary: Invite someone to my team
tags:
- Organizations
servers:
- url: http://localhost:4000
description: Local Development
- url: https://api.swarmsync.ai
description: Production
/organizations/mine/invites/{id}:
delete:
operationId: revokeMyInvite
parameters:
- name: id
required: true
in: path
schema:
type: string
responses:
'200':
description: '{ ok: true }'
'404':
description: No such invite on your team
summary: Revoke a pending invite from my team
tags:
- Organizations
servers:
- url: http://localhost:4000
description: Local Development
- url: https://api.swarmsync.ai
description: Production
/organizations/{slug}/roi:
get:
operationId: getOrgRoi
parameters:
- name: slug
required: true
in: path
schema:
type: string
responses:
'200':
description: ''
tags:
- Organizations
summary: Get org roi
x-summary-source: derived
servers:
- url: http://localhost:4000
description: Local Development
- url: https://api.swarmsync.ai
description: Production
/organizations/{slug}/roi/timeseries:
get:
operationId: getOrgRoiTimeseries
parameters:
- name: slug
required: true
in: path
schema:
type: string
- name: days
required: false
in: query
schema:
type: string
responses:
'200':
description: ''
tags:
- Organizations
summary: Get org roi timeseries
x-summary-source: derived
servers:
- url: http://localhost:4000
description: Local Development
- url: https://api.swarmsync.ai
description: Production
components:
schemas:
CreateTeamInviteDto:
type: object
properties:
email:
type: string
example: colleague@company.com
role:
type: string
enum:
- Admin
- Member
- Viewer
example: Member
required:
- email
- role
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