API ReferenceResponses

Get All Responses

Retrieve all form responses for your environment

GET/api/v1/responses

Get all responses for an environment

Returns all form responses across all forms in your environment. By default, only completed responses are returned.

Request

Learn how to create an API key in the API Keys documentation.
curl -X GET 'https://forms.withsurface.com/api/v1/responses' \
  -H 'x-api-key: your-api-key-here'

Response

dataarray

Array of response objects for all forms in your environment.

Response object properties
idstring

Unique identifier for the response.

createdAtstring

ISO 8601 timestamp of when the response was created.

updatedAtstring

ISO 8601 timestamp of when the response was last updated.

dataUpdatedAtstring

ISO 8601 timestamp of when the response data was last updated.

finishedboolean

Whether the response is complete (true) or partial (false).

statusnumber

Status code of the response.

formIdstring

ID of the form this response belongs to.

versionstring

Version of the response format.

dataarray

Array of question responses, each containing a response object and questionId. Each response object follows a specific shape based on the component type. See the Component Response Shapes documentation for details on all supported component types.

metaobject

Metadata associated with the response, including leadId.

personAttributesobject

Attributes about the person who submitted the response, including IP address, country, and form visit statistics.

Example Response

200 - Success
{
  "data": [
    {
      "id": "cmasda085pa0018js0barsadxn5b",
      "createdAt": "2026-01-20T19:45:59.519Z",
      "updatedAt": "2026-01-20T19:46:37.149Z",
      "dataUpdatedAt": "2026-01-20T19:46:01.725Z",
      "finished": true,
      "status": 4,
      "formId": "casdkgkufzp0001kw0btrmz1asd",
      "version": "2.0",
      "data": [
        {
          "response": {
            "type": "IdentityInfo",
            "headline": "Identity Info",
            "emailAddress": "john.doe@example.com",
            "firstName": "John",
            "lastName": "Doe",
            "companyName": "Example Inc.",
            "componentShapeVersion": "2.0"
          },
          "questionId": "gOyoYYzZRnvo"
        },
      ],
      "meta": {
        "leadId": "lead_1234567890"
      },
      "personAttributes": {
        "ip": "123.45.67.89",
        "country": "United States",
        "visitedForm": 1,
        "completedForm": 0
      }
    },
  ]
}

On this page