 
 diff --git a/Koha/REST/V1/Messaging.pm b/Koha/REST/V1/Messaging.pm
 new file mode 100644
-index 0000000..513a059
+index 0000000..bc5a12b
 --- /dev/null
 +++ b/Koha/REST/V1/Messaging.pm
-@@ -0,0 +1,93 @@
+@@ -0,0 +1,78 @@
 +package Koha::REST::V1::Messaging;
 +
 +# This file is part of Koha.
 +#
 +# Koha is free software; you can redistribute it and/or modify it under the
 +# terms of the GNU General Public License as published by the Free Software
-+# Foundation; either version 3 of the License, or (at your option) any later
-+# version.
++# Foundation; either version 3 of the License, or (at your option) any later version.
 +#
 +# Koha is distributed in the hope that it will be useful, but WITHOUT ANY
 +# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR

+        "200": {
+          "description": "Patron account details sent"
+        },
+        "400": {
+          "description": "Error sending patron account details",
+          "schema": {
+            "$ref": "../definitions.json#/error"

+            'borrowers' => $args->{borrowernumber},
+        },
+        substitute => { 'borrowers.password' => $patron->password },
+    );
+
+    my $message_id = _enqueue_message($letter, $patron);
+
+    if ($message_id) {
+        return $c->$cb({}, 200);
+    } else {
+        return $c->$cb({error => "Failed sending message"}, 500);
+    }
+
+}
+
+sub _enqueue_message {
+    my ($letter, $patron) = @_;
+
+    my $from = C4::Context->preference('KohaAdminEmailAddress');
+    return C4::Letters::EnqueueLetter(
+        {
+            letter                 => $letter,
+            borrowernumber         => $patron->borrowernumber,
+            to_address             => $patron->email,
+            from_address           => $from,
+            message_transport_type => 'email',
+        }
+    );
+}
+
+1;
