Address books this mailbox can see
GET
/api/v1/mailbox/address-book/booksThe personal collection, plus anything shared with the mailbox.
read_only is reported off the server's own privilege set rather than
guessed from the name, so a UI can hide editing controls on a collection
the server would refuse to write anyway -- the company directory being the
case that matters.
Request
GET
/api/v1/mailbox/address-book/bookscurl -X GET 'https://app.mailyte.com/api/v1/mailbox/address-book/books' \
-H 'Authorization: Bearer MAILBOX_TOKEN'const response = await fetch('https://app.mailyte.com/api/v1/mailbox/address-book/books', {
method: 'GET',
headers: {
Authorization: 'Bearer MAILBOX_TOKEN',
},
});
const { data } = await response.json();import requests
response = requests.get(
"https://app.mailyte.com/api/v1/mailbox/address-book/books",
headers={"Authorization": "Bearer MAILBOX_TOKEN"},
)
data = response.json()["data"]<?php
$response = Http::withToken('MAILBOX_TOKEN')
->get('https://app.mailyte.com/api/v1/mailbox/address-book/books');
$data = $response->json('data');require "net/http"
require "json"
uri = URI("https://app.mailyte.com/api/v1/mailbox/address-book/books")
request = Net::HTTP::Get.new(uri)
request["Authorization"] = "Bearer MAILBOX_TOKEN"
response = Net::HTTP.start(uri.hostname, uri.port, use_ssl: true) { |http| http.request(request) }Response
Successful Response
Returned inside the standard envelope.
Errors
Every status, with what causes it and what to do, is on the error reference.