curl -X GET "https://api.usegately.com/api/v1/forms?status=published" \
-H "Authorization: Bearer YOUR_API_KEY"
{
"success": true,
"data": [
{
"id": "form_abc123",
"name": "Contact Form",
"description": "Main contact form",
"type": "contact",
"status": "published",
"submission_count": 245,
"created_at": "2024-01-10T10:00:00Z",
"updated_at": "2024-01-18T14:30:00Z"
},
{
"id": "form_xyz789",
"name": "Signup Form",
"description": "Member registration",
"type": "signup",
"status": "published",
"submission_count": 1024,
"created_at": "2024-01-05T09:00:00Z",
"updated_at": "2024-01-15T11:00:00Z"
}
],
"pagination": {
"page": 1,
"limit": 20,
"total": 5,
"total_pages": 1
}
}
Retrieve all forms in your project
curl -X GET "https://api.usegately.com/api/v1/forms?status=published" \
-H "Authorization: Bearer YOUR_API_KEY"
{
"success": true,
"data": [
{
"id": "form_abc123",
"name": "Contact Form",
"description": "Main contact form",
"type": "contact",
"status": "published",
"submission_count": 245,
"created_at": "2024-01-10T10:00:00Z",
"updated_at": "2024-01-18T14:30:00Z"
},
{
"id": "form_xyz789",
"name": "Signup Form",
"description": "Member registration",
"type": "signup",
"status": "published",
"submission_count": 1024,
"created_at": "2024-01-05T09:00:00Z",
"updated_at": "2024-01-15T11:00:00Z"
}
],
"pagination": {
"page": 1,
"limit": 20,
"total": 5,
"total_pages": 1
}
}
published, draft, archivedsignup, contact, feedback, customcurl -X GET "https://api.usegately.com/api/v1/forms?status=published" \
-H "Authorization: Bearer YOUR_API_KEY"
{
"success": true,
"data": [
{
"id": "form_abc123",
"name": "Contact Form",
"description": "Main contact form",
"type": "contact",
"status": "published",
"submission_count": 245,
"created_at": "2024-01-10T10:00:00Z",
"updated_at": "2024-01-18T14:30:00Z"
},
{
"id": "form_xyz789",
"name": "Signup Form",
"description": "Member registration",
"type": "signup",
"status": "published",
"submission_count": 1024,
"created_at": "2024-01-05T09:00:00Z",
"updated_at": "2024-01-15T11:00:00Z"
}
],
"pagination": {
"page": 1,
"limit": 20,
"total": 5,
"total_pages": 1
}
}
Was this page helpful?