Get the allowed recipient domains of a Sandbox
curl --request GET \
--url https://coreapi.io/api/tenant/sandbox-mail-settings \
--header 'Authorization: Bearer <token>'import requests
url = "https://coreapi.io/api/tenant/sandbox-mail-settings"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://coreapi.io/api/tenant/sandbox-mail-settings', 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/api/tenant/sandbox-mail-settings",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
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;
}{
"allowedRecipientDomains": [
"firma.example"
],
"recipientFilterActive": true
}{
"status": 123,
"type": "ORGANISATION__NOT_FOUND",
"title": "<string>",
"detail": "<string>",
"requestId": "<string>"
}{
"status": 123,
"type": "ORGANISATION__NOT_FOUND",
"title": "<string>",
"detail": "<string>",
"requestId": "<string>"
}Empfänger-Domains
Get the allowed recipient domains of a Sandbox
Mail of a Sandbox environment reaches the members of its organisation with a confirmed address and the addresses on an allowed domain. Every other mail is not sent and appears in the list of suppressed messages. Requires the permission sandbox-mail-settings:read. Available in Sandbox environments only.
Accepts the API token of the environment as well as the token of a person signed in to the app.
GET
/
api
/
tenant
/
sandbox-mail-settings
Get the allowed recipient domains of a Sandbox
curl --request GET \
--url https://coreapi.io/api/tenant/sandbox-mail-settings \
--header 'Authorization: Bearer <token>'import requests
url = "https://coreapi.io/api/tenant/sandbox-mail-settings"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://coreapi.io/api/tenant/sandbox-mail-settings', 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/api/tenant/sandbox-mail-settings",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
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;
}{
"allowedRecipientDomains": [
"firma.example"
],
"recipientFilterActive": true
}{
"status": 123,
"type": "ORGANISATION__NOT_FOUND",
"title": "<string>",
"detail": "<string>",
"requestId": "<string>"
}{
"status": 123,
"type": "ORGANISATION__NOT_FOUND",
"title": "<string>",
"detail": "<string>",
"requestId": "<string>"
}Autorisierungen
ApiTokenSignedInUser
Header
Antwort
The allowed domains of the Sandbox.
Who receives mail from this Sandbox besides the members of its organisation.
War diese Seite hilfreich?