Xyla APIs

Powerful AI bot integration APIs for seamless automation

v1.0.0
Email
Send emails via Resend.com
SMS
Send SMS via Twilio
Memory
Store and retrieve text memories
Fast
Optimized performance
Simple
Developer friendly APIs
API Documentation
Available endpoints for Xyla AI bot integration
POST
/api/sms/send

Send SMS

Send SMS messages using Twilio integration. Perfect for notifications, alerts, and verification codes.

Request Body

{
  "to": "+1234567890",
  "message": "Your SMS message content here"
}

Response

{
  "success": true,
  "message": "SMS sent successfully",
  "sid": "SM123456789abcdef",
  "status": "queued"
}

Example Usage

curl -X POST https://your-domain.com/api/sms/send \
  -H "Content-Type: application/json" \
  -d '{
    "to": "+1234567890",
    "message": "Hello from Xyla AI!"
  }'
POST
/api/email/send

Send Email

Send an email using Resend.com integration. Perfect for notifications, alerts, and automated communications.

Request Body

{
  "to": "recipient@example.com",
  "subject": "Your email subject",
  "email_body": "Your email content here",
  "template": 0  // Optional: 0 = Xyla template (default), 1 = Raw email
}

Memory API

POST
/api/memories

Save a new text memory

{
  "content": "Remember to buy groceries tomorrow"
}

• GET /api/memories - Get all memories or search

• PUT /api/memories/[id] - Update memory

• DELETE /api/memories/[id] - Delete memory

Reminder API

POST
/api/reminders

Create a new reminder

{
  "title": "Meeting with team",
  "description": "Discuss project updates", // Optional
  "reminder_date": "2024-01-15",
  "reminder_time": "14:30"
}

• GET /api/reminders - Get all reminders

• PUT /api/reminders/[id] - Update reminder

• DELETE /api/reminders/[id] - Delete reminder

Built by MOHAMED JOURFI & Aboubkerin Mohamed Salem