Heymarket

App · 15 actions

Read contacts, inboxes, messages, templates, tags and tracked links in Heymarket.

Actions

ActionWhat it does
Get contactGet contact.
Get linkGet link.
Get surveyGet survey.
Get tagGet tag.
Get teamGet team.
Get templateGet template.
List contact channelsList contact channels.
List contactsList contacts.
List inboxesList inboxes.
List linksList links.
List messagesList messages.
List surveysList surveys.
List tagsList tags.
List templatesList templates.
List user groupsList user groups.

Get contact

Get contact.

Inputs

Contact idcontact_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.

Inputs

Link idlink_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 idsurvey_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 idtag_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 idtemplate_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 idcontact_idtextRequired
Contact UUID

Outputs

datalist
The response from Heymarket.
Example output
{
  "data": []
}

List contacts

List contacts.

Inputs

Limitlimitnumber
Number of results per page. Default 30, max 100.
Pagepagenumber
Page number (0-indexed).
Ascendingascendingtrue/false
Sort ascending if true, descending otherwise.
Updated sinceupdated_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.

Inputs

Limitlimitnumber
Links per page. Values above 100 are rejected with 400.From 1 to 100.
Pagepagenumber
Page number to fetch.
Orderordertext
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

Limitlimitnumber
Messages to return per page. Defaults to 30.
Created atcreated_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.
Ascendingascendingtrue/false
True to sort in ascending order. Defaults to descending.
Inboxinbox_idnumber
Inbox id.At least 1.

Outputs

datalist
The response from Heymarket.
Example output
{
  "data": []
}

List surveys

List surveys.

Inputs

Limitlimitnumber
Limit.
Pagepagenumber
Page.

Outputs

datalist
The response from Heymarket.
Example output
{
  "data": []
}

List tags

List tags.

Inputs

Datedatetext
Date.

Outputs

datalist
The response from Heymarket.
Example output
{
  "data": []
}

List templates

List templates.

Inputs

Beforebeforedate and time
Before.

Outputs

datalist
The response from Heymarket.
Example output
{
  "data": []
}

List user groups

List user groups.

Inputs

Group idsgroup_idslist
Group ids.

Outputs

dataobject
The response from Heymarket.
Example output
{
  "data": {
    "user_groups": []
  }
}

On this page