
# List contact submissions

List the site's contact form submissions, newest first.

```sh
GET https://sitepaste.com/api/v1/public/sites/{siteId}/contact-submissions
```

Requires the `data` scope.

## Usage

```bash
curl "https://sitepaste.com/api/v1/public/sites/default/contact-submissions" \
  -H "Authorization: Bearer $TOKEN"
```

## Authorizations

| Header | Type | Required | Description |
|--------|------|----------|-------------|
| Authorization | string | Yes | Bearer token (`Authorization: Bearer sp_...`). Created in the dashboard under Account > Tokens. See [authentication](/api/authentication). |


## Query parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| limit | integer | No | How many to return, 1 to 1000. Defaults to 1000. |
| offset | integer | No | How many to skip. Defaults to 0. |

## Response

```json
{
  "contactSubmissions": [
    {
      "id": "s7xkqw3mz9r2",
      "name": "Ada Lovelace",
      "email": "ada@example.com",
      "message": "Loved the piece on compilers.",
      "createdAt": "2026-02-08T12:00:00Z"
    }
  ],
  "total": 42,
  "limit": 1000,
  "offset": 0
}
```

| Field | Type | Description |
|-------|------|-------------|
| id | string | Submission ID. Pass it to [delete](/api/data/delete-contact-submissions-id). |
| name | string | The name the sender gave. |
| email | string | The address the sender gave. |
| message | string | The message body. |
| createdAt | string | RFC 3339. |

`total` is the size of the whole collection, not of the window. Submissions are ordered newest first.