API Access
Integrate RepeatPosts into your applications with our REST API.
Getting an API Key
- Go to your Team Settings > API Keys.
- Click Create API Key.
- Give the key a descriptive name (e.g. “Production Server”).
- Copy the key immediately — it won't be shown again.
There are two types of API keys:
rp_live_ Production Keys
Deduct credits from your plan. Use these in production environments.
rp_test_ Test Keys
Do not deduct credits. Use these for development and testing.
Authentication
Include your API key in the X-API-Key header on every request:
curl -X POST https://api.repeatposts.com/v1/generate \
-H "X-API-Key: rp_live_your_key_here" \
-H "Content-Type: application/json" \
-d '{"templateGroupId": "...", "inputData": {"title": "Hello"}}'
Never expose your API key in client-side code. Keep keys server-side and use environment variables for storage.
Available Endpoints
| Method | Endpoint | Description |
|---|---|---|
| POST | /v1/generate |
Generate branded images from a template |
| GET | /v1/generate/{id} |
Retrieve a previous generation and its images |
| GET | /v1/templates |
List available templates and their fields |
| GET | /v1/brandkits |
List your team's brand kits |
| GET | /v1/credits |
Check your remaining credit balance |
For complete endpoint reference, request/response schemas, and code examples, visit the API Documentation page in your team settings.
Rate Limiting
API requests are rate-limited to ensure fair usage. Rate limit headers are included in every response:
X-RateLimit-Limit: 60
X-RateLimit-Remaining: 58
X-RateLimit-Reset: 1706886400
If you exceed the limit, you'll receive a 429 Too Many Requests response. Wait for the reset window and retry.
Rate limits vary by plan. Contact support if you need higher limits for your integration.
Plan Requirements
API access is available on Agency and Enterprise plans.
- Essentials and Growth plans do not include API access.
- Upgrade to Agency or Enterprise to enable API key creation and use.
- Visit the Pricing page for plan comparison and pricing details.
Frequently Asked Questions
429 Too Many Requests response. Wait for the reset window indicated in the X-RateLimit-Reset header, then retry your request. Consider implementing exponential backoff in your integration.rp_test_) do not deduct credits and should only be used for development and testing. Use production keys (rp_live_) for live environments to ensure proper credit tracking and usage reporting.