Home/Form Submissions

Form Submissions API

Retrieve form submissions from Minform.

Endpoint Overview

The form submissions API allows you to retrieve form submissions for a specific form. This endpoint is primarily used for testing and sample data within Pipedream.

Get Form Submissions

GEThttps://minform.io/api/pipedream/results

Retrieve form submissions for a specific form identified by its slug.

Parameters

ParameterTypeRequiredDescription
slugStringYesThe slug identifier of the form

Headers

HeaderRequiredDescription
AuthorizationYesBearer token for authentication. Format: Bearer <token>

Response

The response is an array of submission objects with the following structure:

[
  {
    "id": "submission_123456",
    "createdAt": "2023-08-01T12:00:00Z",
    "formId": "contact-form",
    "formName": "Contact Form",
    "fields": {
      "name": { 
        "value": "John Doe", 
        "label": "Name", 
        "type": "inputShort" 
      },
      "email": { 
        "value": "john@example.com", 
        "label": "Email", 
        "type": "inputEmail" 
      },
      "message": { 
        "value": "Hello! I'd like more information.", 
        "label": "Message", 
        "type": "inputLong" 
      }
    }
  },
  {
    "id": "submission_123457",
    "createdAt": "2023-08-02T15:30:00Z",
    "formId": "contact-form",
    "formName": "Contact Form",
    "fields": {
      "name": { 
        "value": "Jane Smith", 
        "label": "Name", 
        "type": "inputShort" 
      },
      "email": { 
        "value": "jane@example.com", 
        "label": "Email", 
        "type": "inputEmail" 
      },
      "message": { 
        "value": "Please contact me about your services.", 
        "label": "Message", 
        "type": "inputLong" 
      }
    }
  }
]

Submission Object Structure

PropertyTypeDescription
idStringUnique identifier for the submission
createdAtString (ISO 8601)Timestamp when the submission was created
formIdStringThe slug identifier of the form
formNameStringThe display name of the form
fieldsObjectAn object containing all form field submissions

Field Object Structure

PropertyTypeDescription
valueString, Array, or ObjectThe submitted value for the field
labelStringThe display label of the field
typeStringThe type of the field (e.g., inputShort, inputEmail, inputLong)

Note: This endpoint requires the read:submissions scope.

Field Types

Minform supports various field types that may appear in the form submissions. Each field type has a specific format for its value:

Field TypeValue FormatExample
inputShortString"John Doe"
inputLongString"Longer text content..."
inputEmailString"user@example.com"
inputNumberString (numeric)"42"
inputSelectString"Option A"
inputMultiselectArray of Strings["Option A", "Option B"]
inputDateString (ISO 8601)"2023-08-01"

Error Responses

The API may return the following error responses:

Status CodeErrorDescription
400Bad RequestThe request was invalid (e.g., missing required slug parameter)
401UnauthorizedAuthentication failed or was not provided
403ForbiddenThe authenticated user doesn't have permission to access the form
404Not FoundThe specified form was not found
500Server ErrorAn error occurred on the server