ReplyAgent API Documentation
Welcome to the ReplyAgent API documentation. This API allows you to integrate ReplyAgent's comment management capabilities into your own applications.
Base URL
https://www.replyagent.ai
Authentication
All API requests require authentication using an API key. Include your API key in the Authorization header:
Authorization: Bearer sk_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Getting Your API Key
- Log in to your account at the web dashboard
- Navigate to API Key page in the sidebar
- Click Generate API Key
- Store the key securely - it will only be shown once
Finding Your Product ID
Your Product ID is required for all API calls. To find it:
- Go to your Products page in the dashboard
- Click on the product you want to use
- The Product ID is in the URL:
/dashboard/products/{productId}/setup
For example, if your URL is:
https://www.replyagent.ai/dashboard/products/cm5abc123xyz/setup
Your Product ID is cm5abc123xyz.
Quick Start
Step 1: Import a Reddit post/comment
This creates a comment in Preview state (AI generates a reply, or you provide your own):
bash
curl -X POST https://www.replyagent.ai/api/products/prod_123/ai-comments/manual-import \
-H "Authorization: Bearer sk_your_api_key" \
-H "Content-Type: application/json" \
-d '{
"imports": [
{"url": "https://www.reddit.com/r/SaaS/comments/abc123/best_tools/"}
]
}'
Step 2: Approve for posting
Use the commentId from Step 1 to publish:
bash
curl -X POST https://www.replyagent.ai/api/products/prod_123/ai-comments/cm_abc123/approve \
-H "Authorization: Bearer sk_your_api_key" \
-H "Content-Type: application/json" \
-d '{"scheduleType": "immediate"}'
Available Endpoints
- Import Comment - Import Reddit posts/comments and create preview comments
- Approve Comment - Approve a preview comment for posting
Rate Limits
- 100 requests per minute per API key
- Contact support for higher limits
Support
For API support, contact us at [email protected]