GET
/
account
/
message
Get all messages
curl --request GET \
  --url https://api.sendpost.io/api/v1/account/message \
  --header 'X-Account-ApiKey: <api-key>'
[
  {
    "id": "4d9c5148-63fc-4999-99ea-fc997b0a24e2",
    "submittedAt": 1588760624008835300,
    "from": {
      "name": "PiedPipers",
      "email": "team@piedpiper.com"
    },
    "replyTo": {
      "name": "PiedPipers",
      "email": "team@piedpiper.com"
    },
    "to": [
      {
        "name": "Peter Gregory",
        "email": "peter@hooli.com",
        "customFields": "{\"Company\": \"Hooli\"}"
      }
    ],
    "headers": "{\"X-Campaign-Id\": \"User onboarding\"}",
    "subject": "Welcome to Pied Piper :) + 1 quick question",
    "preText": "Congrats and get some Pied Piper cred inside",
    "htmlBody": "Thanks for joining Pied Piper {{.FirstName}}.Pied Piper has changed many landscapes. Compression. Data. The Internet",
    "textBody": "Thanks for joining Pied Piper {{.FirstName}}.Pied Piper has changed many landscapes. Compression. Data. The Internet",
    "ippool": "transactional-piedpiper",
    "trackOpens": true,
    "trackClicks": true
  }
]

Authorizations

X-Account-ApiKey
string
header
required

This api key can be used for all account level operations

Query Parameters

from
string<date-time>
required

Date from which messages should be retrieved.

to
string<date-time>
required

Date to which messages should be retrieved. (Should be later than from and no more than 60 days apart.)

limit
integer
default:50

Number of records to return per request.

offset
integer
default:0

Number of initial records to skip.

Response

200
application/json

Successful retrieval of messages.

The response is of type object[].