# List Form Submissions by Site

GET https://api.webflow.com/v2/sites/{site_id}/form_submissions

List all form submissions for a given site with the ability to filter submissions by a centralized `elementId`.

Add `elementId` when you want to filter form submissions to a specific form in a site. You can get the `elementId` from the [List forms endpoint](/data/reference/forms/forms/list) (displayed as `formElementId` in the response). 

<Note title="Forms in components">
When a form is used in a Webflow component definition, each instance of the component will yield a unique form. Adding the `elementId` in this request ensures this API response includes all submissions from that core form, wherever that form is used in instantiated components.
</Note>

Use the [List Form Submissions endpoint](/data/reference/forms/form-submissions/list-submissions) to list form submissions for a given form ID.

Required scope | `forms:read`


Reference: https://developers.webflow.com/data/reference/forms/form-submissions/list-submissions-by-site

## OpenAPI Specification

```yaml
openapi: 3.1.1
info:
  title: List Form Submissions by Site
  version: endpoint_sites/forms.list-submissions-by-site
paths:
  /sites/{site_id}/form_submissions:
    get:
      operationId: list-submissions-by-site
      summary: List Form Submissions by Site
      description: >
        List all form submissions for a given site with the ability to filter
        submissions by a centralized `elementId`.


        Add `elementId` when you want to filter form submissions to a specific
        form in a site. You can get the `elementId` from the [List forms
        endpoint](/data/reference/forms/forms/list) (displayed as
        `formElementId` in the response). 


        <Note title="Forms in components">

        When a form is used in a Webflow component definition, each instance of
        the component will yield a unique form. Adding the `elementId` in this
        request ensures this API response includes all submissions from that
        core form, wherever that form is used in instantiated components.

        </Note>


        Use the [List Form Submissions
        endpoint](/data/reference/forms/form-submissions/list-submissions) to
        list form submissions for a given form ID.


        Required scope | `forms:read`
      tags:
        - - subpackage_sites
          - subpackage_sites/forms
      parameters:
        - name: site_id
          in: path
          description: Unique identifier for a Site
          required: true
          schema:
            type: string
            format: objectid
        - name: elementId
          in: query
          description: Identifier for an element
          required: false
          schema:
            type: string
        - name: offset
          in: query
          description: >-
            Offset used for pagination if the results have more than limit
            records
          required: false
          schema:
            type: integer
        - name: limit
          in: query
          description: 'Maximum number of records to be returned (max limit: 100)'
          required: false
          schema:
            type: integer
        - name: Authorization
          in: header
          description: >-
            Bearer authentication of the form `Bearer <token>`, where token is
            your auth token.
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Request was successful
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/sites_forms_list-submissions-by-site_Response_200
        '400':
          description: Request body was incorrectly formatted.
          content: {}
        '401':
          description: >-
            Provided access token is invalid or does not have access to
            requested resource
          content: {}
        '403':
          description: Forbidden
          content: {}
        '404':
          description: Requested resource not found
          content: {}
        '429':
          description: >-
            The rate limit of the provided access_token has been reached. Please
            have your application respect the X-RateLimit-Remaining header we
            include on API responses.
          content: {}
        '500':
          description: We had a problem with our server. Try again later.
          content: {}
components:
  schemas:
    SitesSiteIdFormSubmissionsGetResponsesContentApplicationJsonSchemaFormSubmissionsItemsFormResponse:
      type: object
      properties: {}
    SitesSiteIdFormSubmissionsGetResponsesContentApplicationJsonSchemaFormSubmissionsItems:
      type: object
      properties:
        id:
          type: string
          format: objectid
          description: The unique ID of the Form submission
        displayName:
          type: string
          description: The Form name displayed on the site
        siteId:
          type: string
          format: objectid
          description: The unique ID of the Site the Form belongs to
        workspaceId:
          type: string
          format: objectid
          description: The unique ID of the Workspace the Site belongs to
        dateSubmitted:
          type: string
          format: date-time
          description: Date that the Form was submitted on
        formResponse:
          $ref: >-
            #/components/schemas/SitesSiteIdFormSubmissionsGetResponsesContentApplicationJsonSchemaFormSubmissionsItemsFormResponse
          description: The data submitted in the Form
    SitesSiteIdFormSubmissionsGetResponsesContentApplicationJsonSchemaPagination:
      type: object
      properties:
        limit:
          type: number
          format: double
          description: The limit used for pagination
        offset:
          type: number
          format: double
          description: The offset used for pagination
        total:
          type: number
          format: double
          description: The total number of records
      required:
        - limit
        - offset
        - total
    sites_forms_list-submissions-by-site_Response_200:
      type: object
      properties:
        formSubmissions:
          type: array
          items:
            $ref: >-
              #/components/schemas/SitesSiteIdFormSubmissionsGetResponsesContentApplicationJsonSchemaFormSubmissionsItems
        pagination:
          $ref: >-
            #/components/schemas/SitesSiteIdFormSubmissionsGetResponsesContentApplicationJsonSchemaPagination
          description: Pagination object

```

## SDK Code Examples

```python
from webflow import Webflow

client = Webflow(
    access_token="YOUR_ACCESS_TOKEN",
)
client.sites.forms.list_submissions_by_site(
    site_id="580e63e98c9a982ac9b8b741",
    element_id="18259716-3e5a-646a-5f41-5dc4b9405aa0",
    offset=1,
    limit=1,
)

```

```typescript
import { WebflowClient } from "webflow-api";

const client = new WebflowClient({ accessToken: "YOUR_ACCESS_TOKEN" });
await client.sites.forms.listSubmissionsBySite("580e63e98c9a982ac9b8b741", {
    elementId: "18259716-3e5a-646a-5f41-5dc4b9405aa0",
    offset: 1,
    limit: 1
});

```

```go
package main

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

func main() {

	url := "https://api.webflow.com/v2/sites/580e63e98c9a982ac9b8b741/form_submissions?elementId=18259716-3e5a-646a-5f41-5dc4b9405aa0&offset=0&limit=100"

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

	req.Header.Add("Authorization", "Bearer <token>")

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

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

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

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://api.webflow.com/v2/sites/580e63e98c9a982ac9b8b741/form_submissions?elementId=18259716-3e5a-646a-5f41-5dc4b9405aa0&offset=0&limit=100")

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

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'

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

```java
HttpResponse<String> response = Unirest.get("https://api.webflow.com/v2/sites/580e63e98c9a982ac9b8b741/form_submissions?elementId=18259716-3e5a-646a-5f41-5dc4b9405aa0&offset=0&limit=100")
  .header("Authorization", "Bearer <token>")
  .asString();
```

```php
<?php

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.webflow.com/v2/sites/580e63e98c9a982ac9b8b741/form_submissions?elementId=18259716-3e5a-646a-5f41-5dc4b9405aa0&offset=0&limit=100', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
  ],
]);

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

```csharp
var client = new RestClient("https://api.webflow.com/v2/sites/580e63e98c9a982ac9b8b741/form_submissions?elementId=18259716-3e5a-646a-5f41-5dc4b9405aa0&offset=0&limit=100");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = ["Authorization": "Bearer <token>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.webflow.com/v2/sites/580e63e98c9a982ac9b8b741/form_submissions?elementId=18259716-3e5a-646a-5f41-5dc4b9405aa0&offset=0&limit=100")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

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()
```