API Reference
Build property management features into your application using the RentPager REST API.
Base URL
https://rentpager.com/api/aiAuthentication
The RentPager API uses OAuth 2.0 for authentication. Your app must request authorization from users before accessing their RentPager data.
1. Register Your Application
First, create an OAuth application in your RentPager dashboard:
- Go to Settings → Developer → OAuth Apps
- Click "Create New OAuth App"
- Provide your app name, redirect URI, and description
- Save your Client ID and Client Secret
2. Authorization Flow
Implement the standard OAuth 2.0 authorization code flow:
Redirect users to the authorization URL:
GET https://rentpager.com/oauth/authorize
?client_id=YOUR_CLIENT_ID
&redirect_uri=YOUR_REDIRECT_URI
&response_type=code
&scope=read:properties read:payments write:maintenance
&state=random_state_stringOAuth 2.0 Scopes
Request only the permissions your app needs. Users can see exactly what your app can access.
read:propertiesView properties and units
read:rentersView tenant information
read:paymentsView payment history and status
read:maintenanceView maintenance requests
write:maintenanceCreate and update maintenance requests
write:messagesSend messages to tenants
read:analyticsAccess analytics and reports
Properties
/api/ai/propertiesList all properties for the authenticated user.
Response
{
"properties": [
{
"id": "prop_123",
"address": "123 Main St",
"city": "San Francisco",
"state": "CA",
"units": 2,
"total_value": 1200000,
"occupancy_rate": 100
}
]
}/api/ai/properties/:idGet detailed information about a specific property.
Renters
/api/ai/rentersList all tenants/renters.
Response
{
"renters": [
{
"id": "rent_123",
"name": "John Doe",
"property_id": "prop_123",
"lease_start": "2024-01-01",
"lease_end": "2025-01-01",
"rent_amount": 2400,
"payment_status": "current"
}
]
}/api/ai/renters/overdueGet tenants with overdue payments.
Maintenance
/api/ai/maintenanceList maintenance requests.
/api/ai/maintenanceCreate a new maintenance request.
Request Body
{
"property_id": "prop_123",
"title": "Broken AC",
"description": "AC unit not cooling",
"priority": "high",
"category": "hvac"
}Rate Limits
API requests are rate limited to ensure fair usage and system stability.
Rate limit headers are included in all API responses:
X-RateLimit-Limit: 100
X-RateLimit-Remaining: 95
X-RateLimit-Reset: 1640995200Error Codes
400Bad Request
Invalid request parameters
401Unauthorized
Missing or invalid authentication token
403Forbidden
Insufficient permissions
404Not Found
Resource not found
429Too Many Requests
Rate limit exceeded
500Internal Server Error
Something went wrong on our end
Ready to Start Building?
Create an OAuth application in your dashboard to get your Client ID and Client Secret.
Go to Dashboard