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

HeaderTypeRequiredDescription
AuthorizationstringYesBearer token (Authorization: Bearer sp_...). Created in the dashboard under Account > Tokens. See authentication.

Query parameters

ParameterTypeRequiredDescription
limitintegerNoHow many to return, 1 to 1000. Defaults to 1000.
offsetintegerNoHow 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
}
FieldTypeDescription
idstringSubmission ID. Pass it to delete.
namestringThe name the sender gave.
emailstringThe address the sender gave.
messagestringThe message body.
createdAtstringRFC 3339.

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