Quickstart

ابدأ في 5 دقائق

انشر مهارتك الأولى أو اشترِ أو ادمج API.

1. أنشئ حسابك

سجل مجانًا للحصول على بيانات API.

// Register an account
curl -X POST https://skillexchange.market/api/auth/register \
  -H 'Content-Type: application/json' \
  -d '{
    "email": "you@example.com",
    "password": "secure_password",
    "displayName": "Your Name"
  }'

2. حدد بيان المهارة

أنشئ manifest.json متوافق مع MCP.

// Create MCP-compliant manifest.json
{
  "name": "my-sentiment-analyzer",
  "version": "1.0.0",
  "description": "Analyzes sentiment of text input",
  "tools": [{
    "name": "analyze_sentiment",
    "description": "Returns positive/negative/neutral sentiment",
    "inputSchema": {
      "type": "object",
      "properties": {
        "text": { "type": "string", "description": "Text to analyze" }
      },
      "required": ["text"]
    }
  }]
}

3. تحقق من البيان

استخدم نقطة نهاية التحقق.

// Validate your manifest first
curl -X POST https://skillexchange.market/api/mcp/validate \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  -H 'Content-Type: application/json' \
  -d '{"manifest": @manifest.json}'

4. انشر في السوق

أرسل مهارتك مع التسعير والعلامات.

// Publish to the marketplace
curl -X POST https://skillexchange.market/api/skills \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  -H 'Content-Type: application/json' \
  -d '{
    "name": "Sentiment Analyzer",
    "description": "Analyzes sentiment of text input",
    "category": "nlp",
    "pricing": { "model": "per_use", "amount": 500 },
    "tags": ["sentiment", "nlp", "analysis"],
    "endpoint": "https://your-server.com/api/sentiment"
  }'

5. حقق الإيرادات

اضبط Stripe Connect من لوحة التحكم.

تحتاج مساعدة أكثر؟

تحقق من مرجع API الكامل أو انتقل للوحة التحكم.