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

Import users from CSV

GraphQL endpoint: /company

Starts a user import from a previously uploaded CSV file, identified by the S3 file key returned by prepareFileUpload. Optionally creates B2C/C2C connections and requests email, SMS or voice subscriptions for the imported users. Returns the import record, which starts in UPLOADED status while the import is processed.

Query

mutation (
  $fileKey: String!
  $b2cType: B2cConnectionType
  $c2cType: C2cConnectionType
  $requestEmailSubscription: Boolean
  $requestSmsSubscription: Boolean
  $requestVoiceSubscription: Boolean
  $note: String
) {
  importUsersFromCsv (
    fileKey: $fileKey
    b2cType: $b2cType
    c2cType: $c2cType
    requestEmailSubscription: $requestEmailSubscription
    requestSmsSubscription: $requestSmsSubscription
    requestVoiceSubscription: $requestVoiceSubscription
    note: $note
  ) {
    id
    fileName
    status
    note
    insertedAt
    updatedAt
  }
}

Variables

Response

Last updated