Skip to main content
The Swarms Marketplace provides a comprehensive set of APIs for managing agents, prompts, token launches, and fee claims. This page provides a quick reference to help you find the right endpoint for your needs.

Base URLs

ServiceBase URL
Marketplace APIhttps://swarms.world
Swarms APIhttps://api.swarms.world

Marketplace API Endpoints at a Glance

APIEndpointMethodAuth RequiredDescription
Agents/api/add-agentPOSTYesCreate a new agent listing
Agents/api/edit-agentPOSTYesUpdate an existing agent
Agents/api/query-agentsPOSTNoSearch and filter agents
Prompts/api/add-promptPOSTYesCreate a new prompt
Prompts/api/edit-promptPOSTYesUpdate an existing prompt
Prompts/api/query-promptsPOSTNoSearch and filter prompts
Token Launch/api/token/launchPOSTYesCreate agent and launch token on Solana
Claim Fees/api/product/claimfeesPOSTNoClaim accumulated creator fees

Authentication

Most endpoints require authentication via API key in the Authorization header as Bearer YOUR_API_KEY. Get your API key at swarms.world/platform/api-keys.

Marketplace API Categories

Agents API

Manage AI agents in the marketplace - create, update, and discover agents programmatically.
EndpointMethodAuthPurpose
/api/add-agentPOSTRequiredCreate a new agent with code, description, pricing, and metadata
/api/edit-agentPOSTRequiredUpdate agent details (requires agent id)
/api/query-agentsPOSTOptionalSearch agents by keyword, category, price, and more
Key Features:
  • Support for free and paid agents
  • Automatic content validation and quality assessment
  • Blockchain tokenization support
  • Rate limit: 500 agents/day per user

Full Documentation

View complete Agents API reference with examples

Prompts API

Manage AI prompts in the marketplace - create reusable prompt templates and discover existing prompts.
EndpointMethodAuthPurpose
/api/add-promptPOSTRequiredCreate a new prompt with use cases and metadata
/api/edit-promptPOSTRequiredUpdate prompt details (requires prompt id)
/api/query-promptsPOSTOptionalSearch prompts by keyword, category, price, and more
Key Features:
  • Use prompts directly with agents via marketplace_prompt_id
  • Automatic USD to SOL price conversion
  • Content safety and quality validation
  • Rate limit: 500 prompts/day per user

Full Documentation

View complete Prompts API reference with examples

Token Launch API

Create a minimal agent listing and launch an associated token on Solana in a single request.
EndpointMethodAuthPurpose
/api/token/launchPOSTRequiredCreate agent + launch Solana token (~0.04 SOL cost)
Key Features:
  • Single request for agent creation and tokenization
  • Supports JSON and multipart/form-data (for image upload)
  • Multiple private key formats (JSON array, base64, base58)
  • Returns token address and pool address

Full Documentation

View complete Token Launch API reference with examples

Claim Fees API

Claim accumulated creator fees for tokenized agents on Solana.
EndpointMethodAuthPurpose
/api/product/claimfeesPOSTNo*Claim fees (requires wallet private key)
*Authentication is done via wallet private key, not API key. Key Features:
  • Claim accumulated SOL fees
  • Returns transaction signature and amount claimed
  • Detailed fee breakdown (unclaimed, claimed, total)
  • Private key used only in memory, never stored

Full Documentation

View complete Claim Fees API reference with examples

HTTP Status Codes

CodeMeaning
200Success
400Bad Request - validation errors or invalid parameters
401Unauthorized - missing or invalid API key
403Forbidden - content validation failed
404Not Found
405Method Not Allowed
429Too Many Requests - rate limit exceeded
500Internal Server Error

Rate Limits

ResourceLimitReset
Paid Agents500/dayMidnight UTC
Paid Prompts500/dayMidnight UTC
Free Content500/dayMidnight UTC
When rate limited, you’ll receive a 429 response with details about current usage, limits, and reset time.

Agents API

Complete reference for agent management

Prompts API

Complete reference for prompt management

Token Launch API

Launch tokenized agents on Solana

Claim Fees API

Claim your creator fees

Examples

Real-world integration examples

Creator Fees

Understand the fee structure