This project is designed to help you quickly add straightforward feedback forms to your MVPs and gather user input with minimal fuss. I hope it makes your development process smoother and saves you time.
Best,
@gus
To get your API key
⚠️ Keep your API key secure. Never expose in client-side code.
curl -X POST "https://api.poketto.dev/api/v1/forms/submit/{{FORM_ID}}"
-H "X-API-Key: {{API_KEY}}"
-H "Content-Type: application/json"
-d '{
"respondent": {
"email": "httptest1@poketto.dev",
"name": "Test Doe",
{other_optional_fields}
},
"field_responses": [
{
"field_id": "38261edc-8bff-4b7e-9f15-1ea11a839927",
"value": 5
},
...
]
}'
The API will return a JSON response indicating success or failure:
{
"success": true,
"data": {
"message": "Form response submitted successfully",
"responseId": "bffa3a68-45ef-4536-add8-c6bf545789b5"
},
"timestamp": 1749080835
}
"respondent": {
"email": "httptest1@poketto.dev",
"name": "Test Doe",
"browser": "Chrome",
"browser_version": "120.0.6099.109",
"os": "macOS",
"os_version": "14.2.1",
"device_type": "Desktop",
"device_model": "MacBook Pro",
"screen_resolution": "1920x1080",
"source": "google",
"medium": "organic",
"campaign": "holiday_2024",
"utm_source": "google",
"utm_medium": "cpc",
"utm_campaign": "winter_sale",
"utm_term": "best_products",
"utm_content": "ad_variant_a",
"referrer_url": "https://www.google.com/search?q=best+products",
"country": "United States",
"region": "California",
"city": "San Francisco",
"ip_address": "192.168.1.100",
"user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36",
"language": "en-US",
"timezone": "America/New_York"
}
Submit a response to a specific form with optional respondent tracking data. This endpoint requires an API key and ensures the form belongs to the same organization as the API key.
POST https://api.poketto.dev/api/v1/forms/{formId}/submit-response
X-API-Key
(required)Authorization: Bearer {API_KEY}
(deprecated, use X-API-Key instead){
"respondent": {
"email": "user@example.com",
"name": "John Doe",
"browser": "Chrome",
"os": "Windows",
"source": "website"
},
"field_responses": [
{
"field_id": "38261edc-8bff-4b7e-9f15-1ea11a839927",
"value": "5"
},
{
"field_id": "1138820b-716f-4705-b43e-7553f82187f6",
"value": "The service was excellent!"
}
]
}
{
"success": true,
"data": {
"message": "Form response submitted successfully",
"responseId": "uuid-of-created-response"
},
"timestamp": 1234567890
}
{
"success": false,
"data": {
"error": "Missing required fields"
},
"timestamp": 1234567890
}
{
"success": false,
"data": {
"error": "Missing API key. Please provide it in the X-API-Key header."
},
"timestamp": 1234567890
}
{
"success": false,
"data": {
"error": "Unauthorized: API key cannot access this form"
},
"timestamp": 1234567890
}
{
"success": false,
"data": {
"error": "Method not allowed"
},
"timestamp": 1234567890
}