Skip to Content

The MessageCopyResult type of the TypeScript SDK, which messages.copy take or answer.

type MessageCopyResult = {
  nextAfter: string | null
  remaining: number
  results: MessageCopyEntry[]
}

Fields

FieldTypeDescription
nextAfterstring | nullPass as after to continue with the next page under the same operands. Null when every target has been answered, and when the destination refused a message — remaining is then what was never attempted.
remainingnumberTargets still to be answered after this page
resultsMessageCopyEntry[]This page's outcomes, one per source message, in ascending id order

Used by

MethodWhat it does
messages.copyCopy or move messages and conversations into another mailbox

On this page