AgentForms API
Build, manage, and submit forms programmatically. RESTful endpoints with JSON responses, email templates, campaigns, and real-time analytics.
Authentication
All API requests require authentication. Include your API key in the Authorization header:
Authorization: Bearer YOUR_API_KEY_HERE
Generate API keys in your account settings.
Endpoints
API Reference
All endpoints use the base URL https://agentforms.io.
List all forms for the authenticated user.
Create a new form.
Get form details by token.
Parameters
Get form field configuration.
List form submissions for a specific form.
Parameters
Retrieve a single submission by ID.
Parameters
Get analytics data for a form.
Update form field configuration.
Public endpoint for submitting form data. Use your form's token as a query parameter.
Query Parameters
Request Body
List available email templates.
Create a new email template.
Render an email template with data.
Examples
Quick Start
Copy-paste examples to get up and running.
Submit Form Data (Public)
curl -X POST "https://agentforms.io/api/submit?token=YOUR_FORM_TOKEN" \
-H "Content-Type: application/json" \
-d '{"name": "John Doe", "email": "[email protected]", "message": "Hello!"}'
List Forms
curl -X GET https://agentforms.io/api/v2/forms \
-H "Authorization: Bearer YOUR_API_KEY"
Get Submissions
curl -X GET "https://agentforms.io/api/v2/forms/{formToken}/submissions?limit=20" \
-H "Authorization: Bearer YOUR_API_KEY"
Get Analytics
curl -X GET https://agentforms.io/api/v2/forms/{formToken}/analytics \
-H "Authorization: Bearer YOUR_API_KEY"
Resources