curl --request GET \
--url https://api.example.com/api/v1/forms/{formId}/users-joined{
"formId": "<string>",
"count": 123,
"error": "<string>"
}Retrieve the count of users who have submitted a form, for displaying social proof.
curl --request GET \
--url https://api.example.com/api/v1/forms/{formId}/users-joined{
"formId": "<string>",
"count": 123,
"error": "<string>"
}Documentation Index
Fetch the complete documentation index at: https://mintlify.com/artistatbl/Mantlz/llms.txt
Use this file to discover all available pages before exploring further.
X-API-Key header.
curl -X GET "https://api.mantlz.com/api/v1/forms/form_123/users-joined" \
-H "X-API-Key: your_api_key"
{
"formId": "form_123",
"count": 247
}
{
"formId": "form_123",
"count": 0
}
| Status Code | Error Message | Description |
|---|---|---|
| 401 | API key is required | No API key was provided in the request |
| 401 | Invalid API key | The provided API key is invalid or has been revoked |
| 404 | Form not found | The form with the specified ID does not exist |
| 500 | Internal server error | Server encountered an error processing the request |
import { useEffect, useState } from 'react';
function FormWithSocialProof({ formId }) {
const [usersJoined, setUsersJoined] = useState(null);
useEffect(() => {
async function fetchCount() {
const response = await fetch(
`https://api.mantlz.com/api/v1/forms/${formId}/users-joined`,
{
headers: { 'X-API-Key': process.env.MANTLZ_API_KEY }
}
);
const data = await response.json();
setUsersJoined(data.count);
}
fetchCount();
}, [formId]);
return (
<div>
{usersJoined > 0 && (
<p className="social-proof">
✓ {usersJoined.toLocaleString()} users already joined
</p>
)}
{/* Your form component */}
</div>
);
}
count: 0 regardless of the actual number of submissions.