Open API Reference WOZTELL

Open API Reference WOZTELL

Open API Reference

Welcome

Endpoint

https://open.api.woztell.com/v3

Open API is built around GraphQL.

Open API is built around GraphQL. It is recommended to have prior knowledge of GraphQL in order to make use of the Open API.

You can visit our Open API Playground, where you can test our Open API. For your reference, API Documentation and Schema are also available at the right side of the playground.

Authentication

Headers

Authorization: Bearer <YOUR_TOKEN_HERE>
  1. Follow this guide to generate an access token from your WOZTELL app.

  2. In the Open API playground, insert the access token into the HTTP HEADERS.

Open API Playground

How to test our API calls?

  1. Write your query on the left panel. You can try with the following call to get conversation history.
query getChatHistory (: IntMax100) {
  apiViewer {
    conversationHistory (first: ) {
      edges {
        node {
          messageEvent
        }
      }
    }
  }
}
  1. You can refer to the SCHEMA and DOCS for other query types.

API Docs

API Schema

  1. Varaiables can be entered in the QUERY VARIABLES.

Query Variables

  1. Click the button to test the API call, the response will be displayed on the right panel.

API call sent

Rate Limit

There are rate limits on our API calls. After sending an API call to WOZTELL with GraphQL Client (e.g. Postman), you can view the rate limit in Response Headers:

X-RateLimit-Remaining: The count of API calls that you can send in a minute

X-RateLimit-Limit: The count of API calls sent in a minute

Retry-After: The time needed until the next call after reaching the rate limit (in seconds)

Response Headers

Queries

apiViewer

Response

Returns an ApiScope

Arguments
NameDescription
appId - ID

Example

QUERY
query ApiViewer($appId: ID) {
  apiViewer(appId: $appId) {
    id
    _id
    distinctDataSourceData
    fetchDataSourceData
    fetchGeoNearDataSourceData
    memberRaw
    member {
      id
      _id
      createdAt
      updatedAt
      app {
        ...AppFragment
      }
      appId
      channel {
        ...ChannelFragment
      }
      channelId
      platform
      profile {
        ...MemberProfileFragment
      }
      inboxProfile {
        ...InboxMemberProfileFragment
      }
      tags
      meta
      botMeta {
        ...BotMetaFragment
      }
      externalId
      botId
      admin {
        ...AdminFragment
      }
      adminId
      group {
        ...GroupFragment
      }
      assignment
      fbId
      name
      firstName
      lastName
      profilePic
      gender
      customLocale
      locale
      email
      profilePicString
      inletGroup
      fbOTNTokens {
        ...FbOTNTokenFragment
      }
      notes {
        ...NoteFragment
      }
      etag
    }
    members {
      edges {
        ...MemberEdgeFragment
      }
      pageInfo {
        ...PageInfoFragment
      }
    }
    admins {
      edges {
        ...AdminEdgeFragment
      }
      pageInfo {
        ...PageInfoFragment
      }
    }
    channel {
      id
      _id
      createdAt
      updatedAt
      name
      description
      app {
        ...AppFragment
      }
      appId
      type
      relayWebhooks
      webhooks
      verificationToken
      channelSecret
      info
      broadcastGroups {
        ...ChannelBroadcastGroupFragment
      }
      meta
      trees {
        ...TreeFragment
      }
      globalNodes {
        ...NodeObjectFragment
      }
      priorityGroups {
        ...ChannelPriorityGroupFragment
      }
      tags
      inletGroup
      etag
      on
      sendOutletMessageViaBot
      livechatAgendas
      liveChatAgendaObjects {
        ...LiveChatAgendaFragment
      }
      availability
      exclusiveLiveChat
      locked
      wabaStatus
      wabaError
      wabaInfo
      wabaIntegration {
        ...WABAIntegrationFragment
      }
      environment {
        ...ChannelEnvironmentFragment
      }
      environments {
        ...ChannelEnvironmentFragment
      }
      incomingWebhooks {
        ...ChannelIncomingWebhookFragment
      }
      archived
      archivedAt
      connected
    }
    conversationHistory {
      edges {
        ...ChatEdgeFragment
      }
      pageInfo {
        ...PageInfoFragment
      }
    }
    assignments {
      edges {
        ...AssignmentEdgeFragment
      }
      pageInfo {
        ...PageInfoFragment
      }
    }
    assignment {
      id
      _id
      createdAt
      updatedAt
      inlet {
        ...ChannelFragment
      }
      inletId
      targets {
        ...AssignmentTargetFragment
      }
      member {
        ...MemberFragment
      }
      memberId
      group {
        ...GroupFragment
      }
      groupId
      groupExternalId
      assignedAt
      assignee {
        ...AdminFragment
      }
      assigner {
        ...AdminFragment
      }
      expiry
      groupInfo
      relayMessage
      reassignRelayMessage
      takenMessage
      app {
        ...AppFragment
      }
      appId
      etag
      tags
      inactivatedAt
      reassign
      history
      active
      inletGroup
      inletMessage
      inletGroupInfo
      inletGroupExternalId
      parentAssignment {
        ...AssignmentFragment
      }
      parentAssignmentId
      previousAssignment {
        ...AssignmentFragment
      }
      previousAssignmentId
      adminContactMessage
      redirectMemberToNode {
        ...RedirectFragment
      }
      label
      status
      meta
      isZendesk
      noGroupCreation
    }
    groups {
      edges {
        ...GroupEdgeFragment
      }
      pageInfo {
        ...PageInfoFragment
      }
    }
    installedIntegrations {
      _id
      id
      app {
        ...AppFragment
      }
      appId
      description
      alias
      meta
      integration_id
      integrationKey
      integrationId
      features
      build
      etag
      createdAt
      updatedAt
      signature
      secret
      channel {
        ...ChannelFragment
      }
      integrationName
      integrationDescription
      latestPublished
      isLatestPublished
      icon
      author {
        ...AuthorFragment
      }
      authorId
      supportEmail
      readme
      termsAndConditionsUrl
      privacyPolicyUrl
      websiteUrl
      builderSidebarView {
        ...IntegrationViewFragment
      }
      dashboardView {
        ...IntegrationViewFragment
      }
      customView {
        ...IntegrationViewFragment
      }
      changelog
      scopes
      endpoints {
        ...IntegrationEndpointsFragment
      }
      resourceTemplates {
        ...ResourceTemplateFragment
      }
      defaultResourceTemplate {
        ...ResourceTemplateFragment
      }
      hooks {
        ...HookFragment
      }
      functionString
      settingsView
      platformSettingsView
      settingsSchema
      settingsValidatorFunctionString
      trees {
        ...IntegrationTreeFragment
      }
      supportTicketing
      version
      inbox {
        ...InboxIntegrationFragment
      }
    }
    installedIntegration {
      _id
      id
      app {
        ...AppFragment
      }
      appId
      description
      alias
      meta
      integration_id
      integrationKey
      integrationId
      features
      build
      etag
      createdAt
      updatedAt
      signature
      secret
      channel {
        ...ChannelFragment
      }
      integrationName
      integrationDescription
      latestPublished
      isLatestPublished
      icon
      author {
        ...AuthorFragment
      }
      authorId
      supportEmail
      readme
      termsAndConditionsUrl
      privacyPolicyUrl
      websiteUrl
      builderSidebarView {
        ...IntegrationViewFragment
      }
      dashboardView {
        ...IntegrationViewFragment
      }
      customView {
        ...IntegrationViewFragment
      }
      changelog
      scopes
      endpoints {
        ...IntegrationEndpointsFragment
      }
      resourceTemplates {
        ...ResourceTemplateFragment
      }
      defaultResourceTemplate {
        ...ResourceTemplateFragment
      }
      hooks {
        ...HookFragment
      }
      functionString
      settingsView
      platformSettingsView
      settingsSchema
      settingsValidatorFunctionString
      trees {
        ...IntegrationTreeFragment
      }
      supportTicketing
      version
      inbox {
        ...InboxIntegrationFragment
      }
    }
    integrations
    app {
      id
      _id
      createdAt
      updatedAt
      name
      description
      inlets {
        ...ChannelFragment
      }
      outlets {
        ...ChannelFragment
      }
      meta
      integrations
      activated
      teamMembers {
        ...TeamMemberFragment
      }
      dataSources {
        ...DataSourceFragment
      }
      dataSource {
        ...DataSourceFragment
      }
      pairs {
        ...PairFragment
      }
      managedBy {
        ...PartnerFragment
      }
      managementType
      etag
    }
    userContext
    channels {
      edges {
        ...ChannelEdgeFragment
      }
      pageInfo {
        ...PageInfoFragment
      }
    }
    tree {
      id
      _id
      createdAt
      updatedAt
      name
      description
      app {
        ...AppFragment
      }
      appId
      globalNodes {
        ...NodeObjectFragment
      }
      globalNodeIds
      nodes {
        ...NodeObjectFragment
      }
      nodeIds
      workspace {
        ...WorkspaceFragment
      }
      version
      versionAlias
      ancestorTree {
        ...TreeFragment
      }
      siblingTrees {
        ...TreeFragment
      }
      tags
      stash {
        ...NodeObjectFragment
      }
      etag
      configMapSchema
      configMap
      type
      system
      templateTreeId
      templateTree {
        ...TreeFragment
      }
      locked
    }
    whatsAppFile {
      ok
      err_code
      err
      url
    }
    whatsAppTemplate {
      edges {
        ...WhatsAppMessageTemplateEdgeFragment
      }
      pageInfo {
        ...PageInfoFragment
      }
    }
    postCommentAnalyticsOverview {
      edges {
        ...PostCommentAnalyticsOverviewEdgeFragment
      }
      pageInfo {
        ...PageInfoFragment
      }
    }
    nlpAnalyticsOverview {
      edges {
        ...NLPAnalyticsCounterEdgeFragment
      }
      total_no_of_nlp_analytics
      pageInfo {
        ...PageInfoFragment
      }
    }
    analyticsCustomEventOverviewDateHistogram {
      edges {
        ...AnalyticsCustomEventCounterEdgeTBFragment
      }
      total_no_of_analytics
      pageInfo {
        ...PageInfoFragment
      }
    }
    analyticsCustomEventOverviewTable {
      edges {
        ...AnalyticsCustomEventCounterEdgeRDFragment
      }
      total_no_of_analytics
      pageInfo {
        ...PageInfoFragment
      }
    }
    dailyActiveMemberOverview {
      data {
        ...DailyActiveMemberRowFragment
      }
      pageInfo {
        ...PageInfoFragment
      }
    }
    activeMemberCounter {
      data {
        ...ActiveMemberCounterFragment
      }
      pageInfo {
        ...PageInfoFragment
      }
      total_no_of_member
      total_no_of_comment_member
    }
    newMemberCounter {
      data {
        ...NewMemberCounterFragment
      }
      pageInfo {
        ...PageInfoFragment
      }
      total_no_of_member
      total_no_of_comment_member
    }
    actions {
      edges {
        ...ActionEdgeFragment
      }
      pageInfo {
        ...PageInfoFragment
      }
    }
    audiences {
      edges {
        ...AudienceEdgeFragment
      }
      pageInfo {
        ...PageInfoFragment
      }
    }
    conditions {
      edges {
        ...ConditionEdgeFragment
      }
      pageInfo {
        ...PageInfoFragment
      }
    }
    localeGroups {
      edges {
        ...LocaleGroupEdgeFragment
      }
      pageInfo {
        ...PageInfoFragment
      }
    }
    nodes {
      edges {
        ...NodeObjectEdgeFragment
      }
      pageInfo {
        ...PageInfoFragment
      }
    }
    priorityGroups {
      edges {
        ...PriorityGroupEdgeFragment
      }
      pageInfo {
        ...PageInfoFragment
      }
    }
    responses {
      edges {
        ...ResponseEdgeFragment
      }
      pageInfo {
        ...PageInfoFragment
      }
    }
    subscriptionPushes {
      edges {
        ...SubscriptionPushEdgeFragment
      }
      pageInfo {
        ...PageInfoFragment
      }
    }
    trees {
      edges {
        ...TreeEdgeFragment
      }
      pageInfo {
        ...PageInfoFragment
      }
    }
    triggers {
      edges {
        ...TriggerEdgeFragment
      }
      pageInfo {
        ...PageInfoFragment
      }
    }
    file {
      fileId
      fileType
      url
      size
    }
    chat {
      id
      _id
      createdAt
      updatedAt
      sentAt
      readAt
      deliveredAt
      deletedAt
      group {
        ...GroupFragment
      }
      assignment {
        ...AssignmentFragment
      }
      messageEvent
      from
      member {
        ...MemberFragment
      }
      memberId
      admin {
        ...AdminFragment
      }
      errors
      failedAt
      platform
      channel {
        ...ChannelFragment
      }
      channelId
      app {
        ...AppFragment
      }
      appId
      tags
      meta
      etag
      isMultipleParty
    }
    backgroundTask {
      id
      _id
      createdAt
      updatedAt
      app {
        ...AppFragment
      }
      appId
      type
      message
      status
      data
      meta
      runAt
      endAt
      etag
    }
  }
}
VARIABLES
{"appId": 4}
RESPONSE
{
  "data": {
    "apiViewer": {
      "id": "4",
      "_id": 4,
      "distinctDataSourceData": {},
      "fetchDataSourceData": {},
      "fetchGeoNearDataSourceData": {},
      "memberRaw": {},
      "member": Member,
      "members": MemberConnection,
      "admins": AdminConnection,
      "channel": Channel,
      "conversationHistory": ChatConnection,
      "assignments": AssignmentConnection,
      "assignment": Assignment,
      "groups": GroupConnection,
      "installedIntegrations": [AppIntegration],
      "installedIntegration": AppIntegration,
      "integrations": {},
      "app": App,
      "userContext": {},
      "channels": ChannelConnection,
      "tree": Tree,
      "whatsAppFile": WhatsAppFileUrl,
      "whatsAppTemplate": WhatsAppMessageTemplateConnection,
      "postCommentAnalyticsOverview": PostCommentAnalyticsOverviewConnection,
      "nlpAnalyticsOverview": NLPAnalyticsCounterConnection,
      "analyticsCustomEventOverviewDateHistogram": AnalyticsCustomEventCounterConnectionTB,
      "analyticsCustomEventOverviewTable": AnalyticsCustomEventCounterConnectionRD,
      "dailyActiveMemberOverview": DailyActiveMemberOverviewPayload,
      "activeMemberCounter": ActiveMemberCounterConnection,
      "newMemberCounter": NewMemberCounterConnection,
      "actions": ActionConnection,
      "audiences": AudienceConnection,
      "conditions": ConditionConnection,
      "localeGroups": LocaleGroupConnection,
      "nodes": NodeObjectConnection,
      "priorityGroups": PriorityGroupConnection,
      "responses": ResponseConnection,
      "subscriptionPushes": SubscriptionPushConnection,
      "trees": TreeConnection,
      "triggers": TriggerConnection,
      "file": RetrieveFilePayload,
      "chat": Chat,
      "backgroundTask": BackgroundTask
    }
  }
}

user

Response

Returns a User

Example

QUERY
query User {
  user {
    id
    _id
    createdAt
    updatedAt
    apps {
      appId
      app {
        ...AppFragment
      }
      acls
      default
      roles {
        ...RoleFragment
      }
    }
    partners {
      partnerId
      partner {
        ...PartnerFragment
      }
      acls
      default
      roles {
        ...RoleFragment
      }
    }
    firstName
    lastName
    fullName
    profilePic
    ownRoles {
      id
      _id
      createdAt
      updatedAt
      name
      acls
      app {
        ...AppFragment
      }
      system
      tags
      etag
    }
    acls
    email {
      email
      emails {
        ...EmailFragment
      }
      verified
    }
    meta
    tags
    platformCred {
      fbUserId
    }
    sessionMeta
    preferences {
      recentTrees {
        ...TreeFragment
      }
      recentTreeIds
    }
    etag
    stripeProducts
  }
}
RESPONSE
{
  "data": {
    "user": {
      "id": 4,
      "_id": "4",
      "createdAt": {},
      "updatedAt": {},
      "apps": [UserAppConfig],
      "partners": [UserPartnerConfig],
      "firstName": "xyz789",
      "lastName": "abc123",
      "fullName": "abc123",
      "profilePic": "abc123",
      "ownRoles": [Role],
      "acls": ["abc123"],
      "email": EmailCred,
      "meta": {},
      "tags": ["abc123"],
      "platformCred": PlatformCred,
      "sessionMeta": {},
      "preferences": UserPreferences,
      "etag": 4,
      "stripeProducts": {}
    }
  }
}

Mutations

Agenda

createAgenda

Description

A function to create agenda.

rate limit

5 call(s) per app per mintue

scope

["api:admin", "agenda:create"]

Response

Returns a CreateAgendaPayload

Arguments
NameDescription
input - CreateAgendaInput!

Example

QUERY
mutation CreateAgenda($input: CreateAgendaInput!) {
  createAgenda(input: $input) {
    agenda {
      id
      _id
      createdAt
      updatedAt
      app {
        ...AppFragment
      }
      appId
      member {
        ...MemberFragment
      }
      memberId
      channel {
        ...ChannelFragment
      }
      channelId
      responses
      tree {
        ...TreeFragment
      }
      treeId
      node {
        ...NodeObjectFragment
      }
      nodeCompositeId
      nextRunAt
      completed
      lastRunAt
      pattern
      runUntil
      type
      priority
      subscriptionPush {
        ...AgendaSubscriptionPushConfigFragment
      }
      tag
      meta
      etag
    }
    agendaRaw
    clientMutationId
  }
}
VARIABLES
{"input": CreateAgendaInput}
RESPONSE
{
  "data": {
    "createAgenda": {
      "agenda": Agenda,
      "agendaRaw": {},
      "clientMutationId": "4"
    }
  }
}

updateAgenda

Description

A function to update agenda.

rate limit

5 call(s) per app per mintue

scope

["api:admin", "agenda:update"]

Response

Returns an UpdateAgendaPayload

Arguments
NameDescription
input - UpdateAgendaInput!

Example

QUERY
mutation UpdateAgenda($input: UpdateAgendaInput!) {
  updateAgenda(input: $input) {
    agenda {
      id
      _id
      createdAt
      updatedAt
      app {
        ...AppFragment
      }
      appId
      member {
        ...MemberFragment
      }
      memberId
      channel {
        ...ChannelFragment
      }
      channelId
      responses
      tree {
        ...TreeFragment
      }
      treeId
      node {
        ...NodeObjectFragment
      }
      nodeCompositeId
      nextRunAt
      completed
      lastRunAt
      pattern
      runUntil
      type
      priority
      subscriptionPush {
        ...AgendaSubscriptionPushConfigFragment
      }
      tag
      meta
      etag
    }
    clientMutationId
  }
}
VARIABLES
{"input": UpdateAgendaInput}
RESPONSE
{
  "data": {
    "updateAgenda": {
      "agenda": Agenda,
      "clientMutationId": "4"
    }
  }
}

deleteAgenda

Description

A function to delete agenda.

rate limit

5 call(s) per app per mintue

scope

["api:admin", "agenda:delete"]

Response

Returns a DeleteAgendaPayload

Arguments
NameDescription
input - DeleteAgendaInput!

Example

QUERY
mutation DeleteAgenda($input: DeleteAgendaInput!) {
  deleteAgenda(input: $input) {
    clientMutationId
  }
}
VARIABLES
{"input": DeleteAgendaInput}
RESPONSE
{"data": {"deleteAgenda": {"clientMutationId": 4}}}

App Integration

putAppIntegration

 No longer supported
Description

A function to put app integration. Currently deprecated.

rate limit

5 call(s) per app per mintue

scope

["api:admin", "integration:create"]

Response

Returns a PutAppIntegrationPayload

Arguments
NameDescription
input - PutAppIntegrationInput!

Example

QUERY
mutation PutAppIntegration($input: PutAppIntegrationInput!) {
  putAppIntegration(input: $input) {
    app {
      id
      _id
      createdAt
      updatedAt
      name
      description
      inlets {
        ...ChannelFragment
      }
      outlets {
        ...ChannelFragment
      }
      meta
      integrations
      activated
      teamMembers {
        ...TeamMemberFragment
      }
      dataSources {
        ...DataSourceFragment
      }
      dataSource {
        ...DataSourceFragment
      }
      pairs {
        ...PairFragment
      }
      managedBy {
        ...PartnerFragment
      }
      managementType
      etag
    }
    appId
    ok
    err_code
    err
    integrationId
    clientMutationId
  }
}
VARIABLES
{"input": PutAppIntegrationInput}
RESPONSE
{
  "data": {
    "putAppIntegration": {
      "app": App,
      "appId": "4",
      "ok": 123,
      "err_code": 987,
      "err": "abc123",
      "integrationId": 4,
      "clientMutationId": 4
    }
  }
}

updateAppIntegration

 No longer supported
Description

A function to update app integration. Currently deprecated.

rate limit

5 call(s) per app per mintue

scope

["api:admin", "integration:update"]

Response

Returns an UpdateAppIntegrationPayload

Arguments
NameDescription
input - UpdateAppIntegrationInput!

Example

QUERY
mutation UpdateAppIntegration($input: UpdateAppIntegrationInput!) {
  updateAppIntegration(input: $input) {
    app {
      id
      _id
      createdAt
      updatedAt
      name
      description
      inlets {
        ...ChannelFragment
      }
      outlets {
        ...ChannelFragment
      }
      meta
      integrations
      activated
      teamMembers {
        ...TeamMemberFragment
      }
      dataSources {
        ...DataSourceFragment
      }
      dataSource {
        ...DataSourceFragment
      }
      pairs {
        ...PairFragment
      }
      managedBy {
        ...PartnerFragment
      }
      managementType
      etag
    }
    clientMutationId
  }
}
VARIABLES
{"input": UpdateAppIntegrationInput}
RESPONSE
{
  "data": {
    "updateAppIntegration": {
      "app": App,
      "clientMutationId": "4"
    }
  }
}

updateAppIntegrationMeta

Description

A function to update App Integration Meta.

rate limit

10 call(s) per app per mintue

scope

["api:admin", "appIntegration:update"]

Arguments
NameDescription
input - UpdateAppIntegrationMetaInput!

Example

QUERY
mutation UpdateAppIntegrationMeta($input: UpdateAppIntegrationMetaInput!) {
  updateAppIntegrationMeta(input: $input) {
    appIntegration {
      _id
      id
      app {
        ...AppFragment
      }
      appId
      description
      alias
      meta
      integration_id
      integrationKey
      integrationId
      features
      build
      etag
      createdAt
      updatedAt
      signature
      secret
      channel {
        ...ChannelFragment
      }
      integrationName
      integrationDescription
      latestPublished
      isLatestPublished
      icon
      author {
        ...AuthorFragment
      }
      authorId
      supportEmail
      readme
      termsAndConditionsUrl
      privacyPolicyUrl
      websiteUrl
      builderSidebarView {
        ...IntegrationViewFragment
      }
      dashboardView {
        ...IntegrationViewFragment
      }
      customView {
        ...IntegrationViewFragment
      }
      changelog
      scopes
      endpoints {
        ...IntegrationEndpointsFragment
      }
      resourceTemplates {
        ...ResourceTemplateFragment
      }
      defaultResourceTemplate {
        ...ResourceTemplateFragment
      }
      hooks {
        ...HookFragment
      }
      functionString
      settingsView
      platformSettingsView
      settingsSchema
      settingsValidatorFunctionString
      trees {
        ...IntegrationTreeFragment
      }
      supportTicketing
      version
      inbox {
        ...InboxIntegrationFragment
      }
    }
    clientMutationId
  }
}
VARIABLES
{"input": UpdateAppIntegrationMetaInput}
RESPONSE
{
  "data": {
    "updateAppIntegrationMeta": {
      "appIntegration": AppIntegration,
      "clientMutationId": "4"
    }
  }
}

Boradcast

createAudience

Description

A function to create audience.

rate limit

5 call(s) per app per mintue

scope

["api:admin", "audience:create"]

Response

Returns a CreateAudiencePayload

Arguments
NameDescription
input - CreateAudienceInput!

Example

QUERY
mutation CreateAudience($input: CreateAudienceInput!) {
  createAudience(input: $input) {
    audience {
      id
      _id
      createdAt
      updatedAt
      name
      description
      app {
        ...AppFragment
      }
      filter {
        ...AudienceFilterFragment
      }
      channel {
        ...ChannelFragment
      }
      channelId
      tags
      etag
    }
    clientMutationId
  }
}
VARIABLES
{"input": CreateAudienceInput}
RESPONSE
{
  "data": {
    "createAudience": {
      "audience": Audience,
      "clientMutationId": 4
    }
  }
}

createRetryAudience

Description

A function to create retry audience from subscription push.

rate limit

5 call(s) per app per mintue

scope

["api:admin", "audience:create"]

Response

Returns a CreateRetryAudiencePayload

Arguments
NameDescription
input - CreateRetryAudienceInput!

Example

QUERY
mutation CreateRetryAudience($input: CreateRetryAudienceInput!) {
  createRetryAudience(input: $input) {
    audiences {
      id
      _id
      createdAt
      updatedAt
      name
      description
      app {
        ...AppFragment
      }
      filter {
        ...AudienceFilterFragment
      }
      channel {
        ...ChannelFragment
      }
      channelId
      tags
      etag
    }
    clientMutationId
  }
}
VARIABLES
{"input": CreateRetryAudienceInput}
RESPONSE
{
  "data": {
    "createRetryAudience": {
      "audiences": [Audience],
      "clientMutationId": "4"
    }
  }
}

updateAudience

Description

A function to update audience.

rate limit

5 call(s) per app per mintue

scope

["api:admin", "audience:update"]

Response

Returns an UpdateAudiencePayload

Arguments
NameDescription
input - UpdateAudienceInput!

Example

QUERY
mutation UpdateAudience($input: UpdateAudienceInput!) {
  updateAudience(input: $input) {
    audience {
      id
      _id
      createdAt
      updatedAt
      name
      description
      app {
        ...AppFragment
      }
      filter {
        ...AudienceFilterFragment
      }
      channel {
        ...ChannelFragment
      }
      channelId
      tags
      etag
    }
    clientMutationId
  }
}
VARIABLES
{"input": UpdateAudienceInput}
RESPONSE
{
  "data": {
    "updateAudience": {
      "audience": Audience,
      "clientMutationId": 4
    }
  }
}

deleteAudience

Description

A function to delete audience.

rate limit

5 call(s) per app per mintue

scope

["api:admin", "audience:delete"]

Response

Returns a DeleteAudiencePayload

Arguments
NameDescription
input - DeleteAudienceInput!

Example

QUERY
mutation DeleteAudience($input: DeleteAudienceInput!) {
  deleteAudience(input: $input) {
    clientMutationId
  }
}
VARIABLES
{"input": DeleteAudienceInput}
RESPONSE
{"data": {"deleteAudience": {"clientMutationId": 4}}}

createSubscriptionPush

Description

A function to create subscription push.

rate limit

5 call(s) per app per mintue

scope

["api:admin", "push:create"]

Arguments
NameDescription
input - CreateSubscriptionPushInput!

Example

QUERY
mutation CreateSubscriptionPush($input: CreateSubscriptionPushInput!) {
  createSubscriptionPush(input: $input) {
    subscriptionPush {
      id
      _id
      createdAt
      updatedAt
      name
      description
      messages
      messagesHydrated {
        ...MessageFragment
      }
      app {
        ...AppFragment
      }
      appId
      sent
      sentCount
      read
      readCount
      interacted
      interactedCount
      tags
      agendaMeta
      fbMessageTag
      fbOTNTags
      errors {
        ...SubscriptionPushErrorFragment
      }
      errorStats {
        ...SubscriptionPushErrorStatsFragment
      }
      includeAudiences {
        ...AudienceFragment
      }
      excludeAudiences {
        ...AudienceFragment
      }
      filter {
        ...AudienceFilterFragment
      }
      memberIds
      memberCount
      members {
        ...MemberConnectionFragment
      }
      scheduleAt
      sentStart
      sentEnd
      agendas {
        ...AgendaFragment
      }
      priority
      parentSubscriptionPush {
        ...SubscriptionPushFragment
      }
      parentSubscriptionPushId
      childSubscriptionPushes {
        ...SubscriptionPushFragment
      }
      childSubscriptionPushIds
      etag
    }
    clientMutationId
  }
}
VARIABLES
{"input": CreateSubscriptionPushInput}
RESPONSE
{
  "data": {
    "createSubscriptionPush": {
      "subscriptionPush": SubscriptionPush,
      "clientMutationId": "4"
    }
  }
}

updateSubscriptionPush

Description

A function to create subscription push.

rate limit

5 call(s) per app per mintue

scope

["api:admin", "push:update"]

Response

Returns an UpdateSubscriptionPushPayload

Arguments
NameDescription
input - UpdateSubscriptionPushInput!

Example

QUERY
mutation UpdateSubscriptionPush($input: UpdateSubscriptionPushInput!) {
  updateSubscriptionPush(input: $input) {
    subscriptionPush {
      id
      _id
      createdAt
      updatedAt
      name
      description
      messages
      messagesHydrated {
        ...MessageFragment
      }
      app {
        ...AppFragment
      }
      appId
      sent
      sentCount
      read
      readCount
      interacted
      interactedCount
      tags
      agendaMeta
      fbMessageTag
      fbOTNTags
      errors {
        ...SubscriptionPushErrorFragment
      }
      errorStats {
        ...SubscriptionPushErrorStatsFragment
      }
      includeAudiences {
        ...AudienceFragment
      }
      excludeAudiences {
        ...AudienceFragment
      }
      filter {
        ...AudienceFilterFragment
      }
      memberIds
      memberCount
      members {
        ...MemberConnectionFragment
      }
      scheduleAt
      sentStart
      sentEnd
      agendas {
        ...AgendaFragment
      }
      priority
      parentSubscriptionPush {
        ...SubscriptionPushFragment
      }
      parentSubscriptionPushId
      childSubscriptionPushes {
        ...SubscriptionPushFragment
      }
      childSubscriptionPushIds
      etag
    }
    clientMutationId
  }
}
VARIABLES
{"input": UpdateSubscriptionPushInput}
RESPONSE
{
  "data": {
    "updateSubscriptionPush": {
      "subscriptionPush": SubscriptionPush,
      "clientMutationId": 4
    }
  }
}

deleteSubscriptionPush

Description

A function to create subscription push.

rate limit

5 call(s) per app per mintue

scope

["api:admin", "push:delete"]

Arguments
NameDescription
input - DeleteSubscriptionPushInput!

Example

QUERY
mutation DeleteSubscriptionPush($input: DeleteSubscriptionPushInput!) {
  deleteSubscriptionPush(input: $input) {
    clientMutationId
  }
}
VARIABLES
{"input": DeleteSubscriptionPushInput}
RESPONSE
{
  "data": {
    "deleteSubscriptionPush": {
      "clientMutationId": "4"
    }
  }
}

Channel

createChannel

Description

A function to create channel.

rate limit

5 call(s) per app per mintue

scope

["api:admin", "channel:createChannel"]

Response

Returns a CreateChannelPayload

Arguments
NameDescription
input - CreateChannelInput!

Example

QUERY
mutation CreateChannel($input: CreateChannelInput!) {
  createChannel(input: $input) {
    channel {
      id
      _id
      createdAt
      updatedAt
      name
      description
      app {
        ...AppFragment
      }
      appId
      type
      relayWebhooks
      webhooks
      verificationToken
      channelSecret
      info
      broadcastGroups {
        ...ChannelBroadcastGroupFragment
      }
      meta
      trees {
        ...TreeFragment
      }
      globalNodes {
        ...NodeObjectFragment
      }
      priorityGroups {
        ...ChannelPriorityGroupFragment
      }
      tags
      inletGroup
      etag
      on
      sendOutletMessageViaBot
      livechatAgendas
      liveChatAgendaObjects {
        ...LiveChatAgendaFragment
      }
      availability
      exclusiveLiveChat
      locked
      wabaStatus
      wabaError
      wabaInfo
      wabaIntegration {
        ...WABAIntegrationFragment
      }
      environment {
        ...ChannelEnvironmentFragment
      }
      environments {
        ...ChannelEnvironmentFragment
      }
      incomingWebhooks {
        ...ChannelIncomingWebhookFragment
      }
      archived
      archivedAt
      connected
    }
    error {
      name
      code
      message
    }
    clientMutationId
  }
}
VARIABLES
{"input": CreateChannelInput}
RESPONSE
{
  "data": {
    "createChannel": {
      "channel": Channel,
      "error": GenericError,
      "clientMutationId": 4
    }
  }
}

updateChannel

Description

A function to update channel.

rate limit

5 call(s) per app per mintue

scope

["api:admin", "channel:updateAvailabilities", "channel:updateBasicInfo"]

Input params scope
                      
                      "on"
                      

scope: ["api:admin", "channel:updateAvailabilities"]

"name"

scope: ["api:admin", "channel:updateBasicInfo"]

"description"

scope: ["api:admin", "channel:updateBasicInfo"]

"tags"

scope: ["api:admin", "channel:updateBasicInfo"]

"meta"

scope: ["api:admin", "channel:updateBasicInfo"]

Response

Returns an UpdateChannelPayload

Arguments
NameDescription
input - UpdateChannelInput!

Example

QUERY
mutation UpdateChannel($input: UpdateChannelInput!) {
  updateChannel(input: $input) {
    channel {
      id
      _id
      createdAt
      updatedAt
      name
      description
      app {
        ...AppFragment
      }
      appId
      type
      relayWebhooks
      webhooks
      verificationToken
      channelSecret
      info
      broadcastGroups {
        ...ChannelBroadcastGroupFragment
      }
      meta
      trees {
        ...TreeFragment
      }
      globalNodes {
        ...NodeObjectFragment
      }
      priorityGroups {
        ...ChannelPriorityGroupFragment
      }
      tags
      inletGroup
      etag
      on
      sendOutletMessageViaBot
      livechatAgendas
      liveChatAgendaObjects {
        ...LiveChatAgendaFragment
      }
      availability
      exclusiveLiveChat
      locked
      wabaStatus
      wabaError
      wabaInfo
      wabaIntegration {
        ...WABAIntegrationFragment
      }
      environment {
        ...ChannelEnvironmentFragment
      }
      environments {
        ...ChannelEnvironmentFragment
      }
      incomingWebhooks {
        ...ChannelIncomingWebhookFragment
      }
      archived
      archivedAt
      connected
    }
    error {
      name
      code
      message
    }
    clientMutationId
  }
}
VARIABLES
{"input": UpdateChannelInput}
RESPONSE
{
  "data": {
    "updateChannel": {
      "channel": Channel,
      "error": GenericError,
      "clientMutationId": "4"
    }
  }
}

deleteChannel

Description

A function to delete a channel.

rate limit

5 call(s) per app per mintue

scope

["api:admin", "channel:deleteChannel"]

Response

Returns a DeleteChannelPayload

Arguments
NameDescription
input - DeleteChannelInput!

Example

QUERY
mutation DeleteChannel($input: DeleteChannelInput!) {
  deleteChannel(input: $input) {
    error {
      name
      code
      message
    }
    forceRequest
    errorMessage
    errors {
      name
      code
      message
      meta
    }
    clientMutationId
  }
}
VARIABLES
{"input": DeleteChannelInput}
RESPONSE
{
  "data": {
    "deleteChannel": {
      "error": GenericError,
      "forceRequest": true,
      "errorMessage": "abc123",
      "errors": [endpointError],
      "clientMutationId": "4"
    }
  }
}

unsubscribeChannel

Description

A function to unsubscribe a channel.

rate limit

5 call(s) per app per mintue

scope

["api:admin", "channel:Unsubscribe"]

Response

Returns an UnsubscribeChannelPayload

Arguments
NameDescription
input - UnsubscribeChannelInput!

Example

QUERY
mutation UnsubscribeChannel($input: UnsubscribeChannelInput!) {
  unsubscribeChannel(input: $input) {
    error {
      name
      code
      message
    }
    forceRequest
    errorMessage
    errors {
      name
      code
      message
      meta
    }
    clientMutationId
  }
}
VARIABLES
{"input": UnsubscribeChannelInput}
RESPONSE
{
  "data": {
    "unsubscribeChannel": {
      "error": GenericError,
      "forceRequest": true,
      "errorMessage": "abc123",
      "errors": [endpointError],
      "clientMutationId": 4
    }
  }
}

subscribeChannel

Description

A function to subscribe channel from platform integration

rate limit

10 call(s) per app per mintue

scope

["api:admin", "channel:updatePlatformInfo"]

Response

Returns a SubscribeChannelPayload

Arguments
NameDescription
input - SubscribeChannelInput!

Example

QUERY
mutation SubscribeChannel($input: SubscribeChannelInput!) {
  subscribeChannel(input: $input) {
    channel {
      id
      _id
      createdAt
      updatedAt
      name
      description
      app {
        ...AppFragment
      }
      appId
      type
      relayWebhooks
      webhooks
      verificationToken
      channelSecret
      info
      broadcastGroups {
        ...ChannelBroadcastGroupFragment
      }
      meta
      trees {
        ...TreeFragment
      }
      globalNodes {
        ...NodeObjectFragment
      }
      priorityGroups {
        ...ChannelPriorityGroupFragment
      }
      tags
      inletGroup
      etag
      on
      sendOutletMessageViaBot
      livechatAgendas
      liveChatAgendaObjects {
        ...LiveChatAgendaFragment
      }
      availability
      exclusiveLiveChat
      locked
      wabaStatus
      wabaError
      wabaInfo
      wabaIntegration {
        ...WABAIntegrationFragment
      }
      environment {
        ...ChannelEnvironmentFragment
      }
      environments {
        ...ChannelEnvironmentFragment
      }
      incomingWebhooks {
        ...ChannelIncomingWebhookFragment
      }
      archived
      archivedAt
      connected
    }
    error {
      name
      code
      message
    }
    clientMutationId
  }
}
VARIABLES
{"input": SubscribeChannelInput}
RESPONSE
{
  "data": {
    "subscribeChannel": {
      "channel": Channel,
      "error": GenericError,
      "clientMutationId": "4"
    }
  }
}

updateChannelEnvironment

Description

A function to update channel environment.

rate limit

60 call(s) per app per mintue

scope

["api:admin", "channel:updateTreeSettings", "channel:updateBasicInfo", "channel:updateAvailabilities", "channel:updateDetail"]

Input params scope
                      
                      "on"
                      

scope: ["api:admin", "channel:updateAvailabilities"]

"availability"

scope: ["api:admin", "channel:updateAvailabilities"]

"name"

scope: ["api:admin", "channel:updateBasicInfo"]

"hooks"

scope: ["api:admin", "channel:updateDetail"]

"webhooks"

scope: ["api:admin", "channel:updateDetail"]

"treeIds"

scope: ["api:admin", "channel:updateTreeSettings"]

"globalNodeIds"

scope: ["api:admin", "channel:updateTreeSettings"]

"offTreeIds"

scope: ["api:admin", "channel:updateTreeSettings"]

"offGlobalNodeIds"

scope: ["api:admin", "channel:updateTreeSettings"]

"livechatTreeIds"

scope: ["api:admin", "channel:updateTreeSettings"]

"livechatGlobalNodeIds"

scope: ["api:admin", "channel:updateTreeSettings"]

"coreVersion"

scope: ["api:admin", "channel:updateTreeSettings"]

"meta"

scope: ["api:admin", "channel:updateTreeSettings"]

Response

Returns an UpdateChannelPayload

Arguments
NameDescription
input - UpdateChannelEnvironmentInput!

Example

QUERY
mutation UpdateChannelEnvironment($input: UpdateChannelEnvironmentInput!) {
  updateChannelEnvironment(input: $input) {
    channel {
      id
      _id
      createdAt
      updatedAt
      name
      description
      app {
        ...AppFragment
      }
      appId
      type
      relayWebhooks
      webhooks
      verificationToken
      channelSecret
      info
      broadcastGroups {
        ...ChannelBroadcastGroupFragment
      }
      meta
      trees {
        ...TreeFragment
      }
      globalNodes {
        ...NodeObjectFragment
      }
      priorityGroups {
        ...ChannelPriorityGroupFragment
      }
      tags
      inletGroup
      etag
      on
      sendOutletMessageViaBot
      livechatAgendas
      liveChatAgendaObjects {
        ...LiveChatAgendaFragment
      }
      availability
      exclusiveLiveChat
      locked
      wabaStatus
      wabaError
      wabaInfo
      wabaIntegration {
        ...WABAIntegrationFragment
      }
      environment {
        ...ChannelEnvironmentFragment
      }
      environments {
        ...ChannelEnvironmentFragment
      }
      incomingWebhooks {
        ...ChannelIncomingWebhookFragment
      }
      archived
      archivedAt
      connected
    }
    error {
      name
      code
      message
    }
    clientMutationId
  }
}
VARIABLES
{"input": UpdateChannelEnvironmentInput}
RESPONSE
{
  "data": {
    "updateChannelEnvironment": {
      "channel": Channel,
      "error": GenericError,
      "clientMutationId": 4
    }
  }
}

updateChannelEnvironmentHooks

Description

A function to update channel environment hooks.

rate limit

60 call(s) per app per mintue

scope

["api:admin", "channel:updateDetail"]

Response

Returns an UpdateChannelPayload

Arguments
NameDescription
input - UpdateChannelEnvironmentHooksInput!

Example

QUERY
mutation UpdateChannelEnvironmentHooks($input: UpdateChannelEnvironmentHooksInput!) {
  updateChannelEnvironmentHooks(input: $input) {
    channel {
      id
      _id
      createdAt
      updatedAt
      name
      description
      app {
        ...AppFragment
      }
      appId
      type
      relayWebhooks
      webhooks
      verificationToken
      channelSecret
      info
      broadcastGroups {
        ...ChannelBroadcastGroupFragment
      }
      meta
      trees {
        ...TreeFragment
      }
      globalNodes {
        ...NodeObjectFragment
      }
      priorityGroups {
        ...ChannelPriorityGroupFragment
      }
      tags
      inletGroup
      etag
      on
      sendOutletMessageViaBot
      livechatAgendas
      liveChatAgendaObjects {
        ...LiveChatAgendaFragment
      }
      availability
      exclusiveLiveChat
      locked
      wabaStatus
      wabaError
      wabaInfo
      wabaIntegration {
        ...WABAIntegrationFragment
      }
      environment {
        ...ChannelEnvironmentFragment
      }
      environments {
        ...ChannelEnvironmentFragment
      }
      incomingWebhooks {
        ...ChannelIncomingWebhookFragment
      }
      archived
      archivedAt
      connected
    }
    error {
      name
      code
      message
    }
    clientMutationId
  }
}
VARIABLES
{"input": UpdateChannelEnvironmentHooksInput}
RESPONSE
{
  "data": {
    "updateChannelEnvironmentHooks": {
      "channel": Channel,
      "error": GenericError,
      "clientMutationId": 4
    }
  }
}

updateChannelEnvironmentWebhooks

Description

A function to update channel environment webhooks.

rate limit

60 call(s) per app per mintue

scope

["api:admin", "channel:updateDetail"]

Response

Returns an UpdateChannelPayload

Arguments
NameDescription
input - UpdateChannelEnvironmentWebhooksInput!

Example

QUERY
mutation UpdateChannelEnvironmentWebhooks($input: UpdateChannelEnvironmentWebhooksInput!) {
  updateChannelEnvironmentWebhooks(input: $input) {
    channel {
      id
      _id
      createdAt
      updatedAt
      name
      description
      app {
        ...AppFragment
      }
      appId
      type
      relayWebhooks
      webhooks
      verificationToken
      channelSecret
      info
      broadcastGroups {
        ...ChannelBroadcastGroupFragment
      }
      meta
      trees {
        ...TreeFragment
      }
      globalNodes {
        ...NodeObjectFragment
      }
      priorityGroups {
        ...ChannelPriorityGroupFragment
      }
      tags
      inletGroup
      etag
      on
      sendOutletMessageViaBot
      livechatAgendas
      liveChatAgendaObjects {
        ...LiveChatAgendaFragment
      }
      availability
      exclusiveLiveChat
      locked
      wabaStatus
      wabaError
      wabaInfo
      wabaIntegration {
        ...WABAIntegrationFragment
      }
      environment {
        ...ChannelEnvironmentFragment
      }
      environments {
        ...ChannelEnvironmentFragment
      }
      incomingWebhooks {
        ...ChannelIncomingWebhookFragment
      }
      archived
      archivedAt
      connected
    }
    error {
      name
      code
      message
    }
    clientMutationId
  }
}
VARIABLES
{"input": UpdateChannelEnvironmentWebhooksInput}
RESPONSE
{
  "data": {
    "updateChannelEnvironmentWebhooks": {
      "channel": Channel,
      "error": GenericError,
      "clientMutationId": "4"
    }
  }
}

updateChannelEnvironmentTreeGlobalNode

Description

A function to update channel environment trees and global nodes.

rate limit

60 call(s) per app per mintue

scope

["api:admin", "channel:updateTreeSettings"]

Response

Returns an UpdateChannelPayload

Arguments
NameDescription
input - UpdateChannelEnvironmentTreeGlobalNodeInput!

Example

QUERY
mutation UpdateChannelEnvironmentTreeGlobalNode($input: UpdateChannelEnvironmentTreeGlobalNodeInput!) {
  updateChannelEnvironmentTreeGlobalNode(input: $input) {
    channel {
      id
      _id
      createdAt
      updatedAt
      name
      description
      app {
        ...AppFragment
      }
      appId
      type
      relayWebhooks
      webhooks
      verificationToken
      channelSecret
      info
      broadcastGroups {
        ...ChannelBroadcastGroupFragment
      }
      meta
      trees {
        ...TreeFragment
      }
      globalNodes {
        ...NodeObjectFragment
      }
      priorityGroups {
        ...ChannelPriorityGroupFragment
      }
      tags
      inletGroup
      etag
      on
      sendOutletMessageViaBot
      livechatAgendas
      liveChatAgendaObjects {
        ...LiveChatAgendaFragment
      }
      availability
      exclusiveLiveChat
      locked
      wabaStatus
      wabaError
      wabaInfo
      wabaIntegration {
        ...WABAIntegrationFragment
      }
      environment {
        ...ChannelEnvironmentFragment
      }
      environments {
        ...ChannelEnvironmentFragment
      }
      incomingWebhooks {
        ...ChannelIncomingWebhookFragment
      }
      archived
      archivedAt
      connected
    }
    error {
      name
      code
      message
    }
    clientMutationId
  }
}
VARIABLES
{"input": UpdateChannelEnvironmentTreeGlobalNodeInput}
RESPONSE
{
  "data": {
    "updateChannelEnvironmentTreeGlobalNode": {
      "channel": Channel,
      "error": GenericError,
      "clientMutationId": 4
    }
  }
}

updateChannelEnvironmentOffTreeGlobalNode

Description

A function to update channel environment off trees and global nodes.

rate limit

60 call(s) per app per mintue

scope

["api:admin", "channel:updateTreeSettings"]

Response

Returns an UpdateChannelPayload

Arguments
NameDescription
input - UpdateChannelEnvironmentOffTreeGlobalNodeInput!

Example

QUERY
mutation UpdateChannelEnvironmentOffTreeGlobalNode($input: UpdateChannelEnvironmentOffTreeGlobalNodeInput!) {
  updateChannelEnvironmentOffTreeGlobalNode(input: $input) {
    channel {
      id
      _id
      createdAt
      updatedAt
      name
      description
      app {
        ...AppFragment
      }
      appId
      type
      relayWebhooks
      webhooks
      verificationToken
      channelSecret
      info
      broadcastGroups {
        ...ChannelBroadcastGroupFragment
      }
      meta
      trees {
        ...TreeFragment
      }
      globalNodes {
        ...NodeObjectFragment
      }
      priorityGroups {
        ...ChannelPriorityGroupFragment
      }
      tags
      inletGroup
      etag
      on
      sendOutletMessageViaBot
      livechatAgendas
      liveChatAgendaObjects {
        ...LiveChatAgendaFragment
      }
      availability
      exclusiveLiveChat
      locked
      wabaStatus
      wabaError
      wabaInfo
      wabaIntegration {
        ...WABAIntegrationFragment
      }
      environment {
        ...ChannelEnvironmentFragment
      }
      environments {
        ...ChannelEnvironmentFragment
      }
      incomingWebhooks {
        ...ChannelIncomingWebhookFragment
      }
      archived
      archivedAt
      connected
    }
    error {
      name
      code
      message
    }
    clientMutationId
  }
}
VARIABLES
{"input": UpdateChannelEnvironmentOffTreeGlobalNodeInput}
RESPONSE
{
  "data": {
    "updateChannelEnvironmentOffTreeGlobalNode": {
      "channel": Channel,
      "error": GenericError,
      "clientMutationId": "4"
    }
  }
}

updateChannelEnvironmentLivechatTreeGlobalNode

Description

A function to update channel environment livechat trees and global nodes.

rate limit

60 call(s) per app per mintue

scope

["api:admin", "channel:updateTreeSettings"]

Response

Returns an UpdateChannelPayload

Example

QUERY
mutation UpdateChannelEnvironmentLivechatTreeGlobalNode($input: UpdateChannelEnvironmentLivechatTreeGlobalNodeInput!) {
  updateChannelEnvironmentLivechatTreeGlobalNode(input: $input) {
    channel {
      id
      _id
      createdAt
      updatedAt
      name
      description
      app {
        ...AppFragment
      }
      appId
      type
      relayWebhooks
      webhooks
      verificationToken
      channelSecret
      info
      broadcastGroups {
        ...ChannelBroadcastGroupFragment
      }
      meta
      trees {
        ...TreeFragment
      }
      globalNodes {
        ...NodeObjectFragment
      }
      priorityGroups {
        ...ChannelPriorityGroupFragment
      }
      tags
      inletGroup
      etag
      on
      sendOutletMessageViaBot
      livechatAgendas
      liveChatAgendaObjects {
        ...LiveChatAgendaFragment
      }
      availability
      exclusiveLiveChat
      locked
      wabaStatus
      wabaError
      wabaInfo
      wabaIntegration {
        ...WABAIntegrationFragment
      }
      environment {
        ...ChannelEnvironmentFragment
      }
      environments {
        ...ChannelEnvironmentFragment
      }
      incomingWebhooks {
        ...ChannelIncomingWebhookFragment
      }
      archived
      archivedAt
      connected
    }
    error {
      name
      code
      message
    }
    clientMutationId
  }
}
VARIABLES
{
  "input": UpdateChannelEnvironmentLivechatTreeGlobalNodeInput
}
RESPONSE
{
  "data": {
    "updateChannelEnvironmentLivechatTreeGlobalNode": {
      "channel": Channel,
      "error": GenericError,
      "clientMutationId": 4
    }
  }
}

createChannelEnvironment

Description

A function to create a new channel environment.

rate limit

60 call(s) per app per mintue

scope

["api:admin", "channel:createEnvironment"]

Response

Returns an UpdateChannelPayload

Arguments
NameDescription
input - CreateChannelEnvironmentInput!

Example

QUERY
mutation CreateChannelEnvironment($input: CreateChannelEnvironmentInput!) {
  createChannelEnvironment(input: $input) {
    channel {
      id
      _id
      createdAt
      updatedAt
      name
      description
      app {
        ...AppFragment
      }
      appId
      type
      relayWebhooks
      webhooks
      verificationToken
      channelSecret
      info
      broadcastGroups {
        ...ChannelBroadcastGroupFragment
      }
      meta
      trees {
        ...TreeFragment
      }
      globalNodes {
        ...NodeObjectFragment
      }
      priorityGroups {
        ...ChannelPriorityGroupFragment
      }
      tags
      inletGroup
      etag
      on
      sendOutletMessageViaBot
      livechatAgendas
      liveChatAgendaObjects {
        ...LiveChatAgendaFragment
      }
      availability
      exclusiveLiveChat
      locked
      wabaStatus
      wabaError
      wabaInfo
      wabaIntegration {
        ...WABAIntegrationFragment
      }
      environment {
        ...ChannelEnvironmentFragment
      }
      environments {
        ...ChannelEnvironmentFragment
      }
      incomingWebhooks {
        ...ChannelIncomingWebhookFragment
      }
      archived
      archivedAt
      connected
    }
    error {
      name
      code
      message
    }
    clientMutationId
  }
}
VARIABLES
{"input": CreateChannelEnvironmentInput}
RESPONSE
{
  "data": {
    "createChannelEnvironment": {
      "channel": Channel,
      "error": GenericError,
      "clientMutationId": 4
    }
  }
}

deleteChannelEnvironment

Description

A function to delete a new channel environment.

rate limit

5 call(s) per app per mintue

scope

["api:admin", "channel:deleteEnvironment"]

Arguments
NameDescription
input - DeleteChannelEnvironmentInput!

Example

QUERY
mutation DeleteChannelEnvironment($input: DeleteChannelEnvironmentInput!) {
  deleteChannelEnvironment(input: $input) {
    channel {
      id
      _id
      createdAt
      updatedAt
      name
      description
      app {
        ...AppFragment
      }
      appId
      type
      relayWebhooks
      webhooks
      verificationToken
      channelSecret
      info
      broadcastGroups {
        ...ChannelBroadcastGroupFragment
      }
      meta
      trees {
        ...TreeFragment
      }
      globalNodes {
        ...NodeObjectFragment
      }
      priorityGroups {
        ...ChannelPriorityGroupFragment
      }
      tags
      inletGroup
      etag
      on
      sendOutletMessageViaBot
      livechatAgendas
      liveChatAgendaObjects {
        ...LiveChatAgendaFragment
      }
      availability
      exclusiveLiveChat
      locked
      wabaStatus
      wabaError
      wabaInfo
      wabaIntegration {
        ...WABAIntegrationFragment
      }
      environment {
        ...ChannelEnvironmentFragment
      }
      environments {
        ...ChannelEnvironmentFragment
      }
      incomingWebhooks {
        ...ChannelIncomingWebhookFragment
      }
      archived
      archivedAt
      connected
    }
    forceRequest
    error {
      name
      code
      message
    }
    clientMutationId
  }
}
VARIABLES
{"input": DeleteChannelEnvironmentInput}
RESPONSE
{
  "data": {
    "deleteChannelEnvironment": {
      "channel": Channel,
      "forceRequest": false,
      "error": GenericError,
      "clientMutationId": 4
    }
  }
}

updateChannelIncomingWebhooks

Description

rate limit 5 call(s) per app per mintue

scope

["api:admin", "channel:updateDetail"]

Arguments
NameDescription
input - UpdateChannelIncomingWebhookInput!

Example

QUERY
mutation UpdateChannelIncomingWebhooks($input: UpdateChannelIncomingWebhookInput!) {
  updateChannelIncomingWebhooks(input: $input) {
    channel {
      id
      _id
      createdAt
      updatedAt
      name
      description
      app {
        ...AppFragment
      }
      appId
      type
      relayWebhooks
      webhooks
      verificationToken
      channelSecret
      info
      broadcastGroups {
        ...ChannelBroadcastGroupFragment
      }
      meta
      trees {
        ...TreeFragment
      }
      globalNodes {
        ...NodeObjectFragment
      }
      priorityGroups {
        ...ChannelPriorityGroupFragment
      }
      tags
      inletGroup
      etag
      on
      sendOutletMessageViaBot
      livechatAgendas
      liveChatAgendaObjects {
        ...LiveChatAgendaFragment
      }
      availability
      exclusiveLiveChat
      locked
      wabaStatus
      wabaError
      wabaInfo
      wabaIntegration {
        ...WABAIntegrationFragment
      }
      environment {
        ...ChannelEnvironmentFragment
      }
      environments {
        ...ChannelEnvironmentFragment
      }
      incomingWebhooks {
        ...ChannelIncomingWebhookFragment
      }
      archived
      archivedAt
      connected
    }
    clientMutationId
  }
}
VARIABLES
{"input": UpdateChannelIncomingWebhookInput}
RESPONSE
{
  "data": {
    "updateChannelIncomingWebhooks": {
      "channel": Channel,
      "clientMutationId": 4
    }
  }
}

Priority Group

createPriorityGroup

Description

A function to create priority group.

rate limit

5 call(s) per app per mintue

scope

["api:admin", "priorityGroup:create"]

Response

Returns a CreatePriorityGroupPayload

Arguments
NameDescription
input - CreatePriorityGroupInput!

Example

QUERY
mutation CreatePriorityGroup($input: CreatePriorityGroupInput!) {
  createPriorityGroup(input: $input) {
    priorityGroup {
      id
      _id
      createdAt
      updatedAt
      name
      description
      app {
        ...AppFragment
      }
      channel {
        ...ChannelFragment
      }
      members {
        ...MemberFragment
      }
      memberIds
      tags
      etag
    }
    clientMutationId
  }
}
VARIABLES
{"input": CreatePriorityGroupInput}
RESPONSE
{
  "data": {
    "createPriorityGroup": {
      "priorityGroup": PriorityGroup,
      "clientMutationId": 4
    }
  }
}

updatePriorityGroup

Description

A function to update priority group.

rate limit

5 call(s) per app per mintue

scope

["api:admin", "priorityGroup:update"]

Response

Returns an UpdatePriorityGroupPayload

Arguments
NameDescription
input - UpdatePriorityGroupInput!

Example

QUERY
mutation UpdatePriorityGroup($input: UpdatePriorityGroupInput!) {
  updatePriorityGroup(input: $input) {
    priorityGroup {
      id
      _id
      createdAt
      updatedAt
      name
      description
      app {
        ...AppFragment
      }
      channel {
        ...ChannelFragment
      }
      members {
        ...MemberFragment
      }
      memberIds
      tags
      etag
    }
    clientMutationId
  }
}
VARIABLES
{"input": UpdatePriorityGroupInput}
RESPONSE
{
  "data": {
    "updatePriorityGroup": {
      "priorityGroup": PriorityGroup,
      "clientMutationId": 4
    }
  }
}

deletePriorityGroup

Description

A function to delete priority group.

rate limit

5 call(s) per app per mintue

scope

["api:admin", "priorityGroup:delete"]

Response

Returns a DeletePriorityGroupPayload

Arguments
NameDescription
input - DeletePriorityGroupInput!

Example

QUERY
mutation DeletePriorityGroup($input: DeletePriorityGroupInput!) {
  deletePriorityGroup(input: $input) {
    clientMutationId
  }
}
VARIABLES
{"input": DeletePriorityGroupInput}
RESPONSE
{
  "data": {
    "deletePriorityGroup": {
      "clientMutationId": "4"
    }
  }
}

Data Source

createDataSourceDoc

Description

A function to create datasource document.

rate limit

30 call(s) per app per mintue

scope

["api:admin", "datasource:api", "dataSource:createDoc"]

Response

Returns a CreateDataSourceDocPayload

Arguments
NameDescription
input - CreateDataSourceDocInput!

Example

QUERY
mutation CreateDataSourceDoc($input: CreateDataSourceDocInput!) {
  createDataSourceDoc(input: $input) {
    clientMutationId
    data
  }
}
VARIABLES
{"input": CreateDataSourceDocInput}
RESPONSE
{
  "data": {
    "createDataSourceDoc": {
      "clientMutationId": "4",
      "data": {}
    }
  }
}

updateDataSourceDoc

Description

A function to update datasource document (replace) by _id.

rate limit

30 call(s) per app per mintue

scope

["api:admin", "datasource:api", "dataSource:updateDoc"]

Response

Returns an UpdateDataSourceDocPayload

Arguments
NameDescription
input - UpdateDataSourceDocInput!

Example

QUERY
mutation UpdateDataSourceDoc($input: UpdateDataSourceDocInput!) {
  updateDataSourceDoc(input: $input) {
    clientMutationId
    data
  }
}
VARIABLES
{"input": UpdateDataSourceDocInput}
RESPONSE
{"data": {"updateDataSourceDoc": {"clientMutationId": 4, "data": {}}}}

deleteDataSourceDocs

Description

A function to delete datasource documents by _id.

rate limit

30 call(s) per app per mintue

scope

["api:admin", "datasource:api", "dataSource:deleteDoc"]

Response

Returns a DeleteDataSourceDocsPayload

Arguments
NameDescription
input - DeleteDataSourceDocsInput!

Example

QUERY
mutation DeleteDataSourceDocs($input: DeleteDataSourceDocsInput!) {
  deleteDataSourceDocs(input: $input) {
    clientMutationId
  }
}
VARIABLES
{"input": DeleteDataSourceDocsInput}
RESPONSE
{
  "data": {
    "deleteDataSourceDocs": {
      "clientMutationId": "4"
    }
  }
}

importDataSource

Description

A function to import datasource documents.

rate limit

30 call(s) per app per mintue

scope

["api:admin", "datasource:api", "dataSource:importDatasource"]

Response

Returns an ImportDataSourcePayload

Arguments
NameDescription
input - ImportDataSourceInput!

Example

QUERY
mutation ImportDataSource($input: ImportDataSourceInput!) {
  importDataSource(input: $input) {
    clientMutationId
    data
  }
}
VARIABLES
{"input": ImportDataSourceInput}
RESPONSE
{"data": {"importDataSource": {"clientMutationId": 4, "data": {}}}}

createDataSource

Description

A function to create datasource.

rate limit

20 call(s) per app per mintue

scope

["api:admin", "datasource:api", "dataSource:createDatasource"]

Response

Returns a CreateDataSourcePayload

Arguments
NameDescription
input - CreateDataSourceInput!

Example

QUERY
mutation CreateDataSource($input: CreateDataSourceInput!) {
  createDataSource(input: $input) {
    dataSource {
      name
      description
      collectionName
      shopifyIntegration
      data {
        ...DataSourceConnectionFragment
      }
      dataByQuery
    }
    clientMutationId
  }
}
VARIABLES
{"input": CreateDataSourceInput}
RESPONSE
{
  "data": {
    "createDataSource": {
      "dataSource": DataSource,
      "clientMutationId": "4"
    }
  }
}

updateDataSource

Description

A function to update datasource.

rate limit

20 call(s) per app per mintue

scope

["api:admin", "datasource:api", "dataSource:updateDatasource"]

Response

Returns an UpdateDataSourcePayload

Arguments
NameDescription
input - UpdateDataSourceInput!

Example

QUERY
mutation UpdateDataSource($input: UpdateDataSourceInput!) {
  updateDataSource(input: $input) {
    dataSource {
      name
      description
      collectionName
      shopifyIntegration
      data {
        ...DataSourceConnectionFragment
      }
      dataByQuery
    }
    clientMutationId
  }
}
VARIABLES
{"input": UpdateDataSourceInput}
RESPONSE
{
  "data": {
    "updateDataSource": {
      "dataSource": DataSource,
      "clientMutationId": 4
    }
  }
}

deleteDataSource

Description

A function to delete datasource.

rate limit

20 call(s) per app per mintue

scope

["api:admin", "datasource:api", "dataSource:deleteDatasource"]

Response

Returns a DeleteDataSourcePayload

Arguments
NameDescription
input - DeleteDataSourceInput!

Example

QUERY
mutation DeleteDataSource($input: DeleteDataSourceInput!) {
  deleteDataSource(input: $input) {
    clientMutationId
  }
}
VARIABLES
{"input": DeleteDataSourceInput}
RESPONSE
{"data": {"deleteDataSource": {"clientMutationId": 4}}}

upsertDataSourceDocs

Description

A function to upsert datasource document.

rate limit

30 call(s) per app per mintue

scope

["api:admin", "datasource:api", "dataSource:createDoc", "dateSource:updateDoc"]

Response

Returns an UpsertDataSourceDocsPayload

Arguments
NameDescription
input - UpsertDataSourceDocsInput!

Example

QUERY
mutation UpsertDataSourceDocs($input: UpsertDataSourceDocsInput!) {
  upsertDataSourceDocs(input: $input) {
    result
    clientMutationId
  }
}
VARIABLES
{"input": UpsertDataSourceDocsInput}
RESPONSE
{
  "data": {
    "upsertDataSourceDocs": {
      "result": {},
      "clientMutationId": "4"
    }
  }
}

updateDataSourceDocs

Description

A function to update datasource document.

rate limit

30 call(s) per app per mintue

scope

["api:admin", "datasource:api", "dateSource:updateDoc"]

Response

Returns an UpdateDataSourceDocsPayload

Arguments
NameDescription
input - UpdateDataSourceDocsInput!

Example

QUERY
mutation UpdateDataSourceDocs($input: UpdateDataSourceDocsInput!) {
  updateDataSourceDocs(input: $input) {
    result
    clientMutationId
  }
}
VARIABLES
{"input": UpdateDataSourceDocsInput}
RESPONSE
{
  "data": {
    "updateDataSourceDocs": {
      "result": {},
      "clientMutationId": "4"
    }
  }
}

findAndModifyDataSourceDoc

Description

A function to find and modify datasource document.

Format: https://docs.mongodb.com/manual/reference/method/db.collection.findAndModify/

rate limit

30 call(s) per app per mintue

scope

["api:admin", "datasource:api", "dateSource:updateDoc"]

Arguments
NameDescription
input - FindAndModifyDataSourceDocInput!

Example

QUERY
mutation FindAndModifyDataSourceDoc($input: FindAndModifyDataSourceDocInput!) {
  findAndModifyDataSourceDoc(input: $input) {
    result
    clientMutationId
  }
}
VARIABLES
{"input": FindAndModifyDataSourceDocInput}
RESPONSE
{"data": {"findAndModifyDataSourceDoc": {"result": {}, "clientMutationId": 4}}}

aggregateDataSourceDocs

Description

A function to aggregate datasource documents.

Format: https://docs.mongodb.com/manual/core/aggregation-pipeline/

rate limit

30 call(s) per app per mintue

scope

["api:admin", "datasource:api"]

Response

Returns an AggregateDataSourceDocsPayload

Arguments
NameDescription
input - AggregateDataSourceDocsInput!

Example

QUERY
mutation AggregateDataSourceDocs($input: AggregateDataSourceDocsInput!) {
  aggregateDataSourceDocs(input: $input) {
    result
    clientMutationId
  }
}
VARIABLES
{"input": AggregateDataSourceDocsInput}
RESPONSE
{"data": {"aggregateDataSourceDocs": {"result": {}, "clientMutationId": 4}}}

Locale Group

createLocaleGroup

Description

A function to create locale group.

rate limit

5 call(s) per app per mintue

scope

["api:admin", "localeGroup:create"]

Response

Returns a CreateLocaleGroupPayload

Arguments
NameDescription
input - CreateLocaleGroupInput!

Example

QUERY
mutation CreateLocaleGroup($input: CreateLocaleGroupInput!) {
  createLocaleGroup(input: $input) {
    localeGroup {
      id
      _id
      createdAt
      updatedAt
      app {
        ...AppFragment
      }
      locales
      name
      etag
    }
    clientMutationId
  }
}
VARIABLES
{"input": CreateLocaleGroupInput}
RESPONSE
{
  "data": {
    "createLocaleGroup": {
      "localeGroup": LocaleGroup,
      "clientMutationId": 4
    }
  }
}

updateLocaleGroup

Description

A function to update locale group.

rate limit

5 call(s) per app per mintue

scope

["api:admin", "localeGroup:update"]

Response

Returns an UpdateLocaleGroupPayload

Arguments
NameDescription
input - UpdateLocaleGroupInput!

Example

QUERY
mutation UpdateLocaleGroup($input: UpdateLocaleGroupInput!) {
  updateLocaleGroup(input: $input) {
    localeGroup {
      id
      _id
      createdAt
      updatedAt
      app {
        ...AppFragment
      }
      locales
      name
      etag
    }
    clientMutationId
  }
}
VARIABLES
{"input": UpdateLocaleGroupInput}
RESPONSE
{
  "data": {
    "updateLocaleGroup": {
      "localeGroup": LocaleGroup,
      "clientMutationId": 4
    }
  }
}

deleteLocaleGroup

Description

A function to delete locale group.

rate limit

5 call(s) per app per mintue

scope

["api:admin", "localeGroup:delete"]

Response

Returns a DeleteLocaleGroupPayload

Arguments
NameDescription
input - DeleteLocaleGroupInput!

Example

QUERY
mutation DeleteLocaleGroup($input: DeleteLocaleGroupInput!) {
  deleteLocaleGroup(input: $input) {
    clientMutationId
  }
}
VARIABLES
{"input": DeleteLocaleGroupInput}
RESPONSE
{
  "data": {
    "deleteLocaleGroup": {
      "clientMutationId": "4"
    }
  }
}

Media Library

Members

createMember

Description

A function to create member.

rate limit

5 call(s) per app per mintue

scope

["api:admin", "member:create"]

Response

Returns a CreateMemberPayload

Arguments
NameDescription
input - CreateMemberInput!

Example

QUERY
mutation CreateMember($input: CreateMemberInput!) {
  createMember(input: $input) {
    member {
      id
      _id
      createdAt
      updatedAt
      app {
        ...AppFragment
      }
      appId
      channel {
        ...ChannelFragment
      }
      channelId
      platform
      profile {
        ...MemberProfileFragment
      }
      inboxProfile {
        ...InboxMemberProfileFragment
      }
      tags
      meta
      botMeta {
        ...BotMetaFragment
      }
      externalId
      botId
      admin {
        ...AdminFragment
      }
      adminId
      group {
        ...GroupFragment
      }
      assignment
      fbId
      name
      firstName
      lastName
      profilePic
      gender
      customLocale
      locale
      email
      profilePicString
      inletGroup
      fbOTNTokens {
        ...FbOTNTokenFragment
      }
      notes {
        ...NoteFragment
      }
      etag
    }
    clientMutationId
  }
}
VARIABLES
{"input": CreateMemberInput}
RESPONSE
{
  "data": {
    "createMember": {
      "member": Member,
      "clientMutationId": 4
    }
  }
}

updateMember

Description

A function to update member.

rate limit

10 call(s) per app per mintue

scope

["api:admin", "member:update", "member:updateProfile", "member:updateBotMeta", "member:updateMeta"]

Input params scope
                      
                      "profile"
                      

scope: ["api:admin", "member:update", "member:updateProfile"]

"tags"

scope: ["api:admin", "member:update", "member:updateProfile"]

"meta"

scope: ["api:admin", "member:update", "member:updateMeta"]

"botMeta"

scope: ["api:admin", "member:update", "member:updateBotMeta"]

"admin"

scope: ["api:admin", "member:update"]

"group"

scope: ["api:admin", "member:update"]

"firstName"

scope: ["api:admin", "member:update", "member:updateProfile"]

"lastName"

scope: ["api:admin", "member:update", "member:updateProfile"]

"profilePic"

scope: ["api:admin", "member:update", "member:updateProfile"]

"gender"

scope: ["api:admin", "member:update", "member:updateProfile"]

"locale"

scope: ["api:admin", "member:update", "member:updateProfile"]

"email"

scope: ["api:admin", "member:update", "member:updateProfile"]

"profilePicString"

scope: ["api:admin", "member:update", "member:updateProfile"]

Response

Returns an UpdateMemberPayload

Arguments
NameDescription
input - UpdateMemberInput!

Example

QUERY
mutation UpdateMember($input: UpdateMemberInput!) {
  updateMember(input: $input) {
    member {
      id
      _id
      createdAt
      updatedAt
      app {
        ...AppFragment
      }
      appId
      channel {
        ...ChannelFragment
      }
      channelId
      platform
      profile {
        ...MemberProfileFragment
      }
      inboxProfile {
        ...InboxMemberProfileFragment
      }
      tags
      meta
      botMeta {
        ...BotMetaFragment
      }
      externalId
      botId
      admin {
        ...AdminFragment
      }
      adminId
      group {
        ...GroupFragment
      }
      assignment
      fbId
      name
      firstName
      lastName
      profilePic
      gender
      customLocale
      locale
      email
      profilePicString
      inletGroup
      fbOTNTokens {
        ...FbOTNTokenFragment
      }
      notes {
        ...NoteFragment
      }
      etag
    }
    memberRaw
    clientMutationId
  }
}
VARIABLES
{"input": UpdateMemberInput}
RESPONSE
{
  "data": {
    "updateMember": {
      "member": Member,
      "memberRaw": {},
      "clientMutationId": "4"
    }
  }
}

deleteMember

Description

A function to permanently delete a member. The conversation history of this member will also be deleted.

rate limit

5 call(s) per app per mintue

scope

["api:admin", "member:delete"]

Response

Returns a DeleteMemberPayload

Arguments
NameDescription
input - DeleteMemberInput!

Example

QUERY
mutation DeleteMember($input: DeleteMemberInput!) {
  deleteMember(input: $input) {
    clientMutationId
  }
}
VARIABLES
{"input": DeleteMemberInput}
RESPONSE
{"data": {"deleteMember": {"clientMutationId": 4}}}

deleteMembers

Description

A function to permanently delete members in batch with time filter. The conversation history of these members will also be deleted. NOTE: if no criteria / createdAtFrom / createdAtTo / updatedAtFrom / updatedAtTo is specified, ALL members of the app will be deleted.

rate limit

5 call(s) per app per mintue

scope

["api:admin", "member:delete"]

Response

Returns a DeleteMembersPayload

Arguments
NameDescription
input - DeleteMembersInput!

Example

QUERY
mutation DeleteMembers($input: DeleteMembersInput!) {
  deleteMembers(input: $input) {
    backgroundTask {
      id
      _id
      createdAt
      updatedAt
      app {
        ...AppFragment
      }
      appId
      type
      message
      status
      data
      meta
      runAt
      endAt
      etag
    }
    error {
      name
      code
      message
    }
    clientMutationId
  }
}
VARIABLES
{"input": DeleteMembersInput}
RESPONSE
{
  "data": {
    "deleteMembers": {
      "backgroundTask": BackgroundTask,
      "error": GenericError,
      "clientMutationId": "4"
    }
  }
}

updateMembers

Description

A function to update members.

rate limit

5 call(s) per app per mintue

scope

["api:admin", "member:update"]

Response

Returns an UpdateMembersPayload

Arguments
NameDescription
input - UpdateMembersInput!

Example

QUERY
mutation UpdateMembers($input: UpdateMembersInput!) {
  updateMembers(input: $input) {
    result
    clientMutationId
  }
}
VARIABLES
{"input": UpdateMembersInput}
RESPONSE
{
  "data": {
    "updateMembers": {
      "result": {},
      "clientMutationId": "4"
    }
  }
}

mergeMembersByExternalIds

Description

A function to merge members using two externalIds.

rate limit

5 call(s) per app per mintue

scope

["api:admin", "member:merge"]

Arguments
NameDescription
input - MergeMembersByExternalIdsInput!

Example

QUERY
mutation MergeMembersByExternalIds($input: MergeMembersByExternalIdsInput!) {
  mergeMembersByExternalIds(input: $input) {
    member {
      id
      _id
      createdAt
      updatedAt
      app {
        ...AppFragment
      }
      appId
      channel {
        ...ChannelFragment
      }
      channelId
      platform
      profile {
        ...MemberProfileFragment
      }
      inboxProfile {
        ...InboxMemberProfileFragment
      }
      tags
      meta
      botMeta {
        ...BotMetaFragment
      }
      externalId
      botId
      admin {
        ...AdminFragment
      }
      adminId
      group {
        ...GroupFragment
      }
      assignment
      fbId
      name
      firstName
      lastName
      profilePic
      gender
      customLocale
      locale
      email
      profilePicString
      inletGroup
      fbOTNTokens {
        ...FbOTNTokenFragment
      }
      notes {
        ...NoteFragment
      }
      etag
    }
    action
    clientMutationId
  }
}
VARIABLES
{"input": MergeMembersByExternalIdsInput}
RESPONSE
{
  "data": {
    "mergeMembersByExternalIds": {
      "member": Member,
      "action": "abc123",
      "clientMutationId": "4"
    }
  }
}

exportChats

Description

A function to export chat history (max return 1000 rows).

rate limit

5 call(s) per app per mintue

scope

["api:admin", "conversation:read"]

Response

Returns an ExportChatsPayload

Arguments
NameDescription
input - ExportChatsInput!

Example

QUERY
mutation ExportChats($input: ExportChatsInput!) {
  exportChats(input: $input) {
    url
    urls
  }
}
VARIABLES
{"input": ExportChatsInput}
RESPONSE
{
  "data": {
    "exportChats": {
      "url": "abc123",
      "urls": ["xyz789"]
    }
  }
}

importMembers

Description

A function to import member.

rate limit

5 call(s) per app per mintue

scope

["api:admin", "member:import"]

Response

Returns an ImportMembersPayload

Arguments
NameDescription
input - ImportMembersInput!

Example

QUERY
mutation ImportMembers($input: ImportMembersInput!) {
  importMembers(input: $input) {
    clientMutationId
    backgroundTask {
      id
      _id
      createdAt
      updatedAt
      app {
        ...AppFragment
      }
      appId
      type
      message
      status
      data
      meta
      runAt
      endAt
      etag
    }
  }
}
VARIABLES
{"input": ImportMembersInput}
RESPONSE
{
  "data": {
    "importMembers": {
      "clientMutationId": "4",
      "backgroundTask": BackgroundTask
    }
  }
}

toggleLiveChat

Description

A function to toggle member live chat state.

rate limit

60 call(s) per app per mintue

scope

["api:admin", "member:updateDetails", "member:ToggleLiveChat"]

Response

Returns a toggleLiveChatPayload

Arguments
NameDescription
input - toggleLiveChatInput!

Example

QUERY
mutation ToggleLiveChat($input: toggleLiveChatInput!) {
  toggleLiveChat(input: $input) {
    ok
    err_code
    err
    memberId
    member {
      id
      _id
      createdAt
      updatedAt
      app {
        ...AppFragment
      }
      appId
      channel {
        ...ChannelFragment
      }
      channelId
      platform
      profile {
        ...MemberProfileFragment
      }
      inboxProfile {
        ...InboxMemberProfileFragment
      }
      tags
      meta
      botMeta {
        ...BotMetaFragment
      }
      externalId
      botId
      admin {
        ...AdminFragment
      }
      adminId
      group {
        ...GroupFragment
      }
      assignment
      fbId
      name
      firstName
      lastName
      profilePic
      gender
      customLocale
      locale
      email
      profilePicString
      inletGroup
      fbOTNTokens {
        ...FbOTNTokenFragment
      }
      notes {
        ...NoteFragment
      }
      etag
    }
    clientMutationId
  }
}
VARIABLES
{"input": toggleLiveChatInput}
RESPONSE
{
  "data": {
    "toggleLiveChat": {
      "ok": 123,
      "err_code": 123,
      "err": "xyz789",
      "memberId": 4,
      "member": Member,
      "clientMutationId": "4"
    }
  }
}

addMemberTags

Description

A function to add tags to member.

rate limit

10 call(s) per app per mintue

scope

["api:admin", "member:updateDetails", "member:write"]

Response

Returns a ModifyMemberTagsPayload

Arguments
NameDescription
input - ModifyMemberTagsInput!

Example

QUERY
mutation AddMemberTags($input: ModifyMemberTagsInput!) {
  addMemberTags(input: $input) {
    ok
    err_code
    err
    memberId
    member {
      id
      _id
      createdAt
      updatedAt
      app {
        ...AppFragment
      }
      appId
      channel {
        ...ChannelFragment
      }
      channelId
      platform
      profile {
        ...MemberProfileFragment
      }
      inboxProfile {
        ...InboxMemberProfileFragment
      }
      tags
      meta
      botMeta {
        ...BotMetaFragment
      }
      externalId
      botId
      admin {
        ...AdminFragment
      }
      adminId
      group {
        ...GroupFragment
      }
      assignment
      fbId
      name
      firstName
      lastName
      profilePic
      gender
      customLocale
      locale
      email
      profilePicString
      inletGroup
      fbOTNTokens {
        ...FbOTNTokenFragment
      }
      notes {
        ...NoteFragment
      }
      etag
    }
    clientMutationId
  }
}
VARIABLES
{"input": ModifyMemberTagsInput}
RESPONSE
{
  "data": {
    "addMemberTags": {
      "ok": 987,
      "err_code": 123,
      "err": "abc123",
      "memberId": 4,
      "member": Member,
      "clientMutationId": "4"
    }
  }
}

removeMemberTags

Description

A function to remove tags to member.

rate limit

10 call(s) per app per mintue

scope

["api:admin", "member:updateDetails", "member:write"]

Response

Returns a ModifyMemberTagsPayload

Arguments
NameDescription
input - ModifyMemberTagsInput!

Example

QUERY
mutation RemoveMemberTags($input: ModifyMemberTagsInput!) {
  removeMemberTags(input: $input) {
    ok
    err_code
    err
    memberId
    member {
      id
      _id
      createdAt
      updatedAt
      app {
        ...AppFragment
      }
      appId
      channel {
        ...ChannelFragment
      }
      channelId
      platform
      profile {
        ...MemberProfileFragment
      }
      inboxProfile {
        ...InboxMemberProfileFragment
      }
      tags
      meta
      botMeta {
        ...BotMetaFragment
      }
      externalId
      botId
      admin {
        ...AdminFragment
      }
      adminId
      group {
        ...GroupFragment
      }
      assignment
      fbId
      name
      firstName
      lastName
      profilePic
      gender
      customLocale
      locale
      email
      profilePicString
      inletGroup
      fbOTNTokens {
        ...FbOTNTokenFragment
      }
      notes {
        ...NoteFragment
      }
      etag
    }
    clientMutationId
  }
}
VARIABLES
{"input": ModifyMemberTagsInput}
RESPONSE
{
  "data": {
    "removeMemberTags": {
      "ok": 987,
      "err_code": 123,
      "err": "xyz789",
      "memberId": 4,
      "member": Member,
      "clientMutationId": 4
    }
  }
}

batchUpdateMember

Description

A function to batch update member.

rate limit

10 call(s) per app per mintue

Array Size Limit max
                      
                      Input params array size limit
                      
                      "memberIds"
                      

max: 100

"externalIds"

max: 100

"tags"

max: 10

scope

["api:admin", "member:update", "member:updateProfile"]

Input params scope
                      
                      "tags"
                      

scope: ["api:admin", "member:update", "member:updateProfile"]

"locale"

scope: ["api:admin", "member:update", "member:updateProfile"]

"gender"

scope: ["api:admin", "member:update", "member:updateProfile"]

Response

Returns a BatchUpdateMemberPayload

Arguments
NameDescription
input - BatchUpdateMemberInput!

Example

QUERY
mutation BatchUpdateMember($input: BatchUpdateMemberInput!) {
  batchUpdateMember(input: $input) {
    clientMutationId
  }
}
VARIABLES
{"input": BatchUpdateMemberInput}
RESPONSE
{
  "data": {
    "batchUpdateMember": {
      "clientMutationId": "4"
    }
  }
}

batchCreateChat

Description

A function to batch update member.

Array Size Limit max
                      
                      Input params array size limit
                      
                      "chats"
                      

max: 80

scope

["api:admin", "chat:create"]

Response

Returns a BatchCreateChatPayload

Arguments
NameDescription
input - BatchCreateChatInput!

Example

QUERY
mutation BatchCreateChat($input: BatchCreateChatInput!) {
  batchCreateChat(input: $input) {
    chatIds
    clientMutationId
  }
}
VARIABLES
{"input": BatchCreateChatInput}
RESPONSE
{
  "data": {
    "batchCreateChat": {
      "chatIds": [4],
      "clientMutationId": "4"
    }
  }
}

addNoteToMember

Description

rate limit 60 call(s) per app per mintue

scope

["api:admin", "member:manageNote"]

Input params scope
                      
                      "note"
                      

scope: ["api:admin", "note:create"]

Response

Returns an AddNoteToMemberPayload

Arguments
NameDescription
input - AddNoteToMemberInput!

Example

QUERY
mutation AddNoteToMember($input: AddNoteToMemberInput!) {
  addNoteToMember(input: $input) {
    member {
      id
      _id
      createdAt
      updatedAt
      app {
        ...AppFragment
      }
      appId
      channel {
        ...ChannelFragment
      }
      channelId
      platform
      profile {
        ...MemberProfileFragment
      }
      inboxProfile {
        ...InboxMemberProfileFragment
      }
      tags
      meta
      botMeta {
        ...BotMetaFragment
      }
      externalId
      botId
      admin {
        ...AdminFragment
      }
      adminId
      group {
        ...GroupFragment
      }
      assignment
      fbId
      name
      firstName
      lastName
      profilePic
      gender
      customLocale
      locale
      email
      profilePicString
      inletGroup
      fbOTNTokens {
        ...FbOTNTokenFragment
      }
      notes {
        ...NoteFragment
      }
      etag
    }
    error {
      name
      code
      message
    }
    clientMutationId
  }
}
VARIABLES
{"input": AddNoteToMemberInput}
RESPONSE
{
  "data": {
    "addNoteToMember": {
      "member": Member,
      "error": GenericError,
      "clientMutationId": "4"
    }
  }
}

updateNote

Description

rate limit 60 call(s) per app per mintue

scope

["api:admin", "note:update"]

Response

Returns an UpdateNotePayload

Arguments
NameDescription
input - UpdateNoteInput!

Example

QUERY
mutation UpdateNote($input: UpdateNoteInput!) {
  updateNote(input: $input) {
    note {
      id
      _id
      content
      authorId
      createdAt
      updatedAt
      etag
    }
    error {
      name
      code
      message
    }
    clientMutationId
  }
}
VARIABLES
{"input": UpdateNoteInput}
RESPONSE
{
  "data": {
    "updateNote": {
      "note": Note,
      "error": GenericError,
      "clientMutationId": "4"
    }
  }
}

Notification

createNotification

Description

A function to create notifiction for an app.

rate limit

10 call(s) per app per mintue

scope

["api:admin", "notification:create"]

Response

Returns a CreateNotificationPayload

Arguments
NameDescription
input - CreateNotificationInput

Example

QUERY
mutation CreateNotification($input: CreateNotificationInput) {
  createNotification(input: $input) {
    notification {
      id
      _id
      createdAt
      updatedAt
      app {
        ...AppFragment
      }
      appId
      type
      color
      title
      status
      message
      buttons {
        ...NotificationButtonFragment
      }
      backgroundTaskId
      linkTo
      new
      etag
    }
    clientMutationId
  }
}
VARIABLES
{"input": CreateNotificationInput}
RESPONSE
{
  "data": {
    "createNotification": {
      "notification": Notification,
      "clientMutationId": "4"
    }
  }
}

Tree

createTree

Description

A function to create tree.

rate limit

5 call(s) per app per mintue

scope

["api:admin", "botbuilder:manage", "tree:create"]

Response

Returns a CreateTreePayload

Arguments
NameDescription
input - CreateTreeInput!

Example

QUERY
mutation CreateTree($input: CreateTreeInput!) {
  createTree(input: $input) {
    tree {
      id
      _id
      createdAt
      updatedAt
      name
      description
      app {
        ...AppFragment
      }
      appId
      globalNodes {
        ...NodeObjectFragment
      }
      globalNodeIds
      nodes {
        ...NodeObjectFragment
      }
      nodeIds
      workspace {
        ...WorkspaceFragment
      }
      version
      versionAlias
      ancestorTree {
        ...TreeFragment
      }
      siblingTrees {
        ...TreeFragment
      }
      tags
      stash {
        ...NodeObjectFragment
      }
      etag
      configMapSchema
      configMap
      type
      system
      templateTreeId
      templateTree {
        ...TreeFragment
      }
      locked
    }
    clientMutationId
  }
}
VARIABLES
{"input": CreateTreeInput}
RESPONSE
{
  "data": {
    "createTree": {
      "tree": Tree,
      "clientMutationId": "4"
    }
  }
}

updateTree

Description

A function to update tree.

rate limit

10 call(s) per app per mintue

scope

["api:admin", "botbuilder:manage", "tree:updateBasicInfo", "tree:updateNodes", "tree:updateTreeSetting"]

Input params scope
                      
                      "name"
                      

scope: ["api:admin", "tree:updateBasicInfo", "botbuilder:manage"]

"description"

scope: ["api:admin", "tree:updateBasicInfo", "botbuilder:manage"]

"globalNodes"

scope: ["api:admin", "tree:updateNodes", "botbuilder:manage"]

"nodes"

scope: ["api:admin", "tree:updateNodes", "botbuilder:manage"]

"configMapSchema"

scope: ["api:admin", "tree:updateTreeSetting", "botbuilder:manage"]

"configMap"

scope: ["api:admin", "tree:updateTreeSetting", "botbuilder:manage"]

"type"

scope: ["api:admin", "tree:updateTreeSetting", "botbuilder:manage"]

"templateTreeId"

scope: ["api:admin", "tree:updateTreeSetting", "botbuilder:manage"]

"versionAlias"

scope: ["api:admin", "tree:updateTreeSetting", "botbuilder:manage"]

"tags"

scope: ["api:admin", "tree:updateTreeSetting", "botbuilder:manage"]

"system"

scope: ["api:admin", "tree:updateTreeSetting", "botbuilder:manage"]

Response

Returns an UpdateTreePayload

Arguments
NameDescription
input - UpdateTreeInput!

Example

QUERY
mutation UpdateTree($input: UpdateTreeInput!) {
  updateTree(input: $input) {
    tree {
      id
      _id
      createdAt
      updatedAt
      name
      description
      app {
        ...AppFragment
      }
      appId
      globalNodes {
        ...NodeObjectFragment
      }
      globalNodeIds
      nodes {
        ...NodeObjectFragment
      }
      nodeIds
      workspace {
        ...WorkspaceFragment
      }
      version
      versionAlias
      ancestorTree {
        ...TreeFragment
      }
      siblingTrees {
        ...TreeFragment
      }
      tags
      stash {
        ...NodeObjectFragment
      }
      etag
      configMapSchema
      configMap
      type
      system
      templateTreeId
      templateTree {
        ...TreeFragment
      }
      locked
    }
    clientMutationId
  }
}
VARIABLES
{"input": UpdateTreeInput}
RESPONSE
{
  "data": {
    "updateTree": {"tree": Tree, "clientMutationId": 4}
  }
}

deleteTree

Description

A function to delete tree.

rate limit

5 call(s) per app per mintue

scope

["api:admin", "botbuilder:manage", "tree:delete"]

Response

Returns a DeleteTreePayload

Arguments
NameDescription
input - DeleteTreeInput!

Example

QUERY
mutation DeleteTree($input: DeleteTreeInput!) {
  deleteTree(input: $input) {
    clientMutationId
  }
}
VARIABLES
{"input": DeleteTreeInput}
RESPONSE
{
  "data": {
    "deleteTree": {"clientMutationId": "4"}
  }
}

importTrees

Description

A function to import tree.

rate limit

5 call(s) per app per mintue

scope

["api:admin", "botbuilder:manage", "tree:create", "node:create", "trigger:create", "condition:create", "action:create", "response:create", "localeGroup:create"]

Input params scope
                      
                      "trees"
                      

scope: ["api:admin", "botbuilder:manage", "tree:create"]

"nodes"

scope: ["api:admin", "botbuilder:manage", "node:create"]

"triggers"

scope: ["api:admin", "botbuilder:manage", "trigger:create"]

"conditions"

scope: ["api:admin", "botbuilder:manage", "condition:create"]

"actions"

scope: ["api:admin", "botbuilder:manage", "action:create"]

"responses"

scope: ["api:admin", "botbuilder:manage", "response:create"]

"localeGroups"

scope: ["api:admin", "botbuilder:manage", "localeGroup:create"]

Response

Returns an ImportTreesPayload

Arguments
NameDescription
input - ImportTreesInput!

Example

QUERY
mutation ImportTrees($input: ImportTreesInput!) {
  importTrees(input: $input) {
    trees {
      id
      _id
      createdAt
      updatedAt
      name
      description
      app {
        ...AppFragment
      }
      appId
      globalNodes {
        ...NodeObjectFragment
      }
      globalNodeIds
      nodes {
        ...NodeObjectFragment
      }
      nodeIds
      workspace {
        ...WorkspaceFragment
      }
      version
      versionAlias
      ancestorTree {
        ...TreeFragment
      }
      siblingTrees {
        ...TreeFragment
      }
      tags
      stash {
        ...NodeObjectFragment
      }
      etag
      configMapSchema
      configMap
      type
      system
      templateTreeId
      templateTree {
        ...TreeFragment
      }
      locked
    }
    uninstalledIntegrations {
      icon
      integrationName
      integrationId
      build
      version
      isPlatform
      private
    }
  }
}
VARIABLES
{"input": ImportTreesInput}
RESPONSE
{
  "data": {
    "importTrees": {
      "trees": [Tree],
      "uninstalledIntegrations": [UninstalledIntegration]
    }
  }
}

batchCreateAppIntegrationForTree

Description

A function to install required integrations and then import tree.

rate limit

5 call(s) per app per mintue

scope

["api:admin", "botbuilder:manage", "tree:create", "node:create", "trigger:create", "condition:create", "action:create", "response:create", "localeGroup:create"]

Input params scope
                      
                      "trees"
                      

scope: ["api:admin", "botbuilder:manage", "tree:create"]

"nodes"

scope: ["api:admin", "botbuilder:manage", "node:create"]

"triggers"

scope: ["api:admin", "botbuilder:manage", "trigger:create"]

"conditions"

scope: ["api:admin", "botbuilder:manage", "condition:create"]

"actions"

scope: ["api:admin", "botbuilder:manage", "action:create"]

"responses"

scope: ["api:admin", "botbuilder:manage", "response:create"]

"localeGroups"

scope: ["api:admin", "botbuilder:manage", "localeGroup:create"]

Arguments
NameDescription
input - BatchCreateAppIntegrationForTreeInput!

Example

QUERY
mutation BatchCreateAppIntegrationForTree($input: BatchCreateAppIntegrationForTreeInput!) {
  batchCreateAppIntegrationForTree(input: $input) {
    errors {
      error {
        ...endpointErrorFragment
      }
      integrationId
      build
    }
    trees {
      id
      _id
      createdAt
      updatedAt
      name
      description
      app {
        ...AppFragment
      }
      appId
      globalNodes {
        ...NodeObjectFragment
      }
      globalNodeIds
      nodes {
        ...NodeObjectFragment
      }
      nodeIds
      workspace {
        ...WorkspaceFragment
      }
      version
      versionAlias
      ancestorTree {
        ...TreeFragment
      }
      siblingTrees {
        ...TreeFragment
      }
      tags
      stash {
        ...NodeObjectFragment
      }
      etag
      configMapSchema
      configMap
      type
      system
      templateTreeId
      templateTree {
        ...TreeFragment
      }
      locked
    }
    clientMutationId
  }
}
VARIABLES
{"input": BatchCreateAppIntegrationForTreeInput}
RESPONSE
{
  "data": {
    "batchCreateAppIntegrationForTree": {
      "errors": [BatchCreateAppIntegrationError],
      "trees": [Tree],
      "clientMutationId": "4"
    }
  }
}

duplicateTree

Description

A function to delete tree.

rate limit

5 call(s) per app per mintue

scope

["api:admin", "botbuilder:manage", "tree:duplicate"]

Response

Returns a DuplicateTreePayload

Arguments
NameDescription
input - DuplicateTreeInput!

Example

QUERY
mutation DuplicateTree($input: DuplicateTreeInput!) {
  duplicateTree(input: $input) {
    tree {
      id
      _id
      createdAt
      updatedAt
      name
      description
      app {
        ...AppFragment
      }
      appId
      globalNodes {
        ...NodeObjectFragment
      }
      globalNodeIds
      nodes {
        ...NodeObjectFragment
      }
      nodeIds
      workspace {
        ...WorkspaceFragment
      }
      version
      versionAlias
      ancestorTree {
        ...TreeFragment
      }
      siblingTrees {
        ...TreeFragment
      }
      tags
      stash {
        ...NodeObjectFragment
      }
      etag
      configMapSchema
      configMap
      type
      system
      templateTreeId
      templateTree {
        ...TreeFragment
      }
      locked
    }
    clientMutationId
  }
}
VARIABLES
{"input": DuplicateTreeInput}
RESPONSE
{
  "data": {
    "duplicateTree": {
      "tree": Tree,
      "clientMutationId": "4"
    }
  }
}

exportTrees

Description

A function to export trees.

rate limit

5 call(s) per app per mintue

scope

["api:admin", "tree:export"]

Response

Returns an ExportTreesPayload

Arguments
NameDescription
input - ExportTreesInput!

Example

QUERY
mutation ExportTrees($input: ExportTreesInput!) {
  exportTrees(input: $input) {
    url
    trees
    nodes
    triggers
    conditions
    actions
    responses
    localeGroups
  }
}
VARIABLES
{"input": ExportTreesInput}
RESPONSE
{
  "data": {
    "exportTrees": {
      "url": "xyz789",
      "trees": [{}],
      "nodes": [{}],
      "triggers": [{}],
      "conditions": [{}],
      "actions": [{}],
      "responses": [{}],
      "localeGroups": [{}]
    }
  }
}

Action

createAction

Description

A function to create action.

rate limit

5 call(s) per app per mintue

scope

["api:admin", "botbuilder:manage", "condition:create"]

Response

Returns a CreateActionPayload

Arguments
NameDescription
input - CreateActionInput!

Example

QUERY
mutation CreateAction($input: CreateActionInput!) {
  createAction(input: $input) {
    action {
      id
      _id
      createdAt
      updatedAt
      name
      description
      functionString
      app {
        ...AppFragment
      }
      etag
      tags
      history
    }
    clientMutationId
  }
}
VARIABLES
{"input": CreateActionInput}
RESPONSE
{
  "data": {
    "createAction": {
      "action": Action,
      "clientMutationId": 4
    }
  }
}

updateAction

Description

A function to update action.

rate limit

5 call(s) per app per mintue

scope

["api:admin", "botbuilder:manage", "condition:update"]

Response

Returns an UpdateActionPayload

Arguments
NameDescription
input - UpdateActionInput!

Example

QUERY
mutation UpdateAction($input: UpdateActionInput!) {
  updateAction(input: $input) {
    action {
      id
      _id
      createdAt
      updatedAt
      name
      description
      functionString
      app {
        ...AppFragment
      }
      etag
      tags
      history
    }
    clientMutationId
  }
}
VARIABLES
{"input": UpdateActionInput}
RESPONSE
{
  "data": {
    "updateAction": {
      "action": Action,
      "clientMutationId": "4"
    }
  }
}

deleteAction

Description

A function to delete action.

rate limit

5 call(s) per app per mintue

scope

["api:admin", "botbuilder:manage", "condition:delete"]

Response

Returns a DeleteActionPayload

Arguments
NameDescription
input - DeleteActionInput!

Example

QUERY
mutation DeleteAction($input: DeleteActionInput!) {
  deleteAction(input: $input) {
    clientMutationId
  }
}
VARIABLES
{"input": DeleteActionInput}
RESPONSE
{
  "data": {
    "deleteAction": {
      "clientMutationId": "4"
    }
  }
}

Node

createNode

Description

A function to create node.

rate limit

5 call(s) per app per mintue

scope

["api:admin", "node:create"]

Response

Returns a CreateNodePayload

Arguments
NameDescription
input - CreateNodeInput!

Example

QUERY
mutation CreateNode($input: CreateNodeInput!) {
  createNode(input: $input) {
    node {
      id
      _id
      createdAt
      updatedAt
      name
      description
      trigger {
        ...TriggerFragment
      }
      triggerId
      preActions {
        ...ActionFragment
      }
      preActionIds
      responses {
        ...ResponseFragment
      }
      responseIds
      postActions {
        ...ActionFragment
      }
      postActionIds
      actions {
        ...ActionFragment
      }
      actionIds
      priority
      path
      app {
        ...AppFragment
      }
      appId
      compositeId
      tree {
        ...TreeFragment
      }
      treeId
      locked
      global
      redirect {
        ...RedirectFragment
      }
      analytics {
        ...AnalyticsFragment
      }
      memberTagging {
        ...MemberTaggingFragment
      }
      type
      dialogflow {
        ...DialogflowSettingsFragment
      }
      luis {
        ...LuisSettingsFragment
      }
      etag
      history
      colour
      tags
      templateTreeId
      saveCompositeId
    }
    clientMutationId
  }
}
VARIABLES
{"input": CreateNodeInput}
RESPONSE
{
  "data": {
    "createNode": {
      "node": NodeObject,
      "clientMutationId": 4
    }
  }
}

updateNode

Description

A function to update node.

rate limit

5 call(s) per app per mintue

scope

["api:admin", "node:update"]

Response

Returns an UpdateNodePayload

Arguments
NameDescription
input - UpdateNodeInput!

Example

QUERY
mutation UpdateNode($input: UpdateNodeInput!) {
  updateNode(input: $input) {
    node {
      id
      _id
      createdAt
      updatedAt
      name
      description
      trigger {
        ...TriggerFragment
      }
      triggerId
      preActions {
        ...ActionFragment
      }
      preActionIds
      responses {
        ...ResponseFragment
      }
      responseIds
      postActions {
        ...ActionFragment
      }
      postActionIds
      actions {
        ...ActionFragment
      }
      actionIds
      priority
      path
      app {
        ...AppFragment
      }
      appId
      compositeId
      tree {
        ...TreeFragment
      }
      treeId
      locked
      global
      redirect {
        ...RedirectFragment
      }
      analytics {
        ...AnalyticsFragment
      }
      memberTagging {
        ...MemberTaggingFragment
      }
      type
      dialogflow {
        ...DialogflowSettingsFragment
      }
      luis {
        ...LuisSettingsFragment
      }
      etag
      history
      colour
      tags
      templateTreeId
      saveCompositeId
    }
    clientMutationId
  }
}
VARIABLES
{"input": UpdateNodeInput}
RESPONSE
{
  "data": {
    "updateNode": {
      "node": NodeObject,
      "clientMutationId": "4"
    }
  }
}

deleteNode

Description

A function to delete node.

rate limit

5 call(s) per app per mintue

scope

["api:admin", "node:delete"]

Response

Returns a DeleteNodePayload

Arguments
NameDescription
input - DeleteNodeInput!

Example

QUERY
mutation DeleteNode($input: DeleteNodeInput!) {
  deleteNode(input: $input) {
    clientMutationId
  }
}
VARIABLES
{"input": DeleteNodeInput}
RESPONSE
{
  "data": {
    "deleteNode": {
      "clientMutationId": "abc123"
    }
  }
}

Types

Action

Fields
Field NameDescription
id - ID!
_id - ID!
createdAt - Long!
updatedAt - Long
name - String!
description - String
functionString - String
app - App!
etag - ID
tags - [String]
history - [JSON]
EXAMPLE
{
  "id": "4",
  "_id": 4,
  "createdAt": {},
  "updatedAt": {},
  "name": "xyz789",
  "description": "xyz789",
  "functionString": "abc123",
  "app": App,
  "etag": "4",
  "tags": ["abc123"],
  "history": [{}]
}

ActionConnection

Fields
Field NameDescription
edges - [ActionEdge]
pageInfo - PageInfo
EXAMPLE
{
  "edges": [ActionEdge],
  "pageInfo": PageInfo
}

ActionEdge

Fields
Field NameDescription
node - Action
cursor - ID!
EXAMPLE
{
  "node": Action,
  "cursor": "4"
}

ActiveMemberCounter

Fields
Field NameDescription
app - App!
appId - ID!
bucket - Long!
no_of_member - Long!
EXAMPLE
{
  "app": App,
  "appId": "4",
  "bucket": {},
  "no_of_member": {}
}

ActiveMemberCounterConnection

Fields
Field NameDescription
data - [ActiveMemberCounter]
pageInfo - PageInfo
total_no_of_member - Long
total_no_of_comment_member - Long
EXAMPLE
{
  "data": [ActiveMemberCounter],
  "pageInfo": PageInfo,
  "total_no_of_member": {},
  "total_no_of_comment_member": {}
}

AddNoteToMemberInput

Fields
Input FieldDescription
memberId - ID!
note - NoteInput!
clientMutationId - ID
EXAMPLE
{"memberId": 4, "note": NoteInput, "clientMutationId": 4}

AddNoteToMemberPayload

Fields
Field NameDescription
member - Member
error - GenericError
clientMutationId - ID
EXAMPLE
{
  "member": Member,
  "error": GenericError,
  "clientMutationId": "4"
}

AddOutletInPairInput

Description

An input for AddOutletInPair

Fields
Input FieldDescription
inlet - ID!Inlet channel ID
outlet - ID!Outlet channel ID
clientMutationId - ID
EXAMPLE
{
  "inlet": "4",
  "outlet": 4,
  "clientMutationId": "4"
}

AddOutletInPairPayload

Fields
Field NameDescription
app - App
clientMutationId - ID
EXAMPLE
{
  "app": App,
  "clientMutationId": "4"
}

Address

Fields
Field NameDescription
alias - String
line1 - String
line2 - String
city - String
state - String
country - String
zip - String
EXAMPLE
{
  "alias": "xyz789",
  "line1": "abc123",
  "line2": "abc123",
  "city": "xyz789",
  "state": "xyz789",
  "country": "abc123",
  "zip": "xyz789"
}

AddressInput

Fields
Input FieldDescription
alias - String
line1 - String
line2 - String
city - String
state - String
country - String
zip - String
EXAMPLE
{
  "alias": "xyz789",
  "line1": "xyz789",
  "line2": "abc123",
  "city": "abc123",
  "state": "xyz789",
  "country": "abc123",
  "zip": "abc123"
}

Admin

Fields
Field NameDescription
id - ID!
_id - ID!
createdAt - Long!
updatedAt - Long
app - App!
firstName - String
lastName - String
name - String
profilePic - String
channel - Channel
externalId - ID!
meta - JSON
tags - [String]
gender - String
locale - String
active - Boolean
etag - ID
EXAMPLE
{
  "id": "4",
  "_id": 4,
  "createdAt": {},
  "updatedAt": {},
  "app": App,
  "firstName": "abc123",
  "lastName": "abc123",
  "name": "abc123",
  "profilePic": "xyz789",
  "channel": Channel,
  "externalId": "4",
  "meta": {},
  "tags": ["xyz789"],
  "gender": "xyz789",
  "locale": "abc123",
  "active": false,
  "etag": "4"
}

AdminConnection

Fields
Field NameDescription
edges - [AdminEdge]
pageInfo - PageInfo
EXAMPLE
{
  "edges": [AdminEdge],
  "pageInfo": PageInfo
}

AdminEdge

Fields
Field NameDescription
node - Admin
cursor - ID!
EXAMPLE
{
  "node": Admin,
  "cursor": "4"
}

Agenda

Fields
Field NameDescription
id - ID!
_id - ID!
createdAt - Long!
updatedAt - Long
app - App!
appId - ID
member - Member
memberId - ID
channel - Channel
channelId - ID
responses - JSON
tree - Tree
treeId - ID
node - NodeObject
nodeCompositeId - ID
nextRunAt - Long
completed - Boolean
lastRunAt - Long
pattern - String
runUntil - Long
type - String
priority - Int
subscriptionPush - AgendaSubscriptionPushConfig
tag - String
meta - JSON
etag - ID
EXAMPLE
{
  "id": "4",
  "_id": "4",
  "createdAt": {},
  "updatedAt": {},
  "app": App,
  "appId": "4",
  "member": Member,
  "memberId": "4",
  "channel": Channel,
  "channelId": "4",
  "responses": {},
  "tree": Tree,
  "treeId": "4",
  "node": NodeObject,
  "nodeCompositeId": 4,
  "nextRunAt": {},
  "completed": false,
  "lastRunAt": {},
  "pattern": "xyz789",
  "runUntil": {},
  "type": "xyz789",
  "priority": 987,
  "subscriptionPush": AgendaSubscriptionPushConfig,
  "tag": "abc123",
  "meta": {},
  "etag": "4"
}

AgendaSubscriptionPushConfig

Fields
Field NameDescription
id - ID
object - SubscriptionPush
memberIds - [String]
members - [Member]
isEnd - Boolean
isStart - Boolean
EXAMPLE
{
  "id": 4,
  "object": SubscriptionPush,
  "memberIds": ["abc123"],
  "members": [Member],
  "isEnd": true,
  "isStart": true
}

AgendaSubscriptionPushConfigInput

Fields
Input FieldDescription
id - ID
members - [ID]
isEnd - Boolean
isStart - Boolean
EXAMPLE
{
  "id": "4",
  "members": [4],
  "isEnd": false,
  "isStart": false
}

AggregateDataSourceDocsInput

Description

Input type for aggregating datasource docs.

Fields
Input FieldDescription
collectionName - ID!Datasource id in Stella.
pipeline - JSONMongoDB aggregation pipeline.
options - JSONMongoDB aggregation options.
clientMutationId - ID
EXAMPLE
{"collectionName": 4, "pipeline": {}, "options": {}, "clientMutationId": 4}

AggregateDataSourceDocsPayload

Description

Return type for aggregating datasource docs.

Fields
Field NameDescription
result - JSONAggregated result of docs in datasource.
clientMutationId - ID
EXAMPLE
{"result": {}, "clientMutationId": "4"}

Analytics

Fields
Field NameDescription
category - String
action - String
label - String
value - String
transform - String
EXAMPLE
{
  "category": "xyz789",
  "action": "xyz789",
  "label": "xyz789",
  "value": "xyz789",
  "transform": "xyz789"
}

AnalyticsCustomEventCounterConnectionRD

Fields
Field NameDescription
edges - [AnalyticsCustomEventCounterEdgeRD]
total_no_of_analytics - Long!
pageInfo - PageInfo
EXAMPLE
{
  "edges": [AnalyticsCustomEventCounterEdgeRD],
  "total_no_of_analytics": {},
  "pageInfo": PageInfo
}

AnalyticsCustomEventCounterConnectionTB

Fields
Field NameDescription
edges - [AnalyticsCustomEventCounterEdgeTB]
total_no_of_analytics - Long!
pageInfo - PageInfo
EXAMPLE
{
  "edges": [AnalyticsCustomEventCounterEdgeTB],
  "total_no_of_analytics": {},
  "pageInfo": PageInfo
}

AnalyticsCustomEventCounterEdgeRD

Fields
Field NameDescription
cursor - ID!
node - AnalyticsCustomEventCounterRD
EXAMPLE
{"cursor": 4, "node": AnalyticsCustomEventCounterRD}

AnalyticsCustomEventCounterEdgeTB

Fields
Field NameDescription
cursor - ID!
node - AnalyticsCustomEventCounterTB
EXAMPLE
{
  "cursor": "4",
  "node": AnalyticsCustomEventCounterTB
}

AnalyticsCustomEventCounterRD

Fields
Field NameDescription
app - App!
appId - ID!
category - String
action - String
label - String
no_of_analytics - Long
no_of_unique_member_analytics - Long
member - String
EXAMPLE
{
  "app": App,
  "appId": "4",
  "category": "xyz789",
  "action": "abc123",
  "label": "xyz789",
  "no_of_analytics": {},
  "no_of_unique_member_analytics": {},
  "member": "xyz789"
}

AnalyticsCustomEventCounterTB

Fields
Field NameDescription
app - App!
appId - ID!
channel - Channel!
channelId - ID!
category - String
action - String
label - String
bucket - Long
no_of_analytics - Long
EXAMPLE
{
  "app": App,
  "appId": 4,
  "channel": Channel,
  "channelId": 4,
  "category": "abc123",
  "action": "xyz789",
  "label": "abc123",
  "bucket": {},
  "no_of_analytics": {}
}

AnalyticsInput

Fields
Input FieldDescription
category - String
action - String
label - String
value - String
transform - String
EXAMPLE
{
  "category": "abc123",
  "action": "xyz789",
  "label": "xyz789",
  "value": "xyz789",
  "transform": "xyz789"
}

ApiScope

Fields
Field NameDescription
id - ID!

rate limit 5 call(s) per app per mintue

scope

["api:admin"]

_id - ID!

rate limit 5 call(s) per app per mintue

scope

["api:admin"]

distinctDataSourceData - JSON

A function to search distinct datasource doc.

rate limit

5 call(s) per app per mintue

scope

["api:admin", "dataSource:listDocs"]

Arguments
dataSourceId - ID!

datasource id that show in Stella.

filter - JSON

MongoDB filter apply to querying doc from datasource.

distinctKey - String!

The key to get the distinct value.

fetchDataSourceData - JSON

A function to search datasource doc.

rate limit

10 call(s) per app per mintue

scope

["api:admin", "dataSource:listDocs"]

Arguments
first - IntMax100

This value is used to set the amount of results you get.

after - String

Applying cursor from PageInfo for pagination

last - IntMax100

This value is used to set the amount of results you get. This differs from first by grabbing the last results instead of the first.

before - String

Applying cursor from PageInfo for pagination

dataSourceId - ID!

datasource id that show in Stella.

filter - JSON!

MongoDB filter apply to querying doc from datasource.

sortBy - JSON

MongoDB sort by option apply to querying doc from datasource.

countOnly - Boolean

Get the count only or not

fetchGeoNearDataSourceData - JSON

A function to search datasource doc based on location.

rate limit

5 call(s) per app per mintue

scope

["api:admin", "dataSource:listDocs"]

Arguments
dataSourceId - ID!

datasource id that show in Stella.

lng - Float

The Longitude for which to find the closest documents.

lat - Float

The Latitude for which to find the closest documents.

maxDistance - Float

Max distance from lng,lat.

filter - JSON

MongoDB filter apply to querying doc from datasource.

memberRaw - JSON

A function to search for a member. Currently deprecated.

rate limit

5 call(s) per app per mintue

scope

["api:admin", "member:getDetails"]

Use ApiScope.member
Arguments
externalId - ID

The external identifier for the user. Used to filter if memberId is missing.

channelId - ID

The identifier for the user. Used to filter to the matching user.

member - Member

A function to search for a memeber. Can be used to get a single member using memberID or externalID.

rate limit

600 call(s) per app per mintue

scope

["conversation:read", "api:admin", "member:getDetails"]

Arguments
memberId - ID

The identifier for the user. Used to filter to the matching user.

externalId - ID

The external identifier for the user. Used to filter if memberId is missing.

channelId - ID

Channel ID for filtering (Required for using externalId)

members - MemberConnection

A function to search for a collection of members. Can also be used with varies filters.

rate limit

30 call(s) per app per mintue

scope

["api:admin", "member:getDetails"]

Arguments
first - IntMax100

This value is used to set the amount of results you get.

after - String

Applying cursor from PageInfo for pagination

last - IntMax100

This value is used to set the amount of results you get. Differs from first by grabbing the last results instead of the first.

before - String

Applying cursor from PageInfo for pagination

createdAtFrom - Long

An Epoch time value. Used to filter members that were created after the set time.

createdAtTo - Long

An Epoch time value. Used to filter members that were created before the set time.

updatedAtFrom - Long

An Epoch time value. Used to filter members that were updated after the set time.

updatedAtTo - Long

An Epoch time value. Used to filter members that were updated before the set time.

channelId - String

An ID of a channel. Used to filter members that have matching channelId.

memberIds - [String]

An array of Ids for the users. Used to filter members with Id that matches one of the values in the array.

externalIds - [String]

An array of external Ids for the users. Used to filter members with external Id that matches one of the values in the array.

firstName - String

A string of a name. Used to filter members who have matching first name. This filter is not case sensitive.

lastName - String

A string of a name. Used to filter members who have matching last name. This filter is not case sensitive.

gender - String

A string of a gender. Used to filter members who have matching gender. This filter only accept M, F, N/A, null, or undefined.

locales - [String]

Must use with localeOperator. Used to either filter in or filter out the members with matching locales.

localeOperator - String

Must use with locales. This filter only accept either IN or NIN.

IN: Filter the result to members that have matching locales.

NIN: Filter the result to members that do not have matching locales.

tagFilters - [TagFilter]

An array of TagFilter objects. Used to filter members based their tags

admins - AdminConnection

A function to search for a collection of admins. Can also be used with varies filters. Currently deprecated.

rate limit

5 call(s) per app per mintue

scope

["api:admin", "dashboard:listTicketing"]

No longer supported
Arguments
first - IntMax100

This value is used to set the amount of results you get.

after - String

Applying cursor from PageInfo for pagination

last - IntMax100

This value is used to set the amount of results you get. This differs from first by grabbing the last results instead of the first.

before - String

Applying cursor from PageInfo for pagination

createdAtFrom - Long

An Epoch time value. Used to filter admins that were created after the set time.

createdAtTo - Long

An Epoch time value. Used to filter admins that were created before the set time.

updatedAtFrom - Long

An Epoch time value. Used to filter admins that were updated after the set time.

updatedAtTo - Long

An Epoch time value. Used to filter admins that were updated before the set time.

channelId - String

An ID of a channel. Used to filter admins that have matching channelId.

adminIds - [String]

An array of Ids for the admins. Used to filter admins with Id that matches one of the values in the array.

externalIds - [String]

An array of external Ids for the admins. Used to filter admins with external Id that matches one of the values in the array.

firstName - String

A string of a name. Used to filter admins who have matching first name. This filter is not case sensitive.

lastName - String

A string of a name. Used to filter admins who have matching last name. This filter is not case sensitive.

channel - Channel

A function to get channel detail.

rate limit

30 call(s) per app per mintue

scope

["api:admin", "channel:getAvailabilities", "channel:getBasicInfo", "channel:getBroadcastGroupSettings", "channel:getLiveChatSettings", "channel:getPlatformInfo", "channel:getPlatformSettings", "channel:getTreeSettings"]

Arguments
channelId - ID

Channel ID in Stella

conversationHistory - ChatConnection

A function to get chat history. Can also be used with varies filters.

rate limit

30 call(s) per app per mintue

scope

["conversation:read", "member:getConversation", "api:admin"]

Arguments
first - IntMax100

This value is used to set the amount of results you get.

after - String

Applying cursor from PageInfo for pagination

last - IntMax100

This value is used to set the amount of results you get. This differs from first by grabbing the last results instead of the first.

before - String

Applying cursor from PageInfo for pagination

group - ID
assignment - ID
from - Long

An Epoch time value. Used to filter chats that were created after the set time.

to - Long

An Epoch time value. Used to filter chats that were created before the set time.

channelId - String

An ID of a channel. Used to filter chats that have matching channelId.

memberId - String

A string of memberId. Used to filter chats that have matching memberId.

platform - String

A string of platform. Used to filter chats that have matching platform name.

groupId - String

An ID of a group. Used to filter chats that have matching groupId.

assignmentId - String

An ID of a assignment. Used to filter chats that have matching assignmentId.

assignments - AssignmentConnection

A function to get a collection of assignments. Can also be used with varies filters. Currently deprecated.

rate limit

5 call(s) per app per mintue

scope

["api:admin", "dashboard:listAssignment"]

No longer supported
Arguments
first - IntMax100

This value is used to set the amount of results you get.

after - String

Applying cursor from PageInfo for pagination

last - IntMax100

This value is used to set the amount of results you get. This differs from first by grabbing the last results instead of the first.

before - String

Applying cursor from PageInfo for pagination

createdAtFrom - Long

An Epoch time value. Used to filter assignments that were created after the set time.

createdAtTo - Long

An Epoch time value. Used to filter assignments that were created before the set time.

assignedAtFrom - Long

An Epoch time value. Used to filter assignments that were assigned after the set time.

assignedAtTo - Long

An Epoch time value. Used to filter assignments that were assigned before the set time.

inactivatedAtFrom - Long

An Epoch time value. Used to filter assignments that were inactivated after the set time.

inactivatedAtTo - Long

An Epoch time value. Used to filter assignments that were inactivated before the set time.

inlet - String

An ID of an inlet. Used to filter assignments that have matching inletId.

channelId - String

An ID of a channel. Used to filter assignments that have matching channelId.

memberId - String

A string of memberId. Used to filter assignments that have matching memberId.

outlets - [String]

An array of outletIds. Used to filter assignments with outletId that matches one of the values in the array.

groupId - String

An ID of a group. Used to filter assignments that have matching groupId.

status - String

A string of status. This filter only accepts TRANSFERRED, COMPLETED, ASSIGNED, UNASSIGNED.

TRANSFERRED: Filter assignments that have been reassigned.

COMPLETED: Filter assignments that have been to be inactivated.

ASSIGNED: Filter assignments that are active and have an assignee set to it.

UNASSIGNED: Filter assignments that are active but does not have an assignee set to it.

assignmentIds - [String]

An array of assignmentIds. Used to filter assignments with Id that matches one of the values in the array.

assigneeId - String

An ID of an assignee. Used to filter assignments that have matching assigneeId.

parentAssignmentId - String

An ID of a parentAssignmentId. Used to filter assignments that have matching parentAssignmentId.

assignment - Assignment

A function to get an assignment using the assignmentId. Currently deprecated.

rate limit

5 call(s) per app per mintue

scope

["api:admin", "dashboard:listAssignment"]

No longer supported
Arguments
assignmentId - ID

The identifier for the assignment. Used to filter to the matching assignment.

groups - GroupConnection

A function to get a collection of groups. Can also be used with varies filters. Currently deprecated.

rate limit

5 call(s) per app per mintue

scope

["api:admin", "dashboard:listAssignment"]

No longer supported
Arguments
first - IntMax100

This value is used to set the amount of results you get.

after - String

Applying cursor from PageInfo for pagination

last - IntMax100

This value is used to set the amount of results you get. This differs from first by grabbing the last results instead of the first.

before - String

Applying cursor from PageInfo for pagination

createdAtFrom - Long

An Epoch time value. Used to filter groups that were created after the set time.

createdAtTo - Long

An Epoch time value. Used to filter groups that were created before the set time.

updatedAtFrom - Long

An Epoch time value. Used to filter groups that were updated after the set time.

updatedAtTo - Long

An Epoch time value. Used to filter groups that were updated before the set time.

inlet - String

An ID of an inlet. Used to filter groups that have matching inletId.

memberId - String

A string of memberId. Used to filter groups that have matching memberId.

outlet - String

An ID of an outlet. Used to filter groups that have matching outletId.

groupIds - [String]

An array of groupIds. Used to filter groups with Id that matches one of the values in the array.

assignmentIds - [String]

An array of assignmentIds. Used to filter groups with assignmentId that matches one of the values in the array.

adminId - String

A string of adminId. Used to filter groups that have matching adminId.

valid - Boolean

A boolean for valid. Used to filter groups that valid or not.

externalId - String

A string of externalId. Used to filter groups that have matching externalId.

adminExternalId - String

A string of adminExternalId. Used to filter groups that have matching adminExternalId.

type - String

A string of a type. Used to filter groups that have matching type.

label - String

A string of a label. Used to filter groups that have matching label.

active - Boolean

A boolean for active. Used to filter groups that active or not.

installedIntegrations - [AppIntegration]

Get list of installed integrations

rate limit

5 call(s) per app per mintue

scope

["api:admin", "appIntegration:get"]

Arguments
features - [String]

Filter any installed integrations with one of the specified features.

installedIntegration - AppIntegration

Get an installed integration using integrationId and build or appIntegrationId

rate limit

5 call(s) per app per mintue

scope

["api:admin", "appIntegration:get"]

Arguments
integrationId - String
build - Int
appIntegrationId - ID
integrations - JSON

A function to get the integrations of an app. Only gives integrations for app that matches the user's. Currently deprecated.

rate limit

5 call(s) per app per mintue

scope

["api:admin", "integration:list"]

No longer supported
app - App

A function to get app info

rate limit

20 call(s) per app per mintue

scope

["api:admin", "appInfo:get", "appSettings:get", "dataSource:listDatasources", "billing:getSubscription", "teamMember:list"]

Arguments
shopifyDomain - String

Shopify domain related to shopify integration (Deprecating!!!)

userContext - JSON

A function to get token info

rate limit

5 call(s) per app per mintue

Arguments
accessToken - String
channels - ChannelConnection

A function to get channels.

rate limit

30 call(s) per app per mintue

scope

["api:admin", "channel:list"]

Arguments
first - IntMax100

First n channel return

after - String

Applying cursor from PageInfo for pagination

last - IntMax100

Last n channel return

before - String

Applying cursor from PageInfo for pagination

channelIds - [ID]

Channel id array in Stella

search - String

Search channel name, channel description and channel id

type - String

Filter by channel type

includeArchived - Boolean

Include Channel that have been archived

sortBy - JSON

MongoDB sort by option apply to querying channels.

tree - Tree

A function to get tree info.

rate limit

5 call(s) per app per mintue

scope

["api:admin", "botbuilder:read", "tree:getBasicInfo", "tree:getDetails", "tree:getNodes", "tree:getTreeSetting", "appInfo:get", "appSettings:get"]

Arguments
treeId - ID!

Tree id in Stella

whatsAppFile - WhatsAppFileUrl

A function to get the URL of a file in WhatsApp. Both mediaId and channelId must be present. Currently deprecated.

rate limit

60 call(s) per app per mintue

scope

["api:admin", "whatsapp:getFile"]

No longer supported
Arguments
mediaId - ID!

An ID of a media. Used to filter to the matching mediaId

channelId - ID!

An ID of a channel. Used to filter to the matching channelId

whatsAppTemplate - WhatsAppMessageTemplateConnection

A function to get a collection of WhatsApp template. Either integrationId or channelId must be used. Currently deprecated.

rate limit

5 call(s) per app per mintue

scope

["api:admin", "whatsappMessageTemplates:list"]

No longer supported
Arguments
first - IntMax100

This value is used to set the amount of results you get.

after - String

Applying cursor from PageInfo for pagination

integrationId - String

An ID of an integration. Used to filter to the matching integrationId.

channelId - String

An ID of a channel. Used to filter to the matching channelId.

postCommentAnalyticsOverview - PostCommentAnalyticsOverviewConnection

A function to get Comment Analytics Overview. Can also be used with varies filters. Currently deprecated.

rate limit

5 call(s) per app per mintue

scope

["api:admin", "dashboard:listCommentReply"]

No longer supported
Arguments
channelId - ID

An ID of a channel. Used to filter to the matching channelId.

startFrom - Long

An Epoch time value. Used to filter Analytics that were created after the set time.

endAt - Long

An Epoch time value. Used to filter Analytics that were created before the set time.

sortBy - JSON

A JSON for sorting. Has two possible input, post_id or total_no_of_comment.

post_id will sort based on the _key value. 1 for ascending order, -1 for descending order.

total_no_of_comment will sort based on the _count value. 1 for ascending order, -1 for descending order.

post_id will take priority if both input are present.

after - ID

A string of postId. Used to paginated the results, allowing the Next Page to start after this postId.

search - String

A string of postId. Used to search postId from the input in the search bar.

page - Int

An Integer for controlling where the search should begin. Is used along size to find the correct starting point.

size - Int

An Integer for controlling how much post is displayed.

nlpAnalyticsOverview - NLPAnalyticsCounterConnection

A function to get NLP Analytics Overview. Either integrationId or channelId must be used.

rate limit

5 call(s) per app per mintue

scope

["api:admin", "dashboard:listNlpAnalytics"]

Arguments
channelId - ID

An ID of a channel. Used to filter to the matching channelId.

type - String

The type of NLP service, such as DIALOGFLOW or LUIS. Used to filter to Counters that has the matching type.

startFrom - Long

An Epoch time value. Used to filter Counters that were created after the set time.

endAt - Long

An Epoch time value. Used to filter Counters that were created before the set time.

first - Int

This value is used to set the amount of results you get.

sortBy - JSON

A JSON input used to sort the results.

Has multiple possible inputs fields such as agent_id, intent_id, intent_name, _count and average_confidence_level.

For all inputs: 1 for ascending order, -1 for descending order.

All sorting values are useable at the same time.

after - ID

A string used to find the starting point for the results.

search - String

A string from the search bar. Used to search matching intent_name or intent_id

analyticsCustomEventOverviewDateHistogram - AnalyticsCustomEventCounterConnectionTB

A function used to get the Overview Date Histogram of an Analytics Custom Event.

Can not query for member or no_of_unique_member_analytics.

rate limit

5 call(s) per app per mintue

scope

["api:admin", "dashboard:listAnalytics"]

Arguments
channelId - ID

An ID of a channel. Used to filter to the matching channelId.

category - String

The category of the Custom Event. Used to filter to the matching category.

action - String

The action of the Custom Event. Used to filter to the matching action.

label - String

The label of the Custom Event. Used to filter to the matching label.

bucketWidth - String!

A string of a duration of time. Used to determine the size of each bucket in a Date histogram.

Accepted inputs are minute, hour, day, week, month, quarter (3 month) and year.

Shorten inputs are 1m, 1h, 1d, 1w, 1M, 1q and 1y. Note multiple quantities, such as 2d, are not supported.

startFrom - Long

An Epoch time value. Used to filter Custom Event that were created after the set time.

endAt - Long

An Epoch time value. Used to filter Custom Event that were created before the set time.

first - Int

This value is used to set the amount of results you get.

searchBy - JSON

A JSON input for regex searching with the search bar.

There are three input for filter: category, action, label.

All three input can be used at the same time.

timeZone - Int

An Integer indicating time zones. Used to offset the time display based on time zone differences.

analyticsCustomEventOverviewTable - AnalyticsCustomEventCounterConnectionRD

A function used to get the Overview Table of an Analytics Custom Event.

Either member or no_of_unique_member_analytics must be in the query fields.

rate limit

5 call(s) per app per mintue

scope

["api:admin", "dashboard:listAnalytics"]

Arguments
channelId - ID

An ID of a channel. Used to filter to the matching channelId.

category - String

The category of the Custom Event. Used to filter to the matching category.

action - String

The action of the Custom Event. Used to filter to the matching action.

label - String

The label of the Custom Event. Used to filter to the matching label.

startFrom - Long

An Epoch time value. Used to filter Custom Event that were created after the set time.

endAt - Long

An Epoch time value. Used to filter Custom Event that were created before the set time.

sortBy - JSON

A JSON input for sorting the results.

The input can be any of the query element except no_of_analytics and no_of_unique_member_analytics.

The query element must be in the query to be used in sorting.

For all inputs: 1 for ascending order, -1 for descending order.

searchBy - JSON

A JSON input for regex searching with the search bar.

There are three input for filter: category, action, label.

All three input can be used at the same time.

page - Int

An Integer for controlling where the search should begin. Is used along size to find the correct starting point.

size - Int

An Integer for controlling how much Custom Event is displayed.

dailyActiveMemberOverview - DailyActiveMemberOverviewPayload

A function used to get Daily Active member.

rate limit

5 call(s) per app per mintue

scope

["api:admin", "dashboard:listUsers"]

Arguments
channelId - ID

An ID of a channel. Used to filter to the matching channelId.

startFrom - Long

An Epoch time value. Used to filter Custom Event that were created after the set time.

endAt - Long

An Epoch time value. Used to filter Custom Event that were created before the set time.

timeZone - Int

An Integer indicating time zones. Used to offset the time display based on time zone differences.

activeMemberCounter - ActiveMemberCounterConnection

A function used to get active member count.

rate limit

5 call(s) per app per mintue

scope

["api:admin", "dashboard:listUsers"]

Arguments
channelId - ID

An ID of a channel. Used to filter to the matching channelId.

startFrom - Long

An Epoch time value. Used to filter Custom Event that were created after the set time.

endAt - Long

An Epoch time value. Used to filter Custom Event that were created before the set time.

bucketWidth - String!

A string of a duration of time. Used to determine the size of each bucket in a Date histogram.

Accepted inputs are minute, hour, day, week, month, quarter (3 month) and year.

Shorten inputs are 1m, 1h, 1d, 1w, 1M, 1q and 1y. Note multiple quantities, such as 2d, are not supported.

first - Int

This value is used to set the amount of results you get.

sortBy - JSON

A JSON input for sorting the results.

The input can be any of the query element except no_of_analytics and no_of_unique_member_analytics.

The query element must be in the query to be used in sorting.

For all inputs: 1 for ascending order, -1 for descending order.

timeZone - Int

An Integer indicating time zones. Used to offset the time display based on time zone differences.

newMemberCounter - NewMemberCounterConnection

A function used to get new member count.

rate limit

5 call(s) per app per mintue

scope

["api:admin", "dashboard:listUsers"]

Arguments
channelId - ID

An ID of a channel. Used to filter to the matching channelId.

startFrom - Long

An Epoch time value. Used to filter Custom Event that were created after the set time.

endAt - Long

An Epoch time value. Used to filter Custom Event that were created before the set time.

bucketWidth - String!

A string of a duration of time. Used to determine the size of each bucket in a Date histogram.

Accepted inputs are minute, hour, day, week, month, quarter (3 month) and year.

Shorten inputs are 1m, 1h, 1d, 1w, 1M, 1q and 1y. Note multiple quantities, such as 2d, are not supported.

first - Int

This value is used to set the amount of results you get.

sortBy - JSON

A JSON input for sorting the results.

The input can be any of the query element except no_of_analytics and no_of_unique_member_analytics.

The query element must be in the query to be used in sorting.

For all inputs: 1 for ascending order, -1 for descending order.

timeZone - Int

An Integer indicating time zones. Used to offset the time display based on time zone differences.

actions - ActionConnection

A function used to get actions list.

rate limit

5 call(s) per app per mintue

scope

["api:admin", "action:read"]

Arguments
actionIds - [ID]

Extra id list for querying

first - IntMax100

This value is used to set the amount of results you get from first.

last - IntMax100

This value is used to set the amount of results you get from last.

after - ID

Applying cursor from PageInfo for pagination

before - ID

Applying cursor from PageInfo for pagination

search - String

search action name and description

sortBy - JSON

MongoDB sort by option apply to querying actions.

audiences - AudienceConnection

A function used to get audience list.

rate limit

5 call(s) per app per mintue

scope

["api:admin", "audience:read"]

Arguments
audienceIds - [ID]

Extra id list for querying

first - IntMax100

This value is used to set the amount of results you get from first.

last - IntMax100

This value is used to set the amount of results you get from last.

after - ID

Applying cursor from PageInfo for pagination

before - ID

Applying cursor from PageInfo for pagination

search - String

search audiences name and description

sortBy - JSON

MongoDB sort by option apply to querying audiences.

conditions - ConditionConnection

A function used to get condition list. Currently deprecated.

rate limit

5 call(s) per app per mintue

scope

["api:admin", "condition:read"]

No longer supported
Arguments
conditionIds - [ID]

Extra id list for querying

first - IntMax100

This value is used to set the amount of results you get from first.

last - IntMax100

This value is used to set the amount of results you get from last.

after - ID

Applying cursor from PageInfo for pagination

before - ID

Applying cursor from PageInfo for pagination

search - String

search condition name and description

sortBy - JSON

MongoDB sort by option apply to querying condition.

localeGroups - LocaleGroupConnection

A function used to get locale group list.

rate limit

5 call(s) per app per mintue

scope

["api:admin", "localeGroup:read"]

Arguments
localeGroupIds - [ID]

Extra id list for querying

first - IntMax100

This value is used to set the amount of results you get from first.

last - IntMax100

This value is used to set the amount of results you get from last.

after - ID

Applying cursor from PageInfo for pagination

before - ID

Applying cursor from PageInfo for pagination

search - String

search locale group name

sortBy - JSON

MongoDB sort by option apply to querying locale group.

nodes - NodeObjectConnection

A function used to get node list.

rate limit

5 call(s) per app per mintue

scope

["api:admin", "node:read"]

Arguments
treeIds - [ID]

Tree id for filtering

nodeIds - [ID]

Extra id list for querying

search - String

Search node name, description and composite id

global - Boolean

Filter global node or not

first - IntMax100

This value is used to set the amount of results you get from first.

last - IntMax100

This value is used to set the amount of results you get from last.

after - ID

Applying cursor from PageInfo for pagination

before - ID

Applying cursor from PageInfo for pagination

sortBy - JSON

MongoDB sort by option apply to querying actions.

priorityGroups - PriorityGroupConnection

A function used to get priority group list.

rate limit

5 call(s) per app per mintue

scope

["api:admin", "priorityGroup:list"]

Arguments
priorityGroupIds - [ID]

Extra id list for querying

first - IntMax100

This value is used to set the amount of results you get from first.

last - IntMax100

This value is used to set the amount of results you get from last.

after - ID

Applying cursor from PageInfo for pagination

before - ID

Applying cursor from PageInfo for pagination

search - String

search priority group name

sortBy - JSON

MongoDB sort by option apply to querying priority group.

responses - ResponseConnection

A function used to get response list.

rate limit

5 call(s) per app per mintue

scope

["api:admin", "response:read"]

Arguments
responseIds - [ID]

Extra id list for querying

first - IntMax100

This value is used to set the amount of results you get from first.

last - IntMax100

This value is used to set the amount of results you get from last.

after - ID

Applying cursor from PageInfo for pagination

before - ID

Applying cursor from PageInfo for pagination

search - String

search response name

sortBy - JSON

MongoDB sort by option apply to querying responses.

subscriptionPushes - SubscriptionPushConnection

A function used to get subscription push list.

rate limit

5 call(s) per app per mintue

scope

["api:admin", "push:list"]

Arguments
subscriptionPushIds - [ID]

Extra id list for querying

first - IntMax100

This value is used to set the amount of results you get from first.

last - IntMax100

This value is used to set the amount of results you get from last.

after - ID

Applying cursor from PageInfo for pagination

before - ID

Applying cursor from PageInfo for pagination

search - String

search subscription push name and decription

sortBy - JSON

MongoDB sort by option apply to querying subscription pushes.

trees - TreeConnection

A function used to get tree list.

rate limit

5 call(s) per app per mintue

scope

["api:admin", "tree:read", "tree:list"]

Arguments
treeIds - [ID]

Extra id list for querying

first - IntMax100

This value is used to set the amount of results you get from first.

last - IntMax100

This value is used to set the amount of results you get from last.

after - ID

Applying cursor from PageInfo for pagination

before - ID

Applying cursor from PageInfo for pagination

search - String

search tree name and description

sortBy - JSON

MongoDB sort by option apply to querying trees.

triggers - TriggerConnection

A function used to get trigger list.

rate limit

5 call(s) per app per mintue

scope

["api:admin", "trigger:read"]

Arguments
triggerIds - [ID]

Extra id list for querying

first - IntMax100

This value is used to set the amount of results you get from first.

last - IntMax100

This value is used to set the amount of results you get from last.

after - ID

Applying cursor from PageInfo for pagination

before - ID

Applying cursor from PageInfo for pagination

search - String

search trigger name and description

sortBy - JSON

MongoDB sort by option apply to querying triggers.

file - RetrieveFilePayload

A function used to get file from fileId.

rate limit

60 call(s) per app per mintue

scope

["api:admin", "file:admin", "file:get", "medialibrary:get"]

Arguments
fileId - ID!

File Id from webhook

chat - Chat

A function used to get chat from either chatId or messageId.

rate limit

60 call(s) per app per mintue

scope

["conversation:read", "member:getConversation", "api:admin"]

Arguments
channelId - ID!

Channel Id

chatId - ID

Chat Id

messageId - ID

The external message Id

backgroundTask - BackgroundTask

To get info of a background task, typically used to check the status of the background task.

rate limit

12 call(s) per app per mintue

scope

["backgroundTask:get"]

Arguments
backgroundTaskId - ID!

Background Task Id

EXAMPLE
{
  "id": 4,
  "_id": 4,
  "distinctDataSourceData": {},
  "fetchDataSourceData": {},
  "fetchGeoNearDataSourceData": {},
  "memberRaw": {},
  "member": Member,
  "members": MemberConnection,
  "admins": AdminConnection,
  "channel": Channel,
  "conversationHistory": ChatConnection,
  "assignments": AssignmentConnection,
  "assignment": Assignment,
  "groups": GroupConnection,
  "installedIntegrations": [AppIntegration],
  "installedIntegration": AppIntegration,
  "integrations": {},
  "app": App,
  "userContext": {},
  "channels": ChannelConnection,
  "tree": Tree,
  "whatsAppFile": WhatsAppFileUrl,
  "whatsAppTemplate": WhatsAppMessageTemplateConnection,
  "postCommentAnalyticsOverview": PostCommentAnalyticsOverviewConnection,
  "nlpAnalyticsOverview": NLPAnalyticsCounterConnection,
  "analyticsCustomEventOverviewDateHistogram": AnalyticsCustomEventCounterConnectionTB,
  "analyticsCustomEventOverviewTable": AnalyticsCustomEventCounterConnectionRD,
  "dailyActiveMemberOverview": DailyActiveMemberOverviewPayload,
  "activeMemberCounter": ActiveMemberCounterConnection,
  "newMemberCounter": NewMemberCounterConnection,
  "actions": ActionConnection,
  "audiences": AudienceConnection,
  "conditions": ConditionConnection,
  "localeGroups": LocaleGroupConnection,
  "nodes": NodeObjectConnection,
  "priorityGroups": PriorityGroupConnection,
  "responses": ResponseConnection,
  "subscriptionPushes": SubscriptionPushConnection,
  "trees": TreeConnection,
  "triggers": TriggerConnection,
  "file": RetrieveFilePayload,
  "chat": Chat,
  "backgroundTask": BackgroundTask
}

App

Fields
Field NameDescription
id - ID!scope ["api:admin", "appInfo:get"]
_id - ID!scope ["api:admin", "appInfo:get"]
createdAt - Long!scope ["api:admin", "appInfo:get"]
updatedAt - Longscope ["api:admin", "appInfo:get"]
name - String!scope ["api:admin", "appInfo:get"]
description - Stringscope ["api:admin", "appInfo:get"]
inlets - [Channel]scope ["api:admin", "appSettings:get"]
outlets - [Channel]scope ["api:admin", "appSettings:get"]
meta - JSONscope ["api:admin", "appSettings:get"]
integrations - [JSON]scope ["api:admin", "appSettings:get"]
activated - Booleanscope ["api:admin", "appInfo:get"]
teamMembers - [TeamMember]scope ["api:admin", "appSettings:get", "teamMember:list"]
Arguments
includeInvites - Boolean
acls - [String]
mustHaveAcls - [String]
dataSources - [DataSource]scope ["api:admin", "dataSource:listDatasources"]
dataSource - DataSourcescope ["api:admin", "dataSource:listDatasources"]
Arguments
dataSourceId - ID
pairs - [Pair]scope ["api:admin", "appSettings:get"]
managedBy - Partnerscope ["api:admin", "appInfo:get"]
managementType - Stringscope ["api:admin", "appSettings:get"]
etag - IDscope ["api:admin", "appInfo:get"]
EXAMPLE
{
  "id": 4,
  "_id": 4,
  "createdAt": {},
  "updatedAt": {},
  "name": "abc123",
  "description": "xyz789",
  "inlets": [Channel],
  "outlets": [Channel],
  "meta": {},
  "integrations": [{}],
  "activated": true,
  "teamMembers": [TeamMember],
  "dataSources": [DataSource],
  "dataSource": DataSource,
  "pairs": [Pair],
  "managedBy": Partner,
  "managementType": "xyz789",
  "etag": 4
}

AppIntegration

Fields
Field NameDescription
_id - ID!
id - ID!
app - App!
appId - ID
description - String
alias - String!
meta - JSON
integration_id - ID
integrationKey - String
integrationId - ID
features - [String]
build - Int
etag - ID
createdAt - Long!
updatedAt - Long
signature - String
secret - String
channel - Channel
integrationName - String
integrationDescription - String
latestPublished - Int
isLatestPublished - Boolean
icon - String
author - Author
authorId - ID
supportEmail - String
readme - String
termsAndConditionsUrl - String
privacyPolicyUrl - String
websiteUrl - String
builderSidebarView - IntegrationView
dashboardView - IntegrationView
customView - IntegrationView
changelog - String
scopes - [String]
endpoints - IntegrationEndpoints
resourceTemplates - [ResourceTemplate]
Arguments
types - [String]
defaultResourceTemplate - ResourceTemplate
Arguments
type - String
hooks - Hook
functionString - String
settingsView - String
platformSettingsView - String
settingsSchema - JSON
settingsValidatorFunctionString - String
trees - [IntegrationTree]
supportTicketing - Boolean
version - String
inbox - InboxIntegration
EXAMPLE
{
  "_id": "4",
  "id": 4,
  "app": App,
  "appId": 4,
  "description": "xyz789",
  "alias": "xyz789",
  "meta": {},
  "integration_id": 4,
  "integrationKey": "abc123",
  "integrationId": 4,
  "features": ["xyz789"],
  "build": 987,
  "etag": 4,
  "createdAt": {},
  "updatedAt": {},
  "signature": "xyz789",
  "secret": "abc123",
  "channel": Channel,
  "integrationName": "xyz789",
  "integrationDescription": "abc123",
  "latestPublished": 123,
  "isLatestPublished": true,
  "icon": "abc123",
  "author": Author,
  "authorId": "4",
  "supportEmail": "abc123",
  "readme": "xyz789",
  "termsAndConditionsUrl": "xyz789",
  "privacyPolicyUrl": "abc123",
  "websiteUrl": "xyz789",
  "builderSidebarView": IntegrationView,
  "dashboardView": IntegrationView,
  "customView": IntegrationView,
  "changelog": "xyz789",
  "scopes": ["xyz789"],
  "endpoints": IntegrationEndpoints,
  "resourceTemplates": [ResourceTemplate],
  "defaultResourceTemplate": ResourceTemplate,
  "hooks": Hook,
  "functionString": "xyz789",
  "settingsView": "abc123",
  "platformSettingsView": "xyz789",
  "settingsSchema": {},
  "settingsValidatorFunctionString": "xyz789",
  "trees": [IntegrationTree],
  "supportTicketing": true,
  "version": "abc123",
  "inbox": InboxIntegration
}

Assignment

Fields
Field NameDescription
id - ID!
_id - ID!
createdAt - Long!
updatedAt - Long
inlet - Channel
inletId - ID
targets - [AssignmentTarget]
member - Member
memberId - ID
group - Group
groupId - ID
groupExternalId - ID
assignedAt - Long
assignee - Admin
assigner - Admin
expiry - Long
groupInfo - JSON
relayMessage - JSON
reassignRelayMessage - JSON
takenMessage - String
app - App!
appId - ID
etag - ID
tags - [String]
inactivatedAt - Long
reassign - Boolean
history - Boolean
active - Boolean
inletGroup - Boolean
inletMessage - JSON
inletGroupInfo - JSON
inletGroupExternalId - ID
parentAssignment - Assignment
parentAssignmentId - ID
previousAssignment - Assignment
previousAssignmentId - ID
adminContactMessage - JSON
redirectMemberToNode - Redirect
label - String
status - String
meta - JSON
isZendesk - Boolean
noGroupCreation - Boolean
EXAMPLE
{
  "id": "4",
  "_id": "4",
  "createdAt": {},
  "updatedAt": {},
  "inlet": Channel,
  "inletId": 4,
  "targets": [AssignmentTarget],
  "member": Member,
  "memberId": 4,
  "group": Group,
  "groupId": 4,
  "groupExternalId": "4",
  "assignedAt": {},
  "assignee": Admin,
  "assigner": Admin,
  "expiry": {},
  "groupInfo": {},
  "relayMessage": {},
  "reassignRelayMessage": {},
  "takenMessage": "abc123",
  "app": App,
  "appId": "4",
  "etag": 4,
  "tags": ["abc123"],
  "inactivatedAt": {},
  "reassign": true,
  "history": true,
  "active": true,
  "inletGroup": false,
  "inletMessage": {},
  "inletGroupInfo": {},
  "inletGroupExternalId": "4",
  "parentAssignment": Assignment,
  "parentAssignmentId": 4,
  "previousAssignment": Assignment,
  "previousAssignmentId": "4",
  "adminContactMessage": {},
  "redirectMemberToNode": Redirect,
  "label": "xyz789",
  "status": "abc123",
  "meta": {},
  "isZendesk": true,
  "noGroupCreation": false
}

AssignmentConnection

Fields
Field NameDescription
edges - [AssignmentEdge]
pageInfo - PageInfo
EXAMPLE
{
  "edges": [AssignmentEdge],
  "pageInfo": PageInfo
}

AssignmentEdge

Fields
Field NameDescription
node - Assignment
cursor - ID!
EXAMPLE
{
  "node": Assignment,
  "cursor": "4"
}

AssignmentTarget

Fields
Field NameDescription
channel - Channel
channelId - ID
admin - Admin
label - String
broadcastGroups - [BroadcastGroup]
EXAMPLE
{
  "channel": Channel,
  "channelId": 4,
  "admin": Admin,
  "label": "abc123",
  "broadcastGroups": [BroadcastGroup]
}

AttachmentUploadInput

Fields
Input FieldDescription
channelId - ID!
url - String!
fileName - String
filetype - String
token - String
headers - JSON
appId - ID
EXAMPLE
{
  "channelId": 4,
  "url": "abc123",
  "fileName": "abc123",
  "filetype": "abc123",
  "token": "xyz789",
  "headers": {},
  "appId": 4
}

AttachmentUploadPayload

Fields
Field NameDescription
ok - Int!
err_code - Int
error - String
mediaId - ID
EXAMPLE
{
  "ok": 987,
  "err_code": 987,
  "error": "xyz789",
  "mediaId": "4"
}

Audience

Fields
Field NameDescription
id - ID!
_id - ID!
createdAt - Long!
updatedAt - Long
name - String
description - String
app - App!
filter - AudienceFilter
channel - Channel
channelId - ID
tags - [String]
etag - ID
EXAMPLE
{
  "id": 4,
  "_id": "4",
  "createdAt": {},
  "updatedAt": {},
  "name": "xyz789",
  "description": "xyz789",
  "app": App,
  "filter": AudienceFilter,
  "channel": Channel,
  "channelId": "4",
  "tags": ["xyz789"],
  "etag": "4"
}

AudienceConnection

Fields
Field NameDescription
edges - [AudienceEdge]
pageInfo - PageInfo
EXAMPLE
{
  "edges": [AudienceEdge],
  "pageInfo": PageInfo
}

AudienceEdge

Fields
Field NameDescription
node - Audience
cursor - ID!
EXAMPLE
{
  "node": Audience,
  "cursor": "4"
}

AudienceFilter

Fields
Field NameDescription
plusMembers - [Member]
plusMemberIds - [ID]
minusMembers - [Member]
minusMemberIds - [ID]
specificMembersOnly - Boolean
specificMembers - [Member]
specificMemberIds - [ID]
Arguments
subscribedOnly - Boolean
criteria - JSON
criteriaMemberIds - [ID]
Arguments
subscribedOnly - Boolean
criteriaFbOTNTags - [String]
EXAMPLE
{
  "plusMembers": [Member],
  "plusMemberIds": [4],
  "minusMembers": [Member],
  "minusMemberIds": ["4"],
  "specificMembersOnly": false,
  "specificMembers": [Member],
  "specificMemberIds": [4],
  "criteria": {},
  "criteriaMemberIds": ["4"],
  "criteriaFbOTNTags": ["abc123"]
}

AudienceFilterInput

Fields
Input FieldDescription
plusMembers - [ID]
minusMembers - [ID]
specificMembersOnly - Boolean
specificMembers - [ID]
criteria - JSON

Criteria is an array of object that is translated to a member filter.

Small Example: [{

"field" : "externalId",

"operator" : "equal",

"value" : "123"

},{

"field" : "channel",

"operator" : "equal",

"value" : "abc"

}]

"criteria options":

"field": "_id" | "tags" | "fbOTNTag",

"filters": [{ "operator": "in" | "nin", "value": ["ID | String"]}]

"field": "createdAt" | "updatedAt",

"from": "epoch number",

"to": "epoch number"

"field": "firstName" | "lastName",

"value": "String"

"field": "liveChat",

"value": "Boolean"

"operator": "equal" | "in" | "nin" | "ne" | "regex" ("eq" does not work)

"field": "String", (as long as field is not one of the aboves, example: "externalId", "channel", "locale", "gender", "botMeta.tempData.abc", "meta.def")

"value": "Any"

EXAMPLE
{
  "plusMembers": [4],
  "minusMembers": ["4"],
  "specificMembersOnly": true,
  "specificMembers": [4],
  "criteria": {}
}

Author

Fields
Field NameDescription
email - String
EXAMPLE
{"email": "abc123"}

BackgroundTask

Fields
Field NameDescription
id - ID!
_id - ID!
createdAt - Long!
updatedAt - Long
app - App!
appId - ID
type - String
message - String
status - String
data - JSON
meta - JSON
runAt - Long
endAt - Long
etag - ID
EXAMPLE
{
  "id": 4,
  "_id": 4,
  "createdAt": {},
  "updatedAt": {},
  "app": App,
  "appId": "4",
  "type": "xyz789",
  "message": "xyz789",
  "status": "abc123",
  "data": {},
  "meta": {},
  "runAt": {},
  "endAt": {},
  "etag": 4
}

BatchCreateAppIntegrationError

Fields
Field NameDescription
error - endpointError
integrationId - String
build - Int
EXAMPLE
{
  "error": endpointError,
  "integrationId": "abc123",
  "build": 987
}

BatchCreateAppIntegrationForTreeInput

Fields
Input FieldDescription
app - ID
normalIntegrations - [NormalIntegrationInput]
platformIntegrations - [PlatformIntegrationInput]
trees - [JSON]
nodes - [JSON]
triggers - [JSON]
conditions - [JSON]
actions - [JSON]
responses - [JSON]
localeGroups - [JSON]
url - String
prefix - String
forceKeepResponsePlatforms - [String]List of Platforms to keep the response. Ex: ["facebook", "whatsapp-cloud"]
clientMutationId - ID
EXAMPLE
{
  "app": 4,
  "normalIntegrations": [NormalIntegrationInput],
  "platformIntegrations": [PlatformIntegrationInput],
  "trees": [{}],
  "nodes": [{}],
  "triggers": [{}],
  "conditions": [{}],
  "actions": [{}],
  "responses": [{}],
  "localeGroups": [{}],
  "url": "xyz789",
  "prefix": "abc123",
  "forceKeepResponsePlatforms": ["abc123"],
  "clientMutationId": 4
}

BatchCreateAppIntegrationForTreePayload

Fields
Field NameDescription
errors - [BatchCreateAppIntegrationError]
trees - [Tree]
clientMutationId - ID
EXAMPLE
{
  "errors": [BatchCreateAppIntegrationError],
  "trees": [Tree],
  "clientMutationId": 4
}

BatchCreateChatInput

Fields
Input FieldDescription
chats - [ChatInput]Array of chat object
sendOutbound - Boolean
clientMutationId - IDID generated by relay client for tracking the progress
EXAMPLE
{
  "chats": [ChatInput],
  "sendOutbound": true,
  "clientMutationId": "4"
}

BatchCreateChatPayload

Fields
Field NameDescription
chatIds - [ID]Array of chat object
clientMutationId - IDID generated by relay client for tracking the progress
EXAMPLE
{
  "chatIds": ["4"],
  "clientMutationId": "4"
}

BatchUpdateMemberInput

Fields
Input FieldDescription
memberIds - [ID]Member Ids (Either memberIds or externalIds)
externalIds - [ID]Member external Ids (Either memberIds or externalIds)
channel - IDChannel ID (required when using externalIds)
tags - [String]Member tags
gender - StringMember gender
locale - StringMember locale
option - MongoDBArrayOptionTags manipulation option
app - ID
clientMutationId - ID
EXAMPLE
{
  "memberIds": ["4"],
  "externalIds": ["4"],
  "channel": 4,
  "tags": ["abc123"],
  "gender": "abc123",
  "locale": "abc123",
  "option": "set",
  "app": "4",
  "clientMutationId": 4
}

BatchUpdateMemberPayload

Fields
Field NameDescription
clientMutationId - ID
EXAMPLE
{"clientMutationId": 4}

Boolean

Description

The Boolean scalar type represents true or false.

BotMeta

Fields
Field NameDescription
subscribe - Boolean
liveChat - Boolean
tempData - JSON
node - NodeObject
nodeCompositeId - ID
tree - Tree
treeId - ID
EXAMPLE
{
  "subscribe": false,
  "liveChat": false,
  "tempData": {},
  "node": NodeObject,
  "nodeCompositeId": 4,
  "tree": Tree,
  "treeId": 4
}

BotMetaInput

Fields
Input FieldDescription
subscribe - Boolean
liveChat - Boolean
tempData - JSON
nodeCompositeId - ID
tree - ID
EXAMPLE
{
  "subscribe": true,
  "liveChat": true,
  "tempData": {},
  "nodeCompositeId": 4,
  "tree": "4"
}

BroadcastGroup

Fields
Field NameDescription
type - String!
id - ID
groupId - ID
label - String
messageTs - String
messageId - ID
meta - JSON
EXAMPLE
{
  "type": "abc123",
  "id": "4",
  "groupId": 4,
  "label": "abc123",
  "messageTs": "abc123",
  "messageId": 4,
  "meta": {}
}

Channel

Fields
Field NameDescription
id - ID!scope ["api:admin", "channel:getBasicInfo"]
_id - ID!scope ["api:admin", "channel:getBasicInfo"]
createdAt - Long!scope ["api:admin", "channel:getBasicInfo"]
updatedAt - Longscope ["api:admin", "channel:getBasicInfo"]
name - String!scope ["api:admin", "channel:getBasicInfo"]
description - Stringscope ["api:admin", "channel:getBasicInfo"]
app - App!scope ["api:admin", "channel:getDetails"]
appId - IDscope ["api:admin", "channel:getDetails"]
type - Stringscope ["api:admin", "channel:getBasicInfo"]
relayWebhooks - [String]scope ["api:admin", "channel:getDetails"] No longer supported
webhooks - JSONscope ["api:admin", "channel:getDetails"] No longer supported
verificationToken - Stringscope ["api:admin", "channel:getDetails"] No longer supported
channelSecret - Stringscope ["api:admin", "channel:getDetails"]
info - JSONscope ["api:admin", "channel:getPlatformInfo"] No longer supported
Arguments
webchatHydrateLocaleGroup - Boolean
unmaskToken - ID
broadcastGroups - [ChannelBroadcastGroup]scope ["api:admin", "channel:getBroadcastGroupSettings"] No longer supported
meta - JSONscope ["api:admin", "channel:getTreeSettings"]
trees - [Tree]scope ["api:admin", "channel:getTreeSettings"] No longer supported
globalNodes - [NodeObject]scope ["api:admin", "channel:getTreeSettings"] No longer supported
priorityGroups - [ChannelPriorityGroup]scope ["api:admin", "channel:getTreeSettings"] No longer supported
tags - [String]scope ["api:admin", "channel:getBasicInfo"]
inletGroup - Booleanscope ["api:admin", "channel:getBroadcastGroupSettings"] No longer supported
etag - IDscope ["api:admin", "channel:getBasicInfo"]
on - Booleanscope ["api:admin", "channel:getAvailabilities"]
sendOutletMessageViaBot - Booleanscope ["api:admin", "channel:getBroadcastGroupSettings"] No longer supported
livechatAgendas - JSONscope ["api:admin", "channel:getLiveChatSettings"] No longer supported
liveChatAgendaObjects - [LiveChatAgenda]scope ["api:admin", "channel:getLiveChatSettings"] No longer supported
availability - JSONscope ["api:admin", "channel:getAvailabilities"] No longer supported
exclusiveLiveChat - Booleanscope ["api:admin", "channel:getBasicInfo"] No longer supported
locked - Booleanscope ["api:admin", "channel:getBasicInfo"] No longer supported
wabaStatus - Stringscope ["api:admin", "channel:getPlatformSettings"] No longer supported
wabaError - Stringscope ["api:admin", "channel:getPlatformSettings"] No longer supported
wabaInfo - JSONscope ["api:admin", "channel:getPlatformSettings"] No longer supported
wabaIntegration - WABAIntegrationscope ["api:admin", "channel:getPlatformSettings"] No longer supported
environment - ChannelEnvironmentscope ["api:admin", "channel:getEnvironmentInfo"]
Arguments
envId - ID!
environments - [ChannelEnvironment]scope ["api:admin", "channel:getEnvironmentInfo"]
incomingWebhooks - [ChannelIncomingWebhook]scope ["api:admin", "channel:getDetails"]
archived - Booleanscope ["api:admin", "channel:getBasicInfo"]
archivedAt - Longscope ["api:admin", "channel:getBasicInfo"]
connected - Booleanscope ["api:admin", "channel:getBasicInfo"]
EXAMPLE
{
  "id": 4,
  "_id": "4",
  "createdAt": {},
  "updatedAt": {},
  "name": "abc123",
  "description": "abc123",
  "app": App,
  "appId": 4,
  "type": "xyz789",
  "relayWebhooks": ["xyz789"],
  "webhooks": {},
  "verificationToken": "abc123",
  "channelSecret": "xyz789",
  "info": {},
  "broadcastGroups": [ChannelBroadcastGroup],
  "meta": {},
  "trees": [Tree],
  "globalNodes": [NodeObject],
  "priorityGroups": [ChannelPriorityGroup],
  "tags": ["xyz789"],
  "inletGroup": false,
  "etag": 4,
  "on": false,
  "sendOutletMessageViaBot": true,
  "livechatAgendas": {},
  "liveChatAgendaObjects": [LiveChatAgenda],
  "availability": {},
  "exclusiveLiveChat": true,
  "locked": false,
  "wabaStatus": "abc123",
  "wabaError": "xyz789",
  "wabaInfo": {},
  "wabaIntegration": WABAIntegration,
  "environment": ChannelEnvironment,
  "environments": [ChannelEnvironment],
  "incomingWebhooks": [ChannelIncomingWebhook],
  "archived": false,
  "archivedAt": {},
  "connected": true
}

ChannelBroadcastGroup

Fields
Field NameDescription
label - String
groups - [BroadcastGroup]
EXAMPLE
{
  "label": "xyz789",
  "groups": [BroadcastGroup]
}

ChannelConnection

Fields
Field NameDescription
edges - [ChannelEdge]
pageInfo - PageInfo
EXAMPLE
{
  "edges": [ChannelEdge],
  "pageInfo": PageInfo
}

ChannelEdge

Fields
Field NameDescription
node - Channel
cursor - ID!
EXAMPLE
{"node": Channel, "cursor": 4}

ChannelEnvironment

Fields
Field NameDescription
envId - ID!scope ["api:admin", "channel:getBasicInfo", "channel:getEnvironmentInfo"]
name - String!scope ["api:admin", "channel:getBasicInfo", "channel:getEnvironmentInfo"]
description - Stringscope ["api:admin", "channel:getBasicInfo", "channel:getEnvironmentInfo"]
webhooks - JSONscope ["api:admin", "channel:getDetails"]
webhooksV2 - [ChannelWebhookV2]scope ["api:admin", "channel:getDetails"]
on - Booleanscope ["api:admin", "channel:getAvailabilities"]
info - JSON
Arguments
webchatHydrateLocaleGroup - Boolean
unmaskToken - ID
appIntegrationSignature - Stringscope ["api:admin", "channel:getPlatformInfo"]
availability - JSONscope ["api:admin", "channel:getAvailabilities"]
integration - AppIntegrationscope ["api:admin", "channel:getDetails"]
integrationInstalled - Booleanscope ["api:admin", "channel:getDetails"]
group - PriorityGroupscope ["api:admin", "channel:getDetails"]
trees - [Tree]scope ["api:admin", "channel:getTreeSettings"]
treeIds - [ID]scope ["api:admin", "channel:getTreeSettings"]
globalNodes - [NodeObject]scope ["api:admin", "channel:getTreeSettings"]
globalNodeIds - [ID]scope ["api:admin", "channel:getTreeSettings"]
offTrees - [Tree]scope ["api:admin", "channel:getTreeSettings"]
offTreeIds - [ID]scope ["api:admin", "channel:getTreeSettings"]
offGlobalNodes - [NodeObject]scope ["api:admin", "channel:getTreeSettings"]
offGlobalNodeIds - [ID]scope ["api:admin", "channel:getTreeSettings"]
livechatTrees - [Tree]scope ["api:admin", "channel:getTreeSettings"]
livechatTreeIds - [ID]scope ["api:admin", "channel:getTreeSettings"]
livechatGlobalNodes - [NodeObject]scope ["api:admin", "channel:getTreeSettings"]
livechatGlobalNodeIds - [ID]scope ["api:admin", "channel:getTreeSettings"]
hooks - ChannelHooksscope ["api:admin", "channel:getDetails"]
coreVersion - Stringscope ["api:admin", "channel:getTreeSettings"]
meta - JSONscope ["api:admin", "channel:getTreeSettings"]
EXAMPLE
{
  "envId": "4",
  "name": "xyz789",
  "description": "abc123",
  "webhooks": {},
  "webhooksV2": [ChannelWebhookV2],
  "on": true,
  "info": {},
  "appIntegrationSignature": "abc123",
  "availability": {},
  "integration": AppIntegration,
  "integrationInstalled": true,
  "group": PriorityGroup,
  "trees": [Tree],
  "treeIds": ["4"],
  "globalNodes": [NodeObject],
  "globalNodeIds": [4],
  "offTrees": [Tree],
  "offTreeIds": ["4"],
  "offGlobalNodes": [NodeObject],
  "offGlobalNodeIds": ["4"],
  "livechatTrees": [Tree],
  "livechatTreeIds": [4],
  "livechatGlobalNodes": [NodeObject],
  "livechatGlobalNodeIds": ["4"],
  "hooks": ChannelHooks,
  "coreVersion": "xyz789",
  "meta": {}
}

ChannelEnvironmentWebhookDetail

Fields
Input FieldDescription
webhookId - ID
integrationId - String
alias - String
url - String!Url to receive webhook
memberExtraData - [MemberExtraData]Array of member extra data to be put in webhook
customHeadersData - [CustomHeadersData]
EXAMPLE
{
  "webhookId": 4,
  "integrationId": "abc123",
  "alias": "xyz789",
  "url": "abc123",
  "memberExtraData": [MemberExtraData],
  "customHeadersData": [CustomHeadersData]
}

ChannelEnvironmentWebhooks

Fields
Input FieldDescription
normalizedInbound - [ChannelEnvironmentWebhookDetail]
normalizedOutbound - [ChannelEnvironmentWebhookDetail]
EXAMPLE
{
  "normalizedInbound": [ChannelEnvironmentWebhookDetail],
  "normalizedOutbound": [ChannelEnvironmentWebhookDetail]
}

ChannelHooks

Fields
Field NameDescription
preCoreEntry - ChannelPreCoreEntryHooks
postCoreEntry - [HookFunction]
postCoreEntryIds - [ID]
EXAMPLE
{
  "preCoreEntry": ChannelPreCoreEntryHooks,
  "postCoreEntry": [HookFunction],
  "postCoreEntryIds": [4]
}

ChannelHooksInput

Fields
Input FieldDescription
preCoreEntry - ChannelPreCoreEntryHooksInput
postCoreEntry - [ID]
EXAMPLE
{
  "preCoreEntry": ChannelPreCoreEntryHooksInput,
  "postCoreEntry": ["4"]
}

ChannelIncomingWebhook

Fields
Field NameDescription
webhookId - ID
url - String
disabled - Boolean
alias - String
integrationId - String
appIntegration - ID
locked - Boolean
EXAMPLE
{
  "webhookId": 4,
  "url": "xyz789",
  "disabled": true,
  "alias": "abc123",
  "integrationId": "abc123",
  "appIntegration": "4",
  "locked": false
}

ChannelIncomingWebhookActionInput

Fields
Input FieldDescription
webhookId - IDUsed by UPDATE and DELETE action
action - String

CREATE

Create new Incoming Webhooks

UPDATE

Update Incoming Webhooks using webhookId

DELETE

Delete Incoming Webhooks using webhookId

UPSERT

Create Incoming Webhooks if no non-appIntegration Incoming Webhooks exist, otherwise update all non-appIntegration Incoming Webhooks (when called using an appIntegration token, it will check for Incoming Webhook created by the appIntegration instead)

PULL

Delete all non-appIntegration Incoming Webhooks (when called using an appIntegration token, it will delete the Incoming Webhook created by the appIntegration instead)

alias - String
disabled - Boolean
EXAMPLE
{
  "webhookId": 4,
  "action": "abc123",
  "alias": "xyz789",
  "disabled": true
}

ChannelPreCoreEntryHooks

Fields
Field NameDescription
syncHooks - [HookFunction]
syncHookIds - [ID]
asyncHooks - [HookFunction]
asyncHookIds - [ID]
EXAMPLE
{
  "syncHooks": [HookFunction],
  "syncHookIds": [4],
  "asyncHooks": [HookFunction],
  "asyncHookIds": ["4"]
}

ChannelPreCoreEntryHooksInput

Fields
Input FieldDescription
sync - [ID]
async - [ID]
EXAMPLE
{"sync": ["4"], "async": [4]}

ChannelPriorityGroup

Fields
Field NameDescription
group - PriorityGroup
trees - [Tree]
treeIds - [ID]
globalNodes - [NodeObject]
globalNodeIds - [ID]
groupTrees - [Tree]
groupTreeIds - [ID]
groupGlobalNodes - [NodeObject]
groupGlobalNodeIds - [ID]
offTrees - [Tree]
offTreeIds - [ID]
offGlobalNodes - [NodeObject]
offGlobalNodeIds - [ID]
livechatTrees - [Tree]
livechatTreeIds - [ID]
livechatGlobalNodes - [NodeObject]
livechatGlobalNodeIds - [ID]
coreVersion - String
meta - JSON
override - Boolean
overrideOn - Boolean
EXAMPLE
{
  "group": PriorityGroup,
  "trees": [Tree],
  "treeIds": ["4"],
  "globalNodes": [NodeObject],
  "globalNodeIds": ["4"],
  "groupTrees": [Tree],
  "groupTreeIds": ["4"],
  "groupGlobalNodes": [NodeObject],
  "groupGlobalNodeIds": ["4"],
  "offTrees": [Tree],
  "offTreeIds": [4],
  "offGlobalNodes": [NodeObject],
  "offGlobalNodeIds": [4],
  "livechatTrees": [Tree],
  "livechatTreeIds": [4],
  "livechatGlobalNodes": [NodeObject],
  "livechatGlobalNodeIds": [4],
  "coreVersion": "abc123",
  "meta": {},
  "override": true,
  "overrideOn": false
}

ChannelWebhookV2

Fields
Field NameDescription
webhookId - ID
url - String
events - [WebhookEventType]
memberExtraData - JSON
customHeadersData - JSON
alias - String
integrationId - String
locked - Boolean
EXAMPLE
{
  "webhookId": "4",
  "url": "xyz789",
  "events": ["INBOUND"],
  "memberExtraData": {},
  "customHeadersData": {},
  "alias": "abc123",
  "integrationId": "abc123",
  "locked": true
}

ChannelWebhookV2ActionInput

Fields
Input FieldDescription
webhookId - IDUsed by UPDATE and DELETE action
action - String

CREATE

Create new webhooksV2

UPDATE

Update webhooksV2 using webhookId

DELETE

Delete webhooksV2 using webhookId

UPSERT

Create webhooksV2 if webhooksV2 with matching url and events does not exist, otherwise update the matching webhooksV2's memberExtraData and customHeadersData

PULL

Delete webhooksV2 that has matching url and events

url - String
alias - String
events - [WebhookEventType]
memberExtraData - [MemberExtraData]
customHeadersData - [CustomHeadersData]
EXAMPLE
{
  "webhookId": 4,
  "action": "abc123",
  "url": "xyz789",
  "alias": "xyz789",
  "events": ["INBOUND"],
  "memberExtraData": [MemberExtraData],
  "customHeadersData": [CustomHeadersData]
}

ChannelWebhookV2Input

Fields
Input FieldDescription
webhookId - ID
url - String
alias - String
events - [WebhookEventType]
memberExtraData - [MemberExtraData]
customHeadersData - [CustomHeadersData]
EXAMPLE
{
  "webhookId": 4,
  "url": "xyz789",
  "alias": "xyz789",
  "events": ["INBOUND"],
  "memberExtraData": [MemberExtraData],
  "customHeadersData": [CustomHeadersData]
}

Chat

Fields
Field NameDescription
id - ID!
_id - ID!
createdAt - Long!
updatedAt - Long
sentAt - Long
readAt - Long
deliveredAt - Long
deletedAt - Long
group - GroupNo longer supported
assignment - AssignmentNo longer supported
messageEvent - JSON
from - ChatSender
member - Member
memberId - ID
admin - Admin
errors - JSON
failedAt - String
platform - String
channel - Channel
channelId - ID
app - App
appId - ID
tags - [String]
meta - JSON
etag - ID
isMultipleParty - Boolean
EXAMPLE
{
  "id": 4,
  "_id": 4,
  "createdAt": {},
  "updatedAt": {},
  "sentAt": {},
  "readAt": {},
  "deliveredAt": {},
  "deletedAt": {},
  "group": Group,
  "assignment": Assignment,
  "messageEvent": {},
  "from": "BOT",
  "member": Member,
  "memberId": 4,
  "admin": Admin,
  "errors": {},
  "failedAt": "xyz789",
  "platform": "abc123",
  "channel": Channel,
  "channelId": 4,
  "app": App,
  "appId": "4",
  "tags": ["abc123"],
  "meta": {},
  "etag": "4",
  "isMultipleParty": false
}

ChatConnection

Fields
Field NameDescription
edges - [ChatEdge]
pageInfo - PageInfo
EXAMPLE
{
  "edges": [ChatEdge],
  "pageInfo": PageInfo
}

ChatEdge

Fields
Field NameDescription
node - Chat
cursor - ID!
EXAMPLE
{
  "node": Chat,
  "cursor": "4"
}

ChatInput

Fields
Input FieldDescription
externalId - IDexternal Id
memberId - IDMember Id
channelId - ID!Channel Id
from - ChatSender!Message from MEMBER or BOT
platform - String!Channel platform type (integration id)
sentAt - LongSent time
deliveredAt - LongDelivered time
failedAt - LongFailed time
messageEvent - JSONMessage event
woztellPushId - IDWoztell Push Id
error - ErrorFailed error
meta - JSON
EXAMPLE
{
  "externalId": 4,
  "memberId": 4,
  "channelId": "4",
  "from": "BOT",
  "platform": "xyz789",
  "sentAt": {},
  "deliveredAt": {},
  "failedAt": {},
  "messageEvent": {},
  "woztellPushId": 4,
  "error": Error,
  "meta": {}
}

ChatSender

Values
Enum ValueDescription

BOT

MEMBER

ADMIN

INCOMING_WEBHOOK

EXAMPLE
"BOT"

Condition

Fields
Field NameDescription
id - ID!
_id - ID!
createdAt - Long!
updatedAt - Long
name - String!
description - String
functionString - String
app - App
system - Boolean
systemKey - String
autogen - Boolean
etag - ID
history - [JSON]
tags - [String]
EXAMPLE
{
  "id": "4",
  "_id": "4",
  "createdAt": {},
  "updatedAt": {},
  "name": "abc123",
  "description": "xyz789",
  "functionString": "abc123",
  "app": App,
  "system": false,
  "systemKey": "xyz789",
  "autogen": true,
  "etag": "4",
  "history": [{}],
  "tags": ["abc123"]
}

ConditionConnection

Fields
Field NameDescription
edges - [ConditionEdge]
pageInfo - PageInfo
EXAMPLE
{
  "edges": [ConditionEdge],
  "pageInfo": PageInfo
}

ConditionEdge

Fields
Field NameDescription
node - Condition
cursor - ID!
EXAMPLE
{"node": Condition, "cursor": 4}

Coordinates

Fields
Field NameDescription
x - Float
y - Float
EXAMPLE
{"x": 987.65, "y": 123.45}

CoordinatesInput

Fields
Input FieldDescription
x - Float
y - Float
EXAMPLE
{"x": 123.45, "y": 123.45}

CreateActionInput

Fields
Input FieldDescription
name - String!
description - String
functionString - String
app - ID
tags - [String]
clientMutationId - ID
EXAMPLE
{
  "name": "xyz789",
  "description": "xyz789",
  "functionString": "abc123",
  "app": 4,
  "tags": ["xyz789"],
  "clientMutationId": 4
}

CreateActionPayload

Fields
Field NameDescription
action - Action
clientMutationId - ID
EXAMPLE
{"action": Action, "clientMutationId": 4}

CreateAgendaInput

Fields
Input FieldDescription
app - ID
member - ID
tree - ID
nodeCompositeId - ID
nextRunAt - Long
completed - Boolean
lastRunAt - Long
pattern - String
runUntil - Long
type - String
channel - ID
priority - Int
subscriptionPush - AgendaSubscriptionPushConfigInput
replace - Boolean
tag - String
meta - JSON
clientMutationId - ID
EXAMPLE
{
  "app": 4,
  "member": "4",
  "tree": 4,
  "nodeCompositeId": 4,
  "nextRunAt": {},
  "completed": true,
  "lastRunAt": {},
  "pattern": "xyz789",
  "runUntil": {},
  "type": "abc123",
  "channel": 4,
  "priority": 987,
  "subscriptionPush": AgendaSubscriptionPushConfigInput,
  "replace": true,
  "tag": "xyz789",
  "meta": {},
  "clientMutationId": 4
}

CreateAgendaPayload

Fields
Field NameDescription
agenda - Agenda
agendaRaw - JSON
clientMutationId - ID
EXAMPLE
{"agenda": Agenda, "agendaRaw": {}, "clientMutationId": 4}

CreateAudienceInput

Fields
Input FieldDescription
name - String
description - String
app - ID
filter - AudienceFilterInput
channel - ID
tags - [String]
clientMutationId - ID
EXAMPLE
{
  "name": "xyz789",
  "description": "xyz789",
  "app": 4,
  "filter": AudienceFilterInput,
  "channel": 4,
  "tags": ["xyz789"],
  "clientMutationId": "4"
}

CreateAudiencePayload

Fields
Field NameDescription
audience - Audience
clientMutationId - ID
EXAMPLE
{
  "audience": Audience,
  "clientMutationId": "4"
}

CreateChannelEnvironmentInput

Fields
Input FieldDescription
channelId - ID!Target channel Id
name - String!Name for the new channel environment
app - ID
build - IntIntegration version build number (default: default environment's version)
clientMutationId - ID
EXAMPLE
{
  "channelId": "4",
  "name": "abc123",
  "app": 4,
  "build": 123,
  "clientMutationId": "4"
}

CreateChannelInput

Fields
Input FieldDescription
app - ID
name - String!
description - String
info - JSON
meta - JSON
tags - [String]
clientMutationId - ID
on - Boolean
EXAMPLE
{
  "app": 4,
  "name": "xyz789",
  "description": "abc123",
  "info": {},
  "meta": {},
  "tags": ["abc123"],
  "clientMutationId": "4",
  "on": true
}

CreateChannelPayload

Fields
Field NameDescription
channel - Channel
error - GenericError
clientMutationId - ID
EXAMPLE
{
  "channel": Channel,
  "error": GenericError,
  "clientMutationId": 4
}

CreateConditionInput

Fields
Input FieldDescription
name - String!
description - String
functionString - String
app - ID
autogen - Boolean
tags - [String]
clientMutationId - ID
EXAMPLE
{
  "name": "xyz789",
  "description": "abc123",
  "functionString": "xyz789",
  "app": "4",
  "autogen": true,
  "tags": ["xyz789"],
  "clientMutationId": "4"
}

CreateConditionPayload

Fields
Field NameDescription
condition - Condition
clientMutationId - ID
parentTrail - String
EXAMPLE
{
  "condition": Condition,
  "clientMutationId": "4",
  "parentTrail": "abc123"
}

CreateDataSourceDocInput

Description

Input type for creating datasource doc.

Fields
Input FieldDescription
app - IDApp ID in Stella.
collectionName - String!Datasource id in Stella.
data - JSONThe data to insert in datasource.
clientMutationId - ID
EXAMPLE
{
  "app": 4,
  "collectionName": "abc123",
  "data": {},
  "clientMutationId": 4
}

CreateDataSourceDocPayload

Description

Return type for creating datasource doc.

Fields
Field NameDescription
clientMutationId - ID
data - JSONThe data inserted.
EXAMPLE
{"clientMutationId": "4", "data": {}}

CreateDataSourceInput

Description

Input type for creating datasource.

Fields
Input FieldDescription
app - IDApp ID in Stella.
name - String!Datasource name
description - StringDatasource description
clientMutationId - ID
EXAMPLE
{
  "app": 4,
  "name": "abc123",
  "description": "abc123",
  "clientMutationId": "4"
}

CreateDataSourcePayload

Description

Return type for creating datasource.

Fields
Field NameDescription
dataSource - DataSourceDatasource that created.
clientMutationId - ID
EXAMPLE
{
  "dataSource": DataSource,
  "clientMutationId": "4"
}

CreateLocaleGroupInput

Fields
Input FieldDescription
locales - [String]
name - String
app - ID
clientMutationId - ID
EXAMPLE
{
  "locales": ["abc123"],
  "name": "xyz789",
  "app": 4,
  "clientMutationId": 4
}

CreateLocaleGroupPayload

Fields
Field NameDescription
localeGroup - LocaleGroup
clientMutationId - ID
EXAMPLE
{
  "localeGroup": LocaleGroup,
  "clientMutationId": "4"
}

CreateMemberInput

Fields
Input FieldDescription
app - ID
channel - ID!
platform - String!
profile - JSON
tags - [String]
meta - JSON
botMeta - BotMetaInput
externalId - ID
botId - ID
admin - ID
group - ID
fbId - ID
firstName - String
lastName - String
profilePic - String
gender - String
locale - String
customLocale - String
email - String
profilePicString - String
clientMutationId - ID
EXAMPLE
{
  "app": 4,
  "channel": "4",
  "platform": "abc123",
  "profile": {},
  "tags": ["abc123"],
  "meta": {},
  "botMeta": BotMetaInput,
  "externalId": 4,
  "botId": 4,
  "admin": "4",
  "group": 4,
  "fbId": 4,
  "firstName": "xyz789",
  "lastName": "abc123",
  "profilePic": "xyz789",
  "gender": "abc123",
  "locale": "abc123",
  "customLocale": "xyz789",
  "email": "abc123",
  "profilePicString": "xyz789",
  "clientMutationId": "4"
}

CreateMemberPayload

Fields
Field NameDescription
member - Member
clientMutationId - ID
EXAMPLE
{
  "member": Member,
  "clientMutationId": "4"
}

CreateNodeInput

Fields
Input FieldDescription
name - String!
description - String
trigger - ID
preActions - [ID]
responses - [ID]
postActions - [ID]
actions - [ID]
priority - Int
colour - String
path - String
app - ID
compositeId - ID
tree - ID!
global - Boolean!
redirect - RedirectInput
analytics - AnalyticsInput
memberTagging - MemberTaggingInput
type - NodeObjectType
dialogflow - DialogflowSettingsInput
luis - LuisSettingsInput
tags - [String]
clientMutationId - ID
saveCompositeId - Boolean
EXAMPLE
{
  "name": "abc123",
  "description": "xyz789",
  "trigger": 4,
  "preActions": [4],
  "responses": [4],
  "postActions": ["4"],
  "actions": ["4"],
  "priority": 123,
  "colour": "abc123",
  "path": "abc123",
  "app": 4,
  "compositeId": "4",
  "tree": 4,
  "global": false,
  "redirect": RedirectInput,
  "analytics": AnalyticsInput,
  "memberTagging": MemberTaggingInput,
  "type": "GENERAL",
  "dialogflow": DialogflowSettingsInput,
  "luis": LuisSettingsInput,
  "tags": ["xyz789"],
  "clientMutationId": "4",
  "saveCompositeId": true
}

CreateNodePayload

Fields
Field NameDescription
node - NodeObject
clientMutationId - ID
EXAMPLE
{
  "node": NodeObject,
  "clientMutationId": "4"
}

CreateNotificationInput

Fields
Input FieldDescription
appId - ID
notificationCode - String

A unique identifiable string for the notification for debounced deduplication. Must be used together with timer.

When both the notificationCode and timer are specified, the same notification (with the same notification code) will not be sent out within the time period specified in timer.

timer - Long

Duration in ms for debounced deduplication (e.g. 1s = 1000). Must be used together with notificationCode.

When both the notificationCode and timer are specified, the same notification (with the same notification code) will not be sent out within the time period specified in timer.

color - String
title - String
status - String
message - String
buttons - [NotificationButtonInput]
linkTo - String
publish - BooleanDefaults true. If publish is false, a silent notification will be sent.
sendEmail - Boolean

Defaults false. If true, a JSON representation of the notification will be sent via the email no-reply@woztell.com.

The content of the email can be override by specifying the emailDetail field.

emailDetail - JSONAccepts JSON object { from, to, cc, bcc, subject, text, html, attachments, amp }
clientMutationId - ID
EXAMPLE
{
  "appId": "4",
  "notificationCode": "xyz789",
  "timer": {},
  "color": "abc123",
  "title": "abc123",
  "status": "abc123",
  "message": "xyz789",
  "buttons": [NotificationButtonInput],
  "linkTo": "abc123",
  "publish": false,
  "sendEmail": true,
  "emailDetail": {},
  "clientMutationId": 4
}

CreateNotificationPayload

Fields
Field NameDescription
notification - Notification
clientMutationId - ID
EXAMPLE
{
  "notification": Notification,
  "clientMutationId": "4"
}

CreatePriorityGroupInput

Fields
Input FieldDescription
name - String!
description - String
app - ID
channel - ID
members - [ID]
tags - [String]
clientMutationId - ID
EXAMPLE
{
  "name": "abc123",
  "description": "abc123",
  "app": 4,
  "channel": 4,
  "members": ["4"],
  "tags": ["abc123"],
  "clientMutationId": "4"
}

CreatePriorityGroupPayload

Fields
Field NameDescription
priorityGroup - PriorityGroup
clientMutationId - ID
EXAMPLE
{
  "priorityGroup": PriorityGroup,
  "clientMutationId": "4"
}

CreateResponseInput

Fields
Input FieldDescription
name - String!
description - String
app - ID
localeGroups - [ResponseLocaleGroupInput]
tags - [String]
clientMutationId - ID
EXAMPLE
{
  "name": "abc123",
  "description": "abc123",
  "app": 4,
  "localeGroups": [ResponseLocaleGroupInput],
  "tags": ["abc123"],
  "clientMutationId": 4
}

CreateResponsePayload

Fields
Field NameDescription
response - Response
clientMutationId - ID
EXAMPLE
{
  "response": Response,
  "clientMutationId": "4"
}

CreateRetryAudienceInput

Fields
Input FieldDescription
subscriptionPushId - ID!
name - String
description - String
app - ID
tags - [String]
clientMutationId - ID
EXAMPLE
{
  "subscriptionPushId": "4",
  "name": "abc123",
  "description": "abc123",
  "app": "4",
  "tags": ["xyz789"],
  "clientMutationId": "4"
}

CreateRetryAudiencePayload

Fields
Field NameDescription
audiences - [Audience]
clientMutationId - ID
EXAMPLE
{
  "audiences": [Audience],
  "clientMutationId": "4"
}

CreateSubscriptionPushInput

Fields
Input FieldDescription
name - String
description - String
messages - JSON

Example:

"messages" : [{

"platforms" : [{

"integrationId" : "woztell-essential-pack", "build" : 1, "localeGroups" : [{

"localeGroup" : "default", "variations" : [{

"name" : "Standard", "responses" : [{

"type" : "TEXT", "text" : "Hello World", "id" : "EQeUe7ZA", "transform" : ""

}] }] }] }] }]

app - ID
tags - [String]
agendaMeta - JSON
includeAudiences - [ID]
excludeAudiences - [ID]
fbMessageTag - String
filter - AudienceFilterInput
members - [ID]
fbOTNTags - [String]
parentSubscriptionPush - ID
scheduleAt - Long
priority - Int
clientMutationId - ID
EXAMPLE
{
  "name": "xyz789",
  "description": "abc123",
  "messages": {},
  "app": "4",
  "tags": ["xyz789"],
  "agendaMeta": {},
  "includeAudiences": ["4"],
  "excludeAudiences": ["4"],
  "fbMessageTag": "abc123",
  "filter": AudienceFilterInput,
  "members": ["4"],
  "fbOTNTags": ["xyz789"],
  "parentSubscriptionPush": 4,
  "scheduleAt": {},
  "priority": 987,
  "clientMutationId": "4"
}

CreateSubscriptionPushPayload

Fields
Field NameDescription
subscriptionPush - SubscriptionPush
clientMutationId - ID
EXAMPLE
{
  "subscriptionPush": SubscriptionPush,
  "clientMutationId": 4
}

CreateTreeInput

Fields
Input FieldDescription
name - String!
description - String
app - ID
globalNodes - [ID]
nodes - [ID]
workspace - [WorkspaceInput]
version - Int
versionAlias - String
ancestorTree - ID
stash - [ID]
tags - [String]
configMapSchema - JSON
configMap - JSON
type - String
templateTreeId - ID
system - Boolean
clientMutationId - ID
EXAMPLE
{
  "name": "xyz789",
  "description": "abc123",
  "app": 4,
  "globalNodes": [4],
  "nodes": [4],
  "workspace": [WorkspaceInput],
  "version": 123,
  "versionAlias": "xyz789",
  "ancestorTree": 4,
  "stash": [4],
  "tags": ["xyz789"],
  "configMapSchema": {},
  "configMap": {},
  "type": "xyz789",
  "templateTreeId": "4",
  "system": false,
  "clientMutationId": 4
}

CreateTreePayload

Fields
Field NameDescription
tree - Tree
clientMutationId - ID
EXAMPLE
{
  "tree": Tree,
  "clientMutationId": "4"
}

CreateTriggerInput

Fields
Input FieldDescription
name - String!
description - String
conditions - JSON
app - ID
templateInfo - JSON
tags - [String]
clientMutationId - ID
EXAMPLE
{
  "name": "abc123",
  "description": "xyz789",
  "conditions": {},
  "app": "4",
  "templateInfo": {},
  "tags": ["xyz789"],
  "clientMutationId": 4
}

CreateTriggerPayload

Fields
Field NameDescription
trigger - Trigger
clientMutationId - ID
EXAMPLE
{
  "trigger": Trigger,
  "clientMutationId": "4"
}

CreateWhatsAppMessageTemplateInput

Fields
Input FieldDescription
name - String!WhatsApp Template Name
category - String!WhatsApp Template category
channelId - IDStella Channel ID
components - JSON!WhatsApp Template Components
language - String!WhatsApp Template language
wabaId - IDWhatsApp Business Account ID
clientMutationId - IDID generated by relay client for tracking the progress
EXAMPLE
{
  "name": "abc123",
  "category": "abc123",
  "channelId": "4",
  "components": {},
  "language": "xyz789",
  "wabaId": 4,
  "clientMutationId": 4
}

CreateWhatsAppMessageTemplatePayload

Fields
Field NameDescription
result - JSON
clientMutationId - ID
EXAMPLE
{"result": {}, "clientMutationId": 4}

CustomAction

Fields
Field NameDescription
title - String!
description - String
type - InboxIntegrationCustomActionType!
modalView - String
modalSchema - JSON
url - String
method - String
headers - JSON
body - JSON
api - StringNo longer supported
customHeaders - JSONNo longer supported
customBody - JSONNo longer supported
EXAMPLE
{
  "title": "xyz789",
  "description": "xyz789",
  "type": "MODAL",
  "modalView": "xyz789",
  "modalSchema": {},
  "url": "abc123",
  "method": "xyz789",
  "headers": {},
  "body": {},
  "api": "xyz789",
  "customHeaders": {},
  "customBody": {}
}

CustomHeadersData

Fields
Input FieldDescription
key - StringName of the custom headers
value - StringA value the headers contains
EXAMPLE
{
  "key": "xyz789",
  "value": "xyz789"
}

DOB

Fields
Field NameDescription
date - Int
month - Int
year - Int
EXAMPLE
{"date": 123, "month": 987, "year": 123}

DOBInput

Fields
Input FieldDescription
date - Int
month - Int
year - Int
EXAMPLE
{"date": 987, "month": 123, "year": 987}

DailyActiveMemberOverviewPayload

Fields
Field NameDescription
data - [DailyActiveMemberRow]
pageInfo - PageInfo
EXAMPLE
{
  "data": [DailyActiveMemberRow],
  "pageInfo": PageInfo
}

DailyActiveMemberRow

Fields
Field NameDescription
app - App!
appId - ID!
bucket - Long
total_messageEvent - Long
no_of_distinct_member_total - Long
message_messageEvent - Long
no_of_distinct_member_messages - Long
comment_messageEvent - Long
no_of_distinct_member_comment - Long
EXAMPLE
{
  "app": App,
  "appId": "4",
  "bucket": {},
  "total_messageEvent": {},
  "no_of_distinct_member_total": {},
  "message_messageEvent": {},
  "no_of_distinct_member_messages": {},
  "comment_messageEvent": {},
  "no_of_distinct_member_comment": {}
}

DataSource

Fields
Field NameDescription
name - String!
description - String
collectionName - String!
shopifyIntegration - String
data - DataSourceConnection
Arguments
page - Int
size - Int
search - String
sortBy - JSON
dataByQuery - JSON
Arguments
query - JSON
EXAMPLE
{
  "name": "xyz789",
  "description": "xyz789",
  "collectionName": "xyz789",
  "shopifyIntegration": "xyz789",
  "data": DataSourceConnection,
  "dataByQuery": {}
}

DataSourceConnection

Fields
Field NameDescription
edges - [DataSourceEdge]
pageInfo - PageInfo
EXAMPLE
{
  "edges": [DataSourceEdge],
  "pageInfo": PageInfo
}

DataSourceData

Fields
Field NameDescription
data - JSON
EXAMPLE
{"data": {}}

DataSourceEdge

Fields
Field NameDescription
node - DataSourceData
cursor - ID
EXAMPLE
{"node": DataSourceData, "cursor": 4}

DeleteActionInput

Fields
Input FieldDescription
actionId - ID!
app - ID
etag - ID
clientMutationId - ID
EXAMPLE
{
  "actionId": 4,
  "app": "4",
  "etag": 4,
  "clientMutationId": 4
}

DeleteActionPayload

Fields
Field NameDescription
clientMutationId - ID
EXAMPLE
{"clientMutationId": 4}

DeleteAgendaInput

Fields
Input FieldDescription
agendaId - ID
app - ID
memberId - ID
completed - Boolean
tag - String
etag - ID
clientMutationId - ID
EXAMPLE
{
  "agendaId": 4,
  "app": "4",
  "memberId": "4",
  "completed": false,
  "tag": "abc123",
  "etag": "4",
  "clientMutationId": "4"
}

DeleteAgendaPayload

Fields
Field NameDescription
clientMutationId - ID
EXAMPLE
{"clientMutationId": "4"}

DeleteAudienceInput

Fields
Input FieldDescription
audienceId - ID!
app - ID
etag - ID
clientMutationId - ID
EXAMPLE
{
  "audienceId": 4,
  "app": "4",
  "etag": "4",
  "clientMutationId": 4
}

DeleteAudiencePayload

Fields
Field NameDescription
clientMutationId - ID
EXAMPLE
{"clientMutationId": 4}

DeleteChannelEnvironmentInput

Fields
Input FieldDescription
channelId - ID!Target channel Id
app - ID
envId - ID!Target environment Id
force - Boolean
etag - ID
clientMutationId - ID
EXAMPLE
{
  "channelId": 4,
  "app": 4,
  "envId": 4,
  "force": false,
  "etag": 4,
  "clientMutationId": "4"
}

DeleteChannelEnvironmentPayload

Fields
Field NameDescription
channel - Channel
forceRequest - Boolean
error - GenericError
clientMutationId - ID
EXAMPLE
{
  "channel": Channel,
  "forceRequest": true,
  "error": GenericError,
  "clientMutationId": "4"
}

DeleteChannelInput

Fields
Input FieldDescription
channelId - ID!
app - ID
force - Boolean
etag - ID
clientMutationId - ID
EXAMPLE
{
  "channelId": 4,
  "app": 4,
  "force": true,
  "etag": "4",
  "clientMutationId": 4
}

DeleteChannelPayload

Fields
Field NameDescription
error - GenericError
forceRequest - Boolean
errorMessage - String
errors - [endpointError]
clientMutationId - ID
EXAMPLE
{
  "error": GenericError,
  "forceRequest": true,
  "errorMessage": "abc123",
  "errors": [endpointError],
  "clientMutationId": 4
}

DeleteConditionInput

Fields
Input FieldDescription
conditionId - ID!
app - ID
etag - ID
clientMutationId - ID
EXAMPLE
{
  "conditionId": "4",
  "app": 4,
  "etag": "4",
  "clientMutationId": "4"
}

DeleteConditionPayload

Fields
Field NameDescription
clientMutationId - ID
EXAMPLE
{"clientMutationId": 4}

DeleteDataSourceDocsInput

Description

Input type for deleting datasource doc.

Fields
Input FieldDescription
app - IDApp ID in Stella.
collectionName - String!Datasource id in Stella.
dataIds - [ID!]Document _id in datasource.
deleteAll - BooleanDelete all document or not.
clientMutationId - ID
EXAMPLE
{
  "app": "4",
  "collectionName": "xyz789",
  "dataIds": ["4"],
  "deleteAll": false,
  "clientMutationId": "4"
}

DeleteDataSourceDocsPayload

Description

Return type for deleting datasource doc.

Fields
Field NameDescription
clientMutationId - ID
EXAMPLE
{"clientMutationId": "4"}

DeleteDataSourceInput

Description

Input type for deleting datasource.

Fields
Input FieldDescription
app - IDApp ID in Stella.
collectionName - ID!Datasource id in Stella.
clientMutationId - ID
EXAMPLE
{
  "app": "4",
  "collectionName": "4",
  "clientMutationId": "4"
}

DeleteDataSourcePayload

Description

Return type for deleting datasource.

Fields
Field NameDescription
clientMutationId - ID
EXAMPLE
{"clientMutationId": 4}

DeleteLocaleGroupInput

Fields
Input FieldDescription
localeGroupId - ID!
app - ID
etag - ID
clientMutationId - ID
EXAMPLE
{
  "localeGroupId": "4",
  "app": 4,
  "etag": 4,
  "clientMutationId": 4
}

DeleteLocaleGroupPayload

Fields
Field NameDescription
clientMutationId - ID
EXAMPLE
{"clientMutationId": 4}

DeleteMemberInput

Fields
Input FieldDescription
memberId - ID!
app - ID
etag - ID
clientMutationId - ID
EXAMPLE
{
  "memberId": 4,
  "app": 4,
  "etag": "4",
  "clientMutationId": "4"
}

DeleteMemberPayload

Fields
Field NameDescription
clientMutationId - ID
EXAMPLE
{"clientMutationId": 4}

DeleteMembersInput

Fields
Input FieldDescription
criteria - JSON

Criteria is an array of object that is translated to a member filter.

Small Example: [{

"field" : "externalId",

"operator" : "equal",

"value" : "123"

},{

"field" : "channel",

"operator" : "equal",

"value" : "abc"

}]

"criteria options":

"field": "_id" | "tags" | "fbOTNTag",

"filters": [{ "operator": "in" | "nin", "value": ["ID | String"]}]

"field": "createdAt" | "updatedAt",

"from": "epoch number",

"to": "epoch number"

"field": "firstName" | "lastName",

"value": "String"

"field": "liveChat",

"value": "Boolean"

"operator": "equal" | "in" | "nin" | "ne" | "regex" ("eq" does not work)

"field": "String", (as long as field is not one of the aboves, example: "externalId", "channel", "locale", "gender", "botMeta.tempData.abc", "meta.def")

"value": "Any"

createdAtFrom - Long
createdAtTo - Long
updatedAtFrom - Long
updatedAtTo - Long
clientMutationId - ID
EXAMPLE
{
  "criteria": {},
  "createdAtFrom": {},
  "createdAtTo": {},
  "updatedAtFrom": {},
  "updatedAtTo": {},
  "clientMutationId": "4"
}

DeleteMembersPayload

Fields
Field NameDescription
backgroundTask - BackgroundTask
error - GenericError
clientMutationId - ID
EXAMPLE
{
  "backgroundTask": BackgroundTask,
  "error": GenericError,
  "clientMutationId": "4"
}

DeleteNodeInput

Fields
Input FieldDescription
nodeId - ID!
app - ID
etag - ID
clientMutationId - ID
EXAMPLE
{"nodeId": 4, "app": 4, "etag": 4, "clientMutationId": 4}

DeleteNodePayload

Fields
Field NameDescription
clientMutationId - String
EXAMPLE
{"clientMutationId": "abc123"}

DeletePriorityGroupInput

Fields
Input FieldDescription
priorityGroupId - ID!
app - ID
etag - ID
clientMutationId - ID
EXAMPLE
{
  "priorityGroupId": "4",
  "app": 4,
  "etag": 4,
  "clientMutationId": 4
}

DeletePriorityGroupPayload

Fields
Field NameDescription
clientMutationId - ID
EXAMPLE
{"clientMutationId": 4}

DeleteResponseInput

Fields
Input FieldDescription
responseId - ID!
app - ID
etag - ID
clientMutationId - ID
EXAMPLE
{
  "responseId": "4",
  "app": "4",
  "etag": "4",
  "clientMutationId": "4"
}

DeleteResponsePayload

Fields
Field NameDescription
clientMutationId - ID
EXAMPLE
{"clientMutationId": "4"}

DeleteSubscriptionPushInput

Fields
Input FieldDescription
subscriptionPushId - ID!
app - ID
etag - ID
clientMutationId - ID
EXAMPLE
{
  "subscriptionPushId": "4",
  "app": 4,
  "etag": 4,
  "clientMutationId": 4
}

DeleteSubscriptionPushPayload

Fields
Field NameDescription
clientMutationId - ID
EXAMPLE
{"clientMutationId": 4}

DeleteTreeInput

Fields
Input FieldDescription
treeId - ID!
app - ID
etag - ID
clientMutationId - ID
EXAMPLE
{
  "treeId": "4",
  "app": "4",
  "etag": "4",
  "clientMutationId": "4"
}

DeleteTreePayload

Fields
Field NameDescription
clientMutationId - ID
EXAMPLE
{"clientMutationId": "4"}

DeleteTriggerInput

Fields
Input FieldDescription
triggerId - ID!
app - ID
etag - ID
clientMutationId - ID
EXAMPLE
{
  "triggerId": 4,
  "app": "4",
  "etag": 4,
  "clientMutationId": 4
}

DeleteTriggerPayload

Fields
Field NameDescription
clientMutationId - ID
EXAMPLE
{"clientMutationId": 4}

DeleteWhatsAppMessageTemplateInput

Fields
Input FieldDescription
channelId - IDStella Channel ID
name - String!WhatsApp Template Name
wabaId - IDWhatsApp Business Account ID
clientMutationId - IDID generated by relay client for tracking the progress
EXAMPLE
{
  "channelId": "4",
  "name": "xyz789",
  "wabaId": "4",
  "clientMutationId": 4
}

DeleteWhatsAppMessageTemplatePayload

Fields
Field NameDescription
clientMutationId - ID
EXAMPLE
{"clientMutationId": "4"}

DialogflowSettings

Fields
Field NameDescription
locale - String
projectId - String
transform - String
EXAMPLE
{
  "locale": "xyz789",
  "projectId": "abc123",
  "transform": "abc123"
}

DialogflowSettingsInput

Fields
Input FieldDescription
locale - String
projectId - String
transform - String
EXAMPLE
{
  "locale": "abc123",
  "projectId": "xyz789",
  "transform": "xyz789"
}

DuplicateTreeInput

Fields
Input FieldDescription
treeId - ID!
app - ID
name - String!
clientMutationId - ID
EXAMPLE
{
  "treeId": 4,
  "app": "4",
  "name": "xyz789",
  "clientMutationId": 4
}

DuplicateTreePayload

Fields
Field NameDescription
tree - Tree
clientMutationId - ID
EXAMPLE
{"tree": Tree, "clientMutationId": 4}

Email

Fields
Field NameDescription
email - String
verified - Boolean
EXAMPLE
{"email": "abc123", "verified": false}

EmailCred

Fields
Field NameDescription
email - String
emails - [Email]
verified - Boolean
EXAMPLE
{
  "email": "xyz789",
  "emails": [Email],
  "verified": true
}

EmailInput

Fields
Input FieldDescription
email - String
alias - String
EXAMPLE
{
  "email": "xyz789",
  "alias": "abc123"
}

Error

Fields
Input FieldDescription
code - Int!Error Code
title - String!Error Title
raw - JSON
EXAMPLE
{"code": 123, "title": "abc123", "raw": {}}

ExportChatsInput

Fields
Input FieldDescription
memberId - String
from - Long!
to - Long!
group - ID
assignment - ID
showHidden - Boolean
key - StringDeprecating
folder - StringDeprecating
timeZone - Int
EXAMPLE
{
  "memberId": "xyz789",
  "from": {},
  "to": {},
  "group": 4,
  "assignment": "4",
  "showHidden": true,
  "key": "abc123",
  "folder": "abc123",
  "timeZone": 123
}

ExportChatsPayload

Fields
Field NameDescription
url - String!
urls - [String]
EXAMPLE
{
  "url": "xyz789",
  "urls": ["abc123"]
}

ExportTreesInput

Fields
Input FieldDescription
trees - [String!]!
EXAMPLE
{"trees": ["abc123"]}

ExportTreesPayload

Fields
Field NameDescription
url - String
trees - [JSON]
nodes - [JSON]
triggers - [JSON]
conditions - [JSON]
actions - [JSON]
responses - [JSON]
localeGroups - [JSON]
EXAMPLE
{
  "url": "xyz789",
  "trees": [{}],
  "nodes": [{}],
  "triggers": [{}],
  "conditions": [{}],
  "actions": [{}],
  "responses": [{}],
  "localeGroups": [{}]
}

FbOTNToken

Fields
Field NameDescription
tag - String
token - String
expiry - Long
EXAMPLE
{
  "tag": "xyz789",
  "token": "abc123",
  "expiry": {}
}

FindAndModifyDataSourceDocInput

Description

Input type for find and modify datasource doc.

Fields
Input FieldDescription
collectionName - ID!Datasource id in Stella.
filter - JSONMongoDB filter apply to filter doc from datasource.
patch - JSONMongoDB patch option to update docs in datasource
options - JSONMongoDB options in find and modify docs in datasource
sortBy - JSONMongoDB sorting the filter result to modify docs in datasource
clientMutationId - ID
EXAMPLE
{
  "collectionName": "4",
  "filter": {},
  "patch": {},
  "options": {},
  "sortBy": {},
  "clientMutationId": "4"
}

FindAndModifyDataSourceDocPayload

Description

Return type for find and modify datasource doc.

Fields
Field NameDescription
result - JSONResult of find and modify docs in datasource.
clientMutationId - ID
EXAMPLE
{"result": {}, "clientMutationId": "4"}

Float

Description

The Float scalar type represents signed double-precision fractional values as specified by IEEE 754.

EXAMPLE
123.45

GenericError

Fields
Field NameDescription
name - String
code - String
message - String
EXAMPLE
{
  "name": "abc123",
  "code": "abc123",
  "message": "xyz789"
}

Group

Fields
Field NameDescription
id - ID!
_id - ID!
createdAt - Long!
updatedAt - Long
inlet - Channel
inletId - ID
outlet - Channel
outletId - ID
assignment - Assignment!
assignmentId - ID
member - Member
memberId - ID
admin - Admin!
adminMember - Member
name - String
description - String
icon - String
meta - JSON
valid - Boolean
externalId - String
inletGroupExternalId - ID
botId - String
type - String
adminExternalId - ID
app - App!
active - Boolean
tags - [String]
etag - ID
EXAMPLE
{
  "id": 4,
  "_id": "4",
  "createdAt": {},
  "updatedAt": {},
  "inlet": Channel,
  "inletId": 4,
  "outlet": Channel,
  "outletId": 4,
  "assignment": Assignment,
  "assignmentId": 4,
  "member": Member,
  "memberId": "4",
  "admin": Admin,
  "adminMember": Member,
  "name": "abc123",
  "description": "xyz789",
  "icon": "abc123",
  "meta": {},
  "valid": false,
  "externalId": "xyz789",
  "inletGroupExternalId": 4,
  "botId": "xyz789",
  "type": "xyz789",
  "adminExternalId": "4",
  "app": App,
  "active": true,
  "tags": ["abc123"],
  "etag": "4"
}

GroupConnection

Fields
Field NameDescription
edges - [GroupEdge]
pageInfo - PageInfo
EXAMPLE
{
  "edges": [GroupEdge],
  "pageInfo": PageInfo
}

GroupEdge

Fields
Field NameDescription
node - Group
cursor - ID!
EXAMPLE
{"node": Group, "cursor": 4}

Hook

Fields
Field NameDescription
preCoreEntry - HookFunction
postCoreEntry - HookFunction
EXAMPLE
{
  "preCoreEntry": HookFunction,
  "postCoreEntry": HookFunction
}

HookFunction

Fields
Field NameDescription
name - String
description - String
functionString - String
async - Boolean
EXAMPLE
{
  "name": "abc123",
  "description": "abc123",
  "functionString": "xyz789",
  "async": true
}

ID

Description

The ID scalar type represents a unique identifier, often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as "4") or integer (such as 4) input value will be accepted as an ID.

EXAMPLE
"4"

ImportDataSourceInput

Description

Input type for importing datasource doc.

Fields
Input FieldDescription
app - IDApp ID in Stella.
data - [JSON]The data(s) to import into datasource
collectionName - String!Datasource id in Stella.
url - StringData download Url
format - StringFormat of remote file, only accept json or csv
downloadHeader - JSONHeader for requesting remote file
parseJSON - BooleanOnly applied to remote csv file for parsing the JSON or not
action - String!Import action, only accept APPEND or REPLACE.
clientMutationId - ID
EXAMPLE
{
  "app": 4,
  "data": [{}],
  "collectionName": "xyz789",
  "url": "abc123",
  "format": "abc123",
  "downloadHeader": {},
  "parseJSON": false,
  "action": "abc123",
  "clientMutationId": 4
}

ImportDataSourcePayload

Description

Return type for importing datasource doc.

Fields
Field NameDescription
clientMutationId - ID
data - JSONThe data(s) imported into datasource
EXAMPLE
{"clientMutationId": 4, "data": {}}

ImportMembersInput

Fields
Input FieldDescription
url - String
mapping - JSON
channelId - ID
platform - String
delimiter - String
tags - [String]
app - ID
clientMutationId - ID
EXAMPLE
{
  "url": "xyz789",
  "mapping": {},
  "channelId": 4,
  "platform": "abc123",
  "delimiter": "xyz789",
  "tags": ["abc123"],
  "app": 4,
  "clientMutationId": "4"
}

ImportMembersPayload

Fields
Field NameDescription
clientMutationId - ID
backgroundTask - BackgroundTask
EXAMPLE
{"clientMutationId": 4, "backgroundTask": BackgroundTask}

ImportTreesInput

Fields
Input FieldDescription
trees - [JSON]
nodes - [JSON]
triggers - [JSON]
conditions - [JSON]
actions - [JSON]
responses - [JSON]
localeGroups - [JSON]
prefix - String
force - Boolean
forceKeepResponsePlatforms - [String]

List of Platforms to keep the response. Ex: ["facebook", "whatsapp-cloud"]

Note that force must be true for this to work correctly.

app - ID
url - String
EXAMPLE
{
  "trees": [{}],
  "nodes": [{}],
  "triggers": [{}],
  "conditions": [{}],
  "actions": [{}],
  "responses": [{}],
  "localeGroups": [{}],
  "prefix": "xyz789",
  "force": true,
  "forceKeepResponsePlatforms": ["abc123"],
  "app": "4",
  "url": "abc123"
}

ImportTreesPayload

Fields
Field NameDescription
trees - [Tree]
uninstalledIntegrations - [UninstalledIntegration]
EXAMPLE
{
  "trees": [Tree],
  "uninstalledIntegrations": [UninstalledIntegration]
}

InboxIntegration

Fields
Field NameDescription
inputActions - [CustomAction]
messageActions - [CustomAction]
folderActions - [CustomAction]
EXAMPLE
{
  "inputActions": [CustomAction],
  "messageActions": [CustomAction],
  "folderActions": [CustomAction]
}

InboxIntegrationCustomActionType

Values
Enum ValueDescription

MODAL

API

ACTION

No longer supported
EXAMPLE
"MODAL"

InboxMemberProfile

Fields
Field NameDescription
firstName - String
lastName - String
middleName - String
name - String
title - String
phones - [Phone]
emails - [ProfileEmail]
gender - String
dob - DOB
addresses - [Address]
profilePicUrl - String
locale - String
EXAMPLE
{
  "firstName": "abc123",
  "lastName": "xyz789",
  "middleName": "abc123",
  "name": "abc123",
  "title": "abc123",
  "phones": [Phone],
  "emails": [ProfileEmail],
  "gender": "abc123",
  "dob": DOB,
  "addresses": [Address],
  "profilePicUrl": "xyz789",
  "locale": "xyz789"
}

InboxMemberProfileInput

Fields
Input FieldDescription
firstName - String
lastName - String
middleName - String
name - String
title - String
phones - [PhoneInput]
emails - [EmailInput]
gender - String
dob - DOBInput
addresses - [AddressInput]
profilePicUrl - String
locale - String
EXAMPLE
{
  "firstName": "xyz789",
  "lastName": "xyz789",
  "middleName": "abc123",
  "name": "abc123",
  "title": "xyz789",
  "phones": [PhoneInput],
  "emails": [EmailInput],
  "gender": "xyz789",
  "dob": DOBInput,
  "addresses": [AddressInput],
  "profilePicUrl": "abc123",
  "locale": "xyz789"
}

Int

Description

The Int scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.

EXAMPLE
987

IntMax100

Description

minimum 0, maximum 100

EXAMPLE
IntMax100

IntegrationEndpoints

Fields
Field NameDescription
install - String
preUpdate - String
postUpdate - String
uninstall - String
channelCreate - String
channelDelete - String
channelResubscribe - String
channelUnsubscribe - String
memberDelete - String
messageSend - String
ticketCreate - String
ticketInactivate - String
EXAMPLE
{
  "install": "xyz789",
  "preUpdate": "xyz789",
  "postUpdate": "abc123",
  "uninstall": "abc123",
  "channelCreate": "xyz789",
  "channelDelete": "abc123",
  "channelResubscribe": "xyz789",
  "channelUnsubscribe": "xyz789",
  "memberDelete": "xyz789",
  "messageSend": "xyz789",
  "ticketCreate": "abc123",
  "ticketInactivate": "xyz789"
}

IntegrationTree

Fields
Field NameDescription
name - String
description - String
type - String
url - String
checksum - String
EXAMPLE
{
  "name": "xyz789",
  "description": "abc123",
  "type": "abc123",
  "url": "xyz789",
  "checksum": "abc123"
}

IntegrationView

Fields
Field NameDescription
name - String
icon - String
url - String
EXAMPLE
{
  "name": "abc123",
  "icon": "abc123",
  "url": "abc123"
}

JSON

Description

The JSON scalar type represents JSON values as specified by ECMA-404.

EXAMPLE
{}

LiveChatAgenda

Fields
Field NameDescription
delay - Long
tree - Tree
treeId - ID
nodeCompositeId - ID
node - NodeObject
agendaId - String
EXAMPLE
{
  "delay": {},
  "tree": Tree,
  "treeId": "4",
  "nodeCompositeId": 4,
  "node": NodeObject,
  "agendaId": "xyz789"
}

LocaleGroup

Fields
Field NameDescription
id - ID!
_id - ID!
createdAt - Long
updatedAt - Long
app - App
locales - [String]
name - String
etag - ID
EXAMPLE
{
  "id": 4,
  "_id": 4,
  "createdAt": {},
  "updatedAt": {},
  "app": App,
  "locales": ["abc123"],
  "name": "abc123",
  "etag": 4
}

LocaleGroupConnection

Fields
Field NameDescription
edges - [LocaleGroupEdge]
pageInfo - PageInfo
EXAMPLE
{
  "edges": [LocaleGroupEdge],
  "pageInfo": PageInfo
}

LocaleGroupEdge

Fields
Field NameDescription
node - LocaleGroup
cursor - ID!
EXAMPLE
{
  "node": LocaleGroup,
  "cursor": "4"
}

Long

Description

Long Integer type

EXAMPLE
{}

LuisSettings

Fields
Field NameDescription
appId - String
transform - String
EXAMPLE
{
  "appId": "xyz789",
  "transform": "xyz789"
}

LuisSettingsInput

Fields
Input FieldDescription
appId - String
transform - String
EXAMPLE
{
  "appId": "xyz789",
  "transform": "xyz789"
}

ManagedApp

Fields
Field NameDescription
app - App!
appId - ID
type - String
createdAt - Long
EXAMPLE
{
  "app": App,
  "appId": 4,
  "type": "xyz789",
  "createdAt": {}
}

Member

Fields
Field NameDescription
id - ID!
_id - ID!
createdAt - Long!
updatedAt - Long
app - App!
appId - ID!
channel - Channel
channelId - ID
platform - String!
profile - MemberProfile
inboxProfile - InboxMemberProfile
tags - [String]
meta - JSON
botMeta - BotMeta
externalId - ID
botId - ID
admin - Admin
adminId - ID
group - GroupNo longer supported
assignment - IDNo longer supported
fbId - ID
name - String
firstName - String
lastName - String
profilePic - String
gender - String
customLocale - String
locale - String
email - String
profilePicString - String
inletGroup - Boolean
fbOTNTokens - [FbOTNToken]
notes - [Note]Free-text notes that the agent can add to the member
etag - ID
EXAMPLE
{
  "id": "4",
  "_id": 4,
  "createdAt": {},
  "updatedAt": {},
  "app": App,
  "appId": 4,
  "channel": Channel,
  "channelId": "4",
  "platform": "abc123",
  "profile": MemberProfile,
  "inboxProfile": InboxMemberProfile,
  "tags": ["abc123"],
  "meta": {},
  "botMeta": BotMeta,
  "externalId": "4",
  "botId": "4",
  "admin": Admin,
  "adminId": "4",
  "group": Group,
  "assignment": "4",
  "fbId": 4,
  "name": "xyz789",
  "firstName": "abc123",
  "lastName": "abc123",
  "profilePic": "xyz789",
  "gender": "abc123",
  "customLocale": "xyz789",
  "locale": "abc123",
  "email": "abc123",
  "profilePicString": "abc123",
  "inletGroup": true,
  "fbOTNTokens": [FbOTNToken],
  "notes": [Note],
  "etag": "4"
}

MemberConnection

Fields
Field NameDescription
edges - [MemberEdge]
pageInfo - PageInfo
EXAMPLE
{
  "edges": [MemberEdge],
  "pageInfo": PageInfo
}

MemberEdge

Fields
Field NameDescription
node - Member
cursor - ID!
EXAMPLE
{"node": Member, "cursor": 4}

MemberExtraData

Fields
Input FieldDescription
field - StringField name in webhook under memberExtra
path - StringPath under member data. Ref: https://doc.woztell.com/docs/reference/member-reference
EXAMPLE
{
  "field": "xyz789",
  "path": "abc123"
}

MemberProfile

Fields
Field NameDescription
id - String
first_name - String
last_name - String
username - String
profile_pic - String
timezone - Int
displayName - String
profilePic - String
tbId - Int
real_name - String
display_name - String
avatar_hash - String
status_text - String
status_emoji - String
team - String
image_24 - String
image_32 - String
image_48 - String
image_72 - String
image_192 - String
image_512 - String
image_1024 - String
image_original - String
real_name_normalized - String
display_name_normalized - String
email - String
fields - JSON
is_bot - Boolean
language_code - String
subscribe - Int
openid - String
nickname - String
sex - Int
language - String
city - String
province - String
country - String
headimgurl - String
subscribe_time - Long
remark - String
groupid - Int
tagid_list - [Int]
subscribe_scene - String
qr_scene - Int
qr_scene_str - String
firstName - String
lastName - String
middleName - String
name - String
title - String
phones - [Phone]
emails - [ProfileEmail]
gender - String
dob - DOB
addresses - [Address]
profilePicUrl - String
locale - String
EXAMPLE
{
  "id": "abc123",
  "first_name": "xyz789",
  "last_name": "abc123",
  "username": "abc123",
  "profile_pic": "xyz789",
  "timezone": 987,
  "displayName": "abc123",
  "profilePic": "xyz789",
  "tbId": 123,
  "real_name": "xyz789",
  "display_name": "abc123",
  "avatar_hash": "xyz789",
  "status_text": "abc123",
  "status_emoji": "xyz789",
  "team": "xyz789",
  "image_24": "abc123",
  "image_32": "xyz789",
  "image_48": "xyz789",
  "image_72": "abc123",
  "image_192": "abc123",
  "image_512": "xyz789",
  "image_1024": "abc123",
  "image_original": "abc123",
  "real_name_normalized": "abc123",
  "display_name_normalized": "xyz789",
  "email": "xyz789",
  "fields": {},
  "is_bot": false,
  "language_code": "xyz789",
  "subscribe": 123,
  "openid": "xyz789",
  "nickname": "abc123",
  "sex": 123,
  "language": "xyz789",
  "city": "abc123",
  "province": "xyz789",
  "country": "xyz789",
  "headimgurl": "xyz789",
  "subscribe_time": {},
  "remark": "xyz789",
  "groupid": 987,
  "tagid_list": [123],
  "subscribe_scene": "abc123",
  "qr_scene": 123,
  "qr_scene_str": "abc123",
  "firstName": "xyz789",
  "lastName": "xyz789",
  "middleName": "abc123",
  "name": "abc123",
  "title": "abc123",
  "phones": [Phone],
  "emails": [ProfileEmail],
  "gender": "xyz789",
  "dob": DOB,
  "addresses": [Address],
  "profilePicUrl": "abc123",
  "locale": "xyz789"
}

MemberProfileInput

Fields
Input FieldDescription
id - String
first_name - String
last_name - String
username - String
profile_pic - String
timezone - Int
displayName - String
profilePic - String
tbId - Int
real_name - String
display_name - String
avatar_hash - String
status_text - String
status_emoji - String
team - String
image_24 - String
image_32 - String
image_48 - String
image_72 - String
image_192 - String
image_512 - String
image_1024 - String
image_original - String
real_name_normalized - String
display_name_normalized - String
email - String
fields - JSON
is_bot - Boolean
language_code - String
subscribe - Int
openid - String
nickname - String
sex - Int
language - String
city - String
province - String
country - String
headimgurl - String
subscribe_time - Long
remark - String
groupid - Int
tagid_list - [Int]
subscribe_scene - String
qr_scene - Int
qr_scene_str - String
firstName - String
lastName - String
middleName - String
name - String
title - String
phones - [PhoneInput]
emails - [EmailInput]
gender - String
dob - DOBInput
addresses - [AddressInput]
profilePicUrl - String
locale - String
EXAMPLE
{
  "id": "xyz789",
  "first_name": "xyz789",
  "last_name": "abc123",
  "username": "abc123",
  "profile_pic": "xyz789",
  "timezone": 987,
  "displayName": "abc123",
  "profilePic": "xyz789",
  "tbId": 123,
  "real_name": "xyz789",
  "display_name": "xyz789",
  "avatar_hash": "abc123",
  "status_text": "abc123",
  "status_emoji": "xyz789",
  "team": "abc123",
  "image_24": "abc123",
  "image_32": "xyz789",
  "image_48": "xyz789",
  "image_72": "abc123",
  "image_192": "abc123",
  "image_512": "abc123",
  "image_1024": "xyz789",
  "image_original": "xyz789",
  "real_name_normalized": "abc123",
  "display_name_normalized": "xyz789",
  "email": "abc123",
  "fields": {},
  "is_bot": false,
  "language_code": "xyz789",
  "subscribe": 123,
  "openid": "abc123",
  "nickname": "xyz789",
  "sex": 987,
  "language": "xyz789",
  "city": "xyz789",
  "province": "xyz789",
  "country": "abc123",
  "headimgurl": "xyz789",
  "subscribe_time": {},
  "remark": "xyz789",
  "groupid": 123,
  "tagid_list": [123],
  "subscribe_scene": "abc123",
  "qr_scene": 123,
  "qr_scene_str": "abc123",
  "firstName": "abc123",
  "lastName": "xyz789",
  "middleName": "abc123",
  "name": "abc123",
  "title": "abc123",
  "phones": [PhoneInput],
  "emails": [EmailInput],
  "gender": "abc123",
  "dob": DOBInput,
  "addresses": [AddressInput],
  "profilePicUrl": "abc123",
  "locale": "xyz789"
}

MemberTagging

Fields
Field NameDescription
tags - [String]
transform - String
EXAMPLE
{
  "tags": ["abc123"],
  "transform": "xyz789"
}

MemberTaggingInput

Fields
Input FieldDescription
tags - [String]
transform - String
EXAMPLE
{
  "tags": ["abc123"],
  "transform": "xyz789"
}

MergeMembersByExternalIdsInput

Fields
Input FieldDescription
channel - IDChannel ID for the two merging members
priorExternalId - IDThe external ID of the member that should be replaced by the finalExternalId
finalExternalId - IDThe external ID of the member that should overwrite the priorExternalId
meta - JSONA meta object to insert into the final member after the merge finishes
app - ID
clientMutationId - ID
EXAMPLE
{
  "channel": 4,
  "priorExternalId": 4,
  "finalExternalId": 4,
  "meta": {},
  "app": 4,
  "clientMutationId": "4"
}

MergeMembersByExternalIdsPayload

Fields
Field NameDescription
member - MemberThe final member after prior member is deleted
action - String

The result of the merge.

PriorMemberMergedToFinalMember: Both Prior Member and Final Member were found. Prior Member is deleted. Final Member receive the chats and priorityGroups of the Prior Member. Tree, Node and LiveChat status is copied from Prior Member as well. The meta input is also inserted to the Final Member.

UpdatedPriorMemberWithFinalExternalId: Only Prior Member was found. Thus Prior Member has its externalId updated from priorExternalId to finalExternalId and also gets the meta input data.

NoPriorMemberToMerge: Only Final Member was found. The meta input data is insert to the Final Member.

PriorAndFinalMembersNotFound: Neither Members were found. No member is created or updated.

clientMutationId - ID
EXAMPLE
{
  "member": Member,
  "action": "xyz789",
  "clientMutationId": 4
}

Message

Fields
Field NameDescription
localeGroups - [ResponseLocaleGroup]
EXAMPLE
{"localeGroups": [ResponseLocaleGroup]}

ModifyMemberTagsInput

Fields
Input FieldDescription
memberId - IDThe identifier for the user. Used to filter to the correct user
externalId - IDDangerous!!! May have same externalId under same app The external identifier for the user. Used to filter if memberId is missing
appId - IDThe identifier for the app the user is using. Used to filter the appID
tags - [String]!Array of tags for adding / removing
clientMutationId - IDClient mutation id for relay
EXAMPLE
{
  "memberId": 4,
  "externalId": 4,
  "appId": "4",
  "tags": ["abc123"],
  "clientMutationId": "4"
}

ModifyMemberTagsPayload

Fields
Field NameDescription
ok - IntUsed signify whether the action has succeed. Returning 1 for success, 0 for failure.
err_code - IntThe error code. Returns the code of the error.
err - StringThe error message. Returns a string explaining what error has occurred.
memberId - IDID of modified member
member - Member
clientMutationId - IDClient mutation id for relay
EXAMPLE
{
  "ok": 987,
  "err_code": 987,
  "err": "xyz789",
  "memberId": 4,
  "member": Member,
  "clientMutationId": 4
}

MongoDBArrayOption

Values
Enum ValueDescription

set

addToSet

pull

EXAMPLE
"set"

NLPAnalyticsCounter

Fields
Field NameDescription
app - App!
appId - ID!
type - String
agent_id - String
intent_id - String
intent_name - String
bucket - Long
no_of_nlp_analytics - Long!
average_confidence_level - Long
EXAMPLE
{
  "app": App,
  "appId": "4",
  "type": "xyz789",
  "agent_id": "abc123",
  "intent_id": "abc123",
  "intent_name": "abc123",
  "bucket": {},
  "no_of_nlp_analytics": {},
  "average_confidence_level": {}
}

NLPAnalyticsCounterConnection

Fields
Field NameDescription
edges - [NLPAnalyticsCounterEdge]
total_no_of_nlp_analytics - Long!
pageInfo - PageInfo
EXAMPLE
{
  "edges": [NLPAnalyticsCounterEdge],
  "total_no_of_nlp_analytics": {},
  "pageInfo": PageInfo
}

NLPAnalyticsCounterEdge

Fields
Field NameDescription
cursor - ID!
node - NLPAnalyticsCounter
EXAMPLE
{
  "cursor": "4",
  "node": NLPAnalyticsCounter
}

NewMemberCounter

Fields
Field NameDescription
app - App!
appId - ID!
bucket - Long!
no_of_member - Long!
EXAMPLE
{"app": App, "appId": 4, "bucket": {}, "no_of_member": {}}

NewMemberCounterConnection

Fields
Field NameDescription
data - [NewMemberCounter]
pageInfo - PageInfo
total_no_of_member - Long
total_no_of_comment_member - Long
EXAMPLE
{
  "data": [NewMemberCounter],
  "pageInfo": PageInfo,
  "total_no_of_member": {},
  "total_no_of_comment_member": {}
}

Node

NodeObject

Fields
Field NameDescription
id - ID!
_id - ID!
createdAt - Long!
updatedAt - Long
name - String!
description - String
trigger - Trigger
triggerId - ID
preActions - [Action]
preActionIds - [ID]
responses - [Response]
responseIds - [ID]
postActions - [Action]
postActionIds - [ID]
actions - [Action]
actionIds - [ID]
priority - Float
path - String
app - App!
appId - ID
compositeId - ID
tree - Tree
treeId - ID
locked - Boolean
global - Boolean
redirect - Redirect
analytics - Analytics
memberTagging - MemberTagging
type - NodeObjectType
dialogflow - DialogflowSettings
luis - LuisSettings
etag - ID
history - [JSON]
colour - String
tags - [String]
templateTreeId - ID
saveCompositeId - Boolean
EXAMPLE
{
  "id": 4,
  "_id": 4,
  "createdAt": {},
  "updatedAt": {},
  "name": "abc123",
  "description": "abc123",
  "trigger": Trigger,
  "triggerId": 4,
  "preActions": [Action],
  "preActionIds": [4],
  "responses": [Response],
  "responseIds": [4],
  "postActions": [Action],
  "postActionIds": [4],
  "actions": [Action],
  "actionIds": [4],
  "priority": 123.45,
  "path": "abc123",
  "app": App,
  "appId": 4,
  "compositeId": 4,
  "tree": Tree,
  "treeId": 4,
  "locked": false,
  "global": true,
  "redirect": Redirect,
  "analytics": Analytics,
  "memberTagging": MemberTagging,
  "type": "GENERAL",
  "dialogflow": DialogflowSettings,
  "luis": LuisSettings,
  "etag": 4,
  "history": [{}],
  "colour": "xyz789",
  "tags": ["xyz789"],
  "templateTreeId": "4",
  "saveCompositeId": true
}

NodeObjectConnection

Fields
Field NameDescription
edges - [NodeObjectEdge]
pageInfo - PageInfo
EXAMPLE
{
  "edges": [NodeObjectEdge],
  "pageInfo": PageInfo
}

NodeObjectEdge

Fields
Field NameDescription
node - NodeObject
cursor - ID!
EXAMPLE
{
  "node": NodeObject,
  "cursor": "4"
}

NodeObjectType

Values
Enum ValueDescription

GENERAL

GLOBAL

TRANSFORMER

GLOBAL_TRANSFORMER

DIALOGFLOW

LUIS

EXAMPLE
"GENERAL"

NormalIntegrationInput

Fields
Input FieldDescription
integrationId - String!
build - Int!
integrationAlias - String!
EXAMPLE
{
  "integrationId": "abc123",
  "build": 987,
  "integrationAlias": "abc123"
}

Note

Fields
Field NameDescription
id - ID!
_id - ID!
content - String!Free-text content of the note
authorId - IDWho created this note
createdAt - Long
updatedAt - Long
etag - ID
EXAMPLE
{
  "id": 4,
  "_id": "4",
  "content": "abc123",
  "authorId": 4,
  "createdAt": {},
  "updatedAt": {},
  "etag": "4"
}

NoteInput

Fields
Input FieldDescription
authorId - ID
content - String!
EXAMPLE
{
  "authorId": "4",
  "content": "xyz789"
}

Notification

Fields
Field NameDescription
id - ID!
_id - ID!
createdAt - Long!
updatedAt - Long
app - App!
appId - ID
type - StringType of notification for catorgorization. Possible values are BACKGROUND_TASK | INTEGRATION | API
color - StringColor of the notification. Accepts HEX color code.
title - StringTitle of the notification. Max 80 characters.
status - String

When status is specified, the color of the notification will be predefined and the status will be the title of the notification.

So the color and title will be ignored.

status can be either "SUCCESS" / "RUNNING" / "PENDING" / "ERROR", which corresponding to different colors, green, blue, grey and red

message - String
buttons - [NotificationButton]Maximum 2 buttons are allowed.
backgroundTaskId - ID
linkTo - StringA relative path to the Woztell Platform, so when user click on this notification, user will be directed to the page.
new - Boolean
etag - ID
EXAMPLE
{
  "id": "4",
  "_id": "4",
  "createdAt": {},
  "updatedAt": {},
  "app": App,
  "appId": 4,
  "type": "xyz789",
  "color": "xyz789",
  "title": "abc123",
  "status": "abc123",
  "message": "abc123",
  "buttons": [NotificationButton],
  "backgroundTaskId": "4",
  "linkTo": "xyz789",
  "new": true,
  "etag": 4
}

NotificationButton

Fields
Field NameDescription
text - String!The title of the button
path - StringA relative path to the Woztell Platform, so when user click on this button with path, user will be directed to the page.
url - StringAn absolute URL. When user click on this button, a new tab with this URL will be opened.
EXAMPLE
{
  "text": "xyz789",
  "path": "abc123",
  "url": "abc123"
}

NotificationButtonInput

Fields
Input FieldDescription
text - String!
path - String
url - String
EXAMPLE
{
  "text": "xyz789",
  "path": "abc123",
  "url": "xyz789"
}

PageInfo

Fields
Field NameDescription
hasNextPage - Boolean!
hasPreviousPage - Boolean!
startCursor - String
endCursor - String
totalCount - Int
EXAMPLE
{
  "hasNextPage": true,
  "hasPreviousPage": false,
  "startCursor": "xyz789",
  "endCursor": "abc123",
  "totalCount": 123
}

Pair

Fields
Field NameDescription
inlet - Channel
inletId - ID
outlets - [Channel]
outletIds - [ID]
EXAMPLE
{
  "inlet": Channel,
  "inletId": "4",
  "outlets": [Channel],
  "outletIds": ["4"]
}

PairInput

Fields
Input FieldDescription
inlet - ID
outlets - [ID]
EXAMPLE
{"inlet": "4", "outlets": [4]}

Partner

Fields
Field NameDescription
id - ID!
_id - ID!
createdAt - Long!
updatedAt - Long
name - String!
info - JSON
meta - JSON
teamMembers - [TeamMember]
etag - ID
partnerTier - String
skipCC - Boolean
alias - String
managedApps - [ManagedApp]
Arguments
appId - ID
search - String
page - Int
size - Int
managedAppsCount - Int
activated - Boolean
entEnabled - Boolean
EXAMPLE
{
  "id": "4",
  "_id": "4",
  "createdAt": {},
  "updatedAt": {},
  "name": "abc123",
  "info": {},
  "meta": {},
  "teamMembers": [TeamMember],
  "etag": 4,
  "partnerTier": "abc123",
  "skipCC": false,
  "alias": "abc123",
  "managedApps": [ManagedApp],
  "managedAppsCount": 987,
  "activated": true,
  "entEnabled": true
}

Phone

Fields
Field NameDescription
number - String
alias - String
EXAMPLE
{
  "number": "xyz789",
  "alias": "abc123"
}

PhoneInput

Fields
Input FieldDescription
number - String
alias - String
EXAMPLE
{
  "number": "abc123",
  "alias": "abc123"
}

PlatformCred

Fields
Field NameDescription
fbUserId - String
EXAMPLE
{"fbUserId": "xyz789"}

PlatformIntegrationInput

Fields
Input FieldDescription
channelName - String!
channelDescription - String
integrationId - String!
build - Int!
EXAMPLE
{
  "channelName": "abc123",
  "channelDescription": "xyz789",
  "integrationId": "xyz789",
  "build": 987
}

PostCommentAnalyticsOverview

Fields
Field NameDescription
app - App!
appId - ID!
post_id - String
no_of_matched_comment - Long
no_of_non_matched_comment - Long
total_no_of_comment - Long
EXAMPLE
{
  "app": App,
  "appId": "4",
  "post_id": "xyz789",
  "no_of_matched_comment": {},
  "no_of_non_matched_comment": {},
  "total_no_of_comment": {}
}

PostCommentAnalyticsOverviewConnection

Fields
Field NameDescription
edges - [PostCommentAnalyticsOverviewEdge]
pageInfo - PageInfo
EXAMPLE
{
  "edges": [PostCommentAnalyticsOverviewEdge],
  "pageInfo": PageInfo
}

PostCommentAnalyticsOverviewEdge

Fields
Field NameDescription
cursor - ID!
node - PostCommentAnalyticsOverview
EXAMPLE
{"cursor": 4, "node": PostCommentAnalyticsOverview}

PriorityGroup

Fields
Field NameDescription
id - ID!
_id - ID!
createdAt - Long
updatedAt - Long
name - String!
description - String
app - App!
channel - Channel
members - [Member]
memberIds - [ID]
tags - [String]
etag - ID
EXAMPLE
{
  "id": "4",
  "_id": "4",
  "createdAt": {},
  "updatedAt": {},
  "name": "xyz789",
  "description": "abc123",
  "app": App,
  "channel": Channel,
  "members": [Member],
  "memberIds": [4],
  "tags": ["xyz789"],
  "etag": "4"
}

PriorityGroupConnection

Fields
Field NameDescription
edges - [PriorityGroupEdge]
pageInfo - PageInfo
EXAMPLE
{
  "edges": [PriorityGroupEdge],
  "pageInfo": PageInfo
}

PriorityGroupEdge

Fields
Field NameDescription
node - PriorityGroup
cursor - ID!
EXAMPLE
{
  "node": PriorityGroup,
  "cursor": "4"
}

ProfileEmail

Fields
Field NameDescription
email - String
alias - String
EXAMPLE
{
  "email": "abc123",
  "alias": "xyz789"
}

PullAppIntegrationInput

Description

An input for PullAppIntegration.

Fields
Input FieldDescription
appId - ID
integrationId - IDAn ID of an integration. Used to filter to the correct integration to delete.
clientMutationId - ID
EXAMPLE
{
  "appId": 4,
  "integrationId": 4,
  "clientMutationId": "4"
}

PullAppIntegrationPayload

Description

The return payload for PullAppIntegration. Used to delete an integration from the database.

Fields
Field NameDescription
ok - Int!Used signify whether the action has succeed. Returning 1 for success, 0 for failure.
err_code - IntThe error code. Returns the code of the error.
err - StringThe error message. Returns a string explaining what error has occurred.
EXAMPLE
{
  "ok": 123,
  "err_code": 987,
  "err": "xyz789"
}

PutAppIntegrationInput

Description

An input for PutAppIntegration.

Fields
Input FieldDescription
appId - ID
integration - JSONThe JSON for the integration being put in the database.
clientMutationId - ID
EXAMPLE
{"appId": 4, "integration": {}, "clientMutationId": 4}

PutAppIntegrationPayload

Description

The return payload for PutAppIntegration. Used to put an integration to the database.

Fields
Field NameDescription
app - App
appId - ID
ok - IntUsed signify whether the action has succeed. Returning 1 for success, 0 for failure.
err_code - IntThe error code. Returns the code of the error.
err - StringThe error message. Returns a string explaining what error has occurred.
integrationId - IDAn ID of an integration. The ID for the newly put integration.
clientMutationId - ID
EXAMPLE
{
  "app": App,
  "appId": "4",
  "ok": 987,
  "err_code": 123,
  "err": "xyz789",
  "integrationId": "4",
  "clientMutationId": 4
}

Redirect

Fields
Field NameDescription
node - NodeObject
tree - Tree
transform - String
sendResponse - Boolean
runPreAction - Boolean
runPostAction - Boolean
EXAMPLE
{
  "node": NodeObject,
  "tree": Tree,
  "transform": "xyz789",
  "sendResponse": false,
  "runPreAction": false,
  "runPostAction": false
}

RedirectInput

Fields
Input FieldDescription
nodeCompositeId - ID
tree - ID
transform - String
sendResponse - Boolean
runPreAction - Boolean
runPostAction - Boolean
EXAMPLE
{
  "nodeCompositeId": "4",
  "tree": "4",
  "transform": "xyz789",
  "sendResponse": false,
  "runPreAction": false,
  "runPostAction": false
}

RemoveNoteFromMemberInput

Fields
Input FieldDescription
memberId - ID!
noteId - ID!
clientMutationId - ID
EXAMPLE
{
  "memberId": 4,
  "noteId": "4",
  "clientMutationId": 4
}

RemoveNoteFromMemberPayload

Fields
Field NameDescription
member - Member
error - GenericError
clientMutationId - ID
EXAMPLE
{
  "member": Member,
  "error": GenericError,
  "clientMutationId": "4"
}

ResourceTemplate

Fields
Field NameDescription
_id - ID!
id - ID!
createdAt - Long!
updatedAt - Long
etag - ID
schema - JSON
functionString - String
type - String
name - String!
description - String
integrationId - ID
build - Int
preview - String
alias - String
validatorFunctionString - String
requestedVerification - Boolean
verified - Boolean
published - Boolean
masked - Boolean
for - [String]
EXAMPLE
{
  "_id": 4,
  "id": "4",
  "createdAt": {},
  "updatedAt": {},
  "etag": 4,
  "schema": {},
  "functionString": "xyz789",
  "type": "abc123",
  "name": "xyz789",
  "description": "xyz789",
  "integrationId": "4",
  "build": 987,
  "preview": "xyz789",
  "alias": "abc123",
  "validatorFunctionString": "abc123",
  "requestedVerification": false,
  "verified": true,
  "published": true,
  "masked": false,
  "for": ["xyz789"]
}

Response

Fields
Field NameDescription
id - ID!
_id - ID!
createdAt - Long!
updatedAt - Long
name - String!
description - String
app - App!
localeGroups - [ResponseLocaleGroup]
pickResponse - JSON
Arguments
locale - String
platform - String
history - [JSON]
tags - [String]
etag - ID
EXAMPLE
{
  "id": "4",
  "_id": 4,
  "createdAt": {},
  "updatedAt": {},
  "name": "abc123",
  "description": "xyz789",
  "app": App,
  "localeGroups": [ResponseLocaleGroup],
  "pickResponse": {},
  "history": [{}],
  "tags": ["xyz789"],
  "etag": "4"
}

ResponseConnection

Fields
Field NameDescription
edges - [ResponseEdge]
pageInfo - PageInfo
EXAMPLE
{
  "edges": [ResponseEdge],
  "pageInfo": PageInfo
}

ResponseEdge

Fields
Field NameDescription
node - Response
cursor - ID!
EXAMPLE
{"node": Response, "cursor": 4}

ResponseLocaleGroup

Fields
Field NameDescription
localeGroup - LocaleGroup
variations - [ResponseVariation]
EXAMPLE
{
  "localeGroup": LocaleGroup,
  "variations": [ResponseVariation]
}

ResponseLocaleGroupInput

Fields
Input FieldDescription
localeGroup - ID!
variations - [ResponseVariationInput]
EXAMPLE
{
  "localeGroup": "4",
  "variations": [ResponseVariationInput]
}

ResponseObject

Fields
Field NameDescription
platform - String
responses - JSON
EXAMPLE
{"platform": "abc123", "responses": {}}

ResponseObjectInput

Fields
Input FieldDescription
platform - String
responses - JSON
EXAMPLE
{"platform": "xyz789", "responses": {}}

ResponseVariation

Fields
Field NameDescription
name - String!
platforms - [ResponseObject]
EXAMPLE
{
  "name": "abc123",
  "platforms": [ResponseObject]
}

ResponseVariationInput

Fields
Input FieldDescription
name - String!
platforms - [ResponseObjectInput]
EXAMPLE
{
  "name": "abc123",
  "platforms": [ResponseObjectInput]
}

ResumableUploadInput

Fields
Input FieldDescription
url - String
clientMutationId - ID
EXAMPLE
{
  "url": "xyz789",
  "clientMutationId": "4"
}

ResumableUploadPayload

Fields
Field NameDescription
result - JSON
clientMutationId - ID
EXAMPLE
{"result": {}, "clientMutationId": "4"}

RetrieveFilePayload

Fields
Field NameDescription
fileId - ID
fileType - String
url - String
size - Long
EXAMPLE
{
  "fileId": "4",
  "fileType": "xyz789",
  "url": "xyz789",
  "size": {}
}

Role

Fields
Field NameDescription
id - ID!
_id - ID!
createdAt - Long!
updatedAt - Long
name - String!
acls - [String!]!
app - App
system - Boolean
tags - [String]
etag - ID
EXAMPLE
{
  "id": "4",
  "_id": 4,
  "createdAt": {},
  "updatedAt": {},
  "name": "abc123",
  "acls": ["abc123"],
  "app": App,
  "system": true,
  "tags": ["xyz789"],
  "etag": 4
}

String

Description

The String scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.

EXAMPLE
"xyz789"

SubscribeChannelInput

Fields
Input FieldDescription
channelId - ID!
etag - String
clientMutationId - ID
EXAMPLE
{
  "channelId": 4,
  "etag": "xyz789",
  "clientMutationId": 4
}

SubscribeChannelPayload

Fields
Field NameDescription
channel - Channel
error - GenericError
clientMutationId - ID
EXAMPLE
{
  "channel": Channel,
  "error": GenericError,
  "clientMutationId": "4"
}

SubscriptionPush

Fields
Field NameDescription
id - ID!
_id - ID!
createdAt - Long!
updatedAt - Long
name - String
description - String
messages - JSON
messagesHydrated - [Message]
app - App!
appId - ID
sent - [ID]
sentCount - Long
read - [ID]
readCount - Long
interacted - [ID]
interactedCount - Long
tags - [String]
agendaMeta - JSON
fbMessageTag - String
fbOTNTags - [String]
errors - [SubscriptionPushError]
errorStats - [SubscriptionPushErrorStats]
includeAudiences - [Audience]
excludeAudiences - [Audience]
filter - AudienceFilter
memberIds - [ID]
memberCount - Long
members - MemberConnection
Arguments
appId - ID
first - Int
last - Int
after - ID
before - ID
scheduleAt - Long
sentStart - Long
sentEnd - Long
agendas - [Agenda]
priority - Int
parentSubscriptionPush - SubscriptionPush
parentSubscriptionPushId - ID
childSubscriptionPushes - [SubscriptionPush]
childSubscriptionPushIds - [ID]
etag - ID
EXAMPLE
{
  "id": "4",
  "_id": "4",
  "createdAt": {},
  "updatedAt": {},
  "name": "abc123",
  "description": "abc123",
  "messages": {},
  "messagesHydrated": [Message],
  "app": App,
  "appId": 4,
  "sent": [4],
  "sentCount": {},
  "read": ["4"],
  "readCount": {},
  "interacted": [4],
  "interactedCount": {},
  "tags": ["xyz789"],
  "agendaMeta": {},
  "fbMessageTag": "xyz789",
  "fbOTNTags": ["abc123"],
  "errors": [SubscriptionPushError],
  "errorStats": [SubscriptionPushErrorStats],
  "includeAudiences": [Audience],
  "excludeAudiences": [Audience],
  "filter": AudienceFilter,
  "memberIds": ["4"],
  "memberCount": {},
  "members": MemberConnection,
  "scheduleAt": {},
  "sentStart": {},
  "sentEnd": {},
  "agendas": [Agenda],
  "priority": 987,
  "parentSubscriptionPush": SubscriptionPush,
  "parentSubscriptionPushId": 4,
  "childSubscriptionPushes": [SubscriptionPush],
  "childSubscriptionPushIds": [4],
  "etag": "4"
}

SubscriptionPushConnection

Fields
Field NameDescription
edges - [SubscriptionPushEdge]
pageInfo - PageInfo
EXAMPLE
{
  "edges": [SubscriptionPushEdge],
  "pageInfo": PageInfo
}

SubscriptionPushEdge

Fields
Field NameDescription
node - SubscriptionPush
cursor - ID!
EXAMPLE
{"node": SubscriptionPush, "cursor": 4}

SubscriptionPushError

Fields
Field NameDescription
member - Member
memberId - ID
error - JSON
EXAMPLE
{"member": Member, "memberId": 4, "error": {}}

SubscriptionPushErrorInput

Fields
Input FieldDescription
member - ID
error - JSON
EXAMPLE
{"member": "4", "error": {}}

SubscriptionPushErrorStats

Fields
Field NameDescription
count - Long
error - JSON
EXAMPLE
{"count": {}, "error": {}}

TagFilter

Description

An object made up of an operator and an array of tags

Fields
Input FieldDescription
operator - String

A string of operator. This filter only accepts IN or NIN.

IN: Filter the result to members that have matching tags.

NIN: Filter the result to members that do not have matching tags.

tags - [String]An array of strings for tags. Used together with operator to filter members based on their tags.
EXAMPLE
{
  "operator": "abc123",
  "tags": ["xyz789"]
}

TeamMember

Fields
Field NameDescription
email - String
inviteToken - ID
status - String
roles - [Role]
acls - [String]
allAcls - [String]
user - User
grantBy - User
grantById - ID
grantAt - Long
expiry - Long
EXAMPLE
{
  "email": "abc123",
  "inviteToken": 4,
  "status": "abc123",
  "roles": [Role],
  "acls": ["xyz789"],
  "allAcls": ["xyz789"],
  "user": User,
  "grantBy": User,
  "grantById": 4,
  "grantAt": {},
  "expiry": {}
}

Tree

Fields
Field NameDescription
id - ID!scope ["api:admin", "tree:getBasicInfo", "botbuilder:read"]
_id - ID!scope ["api:admin", "tree:getBasicInfo", "botbuilder:read"]
createdAt - Long!scope ["api:admin", "tree:getBasicInfo", "botbuilder:read"]
updatedAt - Longscope ["api:admin", "tree:getBasicInfo", "botbuilder:read"]
name - String!scope ["api:admin", "tree:getBasicInfo", "botbuilder:read"]
description - Stringscope ["api:admin", "tree:getBasicInfo", "botbuilder:read"]
app - Appscope ["api:admin", "tree:getBasicInfo", "appInfo:get", "appSettings:get", "botbuilder:read"]
appId - IDscope ["api:admin", "tree:getBasicInfo", "appInfo:get", "appSettings:get", "botbuilder:read"]
globalNodes - [NodeObject]scope ["api:admin", "tree:getNodes", "botbuilder:read"]
globalNodeIds - [ID]scope ["api:admin", "tree:getNodes", "botbuilder:read"]
nodes - [NodeObject]scope ["api:admin", "tree:getNodes", "botbuilder:read"]
Arguments
includeGlobal - Boolean
nodeIds - [ID]scope ["api:admin", "tree:getNodes", "botbuilder:read"]
workspace - [Workspace]scope ["api:admin", "tree:getDetails", "botbuilder:read"]
version - Intscope ["api:admin", "api:admin", "tree:getBasicInfo", "botbuilder:read"]
versionAlias - Stringscope ["api:admin", "tree:getBasicInfo", "botbuilder:read"]
ancestorTree - Treescope ["api:admin", "tree:getDetails", "botbuilder:read"]
siblingTrees - [Tree]scope ["api:admin", "tree:getDetails", "botbuilder:read"]
tags - [String]scope ["api:admin", "tree:getDetails", "botbuilder:read"]
stash - [NodeObject]scope ["api:admin", "tree:getTreeSetting", "botbuilder:read"]
etag - IDscope ["api:admin", "tree:getBasicInfo", "botbuilder:read"]
configMapSchema - JSONscope ["api:admin", "tree:getTreeSetting", "botbuilder:read"]
configMap - JSONscope ["api:admin", "tree:getTreeSetting", "botbuilder:read"]
type - Stringscope ["api:admin", "tree:getTreeSetting", "botbuilder:read"]
system - Booleanscope ["api:admin", "tree:getTreeSetting", "botbuilder:read"]
templateTreeId - IDscope ["api:admin", "tree:getTreeSetting", "botbuilder:read"]
templateTree - Treescope ["api:admin", "tree:getTreeSetting", "botbuilder:read"]
locked - Booleanscope ["api:admin", "tree:getBasicInfo", "botbuilder:read"]
EXAMPLE
{
  "id": 4,
  "_id": "4",
  "createdAt": {},
  "updatedAt": {},
  "name": "abc123",
  "description": "abc123",
  "app": App,
  "appId": 4,
  "globalNodes": [NodeObject],
  "globalNodeIds": [4],
  "nodes": [NodeObject],
  "nodeIds": ["4"],
  "workspace": [Workspace],
  "version": 123,
  "versionAlias": "abc123",
  "ancestorTree": Tree,
  "siblingTrees": [Tree],
  "tags": ["xyz789"],
  "stash": [NodeObject],
  "etag": 4,
  "configMapSchema": {},
  "configMap": {},
  "type": "xyz789",
  "system": true,
  "templateTreeId": "4",
  "templateTree": Tree,
  "locked": true
}

TreeConnection

Fields
Field NameDescription
edges - [TreeEdge]
pageInfo - PageInfo
EXAMPLE
{
  "edges": [TreeEdge],
  "pageInfo": PageInfo
}

TreeEdge

Fields
Field NameDescription
node - Tree
cursor - ID!
EXAMPLE
{"node": Tree, "cursor": 4}

Trigger

Fields
Field NameDescription
id - ID!
_id - ID!
createdAt - Long!
updatedAt - Long
name - String!
description - String
conditions - JSON
Arguments
keys - [String]
rawConditions - JSON
templateInfo - JSON
app - App!
etag - ID
history - [JSON]
tags - [String]
EXAMPLE
{
  "id": "4",
  "_id": "4",
  "createdAt": {},
  "updatedAt": {},
  "name": "abc123",
  "description": "xyz789",
  "conditions": {},
  "rawConditions": {},
  "templateInfo": {},
  "app": App,
  "etag": "4",
  "history": [{}],
  "tags": ["xyz789"]
}

TriggerConnection

Fields
Field NameDescription
edges - [TriggerEdge]
pageInfo - PageInfo
EXAMPLE
{
  "edges": [TriggerEdge],
  "pageInfo": PageInfo
}

TriggerEdge

Fields
Field NameDescription
node - Trigger
cursor - ID!
EXAMPLE
{"node": Trigger, "cursor": 4}

UninstalledIntegration

Fields
Field NameDescription
icon - String
integrationName - String
integrationId - ID
build - Int
version - String
isPlatform - Boolean
private - Boolean
EXAMPLE
{
  "icon": "abc123",
  "integrationName": "abc123",
  "integrationId": 4,
  "build": 123,
  "version": "xyz789",
  "isPlatform": true,
  "private": false
}

UnsetKeysInput

Fields
Input FieldDescription
meta - [String]
botMetaTempData - [String]
EXAMPLE
{
  "meta": ["abc123"],
  "botMetaTempData": ["xyz789"]
}

UnsubscribeChannelInput

Fields
Input FieldDescription
channelId - ID!
app - ID
force - Boolean
etag - ID
clientMutationId - ID
EXAMPLE
{
  "channelId": "4",
  "app": "4",
  "force": false,
  "etag": "4",
  "clientMutationId": "4"
}

UnsubscribeChannelPayload

Fields
Field NameDescription
error - GenericError
forceRequest - Boolean
errorMessage - String
errors - [endpointError]
clientMutationId - ID
EXAMPLE
{
  "error": GenericError,
  "forceRequest": false,
  "errorMessage": "xyz789",
  "errors": [endpointError],
  "clientMutationId": 4
}

UpdateActionInput

Fields
Input FieldDescription
actionId - ID!
app - ID
etag - ID
name - String
description - String
functionString - String
tags - [String]
history - [JSON]
clientMutationId - ID
EXAMPLE
{
  "actionId": "4",
  "app": 4,
  "etag": "4",
  "name": "xyz789",
  "description": "xyz789",
  "functionString": "xyz789",
  "tags": ["abc123"],
  "history": [{}],
  "clientMutationId": 4
}

UpdateActionPayload

Fields
Field NameDescription
action - Action
clientMutationId - ID
EXAMPLE
{
  "action": Action,
  "clientMutationId": "4"
}

UpdateAgendaInput

Fields
Input FieldDescription
agendaId - ID!
app - ID
etag - ID
member - ID
tree - ID
nodeCompositeId - ID
nextRunAt - Long
completed - Boolean
pattern - String
runUntil - Long
type - String
meta - JSON
priority - Int
subscriptionPush - AgendaSubscriptionPushConfigInput
tag - String
clientMutationId - ID
EXAMPLE
{
  "agendaId": 4,
  "app": "4",
  "etag": "4",
  "member": "4",
  "tree": 4,
  "nodeCompositeId": 4,
  "nextRunAt": {},
  "completed": false,
  "pattern": "xyz789",
  "runUntil": {},
  "type": "abc123",
  "meta": {},
  "priority": 987,
  "subscriptionPush": AgendaSubscriptionPushConfigInput,
  "tag": "abc123",
  "clientMutationId": 4
}

UpdateAgendaPayload

Fields
Field NameDescription
agenda - Agenda
clientMutationId - ID
EXAMPLE
{"agenda": Agenda, "clientMutationId": 4}

UpdateAppIntegrationInput

Description

An input for UpdateAppIntegration.

Fields
Input FieldDescription
appId - ID
integrationId - ID!The app integration id.
integration - JSONThe JSON for the integration being update in the database.
clientMutationId - ID
EXAMPLE
{
  "appId": "4",
  "integrationId": 4,
  "integration": {},
  "clientMutationId": 4
}

UpdateAppIntegrationMetaInput

Fields
Input FieldDescription
appIntegrationId - ID!
meta - JSON
unsetMeta - JSON
replace - Boolean
clientMutationId - ID
EXAMPLE
{
  "appIntegrationId": 4,
  "meta": {},
  "unsetMeta": {},
  "replace": true,
  "clientMutationId": "4"
}

UpdateAppIntegrationMetaPayload

Fields
Field NameDescription
appIntegration - AppIntegration
clientMutationId - ID
EXAMPLE
{
  "appIntegration": AppIntegration,
  "clientMutationId": "4"
}

UpdateAppIntegrationPayload

Fields
Field NameDescription
app - App
clientMutationId - ID
EXAMPLE
{"app": App, "clientMutationId": 4}

UpdateAudienceInput

Fields
Input FieldDescription
audienceId - ID!
app - ID
etag - ID
name - String
description - String
filter - AudienceFilterInput
channel - ID
tags - [String]
clientMutationId - ID
EXAMPLE
{
  "audienceId": 4,
  "app": "4",
  "etag": 4,
  "name": "abc123",
  "description": "abc123",
  "filter": AudienceFilterInput,
  "channel": 4,
  "tags": ["xyz789"],
  "clientMutationId": "4"
}

UpdateAudiencePayload

Fields
Field NameDescription
audience - Audience
clientMutationId - ID
EXAMPLE
{"audience": Audience, "clientMutationId": 4}

UpdateChannelEnvironmentHooksInput

Fields
Input FieldDescription
channelId - ID!Target channel Id
environmentId - IDTarget environment id (default: default)
preCoreEntryAsync - [ID]
preCoreEntrySync - [ID]
postCoreEntry - [ID]
option - StringOnly accept $addToSet or $pull
clientMutationId - ID
app - ID
EXAMPLE
{
  "channelId": "4",
  "environmentId": "4",
  "preCoreEntryAsync": ["4"],
  "preCoreEntrySync": ["4"],
  "postCoreEntry": ["4"],
  "option": "xyz789",
  "clientMutationId": 4,
  "app": "4"
}

UpdateChannelEnvironmentInput

Fields
Input FieldDescription
channelId - ID!Target channel Id
environmentId - IDTarget environment id (default: default)
name - StringEnvironment name
webhooks - ChannelEnvironmentWebhooksEnvironment webhooks (old format)
webhooksV2 - [ChannelWebhookV2Input]Environment webhooks (new format)
hooks - ChannelHooksInputEnvironment hooks
on - BooleanEnvironment global on/off toggle
availability - JSONTree Availability setting
treeIds - [ID]Default Tree ids
group - IDPriority Group ID
globalNodeIds - [ID]Default global modes Ids
offTreeIds - [ID]Off Tree ids
offGlobalNodeIds - [ID]Off global modes Ids
livechatTreeIds - [ID]Live chat Tree ids
livechatGlobalNodeIds - [ID]Live chat global modes Ids
coreVersion - StringEnvironment core version
meta - JSON
option - StringOption on tree and node ids, only accept $addToSet or $set
clientMutationId - ID
app - ID
EXAMPLE
{
  "channelId": 4,
  "environmentId": "4",
  "name": "xyz789",
  "webhooks": ChannelEnvironmentWebhooks,
  "webhooksV2": [ChannelWebhookV2Input],
  "hooks": ChannelHooksInput,
  "on": true,
  "availability": {},
  "treeIds": ["4"],
  "group": "4",
  "globalNodeIds": [4],
  "offTreeIds": ["4"],
  "offGlobalNodeIds": ["4"],
  "livechatTreeIds": [4],
  "livechatGlobalNodeIds": ["4"],
  "coreVersion": "xyz789",
  "meta": {},
  "option": "abc123",
  "clientMutationId": 4,
  "app": "4"
}

UpdateChannelEnvironmentLivechatTreeGlobalNodeInput

Fields
Input FieldDescription
channelId - ID!Target channel Id
environmentId - IDTarget environment id (default: default)
livechatTrees - [ID]Live chat Tree ids
livechatGlobalNodes - [ID]Live chat global modes Ids
option - StringOnly accept $addToSet or $pull
clientMutationId - ID
app - ID
EXAMPLE
{
  "channelId": "4",
  "environmentId": 4,
  "livechatTrees": ["4"],
  "livechatGlobalNodes": [4],
  "option": "xyz789",
  "clientMutationId": "4",
  "app": "4"
}

UpdateChannelEnvironmentOffTreeGlobalNodeInput

Fields
Input FieldDescription
channelId - ID!Target channel Id
environmentId - IDTarget environment id (default: default)
offTrees - [ID]Off Tree ids
offGlobalNodes - [ID]Off global modes Ids
option - StringOnly accept $addToSet or $pull
clientMutationId - ID
app - ID
EXAMPLE
{
  "channelId": "4",
  "environmentId": "4",
  "offTrees": [4],
  "offGlobalNodes": ["4"],
  "option": "xyz789",
  "clientMutationId": 4,
  "app": "4"
}

UpdateChannelEnvironmentTreeGlobalNodeInput

Fields
Input FieldDescription
channelId - ID!Target channel Id
environmentId - IDTarget environment id (default: default)
trees - [ID]Default Tree ids
globalNodes - [ID]Default global modes Ids
option - StringOnly accept $addToSet or $pull
clientMutationId - ID
app - ID
EXAMPLE
{
  "channelId": "4",
  "environmentId": "4",
  "trees": [4],
  "globalNodes": [4],
  "option": "abc123",
  "clientMutationId": "4",
  "app": 4
}

UpdateChannelEnvironmentWebhooksInput

Fields
Input FieldDescription
channelId - ID!Target channel Id
environmentId - IDTarget environment id (default: default)
normalizedInbound - [ChannelEnvironmentWebhookDetail]Environment inbound webhooks (old format)
normalizedOutbound - [ChannelEnvironmentWebhookDetail]Environment outbound webhooks (old format)
webhooksV2 - [ChannelWebhookV2ActionInput]Environment webhooks (new format)
option - StringOnly accept $addToSet or $pull, only used for normalizedInbound normalizedOutbound inputs
clientMutationId - ID
app - ID
EXAMPLE
{
  "channelId": "4",
  "environmentId": "4",
  "normalizedInbound": [ChannelEnvironmentWebhookDetail],
  "normalizedOutbound": [ChannelEnvironmentWebhookDetail],
  "webhooksV2": [ChannelWebhookV2ActionInput],
  "option": "xyz789",
  "clientMutationId": "4",
  "app": "4"
}

UpdateChannelIncomingWebhookInput

Fields
Input FieldDescription
channelId - ID!
etag - ID
incomingWebhooks - [ChannelIncomingWebhookActionInput]
clientMutationId - ID
EXAMPLE
{
  "channelId": "4",
  "etag": 4,
  "incomingWebhooks": [ChannelIncomingWebhookActionInput],
  "clientMutationId": 4
}

UpdateChannelIncomingWebhookPayload

Fields
Field NameDescription
channel - Channel
clientMutationId - ID
EXAMPLE
{"channel": Channel, "clientMutationId": 4}

UpdateChannelInput

Fields
Input FieldDescription
channelId - ID!
app - ID
etag - ID
name - String
description - String
meta - JSON
tags - [String]
clientMutationId - ID
on - Boolean
EXAMPLE
{
  "channelId": "4",
  "app": "4",
  "etag": "4",
  "name": "xyz789",
  "description": "xyz789",
  "meta": {},
  "tags": ["xyz789"],
  "clientMutationId": "4",
  "on": true
}

UpdateChannelPayload

Fields
Field NameDescription
channel - Channel
error - GenericError
clientMutationId - ID
EXAMPLE
{
  "channel": Channel,
  "error": GenericError,
  "clientMutationId": "4"
}

UpdateChannelPriorityGroupInput

Fields
Input FieldDescription
channelId - ID!
priorityGroupId - String
treeIds - [ID]
globalNodeIds - [ID]
groupTreeIds - [ID]
groupGlobalNodeIds - [ID]
offTreeIds - [ID]
offGlobalNodeIds - [ID]
livechatTreeIds - [ID]
livechatGlobalNodeIds - [ID]
coreVersion - String
meta - JSON
override - Boolean
overrideOn - Boolean
option - String
app - ID
EXAMPLE
{
  "channelId": 4,
  "priorityGroupId": "xyz789",
  "treeIds": ["4"],
  "globalNodeIds": ["4"],
  "groupTreeIds": [4],
  "groupGlobalNodeIds": [4],
  "offTreeIds": [4],
  "offGlobalNodeIds": ["4"],
  "livechatTreeIds": [4],
  "livechatGlobalNodeIds": [4],
  "coreVersion": "abc123",
  "meta": {},
  "override": true,
  "overrideOn": true,
  "option": "abc123",
  "app": "4"
}

UpdateConditionInput

Fields
Input FieldDescription
conditionId - ID!
app - ID
etag - ID
name - String
description - String
functionString - String
autogen - Boolean
tags - [String]
history - [JSON]
clientMutationId - ID
EXAMPLE
{
  "conditionId": 4,
  "app": 4,
  "etag": 4,
  "name": "xyz789",
  "description": "abc123",
  "functionString": "xyz789",
  "autogen": false,
  "tags": ["abc123"],
  "history": [{}],
  "clientMutationId": "4"
}

UpdateConditionPayload

Fields
Field NameDescription
condition - Condition
clientMutationId - ID
EXAMPLE
{"condition": Condition, "clientMutationId": 4}

UpdateDataSourceDocInput

Description

Input type for updating datasource doc.

Fields
Input FieldDescription
app - IDApp ID in Stella.
etag - IDetag of document in datasource
collectionName - String!Datasource id in Stella.
data - JSONThe data to update in datasource.
clientMutationId - ID
EXAMPLE
{
  "app": "4",
  "etag": "4",
  "collectionName": "xyz789",
  "data": {},
  "clientMutationId": "4"
}

UpdateDataSourceDocPayload

Description

Return type for updating datasource doc.

Fields
Field NameDescription
clientMutationId - ID
data - JSONThe data updated.
EXAMPLE
{"clientMutationId": "4", "data": {}}

UpdateDataSourceDocsInput

Description

Input type for updating datasource docs.

Fields
Input FieldDescription
collectionName - ID!Datasource id in Stella.
filter - JSONMongoDB filter apply to filter doc from datasource.
patch - JSONMongoDB patch option to update docs in datasource
options - JSONMongoDB options in updating docs in datasource
multi - BooleanUpdate multi documents or not
clientMutationId - ID
EXAMPLE
{
  "collectionName": 4,
  "filter": {},
  "patch": {},
  "options": {},
  "multi": false,
  "clientMutationId": 4
}

UpdateDataSourceDocsPayload

Description

Return type for updating datasource docs.

Fields
Field NameDescription
result - JSONMongoDB update result
clientMutationId - ID
EXAMPLE
{"result": {}, "clientMutationId": "4"}

UpdateDataSourceInput

Description

Input type for updating datasource.

Fields
Input FieldDescription
app - IDApp ID in Stella.
name - StringDatasource name
description - StringDatasource description
collectionName - ID!Datasource id in Stella.
clientMutationId - ID
EXAMPLE
{
  "app": "4",
  "name": "xyz789",
  "description": "xyz789",
  "collectionName": 4,
  "clientMutationId": 4
}

UpdateDataSourcePayload

Description

Return type for updating datasource.

Fields
Field NameDescription
dataSource - DataSourceDatasource that updated.
clientMutationId - ID
EXAMPLE
{"dataSource": DataSource, "clientMutationId": 4}

UpdateLocaleGroupInput

Fields
Input FieldDescription
localeGroupId - ID!
app - ID
etag - ID
locales - [String]
name - String
clientMutationId - ID
EXAMPLE
{
  "localeGroupId": 4,
  "app": "4",
  "etag": "4",
  "locales": ["abc123"],
  "name": "abc123",
  "clientMutationId": 4
}

UpdateLocaleGroupPayload

Fields
Field NameDescription
localeGroup - LocaleGroup
clientMutationId - ID
EXAMPLE
{
  "localeGroup": LocaleGroup,
  "clientMutationId": "4"
}

UpdateMemberForBotPayload

Fields
Field NameDescription
member - Member
memberRaw - JSONUse member
clientMutationId - ID
EXAMPLE
{
  "member": Member,
  "memberRaw": {},
  "clientMutationId": "4"
}

UpdateMemberInput

Fields
Input FieldDescription
memberId - ID!
app - ID
etag - ID
profile - JSON
profileWithSchema - MemberProfileInput
inboxProfile - InboxMemberProfileInput
tags - [String]
meta - JSON
botMeta - BotMetaInput
unsetKeys - UnsetKeysInput
admin - ID
group - ID
firstName - String
lastName - String
profilePic - String
gender - String
locale - String
customLocale - String
email - String
profilePicString - String
clientMutationId - ID
EXAMPLE
{
  "memberId": "4",
  "app": 4,
  "etag": 4,
  "profile": {},
  "profileWithSchema": MemberProfileInput,
  "inboxProfile": InboxMemberProfileInput,
  "tags": ["abc123"],
  "meta": {},
  "botMeta": BotMetaInput,
  "unsetKeys": UnsetKeysInput,
  "admin": "4",
  "group": 4,
  "firstName": "abc123",
  "lastName": "abc123",
  "profilePic": "abc123",
  "gender": "abc123",
  "locale": "abc123",
  "customLocale": "abc123",
  "email": "abc123",
  "profilePicString": "abc123",
  "clientMutationId": "4"
}

UpdateMemberPayload

Fields
Field NameDescription
member - Member
memberRaw - JSONUse member
clientMutationId - ID
EXAMPLE
{"member": Member, "memberRaw": {}, "clientMutationId": 4}

UpdateMembersInput

Fields
Input FieldDescription
filter - JSON
update - JSON
replace - Boolean
multi - Boolean
options - JSON
app - ID
clientMutationId - ID
EXAMPLE
{
  "filter": {},
  "update": {},
  "replace": true,
  "multi": false,
  "options": {},
  "app": "4",
  "clientMutationId": 4
}

UpdateMembersPayload

Fields
Field NameDescription
result - JSON
clientMutationId - ID
EXAMPLE
{"result": {}, "clientMutationId": 4}

UpdateNodeInput

Fields
Input FieldDescription
nodeId - ID!
app - ID
etag - ID
name - String
description - String
trigger - ID
preActions - [ID]
responses - [ID]
postActions - [ID]
actions - [ID]
priority - Int
colour - String
path - String
global - Boolean
redirect - RedirectInput
analytics - AnalyticsInput
memberTagging - MemberTaggingInput
type - NodeObjectType
dialogflow - DialogflowSettingsInput
luis - LuisSettingsInput
tags - [String]
clientMutationId - ID
saveCompositeId - Boolean
EXAMPLE
{
  "nodeId": 4,
  "app": "4",
  "etag": 4,
  "name": "xyz789",
  "description": "abc123",
  "trigger": 4,
  "preActions": ["4"],
  "responses": ["4"],
  "postActions": ["4"],
  "actions": [4],
  "priority": 123,
  "colour": "xyz789",
  "path": "xyz789",
  "global": true,
  "redirect": RedirectInput,
  "analytics": AnalyticsInput,
  "memberTagging": MemberTaggingInput,
  "type": "GENERAL",
  "dialogflow": DialogflowSettingsInput,
  "luis": LuisSettingsInput,
  "tags": ["xyz789"],
  "clientMutationId": "4",
  "saveCompositeId": false
}

UpdateNodePayload

Fields
Field NameDescription
node - NodeObject
clientMutationId - ID
EXAMPLE
{"node": NodeObject, "clientMutationId": 4}

UpdateNoteInput

Fields
Input FieldDescription
noteId - ID!
content - String!
etag - ID!
clientMutationId - ID
EXAMPLE
{
  "noteId": "4",
  "content": "xyz789",
  "etag": 4,
  "clientMutationId": 4
}

UpdateNotePayload

Fields
Field NameDescription
note - Note
error - GenericError
clientMutationId - ID
EXAMPLE
{
  "note": Note,
  "error": GenericError,
  "clientMutationId": 4
}

UpdatePairsInAppInput

Description

An input for UpdatePairsInApp

Fields
Input FieldDescription
pairs - [PairInput]!Pair array for inlet and outlet
clientMutationId - ID
EXAMPLE
{"pairs": [PairInput], "clientMutationId": 4}

UpdatePairsInAppPayload

Fields
Field NameDescription
app - App
clientMutationId - ID
EXAMPLE
{
  "app": App,
  "clientMutationId": "4"
}

UpdatePriorityGroupInput

Fields
Input FieldDescription
priorityGroupId - ID!
app - ID
etag - ID
name - String
description - String
channel - ID
members - [ID]
tags - [String]
clientMutationId - ID
EXAMPLE
{
  "priorityGroupId": 4,
  "app": "4",
  "etag": 4,
  "name": "abc123",
  "description": "abc123",
  "channel": "4",
  "members": [4],
  "tags": ["abc123"],
  "clientMutationId": 4
}

UpdatePriorityGroupPayload

Fields
Field NameDescription
priorityGroup - PriorityGroup
clientMutationId - ID
EXAMPLE
{
  "priorityGroup": PriorityGroup,
  "clientMutationId": "4"
}

UpdateResponseInput

Fields
Input FieldDescription
responseId - ID!
app - ID
etag - ID
name - String
description - String
localeGroups - [ResponseLocaleGroupInput]
history - [JSON]
tags - [String]
clientMutationId - ID
EXAMPLE
{
  "responseId": 4,
  "app": 4,
  "etag": "4",
  "name": "xyz789",
  "description": "xyz789",
  "localeGroups": [ResponseLocaleGroupInput],
  "history": [{}],
  "tags": ["abc123"],
  "clientMutationId": "4"
}

UpdateResponsePayload

Fields
Field NameDescription
response - Response
clientMutationId - ID
EXAMPLE
{
  "response": Response,
  "clientMutationId": "4"
}

UpdateSubscriptionPushInput

Fields
Input FieldDescription
subscriptionPushId - ID!
app - ID
etag - ID
name - String
description - String
messages - JSON

Example:

"messages" : [{

"platforms" : [{

"integrationId" : "woztell-essential-pack", "build" : 1, "localeGroups" : [{

"localeGroup" : "default", "variations" : [{

"name" : "Standard", "responses" : [{

"type" : "TEXT", "text" : "Hello World", "id" : "EQeUe7ZA", "transform" : ""

}] }] }] }] }]

sent - [ID]
read - [ID]
interacted - [ID]
tags - [String]
agendaMeta - JSON
errors - [SubscriptionPushErrorInput]
includeAudiences - [ID]
excludeAudiences - [ID]
fbMessageTag - String
fbOTNTags - [String]
filter - AudienceFilterInput
members - [ID]
sentStart - Long
sentEnd - Long
scheduleAt - Long
agendas - [ID]
childSubscriptionPushes - [ID]
priority - Int
clientMutationId - ID
EXAMPLE
{
  "subscriptionPushId": "4",
  "app": "4",
  "etag": "4",
  "name": "abc123",
  "description": "xyz789",
  "messages": {},
  "sent": ["4"],
  "read": [4],
  "interacted": [4],
  "tags": ["xyz789"],
  "agendaMeta": {},
  "errors": [SubscriptionPushErrorInput],
  "includeAudiences": [4],
  "excludeAudiences": ["4"],
  "fbMessageTag": "xyz789",
  "fbOTNTags": ["abc123"],
  "filter": AudienceFilterInput,
  "members": [4],
  "sentStart": {},
  "sentEnd": {},
  "scheduleAt": {},
  "agendas": ["4"],
  "childSubscriptionPushes": [4],
  "priority": 987,
  "clientMutationId": "4"
}

UpdateSubscriptionPushPayload

Fields
Field NameDescription
subscriptionPush - SubscriptionPush
clientMutationId - ID
EXAMPLE
{
  "subscriptionPush": SubscriptionPush,
  "clientMutationId": 4
}

UpdateTreeInput

Fields
Input FieldDescription
treeId - ID!
app - ID
etag - ID
name - String
description - String
versionAlias - String
globalNodes - [ID]
nodes - [ID]
workspace - [WorkspaceInput]
stash - [ID]
tags - [String]
configMapSchema - JSON
configMap - JSON
type - String
templateTreeId - ID
clientMutationId - ID
system - Boolean
EXAMPLE
{
  "treeId": "4",
  "app": 4,
  "etag": 4,
  "name": "xyz789",
  "description": "xyz789",
  "versionAlias": "abc123",
  "globalNodes": [4],
  "nodes": ["4"],
  "workspace": [WorkspaceInput],
  "stash": ["4"],
  "tags": ["xyz789"],
  "configMapSchema": {},
  "configMap": {},
  "type": "abc123",
  "templateTreeId": "4",
  "clientMutationId": 4,
  "system": false
}

UpdateTreePayload

Fields
Field NameDescription
tree - Tree
clientMutationId - ID
EXAMPLE
{
  "tree": Tree,
  "clientMutationId": "4"
}

UpdateTriggerInput

Fields
Input FieldDescription
triggerId - ID!
app - ID
etag - ID
name - String
description - String
conditions - JSON
templateInfo - JSON
tags - [String]
history - [JSON]
clientMutationId - ID
EXAMPLE
{
  "triggerId": 4,
  "app": 4,
  "etag": 4,
  "name": "abc123",
  "description": "abc123",
  "conditions": {},
  "templateInfo": {},
  "tags": ["abc123"],
  "history": [{}],
  "clientMutationId": "4"
}

UpdateTriggerPayload

Fields
Field NameDescription
trigger - Trigger
clientMutationId - ID
EXAMPLE
{"trigger": Trigger, "clientMutationId": 4}

UpdateWebchatMemberForBotInput

Fields
Input FieldDescription
memberId - ID!
channel - ID
webchatToken - ID!
app - ID
tags - [String]
group - ID
meta - JSON
botMeta - JSON
customLocale - String
locale - String
admin - ID
clientMutationId - ID
EXAMPLE
{
  "memberId": 4,
  "channel": "4",
  "webchatToken": 4,
  "app": 4,
  "tags": ["xyz789"],
  "group": "4",
  "meta": {},
  "botMeta": {},
  "customLocale": "xyz789",
  "locale": "abc123",
  "admin": "4",
  "clientMutationId": "4"
}

UpsertDataSourceDocsInput

Description

Input type for upserting (update or insert) datasource doc.

Fields
Input FieldDescription
collectionName - ID!Datasource id in Stella.
data - JSONThe data to upsert.
clientMutationId - ID
EXAMPLE
{"collectionName": 4, "data": {}, "clientMutationId": 4}

UpsertDataSourceDocsPayload

Description

Return type for upserting (update or insert) datasource doc.

Fields
Field NameDescription
result - JSONThe upsert result.
clientMutationId - ID
EXAMPLE
{"result": {}, "clientMutationId": "4"}

UpsertMemberByExternalIdInput

Fields
Input FieldDescription
externalId - ID!
newExternalId - ID
app - ID
channel - ID!
webchatToken - ID!
platform - String!
profile - JSON
tags - [String]
meta - JSON
botMeta - BotMetaInput
botId - ID
admin - ID
group - ID
fbId - ID
name - String
firstName - String
lastName - String
profilePic - String
email - String
gender - String
locale - String
customLocale - String
profilePicString - String
fbUserRef - Boolean
fbOTNToken - JSON
conversationId - String
trackActiveMember - Boolean
trackNewMember - Boolean
clientMutationId - ID
EXAMPLE
{
  "externalId": "4",
  "newExternalId": "4",
  "app": 4,
  "channel": "4",
  "webchatToken": "4",
  "platform": "abc123",
  "profile": {},
  "tags": ["abc123"],
  "meta": {},
  "botMeta": BotMetaInput,
  "botId": "4",
  "admin": 4,
  "group": 4,
  "fbId": 4,
  "name": "abc123",
  "firstName": "xyz789",
  "lastName": "xyz789",
  "profilePic": "abc123",
  "email": "xyz789",
  "gender": "abc123",
  "locale": "abc123",
  "customLocale": "abc123",
  "profilePicString": "abc123",
  "fbUserRef": false,
  "fbOTNToken": {},
  "conversationId": "abc123",
  "trackActiveMember": false,
  "trackNewMember": false,
  "clientMutationId": 4
}

UpsertMemberByExternalIdPayload

Fields
Field NameDescription
member - Member
memberRaw - JSONUse member
clientMutationId - ID
EXAMPLE
{
  "member": Member,
  "memberRaw": {},
  "clientMutationId": "4"
}

User

Fields
Field NameDescription
id - ID!
_id - ID!
createdAt - Long!
updatedAt - Long
apps - [UserAppConfig]scope ["api:admin", "user:getApps"]
partners - [UserPartnerConfig]scope ["api:admin", "user:getPartners"]
firstName - Stringscope ["api:admin", "user:getProfile", "teamMember:list"]
lastName - Stringscope ["api:admin", "user:getProfile", "teamMember:list"]
fullName - Stringscope ["api:admin", "user:getProfile", "teamMember:list"]
profilePic - Stringscope ["api:admin", "user:getProfile", "teamMember:list"]
ownRoles - [Role]scope ["api:admin", "user:getRoles"]
acls - [String]scope ["api:admin", "user:getRoles"]
email - EmailCredscope ["api:admin", "user:getProfile", "teamMember:list"]
meta - JSON
tags - [String]
platformCred - PlatformCred
sessionMeta - JSON
preferences - UserPreferences
etag - ID
stripeProducts - JSON
EXAMPLE
{
  "id": 4,
  "_id": 4,
  "createdAt": {},
  "updatedAt": {},
  "apps": [UserAppConfig],
  "partners": [UserPartnerConfig],
  "firstName": "abc123",
  "lastName": "abc123",
  "fullName": "xyz789",
  "profilePic": "xyz789",
  "ownRoles": [Role],
  "acls": ["abc123"],
  "email": EmailCred,
  "meta": {},
  "tags": ["abc123"],
  "platformCred": PlatformCred,
  "sessionMeta": {},
  "preferences": UserPreferences,
  "etag": "4",
  "stripeProducts": {}
}

UserAppConfig

Fields
Field NameDescription
appId - String
app - App!
acls - [String]
default - Boolean
roles - [Role]
EXAMPLE
{
  "appId": "abc123",
  "app": App,
  "acls": ["xyz789"],
  "default": true,
  "roles": [Role]
}

UserPartnerConfig

Fields
Field NameDescription
partnerId - String
partner - Partner!
acls - [String]
default - Boolean
roles - [Role]
EXAMPLE
{
  "partnerId": "xyz789",
  "partner": Partner,
  "acls": ["xyz789"],
  "default": true,
  "roles": [Role]
}

UserPreferences

Fields
Field NameDescription
recentTrees - [Tree]
recentTreeIds - [ID]
EXAMPLE
{"recentTrees": [Tree], "recentTreeIds": [4]}

WABAIntegration

Fields
Field NameDescription
name - String
accountId - ID
namespace - String
type - String
id - ID
EXAMPLE
{
  "name": "xyz789",
  "accountId": "4",
  "namespace": "xyz789",
  "type": "xyz789",
  "id": 4
}

WebhookEventType

Values
Enum ValueDescription

INBOUND

BOT_OUTBOUND

API_OUTBOUND

PUSH_OUTBOUND

MEMBER_CREATE

MEMBER_CHANGE

MEMBER_SUBSCRIBE

MEMBER_LIVECHAT

MEMBER_META

MEMBER_TEMPDATA

MEMBER_TAGS

NODE_TRIGGER

EXAMPLE
"INBOUND"

WhatsAppFileUrl

Fields
Field NameDescription
ok - Int!
err_code - Int
err - String
url - String
EXAMPLE
{
  "ok": 123,
  "err_code": 987,
  "err": "xyz789",
  "url": "xyz789"
}

WhatsAppMessageTemplate

Fields
Field NameDescription
id - ID!
data - JSON
EXAMPLE
{"id": "4", "data": {}}

WhatsAppMessageTemplateConnection

Fields
Field NameDescription
edges - [WhatsAppMessageTemplateEdge]
pageInfo - PageInfo
EXAMPLE
{
  "edges": [WhatsAppMessageTemplateEdge],
  "pageInfo": PageInfo
}

WhatsAppMessageTemplateEdge

Fields
Field NameDescription
node - WhatsAppMessageTemplate
cursor - ID
EXAMPLE
{
  "node": WhatsAppMessageTemplate,
  "cursor": "4"
}

Workspace

Fields
Field NameDescription
node - NodeObject
coordinates - Coordinates
meta - JSON
EXAMPLE
{
  "node": NodeObject,
  "coordinates": Coordinates,
  "meta": {}
}

WorkspaceInput

Fields
Input FieldDescription
node - ID
coordinates - CoordinatesInput
EXAMPLE
{
  "node": "4",
  "coordinates": CoordinatesInput
}

endpointError

Fields
Field NameDescription
name - String
code - String
message - String
meta - JSON
EXAMPLE
{
  "name": "abc123",
  "code": "xyz789",
  "message": "abc123",
  "meta": {}
}

toggleLiveChatInput

Description

An input for ToggleLiveChat

Fields
Input FieldDescription
memberId - IDThe identifier for the user. Used to filter to the correct user
externalId - IDDangerous!!! May have same externalId under same app The external identifier for the user. Used to filter if memberId is missing
appId - IDThe identifier for the app the user is using. Used to filter the appID
liveChat - Boolean!The boolean input for the toggle action. LiveChat will be set to this boolean
clientMutationId - IDClient mutation id for relay
EXAMPLE
{
  "memberId": 4,
  "externalId": 4,
  "appId": "4",
  "liveChat": true,
  "clientMutationId": 4
}

toggleLiveChatPayload

Description

The return payload for ToggleLiveChat. Used to toggle the Live Chat setting for the user.

Fields
Field NameDescription
ok - IntUsed signify whether the action has succeed. Returning 1 for success, 0 for failure.
err_code - IntThe error code. Returns the code of the error.
err - StringThe error message. Returns a string explaining what error has occurred.
memberId - ID
member - Member
clientMutationId - IDClient mutation id for relay
EXAMPLE
{
  "ok": 123,
  "err_code": 987,
  "err": "xyz789",
  "memberId": "4",
  "member": Member,
  "clientMutationId": "4"
}