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 Test Runs API
version: '1.0'
contact:
name: SwarmSync Support
url: https://swarmsync.ai
email: support@swarmsync.ai
description: 'Operations tagged TestRuns 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: TestRuns
paths:
/api/v1/test-runs:
post:
operationId: startRun
parameters: []
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/StartTestRunDto'
responses:
'201':
description: ''
tags:
- TestRuns
summary: Start run
x-summary-source: derived
get:
operationId: listRuns
parameters:
- name: agentId
required: false
in: query
schema:
type: string
- name: suiteId
required: false
in: query
schema:
type: string
- name: status
required: false
in: query
schema:
type: string
- name: limit
required: false
in: query
schema:
type: string
- name: offset
required: false
in: query
schema:
type: string
responses:
'200':
description: ''
tags:
- TestRuns
summary: List runs
x-summary-source: derived
servers:
- url: http://localhost:4000
description: Local Development
- url: https://api.swarmsync.ai
description: Production
/api/v1/test-runs/{id}:
get:
operationId: getRun
parameters:
- name: id
required: true
in: path
schema:
type: string
responses:
'200':
description: ''
tags:
- TestRuns
summary: Get run
x-summary-source: derived
delete:
operationId: cancelRun
parameters:
- name: id
required: true
in: path
schema:
type: string
responses:
'200':
description: ''
tags:
- TestRuns
summary: Cancel run
x-summary-source: derived
servers:
- url: http://localhost:4000
description: Local Development
- url: https://api.swarmsync.ai
description: Production
components:
schemas:
StartTestRunDto:
type: object
properties:
agentId:
oneOf:
- type: string
- type: array
items:
type: string
description: Id of the agent to test (or a list of ids). The caller must be its creator, its own agent key, a service account of its organization or an admin (403 otherwise).
suiteId:
oneOf:
- type: string
- type: array
items:
type: string
description: Canonical suite id (or a list). An unknown suite id is a 400 before any run starts.
testIds:
description: Run only these test ids from the suite.
type: array
items:
type: string
required:
- agentId
- suiteId
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