Let people read the portal while it's private, by email: up to 20 at once, 2000 in all. Addresses already there are left as they are.
Needs a read + write key.
Tuti APIUsers
Let people read the portal while it's private, by email: up to 20 at once, 2000 in all. Addresses already there are left as they are.
Needs a read + write key.
/portal/readersAuthorization Bearer token
application/json · object · required
emailsarray of string · 1–20 itemsrequiredAddresses, any account with one reading once it's verified (an emailed sign-in link verifies it), or whole domains ("@acme.com"): everyone with a verified address there (not free email providers, where anyone can get one); up to 20
notifybooleanOn a private portal, email each new one a link to it, unless false: up to 100 such emails a day per portal and 3 per address; past them, readers are added without one
Default: true
200Who was added, and how many were emailedapplication/json · object
Who was added, and how many were emailed
addedarray of stringrequiredEach entry added; those already there are left out
emailedintegerrequiredSays how many emails were sent: none to a domain, nor past the day's limits
400The request isn't valid: a field is missing, has the wrong type or is out of range, or the body isn't a JSON object. The message names the field.application/json · Error
errorobjectrequiredcodestringrequiredWhat went wrong, for code to check: stays the same
messagestringrequiredWhat went wrong, for a person: may change
401No API key was sent, or it isn't valid: it was revoked, or whoever created it left the team.application/json · Error
errorobjectrequiredcodestringrequiredWhat went wrong, for code to check: stays the same
messagestringrequiredWhat went wrong, for a person: may change
402The project's plan doesn't include this or is at its limit, it's out of AI credits, or a payment didn't go through. The message says what's needed.application/json · Error
errorobjectrequiredcodestringrequiredWhat went wrong, for code to check: stays the same
messagestringrequiredWhat went wrong, for a person: may change
403It isn't allowed: the key is read-only, its creator isn't a project owner or admin where only they may, only a person can do it in the app, a setting is off, or someone's address isn't confirmed. The code says which.application/json · Error
errorobjectrequiredcodestringrequiredWhat went wrong, for code to check: stays the same
messagestringrequiredWhat went wrong, for a person: may change
429Too many requests: past 600 a minute per key, try again after the seconds in the Retry-After header. Some operations have limits of their own (their description gives them), whose 429 has no Retry-After.application/json · Error
errorobjectrequiredcodestringrequiredWhat went wrong, for code to check: stays the same
messagestringrequiredWhat went wrong, for a person: may change
500Something went wrong on Tuti's side. Try again in a moment.application/json · Error
errorobjectrequiredcodestringrequiredWhat went wrong, for code to check: stays the same
messagestringrequiredWhat went wrong, for a person: may change
curl 'https://tuti.so/api/v1/portal/readers' \
--request POST \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data-raw '{
"emails": [
"[email protected]"
]
}'const response = await fetch("https://tuti.so/api/v1/portal/readers", {
method: "POST",
headers: {
"Authorization": "Bearer YOUR_API_KEY",
"Content-Type": "application/json"
},
body: JSON.stringify({
"emails": [
"[email protected]"
]
}),
});
const text = await response.text();import requests
response = requests.post(
"https://tuti.so/api/v1/portal/readers",
headers={
"Authorization": "Bearer YOUR_API_KEY",
"Content-Type": "application/json"
},
data="{\n \"emails\": [\n \"[email protected]\"\n ]\n}",
)
print(response.text){
"added": [
"[email protected]"
],
"emailed": 1
}{
"error": {
"code": "invalid_input",
"message": "title: Title is too short"
}
}{
"error": {
"code": "unauthorized",
"message": "This API key isn't valid or was revoked"
}
}{
"error": {
"code": "plan_required",
"message": "A custom domain needs the Pro plan. See Settings → Billing."
}
}{
"error": {
"code": "forbidden",
"message": "This key can only read. Create a read + write key to change things."
}
}{
"error": {
"code": "rate_limited",
"message": "Up to 600 requests a minute per key"
}
}{
"error": {
"code": "internal_error",
"message": "Something went wrong"
}
}