✨ New: explore our growing library of AI agentsExplore Now
Developer Hub

Build with PeerX

Integrate AI-powered service agents into your applications with our powerful APIs, SDKs, and MCP protocol support.

// Initialize the PeerX client
import { PeerX } from '@peerx/sdk';

const peerx = new PeerX({
  apiKey: process.env.PEERX_API_KEY
});

// Create a new project
const project = await peerx.projects.create({
  name: 'Wedding Planning',
  agentId: 'wedding-planner',
  metadata: {
    date: '2024-06-15',
    budget: 50000
  }
});

// Start a conversation with the agent
const response = await peerx.chat.send({
  projectId: project.id,
  message: 'I need help planning a beach wedding'
});

console.log(response.message);

Developer-First Platform

RESTful API

Simple, well-documented REST API for seamless integration.

MCP Protocol

Model Context Protocol support for AI agent integration.

Enterprise Security

OAuth 2.0, API keys, and enterprise-grade security.

Global Infrastructure

Reliable global infrastructure with a worldwide edge network.

API Reference Preview

POST/api/v1/projects

Create a new project

Example Request
curl -X POST https://api.peerx.ai/v1/projects \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Wedding Planning",
    "agentId": "wedding-planner"
  }'
Example Response
{
  "id": "proj_123",
  "name": "Wedding Planning",
  "status": "active",
  "createdAt": "2024-01-15T10:00:00Z"
}
GET/api/v1/projects/{id}

Get project details

Example Request
curl https://api.peerx.ai/v1/projects/proj_123 \
  -H "Authorization: Bearer YOUR_API_KEY"

Code Examples

Create a Project

javascript

Initialize a new project with an AI agent

// Initialize the PeerX client
import { PeerX } from '@peerx/sdk';

const peerx = new PeerX({
  apiKey: process.env.PEERX_API_KEY
});

// Create a new project
const project = await peerx.projects.create({
  name: 'Wedding Planning',
  agentId: 'wedding-planner',
  metadata: {
    date: '2024-06-15',
    budget: 50000
  }
});

// Start a conversation with the agent
const response = await peerx.chat.send({
  projectId: project.id,
  message: 'I need help planning a beach wedding'
});

console.log(response.message);

Python Example

python

Same example in Python

from peerx import PeerX

peerx = PeerX(api_key=os.getenv('PEERX_API_KEY'))

project = peerx.projects.create(
    name='Wedding Planning',
    agent_id='wedding-planner'
)

Official SDKs

JavaScript SDK

JavaScript/TypeScriptv1.2.0

Official SDK for Node.js and browser environments

npm install @peerx/sdk
Features:
  • TypeScript support
  • Promise-based API
  • Browser & Node.js
  • Auto-retry logic

Python SDK

Pythonv1.1.5

Python SDK for server-side integrations

pip install peerx-sdk
Features:
  • Async support
  • Type hints
  • Error handling
  • Request validation

Changelog

No public releases yet

The PeerX API has not had a dated public release. Every version we ship will be listed here with its real release date — nothing is listed before it exists.

Browse the API reference

Start Building Today

Get your API key and start integrating PeerX into your applications.