Welcome to the EasyMarry API documentation. This guide provides comprehensive information for developers integrating with our matrimonial platform.
Getting Started
Base URL
https://api.easymarry.com/v1
Authentication
All API requests require authentication using API keys:
curl -H "Authorization: Bearer YOUR_API_KEY" \
https://api.easymarry.com/v1/profiles
Rate Limiting
- Free tier: 1,000 requests/day
- Pro tier: 10,000 requests/day
- Enterprise: Custom limits
Core Endpoints
User Profiles
GET /profiles
Retrieve user profiles with optional filters.
Query Parameters:
age_min(integer): Minimum ageage_max(integer): Maximum agereligion(string): Filter by religionlocation(string): Filter by locationpage(integer): Page numberlimit(integer): Results per page (max 100)
Response:
{
"data": [
{
"id": "123",
"name": "John Doe",
"age": 28,
"religion": "Hindu",
"location": "Mumbai",
"verified": true
}
],
"pagination": {
"page": 1,
"limit": 20,
"total": 150
}
}
POST /profiles
Create a new user profile.
Request Body:
{
"name": "Jane Smith",
"age": 26,
"religion": "Christian",
"location": "Delhi",
"bio": "Software engineer...",
"preferences": {
"age_range": [25, 32],
"religion": ["Christian", "Catholic"]
}
}
Matching Algorithm
POST /matches
Get compatible matches for a user.
Request Body:
{
"user_id": "123",
"filters": {
"compatibility_score_min": 70,
"max_results": 20
}
}
Messaging
POST /messages
Send a message to another user.
Request Body:
{
"sender_id": "123",
"recipient_id": "456",
"message": "Hello, I'd like to connect..."
}
Webhooks
Configure webhooks to receive real-time updates:
Events:
profile.createdmatch.foundmessage.receivedprofile.verified
Webhook Payload:
{
"event": "match.found",
"timestamp": "2023-10-18T10:30:00Z",
"data": {
"user_id": "123",
"match_id": "456",
"compatibility_score": 85
}
}
Error Handling
Standard HTTP status codes:
200- Success400- Bad Request401- Unauthorized403- Forbidden404- Not Found429- Rate Limit Exceeded500- Server Error
SDKs
Official SDKs available for:
- JavaScript/Node.js
- Python
- Java
- PHP
- Ruby
Support
For technical support, contact: api-support@easymarry.com
#API#Documentation#EasyMarry#Integration