APIs & Integrations

JoeDupree
Member

API to get all bounces, spam reports, and unsubscribes (including deleted contacts)

SOLVE

Is there an API call that can obtain the list of deleted (and still existing) contacts who have unsubscribed?  This would be similar in capability to the manual ability within the Marketing Email menu option to "Export Unsubscribes and Bounces" -- including being able to include Deleted contacts.

1 Accepted solution
IsaacTakushi
Solution
HubSpot Employee
HubSpot Employee

API to get all bounces, spam reports, and unsubscribes (including deleted contacts)

SOLVE

Welcome, @JoeDupree.

 

At this time, there is no single public endpoint which will return the same data as that export: 

  • The Get all contacts endpoint can be used to retrieve all existing contacts.
  • You can check each contact's bounce, spam report, and unsubscribe status with this endpoint.
  • There are no public APIs that return deleted contacts. Attempting to query an endpoint for a deleted contact will return a 404.

Isaac Takushi

Associate Certification Manager

View solution in original post

0 Upvotes
1 Reply 1
IsaacTakushi
Solution
HubSpot Employee
HubSpot Employee

API to get all bounces, spam reports, and unsubscribes (including deleted contacts)

SOLVE

Welcome, @JoeDupree.

 

At this time, there is no single public endpoint which will return the same data as that export: 

  • The Get all contacts endpoint can be used to retrieve all existing contacts.
  • You can check each contact's bounce, spam report, and unsubscribe status with this endpoint.
  • There are no public APIs that return deleted contacts. Attempting to query an endpoint for a deleted contact will return a 404.

Isaac Takushi

Associate Certification Manager
0 Upvotes