Legal holds
Add legal hold custodians
Names users on a hold, by email or by Granola user id. Idempotent: the response carries the request’s full resolved set, whether each entry was newly added or already present.
POST
/
v1
/
legal-holds
/
{hold_id}
/
custodians
Add legal hold custodians
curl --request POST \
--url https://public-api.granola.ai/v1/legal-holds/{hold_id}/custodians \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"custodians": [
{
"email": "person@example.com",
"id": "usr_9Kd2mPq7Rt4Xyz"
}
]
}
'import requests
url = "https://public-api.granola.ai/v1/legal-holds/{hold_id}/custodians"
payload = { "custodians": [
{
"email": "person@example.com",
"id": "usr_9Kd2mPq7Rt4Xyz"
}
] }
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({custodians: [{email: 'person@example.com', id: 'usr_9Kd2mPq7Rt4Xyz'}]})
};
fetch('https://public-api.granola.ai/v1/legal-holds/{hold_id}/custodians', 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://public-api.granola.ai/v1/legal-holds/{hold_id}/custodians",
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([
'custodians' => [
[
'email' => 'person@example.com',
'id' => 'usr_9Kd2mPq7Rt4Xyz'
]
]
]),
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://public-api.granola.ai/v1/legal-holds/{hold_id}/custodians"
payload := strings.NewReader("{\n \"custodians\": [\n {\n \"email\": \"person@example.com\",\n \"id\": \"usr_9Kd2mPq7Rt4Xyz\"\n }\n ]\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://public-api.granola.ai/v1/legal-holds/{hold_id}/custodians")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"custodians\": [\n {\n \"email\": \"person@example.com\",\n \"id\": \"usr_9Kd2mPq7Rt4Xyz\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://public-api.granola.ai/v1/legal-holds/{hold_id}/custodians")
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 \"custodians\": [\n {\n \"email\": \"person@example.com\",\n \"id\": \"usr_9Kd2mPq7Rt4Xyz\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"custodians": [
{
"id": "lhc_7Yt3nBv8Wq2Lms",
"object": "legal_hold_custodian",
"user": {
"object": "user",
"id": "usr_9Kd2mPq7Rt4Xyz",
"email": "person@example.com"
},
"added_at": "2026-09-21T10:00:00Z",
"removed_at": null
}
]
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
The legal hold id
Pattern:
^lgh_[a-zA-Z0-9]{14}$Example:
"lgh_Abc123XyZ456De"
Body
application/json
Users to name on this hold
Required array length:
1 - 100 elementsShow child attributes
Show child attributes
Response
The custodians named in the request
Show child attributes
Show child attributes
⌘I
Add legal hold custodians
curl --request POST \
--url https://public-api.granola.ai/v1/legal-holds/{hold_id}/custodians \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"custodians": [
{
"email": "person@example.com",
"id": "usr_9Kd2mPq7Rt4Xyz"
}
]
}
'import requests
url = "https://public-api.granola.ai/v1/legal-holds/{hold_id}/custodians"
payload = { "custodians": [
{
"email": "person@example.com",
"id": "usr_9Kd2mPq7Rt4Xyz"
}
] }
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({custodians: [{email: 'person@example.com', id: 'usr_9Kd2mPq7Rt4Xyz'}]})
};
fetch('https://public-api.granola.ai/v1/legal-holds/{hold_id}/custodians', 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://public-api.granola.ai/v1/legal-holds/{hold_id}/custodians",
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([
'custodians' => [
[
'email' => 'person@example.com',
'id' => 'usr_9Kd2mPq7Rt4Xyz'
]
]
]),
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://public-api.granola.ai/v1/legal-holds/{hold_id}/custodians"
payload := strings.NewReader("{\n \"custodians\": [\n {\n \"email\": \"person@example.com\",\n \"id\": \"usr_9Kd2mPq7Rt4Xyz\"\n }\n ]\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://public-api.granola.ai/v1/legal-holds/{hold_id}/custodians")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"custodians\": [\n {\n \"email\": \"person@example.com\",\n \"id\": \"usr_9Kd2mPq7Rt4Xyz\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://public-api.granola.ai/v1/legal-holds/{hold_id}/custodians")
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 \"custodians\": [\n {\n \"email\": \"person@example.com\",\n \"id\": \"usr_9Kd2mPq7Rt4Xyz\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"custodians": [
{
"id": "lhc_7Yt3nBv8Wq2Lms",
"object": "legal_hold_custodian",
"user": {
"object": "user",
"id": "usr_9Kd2mPq7Rt4Xyz",
"email": "person@example.com"
},
"added_at": "2026-09-21T10:00:00Z",
"removed_at": null
}
]
}
