For the complete documentation index, see llms.txt. This page is also available as Markdown.

Create B2C subscription request

GraphQL endpoint: /company

Sends a subscription request to a user asking for their consent to receive communications of the given type (EMAIL, SMS, VOICE). The request stays PENDING until the user responds. If the user accepts, a B2C subscription is created. If they reject, the request is marked as rejected and no subscription is created.

Query

mutation (
  $invitedUserId: ID!
  $type: B2cSubscriptionType!
  $subscriptionTopicIds: [ID!]
) {
  createB2cSubscriptionRequest (
    invitedUserId: $invitedUserId
    type: $type
    subscriptionTopicIds: $subscriptionTopicIds
  ) {
    id
    status
    type
    insertedAt
    updatedAt
    respondedAt
    company {
      id
    }
    user {
      id
    }
    invitedUser {
      id
    }
  }
}

Variables

Response

Last updated