Opt a verified domain in/out of the Honor Roll
curl --request PUT \
--url https://api.mnemom.ai/v1/domains/{domain}/honor-roll \
--header 'Content-Type: application/json' \
--cookie mnemom_session= \
--data '{
"optIn": true
}'import requests
url = "https://api.mnemom.ai/v1/domains/{domain}/honor-roll"
payload = { "optIn": True }
headers = {
"cookie": "mnemom_session=",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {cookie: 'mnemom_session=', 'Content-Type': 'application/json'},
body: JSON.stringify({optIn: true})
};
fetch('https://api.mnemom.ai/v1/domains/{domain}/honor-roll', 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.mnemom.ai/v1/domains/{domain}/honor-roll",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'optIn' => true
]),
CURLOPT_COOKIE => "mnemom_session=",
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.mnemom.ai/v1/domains/{domain}/honor-roll"
payload := strings.NewReader("{\n \"optIn\": true\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("cookie", "mnemom_session=")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://api.mnemom.ai/v1/domains/{domain}/honor-roll")
.header("cookie", "mnemom_session=")
.header("Content-Type", "application/json")
.body("{\n \"optIn\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.mnemom.ai/v1/domains/{domain}/honor-roll")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["cookie"] = 'mnemom_session='
request["Content-Type"] = 'application/json'
request.body = "{\n \"optIn\": true\n}"
response = http.request(request)
puts response.read_body{
"domain": "<string>",
"honor_roll": true,
"verified_at": "2023-11-07T05:31:56Z"
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}Domains
Opt a verified domain in/out of the Honor Roll
Sets explicit, revocable Honor Roll consent for a verified domain.
PUT
/
domains
/
{domain}
/
honor-roll
Opt a verified domain in/out of the Honor Roll
curl --request PUT \
--url https://api.mnemom.ai/v1/domains/{domain}/honor-roll \
--header 'Content-Type: application/json' \
--cookie mnemom_session= \
--data '{
"optIn": true
}'import requests
url = "https://api.mnemom.ai/v1/domains/{domain}/honor-roll"
payload = { "optIn": True }
headers = {
"cookie": "mnemom_session=",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {cookie: 'mnemom_session=', 'Content-Type': 'application/json'},
body: JSON.stringify({optIn: true})
};
fetch('https://api.mnemom.ai/v1/domains/{domain}/honor-roll', 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.mnemom.ai/v1/domains/{domain}/honor-roll",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'optIn' => true
]),
CURLOPT_COOKIE => "mnemom_session=",
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.mnemom.ai/v1/domains/{domain}/honor-roll"
payload := strings.NewReader("{\n \"optIn\": true\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("cookie", "mnemom_session=")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://api.mnemom.ai/v1/domains/{domain}/honor-roll")
.header("cookie", "mnemom_session=")
.header("Content-Type", "application/json")
.body("{\n \"optIn\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.mnemom.ai/v1/domains/{domain}/honor-roll")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["cookie"] = 'mnemom_session='
request["Content-Type"] = 'application/json'
request.body = "{\n \"optIn\": true\n}"
response = http.request(request)
puts response.read_body{
"domain": "<string>",
"honor_roll": true,
"verified_at": "2023-11-07T05:31:56Z"
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}Authorizations
CookieAuthBearerAuth
HttpOnly, Secure, SameSite=Lax cookie issued by /v1/auth/sign-in (or the SSO / email-callback flows). The value is an AES-256-GCM-encrypted blob of {access_token, refresh_token, issued_at, auth_method}. Browser clients include this automatically with credentials: "include".
Path Parameters
Body
application/json