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
/api/v1/projectsCreate a new project
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"
}'{
"id": "proj_123",
"name": "Wedding Planning",
"status": "active",
"createdAt": "2024-01-15T10:00:00Z"
}/api/v1/projects/{id}Get project details
curl https://api.peerx.ai/v1/projects/proj_123 \
-H "Authorization: Bearer YOUR_API_KEY"Code Examples
Create a Project
javascriptInitialize 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
pythonSame 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
Official SDK for Node.js and browser environments
npm install @peerx/sdkFeatures:
- TypeScript support
- Promise-based API
- Browser & Node.js
- Auto-retry logic
Python SDK
Python SDK for server-side integrations
pip install peerx-sdkFeatures:
- 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 referenceStart Building Today
Get your API key and start integrating PeerX into your applications.