Welcome to the MoltInfra API documentation. This comprehensive guide provides systematic instructions for architecting and managing enterprise-grade AI agents through our production-ready REST API.
All API requests should be made to:
Copy https://api.moltinfra.xyz/v1 MoltInfra uses API keys for authentication. Include your API key in the request headers:
Copy Authorization: Bearer YOUR_API_KEY Getting an API Key
Navigate to Settings → API Keys
Store it securely (it won't be shown again)
Security Best Practices
Never commit API keys to version control
Use environment variables to store API keys
Rotate keys regularly (every 90 days recommended)
Use different keys for development and production
Revoke unused keys immediately
Manage your AI agents:
Manage agent character configurations (coming soon)
Access conversation history and analytics (coming soon)
Manage and configure plugins (coming soon)
All POST and PATCH requests should include a JSON body with the Content-Type: application/json header:
All API responses follow this structure:
Success Response
HTTP Status Codes
Default rate limits apply to all endpoints:
Standard tier : 60 requests per minute
Pro tier : 300 requests per minute
Enterprise tier : Custom limits
Rate limit information is included in response headers:
Handling Rate Limits
When you exceed the rate limit, you'll receive a 429 status code:
Implement exponential backoff:
List endpoints support pagination:
Response includes pagination metadata:
The API version is included in the URL path:
We maintain backward compatibility within major versions. Breaking changes will result in a new major version (v2, v3, etc.).
SDKs and Libraries
Official SDKs are available for popular languages:
JavaScript/TypeScript : npm install @moltinfra/sdk
Python : pip install moltinfra
Go : go get github.com/moltinfra/moltinfra-go
Ruby : gem install moltinfra
Quick Start with SDK
Configure webhooks to receive real-time notifications about agent events (coming soon).
Common error codes you may encounter:
See the Error Codes Referencearrow-up-right for complete details.
Need help?
Stay updated with API changes:
Last updated 33 minutes ago