List sent messages

Every message that left this workspace on email, LinkedIn or SMS, newest first, as the Sent log shows it: the words, recipient and sender, the campaign and step that sent it or its origin (a person, or the automatic reply writer), and whether it bounced, was reported as spam, was opened or got a reply. feedback_count is how many times somebody asked for changes to it. Filter by channel, campaign_id, contact_id and query. Paged by cursor.

GEThttps://app.trygtm.com/api/v1/sent-messages
Scope
read

Query parameters

channelstringoptional
Only messages on this channel.emaillinkedinsms
campaign_idstringoptional
Only messages a step of this campaign sent, from list_campaigns.
contact_idstringoptional
Only messages to this contact.
querystringoptional
Case-insensitive text matched against the contact's name, email and company, the subject and the body.
limitintegeroptionaldefault: 25
Rows per page, 1 to 100.
cursorstringoptional
Opaque cursor from the previous page's next_cursor. Omit for the first page. Keep every other argument the same while paging.

Request

curl -G https://app.trygtm.com/api/v1/sent-messages \
  -H "Authorization: Bearer $TRYGTM_API_KEY" \
  --data-urlencode "query=Texas" \
  --data-urlencode "limit=25"

Response

{
  "data": [
    {
      "id": "aa11bb22-cc33-4d44-8e55-ff6677889900",
      "conversation_id": "0f1e2d3c-4b5a-4697-8877-665544332211",
      "contact_id": "8f2a91c4-6d1e-4c0a-9a57-2f3b1c7e9d10",
      "channel": "email",
      "kind": "message",
      "status": "delivered",
      "subject": "your dispatch team",
      "body": "Dana, saw Northbeam is hiring two dispatchers.\n\nAre you still covering the phones yourself while they ramp up?",
      "sent_at": "2026-09-17T08:02:11.000Z",
      "bounced_at": null,
      "bounced": false,
      "complained": false,
      "open_count": 2,
      "click_count": 0,
      "replied": true,
      "connection_id": "6d5c4b3a-2f1e-4d0c-9b8a-7f6e5d4c3b2a",
      "sender_handle": "maya@northwind-partners.example",
      "sender_name": "Maya Chen",
      "recipient": "dana@northbeam.example",
      "contact_name": "Dana Whitfield",
      "contact_title": "VP Operations",
      "company_name": "Northbeam Logistics",
      "campaign_id": "3b7f0c52-91aa-4e0d-8c11-5a2d6e4f7b90",
      "campaign_name": "Q4 logistics leaders",
      "step_seq": 1,
      "step_label": "First note",
      "origin": "campaign",
      "feedback_count": 0
    }
  ],
  "next_cursor": "WyIyMDI2LTA5LTAyVDA5OjQxOjAyLjAwMFoiLCI4ZjJhOTFjNC02ZDFlLTRjMGEtOWE1Ny0yZjNiMWM3ZTlkMTAiXQ"
}

Was this page helpful?