Zum Hauptinhalt springen
POST
/
customers
/
{id}
/
send-login-email
cURL
curl -X POST \
 /customers/{id}/send-login-email \
 --header "Authorization: Bearer <token>"
import requests

url = "https://coreapi.io/customers/{id}/send-login-email"

headers = {"Authorization": "Bearer <token>"}

response = requests.post(url, headers=headers)

print(response.text)
const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};

fetch('https://coreapi.io/customers/{id}/send-login-email', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
  CURLOPT_URL => "https://coreapi.io/customers/{id}/send-login-email",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_HTTPHEADER => [
    "Authorization: Bearer <token>"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
{
  "success": true
}
Sends an email to the customer containing a one-click login link to the customer portal.

Use Cases

  • Support: Help customers who have trouble logging in
  • Onboarding: Send a welcome email with direct portal access
  • Proactive Outreach: Remind customers to update payment methods or review invoices
The login link is valid for a limited time. If the customer doesn’t use it, they can request a new one from the login page.

Autorisierungen

Authorization
string
header
erforderlich

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Pfadparameter

id
string
erforderlich

Customer identifier

Antwort

Login email sent successfully to the customer

success
boolean
Beispiel:

true