List contact submissions
List the site’s contact form submissions, newest first.
GET https://sitepaste.com/api/v1/public/sites/{siteId}/contact-submissions
Requires the data scope.
Usage
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. |
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
{
"contactSubmissions": [
{
"id": "s7xkqw3mz9r2",
"name": "Ada Lovelace",
"email": "[email protected]",
"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. |
| name | string | The name the sender gave. |
| 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.