Overview
The Mantlz API is a RESTful API that enables you to programmatically manage forms, submit data, retrieve submissions, and track analytics. Built on Next.js API routes, it provides a secure and scalable way to integrate form functionality into your applications.Base URL
All API requests must be made to the dedicated API subdomain:API Versioning
The current stable version is v1. All endpoints are prefixed with/api/v1 to ensure backward compatibility as the API evolves.
Request Format
The API accepts requests in two formats:JSON (Recommended)
For standard form submissions and API calls:Multipart Form Data
For submissions that include file uploads:Response Format
All API responses are returned in JSON format with appropriate HTTP status codes.Success Response
Error Response
HTTP Status Codes
The API uses standard HTTP status codes:| Status Code | Description |
|---|---|
200 | Successful request |
400 | Bad request - Invalid parameters |
401 | Unauthorized - Invalid or missing API key |
403 | Forbidden - Insufficient permissions or plan limitation |
404 | Not found - Resource doesn’t exist |
429 | Too many requests - Rate limit exceeded |
500 | Internal server error |
Rate Limiting
All API endpoints are rate-limited to ensure fair usage and platform stability. Rate limit information is included in response headers:Rate limits are applied per API key. The
X-RateLimit-Reset header contains a Unix timestamp indicating when the rate limit window resets.429 response:
CORS Support
The API includes CORS headers for cross-origin requests, enabling you to make API calls directly from web applications:Security Headers
All API responses include security headers:X-Content-Type-Options: nosniffX-Frame-Options: DENYX-XSS-Protection: 1; mode=blockReferrer-Policy: strict-origin-when-cross-origin
Plan-Based Features
Certain API features are available based on your subscription plan:| Feature | Free | Standard | Pro |
|---|---|---|---|
| Form Submissions | ✓ | ✓ | ✓ |
| List Forms | ✓ | ✓ | ✓ |
| Get Form Details | ✓ | ✓ | ✓ |
| Get Submissions | ✓ | ✓ | ✓ |
| Custom Redirects | ✗ | ✓ | ✓ |
| Date Filtering | ✗ | ✓ | ✓ |
| Metadata Analytics | ✗ | ✓ | ✓ |
| Email Confirmations | ✗ | ✓ | ✓ |
| Developer Notifications | ✗ | ✗ | ✓ |
Getting Started
To start using the Mantlz API:- Create an API Key - Generate an API key from your Mantlz dashboard
- Create a Form - Set up a form in your dashboard to get a form ID
- Make Your First Request - Use the API key and form ID to submit data
- Review Submissions - Check your dashboard or use the API to retrieve submissions
Example: Complete Workflow
Here’s a complete example of submitting a form and retrieving submissions:Next Steps
Authentication
Learn how to create and use API keys
Forms Endpoint
Manage and submit forms
Submissions
Retrieve and filter form submissions
Tracking
View analytics and usage metrics