API Reference - User Submitted Forms
Link: https://support.brilliantdirectories.com/support/solutions/articles/12000108078
← Back to API Reference | Getting Started
User Submitted Forms
User Submitted Forms tracks which members have submitted specific forms on your directory website. Each record links a user ID to a form name and records the timestamp of submission. This is useful for tracking profile completion, onboarding steps, and whether a member has submitted a particular form at least once.
user_submitted_forms — DB table: user_submitted_formsThe User Submitted Forms Object
| Field | Type | Description |
|---|---|---|
id | integer | Unique record ID (primary key, read-only) |
user_id | integer | ID of the member who submitted the form |
form_name | string | Machine name of the form that was submitted |
submitted_at | timestamp | Date and time the form was submitted (auto-set on create) |
List User Submitted Forms Records
Returns a paginated list of user submitted form records.
Example Request
curl -X GET "https://www.yourdomain.com/api/v2/user_submitted_forms/get?limit=25" \ -H "X-Api-Key: your-api-key-here"
Example Response
{
"status": "success",
"message": [
{
"tablesExists": true,
"id": "1",
"user_id": "1210",
"form_name": "contact_general_user",
"submitted_at": "2024-11-03 23:19:35"
},
{
"tablesExists": true,
"id": "2",
"user_id": "1208",
"form_name": "profile",
"submitted_at": "2025-12-22 11:14:34"
},
{
"tablesExists": true,
"id": "3",
"user_id": "1",
"form_name": "blog_article_fields",
"submitted_at": "2024-11-22 18:40:04"
}
],
"total": "45",
"current_page": 1,
"total_pages": 15,
"next_page": "MipfKjM="
}Retrieve a User Submitted Form Record
property=id&property_value={id} to retrieve a specific record instead.Example Workaround
curl -X GET "https://www.yourdomain.com/api/v2/user_submitted_forms/get?property=id&property_value=1" \ -H "X-Api-Key: your-api-key-here"
Example Response
{
"status": "success",
"message": [
{
"tablesExists": true,
"id": "1",
"user_id": "1210",
"form_name": "contact_general_user",
"submitted_at": "2024-11-03 23:19:35"
}
],
"total": "1",
"current_page": 1,
"total_pages": 1
}Create a User Submitted Form Record
Example Request
curl -X POST "https://www.yourdomain.com/api/v2/user_submitted_forms/create" \ -H "X-Api-Key: your-api-key-here" \ -d "user_id=42" \ -d "form_name=profile"
Example Response
{
"status": "success",
"message": {
"id": "910082",
"user_id": "42",
"form_name": "profile",
"submitted_at": null
}
}Update a User Submitted Form Record
Example Request
curl -X PUT "https://www.yourdomain.com/api/v2/user_submitted_forms/update" \ -H "X-Api-Key: your-api-key-here" \ -d "id=910082" \ -d "form_name=profile_updated"
Delete a User Submitted Form Record
Example Request
curl -X DELETE "https://www.yourdomain.com/api/v2/user_submitted_forms/delete" \ -H "X-Api-Key: your-api-key-here" \ -d "id=910082"
