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.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:Generate a Client
Import into API Tools
Postman
Postman
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.Insomnia
Insomnia
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.
Bruno
Bruno
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.Local API explorer
Local API explorer
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.
Related Resources
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