> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://developers.kiwiform.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://developers.kiwiform.com/_mcp/server.

# Fetch Sample Submissions

GET https://app.kiwiform.com/api/zapier/hooks/perform

### Overview

Retrieves the most recent 10 submissions for a specific form. This endpoint is crucial for mapping data fields in third-party integrations (like Zapier).

### Query Parameters

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| form_id | `string` | **Yes** | The unique identifier of the form. |

### **Response Structure**

The response returns an array of submission objects. Each object contains metadata and dynamic fields based on your form questions:

- `id` (string): Unique submission identifier.
    
- `form_id` (string): The form ID associated with this response.
    
- `submitted_at` (date): ISO timestamp of the submission.
    
- `[Dynamic Fields]`: Every question in your form is returned as a key-value pair where the key is the cleaned Question Label.

Reference: https://developers.kiwiform.com/kiwiform-api/kiwiform-zapier-api/fetch-sample-submissions

## OpenAPI Specification

```yaml
openapi: 3.1.0
info:
  title: Kiwiform API
  version: 1.0.0
paths:
  /api/zapier/hooks/perform:
    get:
      operationId: fetch-sample-submissions
      summary: Fetch Sample Submissions
      description: >-
        ### Overview


        Retrieves the most recent 10 submissions for a specific form. This
        endpoint is crucial for mapping data fields in third-party integrations
        (like Zapier).


        ### Query Parameters


        | Field | Type | Required | Description |

        | --- | --- | --- | --- |

        | form_id | `string` | **Yes** | The unique identifier of the form. |


        ### **Response Structure**


        The response returns an array of submission objects. Each object
        contains metadata and dynamic fields based on your form questions:


        - `id` (string): Unique submission identifier.
            
        - `form_id` (string): The form ID associated with this response.
            
        - `submitted_at` (date): ISO timestamp of the submission.
            
        - `[Dynamic Fields]`: Every question in your form is returned as a
        key-value pair where the key is the cleaned Question Label.
      tags:
        - subpackage_kiwiformZapierApi
      parameters:
        - name: form_id
          in: query
          required: false
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: >-
                    #/components/schemas/ApiZapierHooksPerformGetResponsesContentApplicationJsonSchemaItems
servers:
  - url: https://app.kiwiform.com
    description: https://app.kiwiform.com
components:
  schemas:
    ApiZapierHooksPerformGetResponsesContentApplicationJsonSchemaItems:
      type: object
      properties:
        id:
          type: string
        event:
          type: string
        form_id:
          type: string
        form_title:
          type: string
        submission_id:
          type: string
        submitted_at:
          type: string
          format: date-time
        Email:
          type: string
          format: email
        Name:
          type: string
        Message:
          type: string
      required:
        - id
        - event
        - form_id
        - form_title
        - submission_id
        - submitted_at
        - Email
        - Name
        - Message
      title: ApiZapierHooksPerformGetResponsesContentApplicationJsonSchemaItems

```

## Examples



**Response**

```json
[
  {
    "id": "sub_001",
    "event": "form_submission",
    "form_id": "form_123",
    "form_title": "Contact Us",
    "submission_id": "sub_001",
    "submitted_at": "2024-05-12T10:00:00Z",
    "Email": "john@example.com",
    "Name": "John Doe",
    "Message": "I need help with my account."
  }
]
```

**SDK Code**

```python Kiwiform Zapier API_Fetch Sample Submissions_example
import requests

url = "https://app.kiwiform.com/api/zapier/hooks/perform"

querystring = {"form_id":"{{YOUR_FORM_ID}}"}

response = requests.get(url, params=querystring)

print(response.json())
```

```javascript Kiwiform Zapier API_Fetch Sample Submissions_example
const url = 'https://app.kiwiform.com/api/zapier/hooks/perform?form_id=%7B%7BYOUR_FORM_ID%7D%7D';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Kiwiform Zapier API_Fetch Sample Submissions_example
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://app.kiwiform.com/api/zapier/hooks/perform?form_id=%7B%7BYOUR_FORM_ID%7D%7D"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Kiwiform Zapier API_Fetch Sample Submissions_example
require 'uri'
require 'net/http'

url = URI("https://app.kiwiform.com/api/zapier/hooks/perform?form_id=%7B%7BYOUR_FORM_ID%7D%7D")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
```

```java Kiwiform Zapier API_Fetch Sample Submissions_example
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://app.kiwiform.com/api/zapier/hooks/perform?form_id=%7B%7BYOUR_FORM_ID%7D%7D")
  .asString();
```

```php Kiwiform Zapier API_Fetch Sample Submissions_example
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://app.kiwiform.com/api/zapier/hooks/perform?form_id=%7B%7BYOUR_FORM_ID%7D%7D');

echo $response->getBody();
```

```csharp Kiwiform Zapier API_Fetch Sample Submissions_example
using RestSharp;

var client = new RestClient("https://app.kiwiform.com/api/zapier/hooks/perform?form_id=%7B%7BYOUR_FORM_ID%7D%7D");
var request = new RestRequest(Method.GET);
IRestResponse response = client.Execute(request);
```

```swift Kiwiform Zapier API_Fetch Sample Submissions_example
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "https://app.kiwiform.com/api/zapier/hooks/perform?form_id=%7B%7BYOUR_FORM_ID%7D%7D")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```