Get a contact's activity by contact key
const url = 'https://api.tryletterhead.com/api/v3/contacts/keyed/example/activity?api=true';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://api.tryletterhead.com/api/v3/contacts/keyed/example/activity?api=true' \ --header 'Authorization: Bearer <token>'Same as Get a contact’s activity (GET /api/v3/contacts/{email}/activity), with the contact addressed by its contactKey instead of its email address.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”The contact’s opaque 64-character hex key.
Query Parameters
Section titled “Query Parameters ”Set to true.
Repeatable. Return only these event types. One or more of delivery, open, click, bounce, purchase. Omit to return all five.
Free-text filter across the event’s newsletter title and link URL. Max 255 characters.
1-based page number. Minimum 1. Defaults to 1.
Events per page. Minimum 1, maximum 100. Defaults to 50.
Sort order on the event timestamp: desc (newest first, the default) or asc.
Narrow the feed to a single newsletter by its channel slug. Omit for every newsletter in the company.
Responses
Section titled “ Responses ”200 OK. Same shape as GET /api/v3/contacts/{email}/activity.
object
Full field list under GET /api/v3/contacts/{email}/activity.
object
Example generated
{ "items": {}, "message": "example", "total": 1}400 Validation Error
object
object
Example generated
{ "data": [ "example" ], "items": [ {} ], "message": "example", "total": 1}Still can’t find what you need? Contact support.