Send the confirmation e-mail again
POST
/
v1
/
subscribers
/
{subscriber}
/
resend-confirmation
Send the confirmation e-mail again
curl --request POST \
--url https://api.lekalao.com/v1/subscribers/{subscriber}/resend-confirmation \
--header 'Authorization: Bearer <token>'const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.lekalao.com/v1/subscribers/{subscriber}/resend-confirmation', 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://api.lekalao.com/v1/subscribers/{subscriber}/resend-confirmation",
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;
}import requests
url = "https://api.lekalao.com/v1/subscribers/{subscriber}/resend-confirmation"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text){
"message": "Confirmation e-mail sent."
}{
"message": "The idempotency key is too long.",
"code": "idempotency_key_too_long",
"doc_url": "https://docs.lekalao.com/errors#idempotency_key_too_long"
}{
"message": "Unauthenticated.",
"code": "unauthenticated",
"doc_url": "https://docs.lekalao.com/errors#unauthenticated"
}{
"message": "A test key cannot send this: it would reach real people. Use a live key.",
"code": "sandbox_cannot_send",
"doc_url": "https://docs.lekalao.com/errors#sandbox_cannot_send"
}{
"message": "Not found.",
"code": "not_found",
"doc_url": "https://docs.lekalao.com/errors#not_found"
}{
"message": "A request with this idempotency key is already running.",
"code": "idempotency_key_in_use",
"doc_url": "https://docs.lekalao.com/errors#idempotency_key_in_use"
}{
"message": "<string>",
"code": "address_suppressed",
"doc_url": "<string>"
}{
"message": "Too many requests. Try again in 12 seconds.",
"code": "rate_limited",
"doc_url": "https://docs.lekalao.com/errors#rate_limited"
}Authorizations
An API token. The "read" ability: GET routes only. "read + write": every route.
Headers
Replay a write safely: the same key gives back the first answer for 24 hours (header Idempotent-Replay: true). Read on POST, PUT and PATCH; DELETE ignores it. 255 characters at most.
Maximum string length:
255Path Parameters
The subscriber's identifier (uuid).
Response
E-mail queued.
⌘I
Send the confirmation e-mail again
curl --request POST \
--url https://api.lekalao.com/v1/subscribers/{subscriber}/resend-confirmation \
--header 'Authorization: Bearer <token>'const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.lekalao.com/v1/subscribers/{subscriber}/resend-confirmation', 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://api.lekalao.com/v1/subscribers/{subscriber}/resend-confirmation",
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;
}import requests
url = "https://api.lekalao.com/v1/subscribers/{subscriber}/resend-confirmation"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text){
"message": "Confirmation e-mail sent."
}{
"message": "The idempotency key is too long.",
"code": "idempotency_key_too_long",
"doc_url": "https://docs.lekalao.com/errors#idempotency_key_too_long"
}{
"message": "Unauthenticated.",
"code": "unauthenticated",
"doc_url": "https://docs.lekalao.com/errors#unauthenticated"
}{
"message": "A test key cannot send this: it would reach real people. Use a live key.",
"code": "sandbox_cannot_send",
"doc_url": "https://docs.lekalao.com/errors#sandbox_cannot_send"
}{
"message": "Not found.",
"code": "not_found",
"doc_url": "https://docs.lekalao.com/errors#not_found"
}{
"message": "A request with this idempotency key is already running.",
"code": "idempotency_key_in_use",
"doc_url": "https://docs.lekalao.com/errors#idempotency_key_in_use"
}{
"message": "<string>",
"code": "address_suppressed",
"doc_url": "<string>"
}{
"message": "Too many requests. Try again in 12 seconds.",
"code": "rate_limited",
"doc_url": "https://docs.lekalao.com/errors#rate_limited"
}