Heymarket
App · 15 actions
Read contacts, inboxes, messages, templates, tags and tracked links in Heymarket.
Actions
| Action | What it does |
|---|---|
| Get contact | Get contact. |
| Get link | Get link. |
| Get survey | Get survey. |
| Get tag | Get tag. |
| Get team | Get team. |
| Get template | Get template. |
| List contact channels | List contact channels. |
| List contacts | List contacts. |
| List inboxes | List inboxes. |
| List links | List links. |
| List messages | List messages. |
| List surveys | List surveys. |
| List tags | List tags. |
| List templates | List templates. |
| List user groups | List user groups. |
Get contact
Get contact.
Inputs
- Contact id
contact_idtextRequired - Contact UUID
Outputs
dataobject- The response from Heymarket.
Example output
{
"data": {
"assigned_user_id": 1,
"avatar": "example",
"created": "example",
"creator_id": 1,
"custom": {},
"display_name": "example",
"email": "example",
"external_id": "example",
"external_ref": "example",
"first": "example",
"id": 1,
"inbox_id": 1,
"inbox_opt_outs": [],
"last": "example",
"note": [],
"op": "example",
"parent_id": 1,
"phone": "example",
"rev": 1,
"shared": false,
"tags": [],
"team_id": 1,
"type": "example",
"updated": "example"
}
}Get link
Get link.
Inputs
- Link id
link_idnumberRequired - Link ID
Outputs
dataobject- The response from Heymarket.
Example output
{
"data": {
"broadcast_id": 1,
"campaign_step_id": 1,
"conversation_id": 1,
"created_at": "example",
"id": 1,
"last_visited_at": "example",
"original_url": "example",
"short_code": "example",
"short_url": "example",
"target": "example",
"team_id": 1,
"template_id": 1
}
}Get survey
Get survey.
Inputs
- Survey id
survey_idnumberRequired - Survey ID
Outputs
dataobject- The response from Heymarket.
Example output
{
"data": {
"created": "example",
"id": 1,
"name": "example",
"question": "example",
"type": "example",
"updated": "example"
}
}Get tag
Get tag.
Inputs
- Tag id
tag_idnumberRequired - Tag ID
Outputs
dataobject- The response from Heymarket.
Example output
{
"data": {
"color": "example",
"created": "example",
"id": 1,
"rev": 1,
"tag": "example",
"team_id": 1,
"updated": "example"
}
}Get team
Get team.
Inputs
None.
Outputs
dataobject- The response from Heymarket.
Example output
{
"data": {
"id": 1,
"list_size": 1,
"mcp_disabled": false,
"mcp_disabled_by_heymarket": false,
"members": [],
"name": "example"
}
}Get template
Get template.
Inputs
- Template id
template_idnumberRequired - Template ID
Outputs
dataobject- The response from Heymarket.
Example output
{
"data": {
"archived": false,
"content": {
"files": [],
"gallery": [],
"text": "example"
},
"created": "example",
"creator_id": 1,
"id": 1,
"local_id": "example",
"name": "example",
"op": "example",
"rev": 1,
"shared": false,
"team_id": 1,
"updated": "example"
}
}List contact channels
List contact channels.
Inputs
- Contact id
contact_idtextRequired - Contact UUID
Outputs
datalist- The response from Heymarket.
Example output
{
"data": []
}List contacts
List contacts.
Inputs
- Limit
limitnumber - Number of results per page. Default 30, max 100.
- Page
pagenumber - Page number (0-indexed).
- Ascending
ascendingtrue/false - Sort ascending if true, descending otherwise.
- Updated since
updated_sincedate and time - Updated since.
Outputs
datalist- The response from Heymarket.
Example output
{
"data": []
}List inboxes
List inboxes.
Inputs
None.
Outputs
datalist- The response from Heymarket.
Example output
{
"data": []
}List links
List links.
Inputs
- Limit
limitnumber - Links per page. Values above 100 are rejected with 400.From 1 to 100.
- Page
pagenumber - Page number to fetch.
- Order
ordertext - Sort order by creation date.One of:
asc,desc.
Outputs
dataobject- The response from Heymarket.
Example output
{
"data": {
"limit": 1,
"links": [],
"page": 1,
"total": 1
}
}List messages
List messages.
Inputs
- Limit
limitnumber - Messages to return per page. Defaults to 30.
- Created at
created_atdate and timeRequired - Last returned message timestamp. Fetch messages created on and after this RFC 3339 timestamp. Message history is limited to the last 12 months; an older value is treated as 12 months ago.
- Ascending
ascendingtrue/false - True to sort in ascending order. Defaults to descending.
- Inbox
inbox_idnumber - Inbox id.At least 1.
Outputs
datalist- The response from Heymarket.
Example output
{
"data": []
}List surveys
List surveys.
Inputs
- Limit
limitnumber - Limit.
- Page
pagenumber - Page.
Outputs
datalist- The response from Heymarket.
Example output
{
"data": []
}List tags
List tags.
Inputs
- Date
datetext - Date.
Outputs
datalist- The response from Heymarket.
Example output
{
"data": []
}List templates
List templates.
Inputs
- Before
beforedate and time - Before.
Outputs
datalist- The response from Heymarket.
Example output
{
"data": []
}List user groups
List user groups.
Inputs
- Group ids
group_idslist - Group ids.
Outputs
dataobject- The response from Heymarket.
Example output
{
"data": {
"user_groups": []
}
}