Skip to main content
The Swarms Marketplace publishes a machine-readable OpenAPI schema describing its public HTTP API. Point a code generator, an API client, or an agent at one URL instead of hand-writing request models. Schema URL: https://swarms.world/openapi.json

At a Glance

This is the Marketplace schema. The Swarms API (agent and swarm execution) publishes a separate schema at https://api.swarms.world/openapi.json, which powers the API Reference tab of these docs. The two are independent - different base URLs, different endpoints.

Fetching the Schema

The schema endpoint is public. No API key is required to download it.
If a scripted fetch returns an HTML page titled Vercel Security Checkpoint with a 429 status instead of JSON, your client was flagged by bot protection. Open the URL in a browser to download the file, or retry from a different network, then commit the saved copy to your repo and generate from the local file.

What the Schema Covers

The schema describes the marketplace endpoints documented across this section: A fuller list, including read endpoints such as /api/get-agents/[id]/full and /api/get-tokenized-products, is in User Marketplace Endpoints.
The live schema is the source of truth. If it lists an operation this table does not, prefer the schema - it tracks the deployed API. Enumerate the current surface with the fetch snippets above.

Authentication

Marketplace endpoints authenticate with a bearer token:
Generated clients expose this as a bearer security scheme - set the token once when constructing the client rather than on each call. Get a key at swarms.world/platform/api-keys.
Never commit an API key into a generated client’s config. Read it from an environment variable such as SWARMS_API_KEY.

Generate a Client

Generate from a committed local copy of the schema rather than the live URL in CI. Your build then stays reproducible, and a schema change shows up as a reviewable diff instead of a surprise build failure.

Import into API Tools

Import → Link, paste https://swarms.world/openapi.json, and Postman builds a collection with every endpoint and example body. Add a collection-level Bearer Token auth with your API key so all requests inherit it.
Create → Import From → URL, paste the schema URL. Insomnia generates a request per operation. Set the bearer token in an environment variable so it is not stored in the exported workspace.
Use bruno import openapi swarms-marketplace-openapi.json against a downloaded copy - Bruno collections are plain files, so the imported collection can live in your repo alongside your integration code.
Render a browsable reference from the schema without deploying anything:

Validate the Schema

Useful when you have pinned a local copy and want to confirm it still parses before generating from it:

Use the Schema with Agents

An OpenAPI document is a tool definition an agent can read directly. Two practical paths:

Feed the schema to an agent

Pass the fetched schema (or a filtered subset of its paths) into your agent’s tool definitions so it can call marketplace endpoints itself. Trim to the operations the agent actually needs - a full spec wastes context.

Use the hosted MCP server

For agent and swarm execution, the hosted MCP server at mcp.swarms.world already exposes the Swarms API as MCP tools - no schema parsing needed.

Keeping in Sync

The marketplace API evolves. To avoid silent drift:
1

Pin a copy

Commit the fetched schema to your repo and generate clients from that file.
2

Diff on a schedule

Re-fetch the live schema in CI and diff it against the pinned copy. A non-empty diff is a signal to review, not an automatic upgrade.
3

Regenerate deliberately

When you accept a change, regenerate the client and run your integration tests before shipping.

API Overview

Endpoint index, status codes, and rate limits

API Keys

Create and manage marketplace API keys

Agents API

Complete reference for agent management

Prompts API

Complete reference for prompt management

Token Launch API

Launch tokenized agents on Solana

Examples

Real-world marketplace integration examples