CreatorHero
CreatorHero API

Tracking V2

Messages sent to fans by team members and by CreatorHero automations, with CSV export. Requires the See Chatter Tracking permission (SEE_CHATTER_TRACKING) on the creator and a plan that includes tracking.


Export sent messages as CSV

POST
https://backend.creatorhero.com
/dashboard/api/v2/tracking/{creatorId}/messages/export

Exports the sent messages matching the filters in the JSON body: userId, message, messageType, from and to, same meaning as the query filters of GET /dashboard/api/v2/tracking/{creatorId}/messages/sent; all optional. CSV columns: Message Text, Sender Name, Fan Name, Date (agency time zone), Type.

  • Up to 5000 messages: 200 with the CSV file (text/csv).
  • More: 202 with a jobId. Poll GET /dashboard/api/v2/tracking/{creatorId}/messages/export/{jobId}/status until state is DONE. An identical export (same filters and sortDirection) still running returns its jobId.
  • An identical export finished within the last 30 minutes: 200 with its downloadUrl (JSON).

Export sent messages as CSV › path Parameters

creatorId
​integer · int64 · required

ID of the creator

Export sent messages as CSV › query Parameters

sortDirection
​string · enum

Row order by send time: DESC (default, newest first) or ASC

Enum values:
ASC
DESC

Export sent messages as CSV › Request Body

Filters for sent messages; all optional
userId
​integer · int64

User ID of the sending team member; empty = all

message
​string

Text the message contains, case-insensitive; empty = all

messageType
​MessageType · enum

Message type; empty = all

Enum values:
NormalMessage
WelcomeMessage
BulkMessage
AutoMessageExpiringFans
FollowUpMessage
AutoMessageFollowUp
RebillMessage
from
​string · date

First day sent (YYYY-MM-DD), in the agency's time zone; empty = no limit

to
​string · date

Last day sent (YYYY-MM-DD), in the agency's time zone; empty = no limit

Export sent messages as CSV › Responses

CSV file, or download link of an identical finished export

string · binary

List sent messages

GET
https://backend.creatorhero.com
/dashboard/api/v2/tracking/{creatorId}/messages/sent

Messages sent to fans by team members and by CreatorHero automations, newest first by default. Request the next page while hasNext is true. sentAt is in the agency's time zone.

List sent messages › path Parameters

creatorId
​integer · int64 · required

ID of the creator

List sent messages › query Parameters

sortDirection
​string · enum

DESC (default, newest first) or ASC

Enum values:
ASC
DESC
userId
​integer · int64

User ID of the sending team member; empty = all

User ID of the sending team member; empty = all

message
​string

Text the message contains, case-insensitive; empty = all

Text the message contains, case-insensitive; empty = all

messageType
​MessageType · enum

NormalMessage, WelcomeMessage, BulkMessage, AutoMessageExpiringFans, FollowUpMessage, AutoMessageFollowUp or RebillMessage; empty = all

Type of a message by how it was sent

Enum values:
NormalMessage
WelcomeMessage
BulkMessage
AutoMessageExpiringFans
FollowUpMessage
AutoMessageFollowUp
RebillMessage
from
​string · date

First day sent, in the agency's time zone; empty = no limit

to
​string · date

Last day sent, in the agency's time zone; empty = no limit

page
​integer · int32

Page number, starts at 0. Default 0

Default: 0
size
​integer · int32

Messages per page. Default 20

Default: 20

List sent messages › Responses

Page of sent messages

​SentMessage[] · required

Elements of the current page

numberOfElements
​integer · int32 · required

Number of elements in the current page

page
​integer · int32 · required

Current page number, starting at 0

size
​integer · int32 · required

Requested number of elements per page

hasNext
​boolean · required

Whether a next page exists; request page + 1 while true


Get export status

GET
https://backend.creatorhero.com
/dashboard/api/v2/tracking/{creatorId}/messages/export/{jobId}/status

state is QUEUED, FETCHING, UPLOADING, DONE or FAILED; percentage goes from 0 to 100. When DONE, downloadUrl links to the CSV file for 30 minutes. When FAILED, errorMessage says why. A job expires 30 minutes after its last update.

Get export status › path Parameters

creatorId
​integer · int64 · required

ID of the creator

jobId
​string · uuid · required

jobId returned by the export

Get export status › Responses

Job status

Status of a sent messages CSV export
state
​string · enum

QUEUED, FETCHING, UPLOADING, DONE or FAILED

Enum values:
QUEUED
FETCHING
UPLOADING
DONE
FAILED
percentage
​integer · int32 · min: 0 · max: 100

Progress in percent, 0 to 100

downloadUrl
​string

Temporary download URL of the CSV file, valid for 30 minutes; only set when state is DONE

errorMessage
​string

Reason of the failure; only set when state is FAILED