kustomer-client
    Preparing search index...

    Function getMessage

    • Get message by ID Retrieves a single message based on the unique message ID.

      Any one of the following roles is required for this endpoint:

      Legacy Role Equivalent Permission Set Role
      org.user.message.read org.permission.message.read

      Type Parameters

      • ThrowOnError extends boolean = true

      Parameters

      Returns RequestResult<
          {
              data: {
                  attributes: {
                      app: string;
                      channel: string;
                      createdAt: string;
                      direction: string;
                      externalId: string;
                      lang: string;
                      meta: {
                          cc: unknown[];
                          from: string;
                          inReplyTo: string;
                          recipient: { email: string; mailboxHash: string };
                          subject: string;
                          to: { email: string }[];
                      };
                      modifiedAt: string;
                      preview: string;
                      sentAt: string;
                      sentiment: { confidence: number; polarity: number };
                      size: number;
                      status: string;
                      updatedAt: string;
                  };
                  id: string;
                  links: { related: string; self: string };
                  relationships: {
                      conversation: {
                          data: { id: string; type: string };
                          links: { self: string };
                      };
                      customer: {
                          data: { id: string; type: string };
                          links: { self: string };
                      };
                      modifiedBy: {
                          data: { id: string; type: string };
                          links: { self: string };
                      };
                      org: { data: { id: string; type: string }; links: { self: string } };
                  };
                  type: string;
              };
          },
          unknown,
          ThrowOnError,
      >