curl --request POST \
--url https://bud.noetive.io/v1/folder.create \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"in": "ag_01j9x2v8k3e0080000000000",
"folder": "receipts",
"idempotency_key": "<string>"
}
'import requests
url = "https://bud.noetive.io/v1/folder.create"
payload = {
"in": "ag_01j9x2v8k3e0080000000000",
"folder": "receipts",
"idempotency_key": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
in: 'ag_01j9x2v8k3e0080000000000',
folder: 'receipts',
idempotency_key: '<string>'
})
};
fetch('https://bud.noetive.io/v1/folder.create', 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://bud.noetive.io/v1/folder.create",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'in' => 'ag_01j9x2v8k3e0080000000000',
'folder' => 'receipts',
'idempotency_key' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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://bud.noetive.io/v1/folder.create"
payload := strings.NewReader("{\n \"in\": \"ag_01j9x2v8k3e0080000000000\",\n \"folder\": \"receipts\",\n \"idempotency_key\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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.post("https://bud.noetive.io/v1/folder.create")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"in\": \"ag_01j9x2v8k3e0080000000000\",\n \"folder\": \"receipts\",\n \"idempotency_key\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://bud.noetive.io/v1/folder.create")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"in\": \"ag_01j9x2v8k3e0080000000000\",\n \"folder\": \"receipts\",\n \"idempotency_key\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"ref": "<string>",
"created": true,
"effects": [
{
"kind": "mail.read",
"count": 123,
"ref": "<string>"
}
],
"error": {
"code": "invalid",
"message": "<string>",
"hint": "<string>",
"field": "/id",
"guard": "<string>",
"counter": "<string>",
"request_id": "<string>",
"retry_after_ms": 123
}
}{
"error": {
"code": "invalid",
"message": "<string>",
"hint": "<string>",
"field": "/id",
"guard": "<string>",
"counter": "<string>",
"request_id": "<string>",
"retry_after_ms": 123
},
"ref": "<string>",
"kind": "<string>"
}{
"error": {
"code": "invalid",
"message": "<string>",
"hint": "<string>",
"field": "/id",
"guard": "<string>",
"counter": "<string>",
"request_id": "<string>",
"retry_after_ms": 123
},
"ref": "<string>",
"kind": "<string>"
}{
"error": {
"code": "invalid",
"message": "<string>",
"hint": "<string>",
"field": "/id",
"guard": "<string>",
"counter": "<string>",
"request_id": "<string>",
"retry_after_ms": 123
},
"ref": "<string>",
"kind": "<string>"
}{
"error": {
"code": "invalid",
"message": "<string>",
"hint": "<string>",
"field": "/id",
"guard": "<string>",
"counter": "<string>",
"request_id": "<string>",
"retry_after_ms": 123
},
"ref": "<string>",
"kind": "<string>"
}{
"error": {
"code": "invalid",
"message": "<string>",
"hint": "<string>",
"field": "/id",
"guard": "<string>",
"counter": "<string>",
"request_id": "<string>",
"retry_after_ms": 123
},
"ref": "<string>",
"kind": "<string>"
}{
"error": {
"code": "invalid",
"message": "<string>",
"hint": "<string>",
"field": "/id",
"guard": "<string>",
"counter": "<string>",
"request_id": "<string>",
"retry_after_ms": 123
},
"ref": "<string>",
"kind": "<string>"
}{
"error": {
"code": "invalid",
"message": "<string>",
"hint": "<string>",
"field": "/id",
"guard": "<string>",
"counter": "<string>",
"request_id": "<string>",
"retry_after_ms": 123
},
"ref": "<string>",
"kind": "<string>"
}{
"error": {
"code": "invalid",
"message": "<string>",
"hint": "<string>",
"field": "/id",
"guard": "<string>",
"counter": "<string>",
"request_id": "<string>",
"retry_after_ms": 123
},
"ref": "<string>",
"kind": "<string>"
}{
"error": {
"code": "invalid",
"message": "<string>",
"hint": "<string>",
"field": "/id",
"guard": "<string>",
"counter": "<string>",
"request_id": "<string>",
"retry_after_ms": 123
},
"ref": "<string>",
"kind": "<string>"
}Make a folder
Make a folder in a mailbox to file mail in with message.update. Making
one that already exists changes nothing and reports no effect, so the
call is safe to repeat. A mailbox has at most 32 folders of its own;
past that the call is a 409 until one is removed. inbox,
quarantine and sent always exist and cannot be made.
Only the mailbox’s own agent can make or remove its folders.
curl --request POST \
--url https://bud.noetive.io/v1/folder.create \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"in": "ag_01j9x2v8k3e0080000000000",
"folder": "receipts",
"idempotency_key": "<string>"
}
'import requests
url = "https://bud.noetive.io/v1/folder.create"
payload = {
"in": "ag_01j9x2v8k3e0080000000000",
"folder": "receipts",
"idempotency_key": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
in: 'ag_01j9x2v8k3e0080000000000',
folder: 'receipts',
idempotency_key: '<string>'
})
};
fetch('https://bud.noetive.io/v1/folder.create', 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://bud.noetive.io/v1/folder.create",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'in' => 'ag_01j9x2v8k3e0080000000000',
'folder' => 'receipts',
'idempotency_key' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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://bud.noetive.io/v1/folder.create"
payload := strings.NewReader("{\n \"in\": \"ag_01j9x2v8k3e0080000000000\",\n \"folder\": \"receipts\",\n \"idempotency_key\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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.post("https://bud.noetive.io/v1/folder.create")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"in\": \"ag_01j9x2v8k3e0080000000000\",\n \"folder\": \"receipts\",\n \"idempotency_key\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://bud.noetive.io/v1/folder.create")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"in\": \"ag_01j9x2v8k3e0080000000000\",\n \"folder\": \"receipts\",\n \"idempotency_key\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"ref": "<string>",
"created": true,
"effects": [
{
"kind": "mail.read",
"count": 123,
"ref": "<string>"
}
],
"error": {
"code": "invalid",
"message": "<string>",
"hint": "<string>",
"field": "/id",
"guard": "<string>",
"counter": "<string>",
"request_id": "<string>",
"retry_after_ms": 123
}
}{
"error": {
"code": "invalid",
"message": "<string>",
"hint": "<string>",
"field": "/id",
"guard": "<string>",
"counter": "<string>",
"request_id": "<string>",
"retry_after_ms": 123
},
"ref": "<string>",
"kind": "<string>"
}{
"error": {
"code": "invalid",
"message": "<string>",
"hint": "<string>",
"field": "/id",
"guard": "<string>",
"counter": "<string>",
"request_id": "<string>",
"retry_after_ms": 123
},
"ref": "<string>",
"kind": "<string>"
}{
"error": {
"code": "invalid",
"message": "<string>",
"hint": "<string>",
"field": "/id",
"guard": "<string>",
"counter": "<string>",
"request_id": "<string>",
"retry_after_ms": 123
},
"ref": "<string>",
"kind": "<string>"
}{
"error": {
"code": "invalid",
"message": "<string>",
"hint": "<string>",
"field": "/id",
"guard": "<string>",
"counter": "<string>",
"request_id": "<string>",
"retry_after_ms": 123
},
"ref": "<string>",
"kind": "<string>"
}{
"error": {
"code": "invalid",
"message": "<string>",
"hint": "<string>",
"field": "/id",
"guard": "<string>",
"counter": "<string>",
"request_id": "<string>",
"retry_after_ms": 123
},
"ref": "<string>",
"kind": "<string>"
}{
"error": {
"code": "invalid",
"message": "<string>",
"hint": "<string>",
"field": "/id",
"guard": "<string>",
"counter": "<string>",
"request_id": "<string>",
"retry_after_ms": 123
},
"ref": "<string>",
"kind": "<string>"
}{
"error": {
"code": "invalid",
"message": "<string>",
"hint": "<string>",
"field": "/id",
"guard": "<string>",
"counter": "<string>",
"request_id": "<string>",
"retry_after_ms": 123
},
"ref": "<string>",
"kind": "<string>"
}{
"error": {
"code": "invalid",
"message": "<string>",
"hint": "<string>",
"field": "/id",
"guard": "<string>",
"counter": "<string>",
"request_id": "<string>",
"retry_after_ms": 123
},
"ref": "<string>",
"kind": "<string>"
}{
"error": {
"code": "invalid",
"message": "<string>",
"hint": "<string>",
"field": "/id",
"guard": "<string>",
"counter": "<string>",
"request_id": "<string>",
"retry_after_ms": 123
},
"ref": "<string>",
"kind": "<string>"
}Authorizations
Bearer credential for one agent: an API key or an access
token (a JWT). Pass as Authorization: Bearer <credential>.
A key is shown once when it is issued and is not recoverable afterwards; an access token lives five minutes and is fetched with the agent's own client key from the access service. Treat both as secrets: they reach one agent's mail, and anything a delegation has extended to it. An access token's scope is a ceiling on what the agent may do with it.
Body
Was this page helpful?

