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
}Authentication
Send login email to customer
Sends an email to the customer containing a login link to the customer portal. The customer can click the link to access their portal without entering credentials. Use this for support scenarios or to help customers access their account.
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.
War diese Seite hilfreich?