Get contact activity timeline
Returns a contact's message activity, newest first, optionally filtered by channel.
GET
Returns a contact's message activity, newest first, optionally filtered by channel. Pass nextCursor back as cursor for the next page; it is null on the last page.
apiKeyheader
x-api-key<token>id*stringMatch
^contact_[0-9a-hjkmnp-tv-z]{16,24}$limit?|nullcursor?stringchannel?stringValue in
"sms""whatsapp""email"ContactActivityPage
application/json- response
items*array<>nextCursor*string|nullimport { createClient } from "samva";const samva = createClient({ apiKey: process.env.SAMVA_API_KEY! });const result = await samva.contacts.getActivityTimeline({ "id": "example"});Example Response
{ "items": [ { "id": "string", "channel": "string", "direction": "string", "status": "string", "subject": "string", "snippet": "string", "createdAt": "string", "conversationId": "string" } ], "nextCursor": "string"}