kustomer-client
    Preparing search index...

    Function getAttachmentByMessageAndAttachmentId

    • Get attachment by message ID and attachment ID (inbound or outbound) Retrieves attachments based on the unique ID of the attachment for a specific message ID.

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

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

      Type Parameters

      • ThrowOnError extends boolean = true

      Returns RequestResult<
          {
              data: {
                  attributes: {
                      contentLength: number;
                      contentType: string;
                      name: string;
                      redacted: boolean;
                  };
                  id: string;
                  links: { related: string; self: string };
                  relationships: {
                      message: {
                          data: { id: string; type: string };
                          links: { self: string };
                      };
                      org: { data: { id: string; type: string }; links: { self: string } };
                  };
                  type: string;
              };
          },
          unknown,
          ThrowOnError,
      >